: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;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
}

.auth-page-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    min-height: 0;
}

.auth-shell {
    --auth-pitch-bg:
        radial-gradient(42rem 26rem at 0% 0%, rgba(255, 255, 255, 0.16), transparent 58%),
        radial-gradient(32rem 22rem at 100% 100%, rgba(8, 36, 26, 0.38), transparent 60%),
        linear-gradient(165deg, #186b50 0%, #1f6f54 46%, #143f32 100%);
    width: 100%;
    display: grid;
    gap: 0;
    background: var(--hh-surface);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Login/register pitch + panel; invite-only pages use --solo (one column). */
.auth-shell--solo {
    width: min(100%, 32rem);
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--hh-border);
    border-radius: calc(var(--bs-border-radius) + 0.15rem);
    box-shadow: var(--hh-shadow);
}

.promo-top-banner {
    position: relative;
    z-index: 20;
    width: 100%;
    background: linear-gradient(135deg, #1f6f54 0%, #2a8f6c 55%, #1f6f54 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px color-mix(in srgb, #1f6f54 28%, transparent);
}

.promo-top-banner[hidden] {
    display: none !important;
}

.promo-top-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 1.25rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.55rem 2.5rem 0.55rem 1rem;
}

.promo-top-banner__primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.promo-top-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
    background: color-mix(in srgb, #ffffff 16%, transparent);
    font-size: 0.8rem;
}

.promo-top-banner__title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.promo-top-banner__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: #1c2a24;
    background: #f3dfa0;
}

.promo-top-banner__meta {
    font-size: 0.8rem;
    line-height: 1.3;
    color: color-mix(in srgb, #ffffff 82%, transparent);
}

.promo-top-banner__countdown {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, #000000 16%, transparent);
    border: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
    font-variant-numeric: tabular-nums;
}

.promo-top-banner__countdown-piece {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    white-space: nowrap;
    line-height: 1;
}

.promo-top-banner__countdown-piece strong {
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1;
}

.promo-top-banner__countdown-piece span {
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.78;
    line-height: 1;
}

.promo-top-banner__countdown-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1rem;
    padding: 0 0.05rem;
    opacity: 0.55;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.promo-top-banner__close {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: color-mix(in srgb, #ffffff 12%, transparent);
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.promo-top-banner__close span {
    display: block;
    margin-top: -0.05em;
    line-height: 1;
}

.promo-top-banner__close:hover,
.promo-top-banner__close:focus-visible {
    background: color-mix(in srgb, #ffffff 22%, transparent);
    outline: none;
}

.guest-page {
    min-height: 100vh;
}

.guest-topbar {
    border-bottom: 1px solid var(--hh-border);
    background: var(--hh-surface);
}

.guest-topbar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.guest-topbar-brand,
.guest-topbar .app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    order: 0;
    margin-right: 0;
    margin-left: 0;
}

.guest-topbar-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    order: 1;
    margin-left: auto;
}

.auth-premium-teaser {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, #c9a227 32%, var(--hh-border));
    background: linear-gradient(135deg, color-mix(in srgb, #f7efd6 55%, var(--hh-surface)), var(--hh-surface));
    color: inherit;
}

.auth-premium-teaser[hidden] {
    display: none !important;
}

.auth-premium-teaser__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    flex: 1 1 12rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.auth-premium-teaser__link:hover,
.auth-premium-teaser__link:focus-visible {
    color: inherit;
    outline: none;
}

.auth-premium-teaser__link:hover .auth-premium-teaser__body strong,
.auth-premium-teaser__link:focus-visible .auth-premium-teaser__body strong {
    color: var(--hh-brand);
}

.auth-verify-callout {
    margin: 0 0 1.25rem;
    padding: 1.25rem 1.15rem 1.15rem;
    border-radius: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 28%, var(--hh-border));
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--hh-accent) 70%, var(--hh-surface)) 0%,
        var(--hh-surface) 100%
    );
    text-align: center;
}

.auth-verify-callout__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hh-brand) 14%, var(--hh-surface));
    color: var(--hh-brand);
    font-size: 1.45rem;
}

.auth-verify-callout__lead {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--hh-ink);
}

.auth-premium-teaser:hover,
.auth-premium-teaser:focus-visible {
    border-color: color-mix(in srgb, #c9a227 55%, var(--hh-border));
    box-shadow: 0 6px 18px color-mix(in srgb, #c9a227 12%, transparent);
    color: inherit;
    outline: none;
}

.auth-premium-teaser__countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.auth-premium-teaser__piece {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.15rem;
    padding: 0.3rem 0.35rem;
    border-radius: 0.45rem;
    background: color-mix(in srgb, #e8c547 22%, var(--hh-surface));
    color: var(--hh-ink);
    line-height: 1.1;
}

.auth-premium-teaser__piece strong {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.auth-premium-teaser__piece span {
    margin-top: 0.12rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--hh-muted);
}

.auth-premium-teaser__sep {
    font-weight: 700;
    color: var(--hh-muted);
}

@media (max-width: 575.98px) {
    .auth-premium-teaser__sep--sec,
    .auth-premium-teaser__piece--sec {
        display: none;
    }
}

.auth-premium-teaser__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    background: color-mix(in srgb, #e8c547 28%, var(--hh-surface));
    color: var(--hh-premium);
    flex-shrink: 0;
}

.auth-premium-teaser__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 10rem;
    min-width: 0;
}

.auth-premium-teaser__body strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hh-ink);
}

.auth-premium-teaser__body span {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--hh-muted);
}

@media (max-width: 640px) {
    .promo-top-banner__inner {
        padding: 0.65rem 2.4rem 0.7rem 0.85rem;
        gap: 0.45rem;
    }

    .promo-top-banner__meta {
        width: 100%;
        text-align: center;
        font-size: 0.74rem;
    }

    .promo-top-banner__countdown-piece--sec,
    .promo-top-banner__countdown-sep--sec {
        display: none;
    }
}

.auth-pitch {
    padding: 2rem 1.75rem 1.5rem;
    background: var(--auth-pitch-bg);
    color: #fff;
}

.auth-product-preview {
    margin: 0 0 1.35rem;
}

.auth-product-preview__caption {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hh-muted);
}

.auth-product-window {
    border-radius: calc(var(--bs-border-radius) + 0.15rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 14%, var(--hh-border));
    box-shadow: 0 12px 32px color-mix(in srgb, var(--hh-brand) 12%, transparent);
    background: var(--hh-surface);
}

.auth-product-chrome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.7rem;
    background: color-mix(in srgb, var(--hh-bg) 70%, var(--hh-surface));
    border-bottom: 1px solid var(--hh-border);
}

.auth-product-chrome__dots {
    display: inline-flex;
    gap: 0.28rem;
}

.auth-product-chrome__dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hh-muted) 35%, var(--hh-border));
}

.auth-product-chrome__title {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hh-muted);
    letter-spacing: 0.01em;
}

.auth-product-app {
    background: var(--hh-bg);
}

.auth-product-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: color-mix(in srgb, var(--hh-bg) 86%, transparent);
    border-bottom: 1px solid var(--hh-border);
}

.auth-product-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hh-ink);
}

.auth-product-topbar__group {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hh-brand);
    background: var(--hh-accent);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.auth-product-body {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
}

.auth-product-main {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    overflow: hidden;
}

.auth-product-main__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.4rem;
}

.auth-product-main__title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hh-ink);
}

.auth-product-main__meta {
    font-size: 0.75rem;
    color: var(--hh-muted);
}

.auth-product-list {
    list-style: none;
    margin: 0;
    padding: 0 0.35rem 0.35rem;
}

.auth-product-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.4rem;
    border-top: 1px dashed var(--hh-border);
    font-size: 0.86rem;
}

.auth-product-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.3rem;
    border: 1.5px solid color-mix(in srgb, var(--hh-brand) 45%, var(--hh-border));
    background: var(--hh-surface);
    color: #fff;
    font-size: 0.65rem;
}

.auth-product-check.is-checked {
    background: var(--hh-brand);
    border-color: var(--hh-brand);
}

.auth-product-row__name {
    flex: 1;
    min-width: 0;
    color: var(--hh-ink);
}

.auth-product-row.is-bought .auth-product-row__name {
    color: var(--hh-muted);
    text-decoration: line-through;
}

.auth-product-row__qty {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hh-muted);
}

.auth-product-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.auth-product-card,
.auth-product-note {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.7rem;
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    min-width: 0;
}

.auth-product-card__label,
.auth-product-note__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hh-muted);
}

.auth-product-card__name {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--hh-ink);
}

.auth-product-barcode {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1px;
    height: 1.85rem;
    margin-top: 0.15rem;
    padding: 0.2rem 0.15rem;
    background: #fff;
    border: 1px solid var(--hh-border);
    border-radius: 0.25rem;
}

.auth-product-barcode span {
    flex: 1;
    background: var(--hh-ink);
    opacity: 0.88;
}

.auth-product-barcode span:nth-child(3n) {
    flex: 0.45;
    opacity: 0.55;
}

.auth-product-barcode span:nth-child(5n) {
    flex: 1.35;
}

.auth-product-note {
    background: color-mix(in srgb, #f6e7a1 55%, var(--hh-surface));
    border-color: color-mix(in srgb, #e2c96a 40%, var(--hh-border));
}

.auth-product-note__text {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--hh-ink);
}

.auth-product-finance {
    grid-column: 1 / -1;
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    overflow: hidden;
    min-width: 0;
}

.auth-product-finance__total {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hh-brand);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.auth-product-asset {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.4rem;
    border-top: 1px dashed var(--hh-border);
    font-size: 0.84rem;
}

.auth-product-asset__name {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    flex: 1;
    color: var(--hh-ink);
}

.auth-product-asset__cat {
    font-size: 0.7rem;
    color: var(--hh-muted);
    line-height: 1.2;
}

.auth-product-asset__value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--hh-ink);
    white-space: nowrap;
}

.auth-product-finance__note {
    margin: 0;
    padding: 0.15rem 0.75rem 0.55rem;
    font-size: 0.7rem;
    color: var(--hh-muted);
    line-height: 1.3;
}

.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-entity {
    color: var(--hh-text, inherit);
    font-weight: 500;
    margin: 0 0 0.65rem;
    line-height: 1.45;
}

.auth-pitch-blog {
    margin: 0 0 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.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;
}

.app-store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin: 0 0 1.25rem;
    color: var(--hh-ink);
    padding: 1.05rem 1.1rem;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--hh-brand) 9%, var(--hh-surface)), var(--hh-surface) 48%);
    border: 1px solid color-mix(in srgb, var(--hh-brand) 22%, var(--hh-border));
    border-radius: var(--hh-radius);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--hh-brand) 8%, transparent);
}

.app-store__body {
    min-width: 0;
    flex: 1 1 14rem;
}

.app-store__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.45rem;
    padding: 0.16rem 0.55rem 0.16rem 0.45rem;
    border-radius: 999px;
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.app-store__eyebrow i {
    font-size: 0.82rem;
}

.app-store__title {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.app-store__lead {
    margin: 0 0 0.85rem;
    color: var(--hh-muted);
    font-size: 0.925rem;
    line-height: 1.4;
}

.app-store__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.app-store__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0.95rem 0.4rem 0.75rem;
    min-height: 3rem;
    text-decoration: none;
    border-radius: 0.55rem;
    line-height: 1.05;
    border: 1px solid transparent;
}

.app-store__mark {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
}

.app-store__badge small {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.78;
}

.app-store__badge--ios {
    background: #111;
    color: #fff;
}

.app-store__badge--ios:hover,
.app-store__badge--ios:focus-visible {
    background: #2c2c2c;
    color: #fff;
}

.app-store__badge--android {
    background: #fff;
    color: #1c2a24;
    border-color: color-mix(in srgb, #1c2a24 14%, var(--hh-border));
}

.app-store__badge--android small {
    opacity: 0.62;
}

.app-store__badge--android:hover,
.app-store__badge--android:focus-visible {
    background: #f3f6f4;
    color: #1c2a24;
}

.app-store__qr {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.app-store__qr-switch {
    display: flex;
    padding: 0.15rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hh-ink) 5%, var(--hh-surface));
    border: 1px solid var(--hh-border);
}

.app-store__qr-switch button {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border: 0;
    background: transparent;
    color: var(--hh-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.app-store__qr-switch button.is-active {
    background: var(--hh-ink);
    color: #fff;
}

.app-store__qr-frame {
    display: grid;
    place-items: center;
    width: 6.5rem;
    height: 6.5rem;
    padding: 0.3rem;
    background: #fff;
    border: 1px solid var(--hh-border);
    border-radius: 0.55rem;
}

.app-store__qr-frame img {
    width: 100%;
    height: 100%;
    display: block;
}

.app-store__qr-frame img[hidden] {
    display: none;
}

.app-store__qr figcaption {
    color: var(--hh-muted);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.2;
}

.home-dashboard .app-store,
.home-welcome .app-store {
    margin-top: 1.75rem;
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .app-store {
        flex-direction: column;
        align-items: stretch;
    }

    .app-store__qr {
        align-self: center;
    }
}

.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.7rem;
    margin-bottom: 1rem;
}

.auth-social-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.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: flex-start;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.45rem 0.7rem 0.45rem 0.5rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--bs-border-radius);
    background: var(--hh-surface);
    color: var(--hh-ink);
    text-decoration: none;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--hh-ink) 4%, transparent);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-social-btn:hover,
.auth-social-btn:focus-visible {
    color: var(--hh-ink);
    background: var(--hh-accent);
    border-color: color-mix(in srgb, var(--hh-brand) 28%, var(--hh-border));
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--hh-brand) 14%, transparent);
    text-decoration: none;
}

.auth-social-btn:focus-visible {
    outline: none;
}

.auth-social-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: calc(var(--bs-border-radius) - 0.1rem);
    font-size: 1.05rem;
    line-height: 1;
}

.auth-social-btn--google .auth-social-btn__icon {
    color: #c5221f;
    background: color-mix(in srgb, #db4437 12%, var(--hh-surface));
}

.auth-social-btn--facebook .auth-social-btn__icon {
    color: #1877f2;
    background: color-mix(in srgb, #1877f2 12%, var(--hh-surface));
}

.auth-social-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
}

.auth-social-btn__text span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--hh-muted);
}

.auth-social-btn:hover .auth-social-btn__text span,
.auth-social-btn:focus-visible .auth-social-btn__text span {
    color: color-mix(in srgb, var(--hh-brand) 55%, var(--hh-muted));
}

.auth-social-btn__text strong {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--hh-ink);
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.5rem 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;
}

.auth-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-turnstile {
    width: 100%;
    max-width: 100%;
}

.auth-turnstile .cf-turnstile {
    width: 100%;
}

.auth-turnstile iframe {
    width: 100% !important;
}

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

    .auth-shell--solo {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-pitch {
        padding: 2.75rem 3rem;
        display: flex;
        flex-direction: column;
        justify-content: safe center;
        border-right: 0;
    }

    .auth-panel {
        padding: 1.35rem 2.25rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-self: start;
        position: sticky;
        top: 0;
    }

    .auth-product-preview {
        margin-bottom: 1.5rem;
    }

    .auth-product-body {
        grid-template-columns: minmax(0, 1.35fr) minmax(9.5rem, 0.75fr);
        align-items: stretch;
    }

    .auth-product-side {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767.98px) {
    .auth-page-main {
        align-items: flex-start;
    }

    /* Brand first, then login/register, then marketing pitch. */
    .auth-pitch {
        display: contents;
    }

    .auth-pitch-top {
        order: 1;
        margin-bottom: 0;
        padding: 1.25rem 1.25rem 1rem;
        background: var(--auth-pitch-bg);
        border-bottom: 1px solid var(--hh-border);
    }

    .auth-panel {
        order: 2;
    }

    .auth-pitch-body {
        order: 3;
        padding: 1.5rem 1.25rem 1.25rem;
        background: var(--auth-pitch-bg);
        border-top: 1px solid var(--hh-border);
    }

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

    .auth-product-preview {
        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-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 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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 {
    position: absolute;
    top: -0.16rem;
    right: -0.16rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, #c9a227 40%, transparent);
    background: linear-gradient(180deg, #f7efd6, #ead89a);
    color: #8a6410;
    font-size: 0.34rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(20, 40, 30, 0.12);
}

.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;
}

.premium-launch-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border: 1px solid color-mix(in srgb, #c9a227 35%, var(--hh-border));
    border-radius: var(--hh-radius, 0.75rem);
    background: linear-gradient(180deg, color-mix(in srgb, #f7efd6 55%, var(--hh-surface)), var(--hh-surface));
}

.premium-launch-banner > i {
    margin-top: 0.15rem;
    color: var(--hh-premium);
}

.premium-launch-banner strong {
    display: block;
    margin-bottom: 0.2rem;
}

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

.premium-request-divider {
    margin: 1.15rem 0 1rem;
    border: 0;
    border-top: 1px dashed var(--hh-border);
    opacity: 1;
}

.premium-request-intro {
    margin: 0;
    color: var(--hh-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.premium-request-hint {
    color: var(--hh-muted);
    font-size: 0.85rem;
}

.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-why-group {
    margin-top: 1.35rem;
}

.home-why-group__intro {
    margin: 0 0 0.85rem;
    color: var(--hh-ink);
    line-height: 1.55;
}

.home-why-group__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.home-why-group__list li {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    background: var(--hh-surface);
    color: var(--hh-muted);
    line-height: 1.5;
}

.home-why-group__list strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--hh-ink);
    font-weight: 600;
}

.home-launch-promo {
    margin-top: 1.35rem;
}

.home-launch-promo__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 28%, var(--hh-border));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--hh-brand) 88%, #0f3d2e) 0%,
        color-mix(in srgb, var(--hh-brand) 72%, #2a8f6c) 100%
    );
    color: #ffffff;
}

.home-launch-promo__card[hidden] {
    display: none !important;
}

.home-launch-promo__text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(100%, 16rem);
    flex: 1 1 14rem;
}

.home-launch-promo__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, #ffffff 18%, transparent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.home-launch-promo__title {
    font-size: 1.05rem;
    line-height: 1.3;
}

.home-launch-promo__lead {
    color: color-mix(in srgb, #ffffff 86%, transparent);
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-launch-promo__countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.home-launch-promo__piece {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.4rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, #ffffff 14%, transparent);
    line-height: 1.1;
}

.home-launch-promo__piece strong {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.home-launch-promo__piece span {
    margin-top: 0.15rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.home-launch-promo__sep {
    font-weight: 700;
    opacity: 0.7;
}

@media (max-width: 575.98px) {
    .home-launch-promo__sep--sec,
    .home-launch-promo__piece--sec {
        display: none;
    }
}

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

.home-dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.75rem;
}

.home-dashboard-heading {
    min-width: 0;
    flex: 1 1 12rem;
}

.home-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.62rem 1.2rem;
    font-weight: 600;
    color: #fff;
    background: var(--hh-brand);
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--hh-brand) 32%, transparent);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.home-invite-btn:hover,
.home-invite-btn:focus-visible {
    color: #fff;
    background: var(--hh-brand-hover);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--hh-brand) 40%, transparent);
    transform: translateY(-1px);
}

.home-invite-btn i {
    font-size: 0.95rem;
}

#new-invitation {
    scroll-margin-top: 5.5rem;
}

#new-invitation:target {
    box-shadow: var(--hh-shadow), 0 0 0 3px color-mix(in srgb, var(--hh-brand) 22%, transparent);
}

.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;
}

.add-form-options-fields .add-form-options-field > .form-label {
    display: block;
    margin-bottom: 0.25rem;
}

.add-form-options-fields .add-form-options-field .form-control,
.add-form-options-fields .add-form-options-field .form-select {
    width: 100%;
}

.add-form-options-control {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.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-bought-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--hh-border);
}

.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;
}

.app-confirm-modal .modal-dialog {
    max-width: 22.5rem;
}

.app-confirm-dialog {
    border: 1px solid color-mix(in srgb, var(--hh-brand) 12%, var(--hh-border));
    border-radius: calc(var(--hh-radius) + 0.25rem);
    box-shadow: 0 24px 48px rgba(20, 40, 30, 0.16);
    overflow: hidden;
}

.app-confirm-dialog-body {
    padding: 1.35rem 1.25rem 1.2rem;
    text-align: center;
}

.app-confirm-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    font-size: 1.1rem;
}

.app-confirm-dialog-icon[data-variant="danger"] {
    color: var(--hh-danger);
    background: color-mix(in srgb, var(--hh-danger) 12%, var(--hh-surface));
}

.app-confirm-dialog-icon[data-variant="primary"] {
    color: var(--hh-brand);
    background: color-mix(in srgb, var(--hh-brand) 12%, var(--hh-surface));
}

.app-confirm-dialog-icon[data-variant="warning"] {
    color: #9a6700;
    background: color-mix(in srgb, #9a6700 12%, var(--hh-surface));
}

.app-confirm-dialog-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--hh-ink);
    line-height: 1.35;
}

.app-confirm-dialog-message {
    margin: 0.45rem 0 0;
    color: var(--hh-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.app-confirm-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.app-confirm-dialog-actions .btn {
    min-width: 6.5rem;
}

.app-modal .modal-dialog {
    max-width: 34rem;
}

.app-modal-content {
    border: 1px solid color-mix(in srgb, var(--hh-brand) 14%, var(--hh-border));
    border-radius: calc(var(--hh-radius) + 0.2rem);
    box-shadow: 0 24px 48px rgba(20, 40, 30, 0.14);
    overflow: hidden;
}

.app-modal-header {
    padding: 1rem 1.1rem 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--hh-brand) 10%, var(--hh-border));
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--hh-brand) 6%, var(--hh-surface)),
        var(--hh-surface)
    );
}

.app-modal-header .modal-title {
    font-size: 1.03rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.app-modal-body {
    padding: 0.95rem 1.1rem 1.1rem;
}

.app-modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid color-mix(in srgb, var(--hh-brand) 10%, var(--hh-border));
}

.favourites-modal-title .fa-star {
    color: #c9971a;
}

.favourites-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.favourites-picker-cancel {
    margin-left: auto;
}

.favourites-picker-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    cursor: pointer;
}

.favourites-picker-select-all .form-check-input {
    margin: 0;
}

.favourites-picker-list {
    border: 1px solid color-mix(in srgb, var(--hh-brand) 12%, var(--hh-border));
    border-radius: 0.75rem;
    background: var(--hh-surface);
    max-height: min(22rem, 48vh);
    overflow: auto;
}

.favourites-picker-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    min-width: 0;
    cursor: pointer;
}

.favourites-picker-row:not([hidden]) ~ .favourites-picker-row:not([hidden]) {
    border-top: 1px dashed color-mix(in srgb, var(--hh-brand) 10%, var(--hh-border));
}

.favourites-picker-row:hover {
    background: rgba(31, 111, 84, 0.05);
}

.favourites-picker-row .form-check-input {
    margin: 0;
    flex-shrink: 0;
}

.favourites-picker-name {
    min-width: 0;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favourites-picker-on-list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    margin: 0.75rem 0 0;
    color: var(--hh-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.favourites-picker-on-list-label {
    flex-shrink: 0;
}

.favourites-picker-on-list s {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.app-comment-list {
    margin-bottom: 0.85rem !important;
}

.app-comment-row {
    padding: 0.7rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 10%, var(--hh-border));
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--hh-brand) 3%, var(--hh-surface));
}

.app-comment-row:last-child {
    padding-bottom: 0.7rem;
}

.app-comment-form {
    padding-top: 0.15rem;
}

.app-comment-input {
    min-height: 5.75rem;
    resize: vertical;
}

.app-note-comment-text {
    line-height: 1.5;
    color: var(--hh-ink);
    white-space: pre-wrap;
}

.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;
}

.comment-list .app-comment-row {
    padding: 0.7rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 10%, var(--hh-border));
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--hh-brand) 3%, var(--hh-surface));
}

.comment-list .app-comment-row:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--hh-brand) 10%, var(--hh-border));
    padding-bottom: 0.7rem;
}

.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-main {
        padding: 1rem;
    }

    .auth-pitch-top,
    .auth-pitch-body,
    .auth-panel {
        padding: 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);
}

.maintenance-shell {
    position: relative;
    overflow: hidden;
}

.maintenance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    margin: 1.25rem auto;
    border-radius: 50%;
    color: var(--hh-brand);
    background: var(--hh-accent);
    border: 1px solid color-mix(in srgb, var(--hh-brand) 18%, var(--hh-border));
    font-size: 1.65rem;
    animation: maintenance-pulse 2.4s ease-in-out infinite;
}

.maintenance-note {
    margin: 0;
    color: var(--hh-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes maintenance-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--hh-brand) 22%, transparent);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 10px transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maintenance-icon {
        animation: none;
    }
}

.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%;
    }
}

.note-color-field {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.note-color-control {
    position: relative;
    display: inline-flex;
}

.note-color-trigger {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0.2rem;
    border: 1px solid var(--hh-border);
    border-radius: 0.45rem;
    background:
        linear-gradient(var(--note-color, #4caf50), var(--note-color, #4caf50)) center / calc(100% - 0.45rem) calc(100% - 0.45rem) no-repeat,
        var(--hh-surface);
    cursor: pointer;
}

.note-color-trigger:focus-visible {
    outline: 2px solid var(--hh-brand);
    outline-offset: 2px;
}

.note-color-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.35rem);
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1.85rem);
    gap: 0.4rem;
    margin: 0;
    padding: 0.55rem;
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: 0.65rem;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--hh-ink) 12%, transparent);
}

.note-color-menu[hidden] {
    display: none;
}

.note-color-swatch {
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--note-color);
    cursor: pointer;
}

.note-color-swatch:hover,
.note-color-swatch:focus-visible {
    border-color: color-mix(in srgb, var(--hh-ink) 35%, transparent);
}

.note-color-swatch.is-selected {
    border-color: var(--hh-ink);
    box-shadow: inset 0 0 0 2px #fff;
}

.note-color-field .note-color-input.form-control {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
    appearance: none;
}

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;
}

.drag-handle[hidden] {
    display: none !important;
}

.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 .app-user-initials {
    margin-inline: 0.45rem;
}

.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;
}

.sticky-notes-reminder-row {
    align-items: flex-end;
}

.sticky-notes-reminder-row .sticky-notes-option {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sticky-notes-form-check-flush {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: calc(1.5em + 0.75rem + 2px);
}

.sticky-notes-form-check-flush .form-check-input {
    margin-left: 0;
    margin-top: 0;
    float: none;
    flex-shrink: 0;
}

.sticky-notes-form-check-flush .form-check-label {
    white-space: nowrap;
}

.sticky-notes-reminder-row .form-check {
    padding-left: 0;
}

.sticky-notes-option-reminder-toggle {
    flex: 0 0 auto;
    padding-bottom: 0;
}

.sticky-notes-reminder-label-spacer {
    visibility: hidden;
    user-select: none;
}

.sticky-notes-option.is-reminder-locked .form-label,
.sticky-notes-option.is-reminder-locked .sticky-notes-field-help {
    opacity: 0.55;
}

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

.sticky-notes-option-days-before {
    flex: 1 1 8.25rem;
    min-width: 8.25rem;
}

.sticky-notes-option-days-before .form-label {
    white-space: nowrap;
}

.sticky-notes-option-notify {
    flex: 1 1 9rem;
}

.sticky-notes-field-help {
    margin-top: 0.2rem;
    margin-bottom: 0;
    min-height: 1.25rem;
    line-height: 1.25;
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .sticky-notes-reminder-row {
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .sticky-notes-option-reminder-toggle {
        flex: 1 1 100%;
    }

    .sticky-notes-reminder-label-spacer {
        display: none;
    }

    .sticky-notes-option-reminder-time,
    .sticky-notes-option-days-before,
    .sticky-notes-option-notify {
        flex: 1 1 calc(50% - 0.25rem);
    }
}

@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: center;
    border-left: 0;
    margin-left: 0;
    padding-left: 0.15rem;
}

.sticky-note-swatch {
    flex: 0 0 auto;
    align-self: center;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0;
    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 {
    margin-top: 0;
}

.sticky-note-comment-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: var(--hh-brand) !important;
    cursor: help;
    pointer-events: auto;
}

.sticky-note-comment-indicator:hover,
.sticky-note-comment-indicator:focus {
    color: var(--hh-brand-dark, var(--hh-brand)) !important;
    outline: none;
}

.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: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.sticky-notes-column-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.sticky-notes-stack-panel {
    min-width: 0;
}

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

    .sticky-notes-columns:not(.sticky-notes-columns--no-today) .sticky-notes-column-today {
        grid-column: 1;
        grid-row: 1;
    }

    .sticky-notes-columns:not(.sticky-notes-columns--no-today) .sticky-notes-column-side {
        grid-column: 2;
        grid-row: 1;
    }

    .sticky-notes-columns--no-today {
        grid-template-columns: 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;
    width: 100%;
}

.recipe-ingredient-section {
    width: 100%;
}

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

.recipe-ingredient-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.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 0;
    min-width: 0;
    width: 100%;
}

.recipe-ingredient-field {
    min-width: 0;
}

.recipe-ingredient-field .form-control {
    width: 100%;
}

.recipe-ingredient-remove {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.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,
.shopping-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.finance-subnav-link,
.shopping-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;
}

.shopping-subnav-link-add {
    justify-content: center;
    min-width: 2.25rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.shopping-subnav-link-add.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

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

.finance-subnav-link.is-active,
.shopping-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 {
    --finance-card-accent: var(--hh-brand);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    height: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--finance-card-accent) 18%, var(--hh-border));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--finance-card-accent) 12%, var(--hh-surface)) 0%,
        color-mix(in srgb, var(--finance-card-accent) 22%, var(--hh-surface)) 100%
    );
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.finance-summary-card--income {
    --finance-card-accent: var(--hh-brand);
}

.finance-summary-card--expense {
    --finance-card-accent: var(--hh-danger);
}

.finance-summary-card--balance {
    --finance-card-accent: #4c6359;
}

.finance-summary-card--assets {
    --finance-card-accent: #3f6374;
}

a.finance-summary-card:hover,
a.finance-summary-card:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--finance-card-accent) 42%, var(--hh-border));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--finance-card-accent) 14%, transparent);
}

a.finance-summary-card:focus-visible {
    outline: 2px solid var(--finance-card-accent);
    outline-offset: 2px;
}

.finance-summary-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.finance-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--hh-surface) 70%, transparent);
    color: var(--finance-card-accent);
    font-size: 0.85rem;
}

.finance-summary-heading {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 0.05rem;
}

.finance-summary-label {
    color: var(--hh-muted);
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.finance-summary-chevron {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--hh-muted);
    font-size: 0.75rem;
    opacity: 0.55;
}

a.finance-summary-card:hover .finance-summary-chevron,
a.finance-summary-card:focus-visible .finance-summary-chevron {
    opacity: 0.95;
    color: var(--finance-card-accent);
}

.finance-summary-value {
    margin-top: auto;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--hh-ink);
}

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

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

#finance-overview-period {
    scroll-margin-top: 5.5rem;
}

.finance-period-table {
    --finance-period-cols: minmax(4.5rem, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    display: grid;
    gap: 0;
    font-variant-numeric: tabular-nums;
}

.finance-period-table-head,
.finance-period-table-row {
    display: grid;
    grid-template-columns: var(--finance-period-cols);
    gap: 0.75rem;
    align-items: center;
}

.finance-period-table-head {
    padding-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.finance-period-table-row {
    padding: 0.75rem 0;
    border-top: 1px dashed var(--hh-border);
}

.finance-period-table-period {
    font-weight: 600;
    font-size: 0.95rem;
}

.finance-period-table-col {
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
}

.finance-period-table-head .finance-period-table-col {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.finance-period-table-col--income {
    color: var(--hh-brand);
}

.finance-period-table-col--expense {
    color: #b42318;
}

.finance-period-table-head .finance-period-table-col--income,
.finance-period-table-head .finance-period-table-col--expense {
    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-explain {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: grid;
    gap: 0.22rem;
}

.finance-chart-explain li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--hh-muted);
}

.finance-chart-swatch {
    flex: 0 0 auto;
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.28rem;
    border-radius: 50%;
}

.finance-chart-swatch-max {
    background: var(--hh-brand);
}

.finance-chart-swatch-avg {
    background: #2f6fed;
}

.finance-chart-swatch-min {
    background: #c45c26;
}

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

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

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

.finance-split > [class*="col-"] {
    min-width: 0;
}

.finance-allocation-donut {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0.15rem auto 0.35rem;
}

.finance-allocation-donut canvas {
    display: block;
    width: 210px;
    height: 210px;
    cursor: pointer;
}

.finance-allocation-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.7rem;
    text-align: center;
    pointer-events: none;
}

.finance-allocation-center-label {
    max-width: 7.4rem;
    color: var(--hh-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.finance-allocation-center-amount {
    max-width: 7.4rem;
    margin-top: 0.12rem;
    color: var(--hh-ink);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.finance-allocation-legend {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.finance-allocation-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.5rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.finance-allocation-row:hover {
    background: rgba(31, 111, 84, 0.05);
}

.finance-allocation-row:focus-visible {
    outline: 2px solid var(--hh-brand);
    outline-offset: 2px;
}

.finance-allocation-row.is-selected {
    background: color-mix(in srgb, var(--slice) 12%, transparent);
}

.finance-allocation-row.is-selected:hover {
    background: color-mix(in srgb, var(--slice) 18%, transparent);
}

.finance-allocation-swatch {
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--slice);
}

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

.finance-allocation-row.is-selected .finance-allocation-name {
    font-weight: 700;
}

.finance-allocation-percent {
    color: var(--hh-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.finance-allocation-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.finance-allocation-dismiss {
    width: 1rem;
    color: var(--hh-muted);
    font-size: 0.8rem;
    text-align: center;
    visibility: hidden;
}

.finance-allocation-row.is-selected .finance-allocation-dismiss {
    visibility: visible;
}

.finance-allocation.is-filtered .finance-list > .app-list-row {
    border-bottom: 1px dashed var(--hh-border);
}

.finance-allocation.is-filtered .finance-list > .app-list-row[hidden],
.finance-allocation.is-filtered .finance-list > .app-list-row.is-allocation-last {
    border-bottom: none;
}

.finance-list > .app-list-row[hidden],
.finance-list-total[hidden] {
    display: none !important;
}

.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);
}

a.admin-stat-row-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.admin-stat-row-link:hover .admin-stat-label,
a.admin-stat-row-link:focus-visible .admin-stat-label {
    color: var(--hh-brand);
}

.admin-stat-chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    opacity: 0.45;
}

a.admin-stat-row-link:hover .admin-stat-chevron,
a.admin-stat-row-link:focus-visible .admin-stat-chevron {
    opacity: 0.85;
    color: var(--hh-brand);
}

.admin-directory-table {
    --bs-table-bg: transparent;
    font-size: 0.95rem;
}

.admin-directory-actions {
    flex-wrap: nowrap;
}

.admin-directory-table thead th {
    color: var(--hh-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.admin-directory-table tbody td {
    vertical-align: middle;
}

.admin-directory-table-wrap {
    margin: 0 -0.15rem;
}

.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);
}

.marketing-cta {
    margin: 1.75rem 0 1.25rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    background: color-mix(in srgb, var(--hh-brand) 6%, transparent);
}

.marketing-cta-text {
    margin: 0 0 0.85rem;
    font-weight: 600;
}

.marketing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.marketing-related {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hh-border);
}

.marketing-related a {
    font-weight: 600;
    text-decoration: none;
    color: var(--hh-brand);
}

.marketing-related a:hover {
    text-decoration: underline;
}

.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 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
}

.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;
}

.shopping-view-status {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--hh-muted);
}

.shopping-view-status a {
    color: inherit;
    text-decoration: none;
}

.shopping-view-status a:hover {
    color: var(--hh-brand);
}

.shopping-list-form:has(.list-type-radio[value="special"]:checked) .list-mode-fields {
    display: none;
}

.sticky-notes-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem 1.25rem;
}

.sticky-notes-header-text {
    min-width: min(100%, 16rem);
}

.view-switch-bar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.sticky-notes-header .view-switch-bar {
    margin: 0 0 0 auto;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}

.view-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
}

.view-switch-label {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--hh-muted);
}

.view-switch-buttons {
    display: inline-flex;
    border: 1px solid var(--hh-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--hh-surface);
}

.view-switch-buttons form {
    display: flex;
}

.view-switch-btn {
    border: 0;
    background: transparent;
    color: var(--hh-muted);
    padding: 0.35rem 0.8rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

.view-switch-btn.is-active {
    background: var(--hh-brand);
    color: #fff;
}

.view-switch-hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--hh-muted);
}

@media (min-width: 768px) {
    .view-switch-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .sticky-notes-header .view-switch-bar {
        flex-direction: column;
        align-items: flex-end;
    }

    .view-switch-hint {
        flex-basis: 100%;
    }

    .sticky-notes-header .view-switch-hint {
        flex-basis: auto;
        max-width: 22rem;
    }
}

.profile-preference-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.profile-preference-section {
    font-size: 1rem;
    font-weight: 650;
    margin: 0 0 0.2rem;
}

.profile-preference {
    margin: 0;
}

.profile-preference-title {
    float: none;
    width: auto;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    padding: 0;
}

.profile-preference-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.profile-preference-card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    background: var(--hh-bg);
    cursor: pointer;
}

.profile-preference-card:has(.profile-preference-radio:checked) {
    border-color: var(--hh-brand);
    background: var(--hh-accent);
}

.profile-preference-radio {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.15rem 0 0;
    padding: 0;
    accent-color: var(--hh-brand);
}

.profile-preference-copy {
    min-width: 0;
}

.profile-preference-card-title {
    display: block;
    font-weight: 650;
    color: var(--hh-ink);
}

.profile-preference-card-help {
    display: block;
    margin-top: 0.15rem;
    color: var(--hh-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.shopping-list.is-compact .shopping-item-thumb-btn,
.shopping-list.is-compact .shopping-item-recipe-chip,
.shopping-list.is-compact .shopping-item-last-comment,
.shopping-list.is-compact .app-list-row-actions,
.shopping-list.is-compact .app-list-row-handle,
.shopping-list.is-compact .category-badge,
.shopping-list.is-compact .shopping-item-body .text-muted {
    display: none;
}

.shopping-list.is-compact .shopping-item-primary {
    max-width: none;
}

.shopping-list.is-compact .shopping-item.app-list-row {
    flex-wrap: nowrap;
    align-items: center;
}

.notes-calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.notes-calendar-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.notes-calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.notes-calendar-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.05rem;
    text-align: center;
}

.notes-calendar-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: var(--hh-ink);
    text-decoration: none;
}

.notes-calendar-nav-btn:hover {
    background: var(--hh-accent);
}

.notes-calendar-today {
    margin-left: 0.25rem;
}

.notes-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
}

.notes-calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 650;
    color: var(--hh-muted);
    padding-bottom: 0.2rem;
}

.notes-calendar-day {
    position: relative;
    min-height: 4.6rem;
    padding: 0.2rem;
    border: 1px solid var(--hh-border);
    border-radius: 0.45rem;
    background: var(--hh-surface);
}

.notes-calendar-day.is-outside {
    opacity: 0.45;
}

.notes-calendar-day.is-today {
    border-color: var(--hh-brand);
}

.notes-calendar-day.is-selected {
    background: var(--hh-accent);
}

.notes-calendar-day-add {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    text-decoration: none;
    color: inherit;
}

.notes-calendar-day-number {
    display: inline-flex;
    min-width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
}

.notes-calendar-day.is-today .notes-calendar-day-number {
    background: var(--hh-brand);
    color: #fff;
}

.notes-calendar-events {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 1.4rem;
    pointer-events: none;
}

.notes-calendar-event-wrap,
.notes-calendar-event,
.notes-calendar-more {
    pointer-events: auto;
}

.notes-calendar-event-wrap {
    display: block;
    min-width: 0;
}

.notes-calendar-event,
.notes-calendar-more {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.65rem;
    line-height: 1.25;
    text-decoration: none;
    border-radius: 0.2rem;
}

.notes-calendar-event {
    padding: 0 0.15rem 0 0.25rem;
    color: var(--hh-ink);
    border-left: 3px solid var(--note-color, var(--hh-brand));
    background: color-mix(in srgb, var(--note-color, var(--hh-brand)) 22%, transparent);
}

.notes-calendar-event.is-past {
    color: var(--hh-muted);
    border-left-color: #b7c2bb;
    background: color-mix(in srgb, #8aa094 18%, var(--hh-surface));
}

.notes-calendar-more {
    color: var(--hh-muted);
    padding-left: 0.25rem;
}

.notes-event-popover {
    --bs-popover-max-width: 19.5rem;
    --bs-popover-bg: var(--hh-surface);
    --bs-popover-border-color: transparent;
    --bs-popover-body-padding-x: 0;
    --bs-popover-body-padding-y: 0;
    z-index: 1080;
    border: 0;
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(28, 42, 36, 0.16);
}

.notes-event-popover .popover-header,
.notes-event-popover .popover-arrow {
    display: none;
}

.notes-event-card-hero {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--note-color, var(--hh-brand)) 34%, #fff), color-mix(in srgb, var(--note-color, var(--hh-brand)) 8%, #fff));
}

.notes-event-card.is-past .notes-event-card-hero {
    background: linear-gradient(145deg, #e7eeea, #f7faf8);
}

.notes-event-card-date {
    flex: 0 0 auto;
    width: 2.85rem;
    overflow: hidden;
    border-radius: 0.65rem;
    background: #fff;
    text-align: center;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(28, 42, 36, 0.08);
}

.notes-event-card-month {
    display: block;
    padding: 0.28rem 0.15rem 0.22rem;
    background: var(--note-color, var(--hh-brand));
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.notes-event-card.is-past .notes-event-card-month {
    background: #8aa094;
}

.notes-event-card-day {
    display: block;
    padding: 0.28rem 0.1rem 0.36rem;
    color: var(--hh-ink);
    font-size: 1.15rem;
    font-weight: 700;
}

.notes-event-card-hero-copy {
    min-width: 0;
}

.notes-event-card-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.notes-event-card-when {
    display: block;
    margin-top: 0.18rem;
    color: var(--hh-muted);
    font-size: 0.75rem;
}

.notes-event-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem 0.95rem 0.85rem;
}

.notes-event-card-body:not(:has(.notes-event-card-text, .notes-event-card-image, .notes-event-card-facts, .notes-event-card-comment, .notes-event-card-author)) {
    display: none;
}

.notes-event-card-text,
.notes-event-card-comment {
    margin: 0;
    color: var(--hh-ink);
    font-size: 0.82rem;
    line-height: 1.4;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.notes-event-card-comment {
    padding-left: 0.65rem;
    border-left: 2px solid color-mix(in srgb, var(--note-color, var(--hh-brand)) 55%, var(--hh-border));
    color: var(--hh-muted);
    -webkit-line-clamp: 3;
}

.notes-event-card-image {
    display: block;
    width: 100%;
    max-height: 6.5rem;
    object-fit: cover;
    border-radius: 0.55rem;
}

.notes-event-card-facts {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notes-event-card-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--hh-ink);
    font-size: 0.78rem;
    line-height: 1.35;
}

.notes-event-card-facts i {
    width: 0.9rem;
    margin-top: 0.12rem;
    color: var(--note-color, var(--hh-brand));
    font-size: 0.72rem;
    text-align: center;
}

.notes-event-card.is-past .notes-event-card-facts i {
    color: var(--hh-muted);
}

.notes-event-card-author {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.1rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--hh-border);
}

.notes-event-card-author-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notes-event-card-author-label {
    color: var(--hh-muted);
    font-size: 0.68rem;
    line-height: 1.2;
}

.notes-event-card-author-name {
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .notes-calendar-day {
        min-height: 7.25rem;
    }

    .notes-calendar-event,
    .notes-calendar-more {
        font-size: 0.8125rem;
    }

    .notes-calendar-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Public pages: fullscreen stage, store chips, Mila */

.auth-shell {
    overflow: visible;
}

.auth-shell--solo {
    overflow: hidden;
}

.auth-page-main:has(.auth-shell--solo) {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-pitch-headline {
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    color: #fff;
}

.auth-pitch-lead,
.auth-pitch .auth-brand-tagline,
.auth-pitch .auth-pitch-app,
.auth-pitch .auth-product-preview__caption {
    color: rgba(255, 255, 255, 0.82);
}

.auth-pitch-lead {
    font-size: 1.05rem;
}

.auth-pitch .auth-locale-btn {
    color: rgba(255, 255, 255, 0.78);
}

.auth-pitch button.auth-locale-btn:hover,
.auth-pitch .auth-locale-btn.is-active {
    color: var(--hh-brand);
    background: #fff;
}

.auth-pitch-feature-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
}

.auth-pitch-features li,
.auth-pitch-blog a {
    color: #fff;
}

.auth-pitch a.app-store__badge--ios {
    color: #fff;
}

.auth-pitch a.app-store__badge--android {
    color: #1c2a24;
}

.auth-pitch-apps--mobile {
    display: none;
}

.auth-pitch-apps-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.auth-pitch-hero {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.35rem;
}

.auth-pitch-apps--desktop {
    margin-top: 0.25rem;
}

.auth-pitch-hero .app-store {
    margin: 0;
}

.app-store__badge {
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.app-store__badge:hover,
.app-store__badge:focus-visible {
    transform: translateY(-2px);
}

.app-store-chips {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.app-store-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #141414;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.app-store-chip--android {
    background: #fff;
    color: #1c2a24;
    border-color: color-mix(in srgb, #1c2a24 16%, var(--hh-border));
}

.app-store-chip:hover,
.app-store-chip:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.app-store-chip--android:hover,
.app-store-chip--android:focus-visible {
    color: #1c2a24;
    background: #f4f7f5;
}

.onboard {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    margin: 0.2rem 0 1.2rem;
    padding: 1.15rem 1.15rem 0.85rem;
    color: #1c2a24;
    background: #f7faf8;
    border-radius: var(--hh-radius);
    box-shadow: 0 18px 40px rgba(8, 24, 18, 0.18);
}

.onboard-stage {
    display: grid;
    align-items: stretch;
}

.onboard-chapter {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
}

.onboard-chapter.is-active {
    opacity: 1;
    visibility: visible;
}

.onboard-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hh-brand);
}

.onboard-title {
    margin: 0;
    max-width: 18ch;
    min-height: 2.24em;
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.onboard-line {
    margin: 0;
    margin-top: auto;
    max-width: 36ch;
    min-height: 2.7em;
    color: #3d5248;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
}

.onboard-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 12.5rem;
}

.onboard-visual > * {
    width: 100%;
}

.onboard-mess {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    align-content: center;
}

.onboard-scrap {
    margin: 0;
    padding: 0.8rem 0.85rem 0.9rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 16%, #e1ebe6);
    border-radius: var(--hh-radius);
    box-shadow: 0 10px 22px rgba(20, 40, 32, 0.06);
}

.onboard-scrap--chat {
    background: #f3faf6;
}

.onboard-scrap--head {
    grid-column: 1 / -1;
    background: #fffdf6;
    text-align: left;
}

.onboard-scrap-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.35rem;
    color: var(--hh-brand);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.onboard-scrap-kicker i {
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: var(--hh-radius);
    background: color-mix(in srgb, var(--hh-brand) 12%, #fff);
    font-size: 0.72rem;
}

.onboard-scrap-text {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.onboard-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1ebe6;
    border-radius: var(--hh-radius);
    box-shadow: 0 10px 24px rgba(20, 40, 32, 0.06);
}

.onboard-list-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--hh-brand);
    color: #fff;
}

.onboard-list-bar strong {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.onboard-list-bar span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.86;
}

.onboard-list ul {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.35rem 0.45rem;
}

.onboard-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0.15rem;
    padding: 0.42rem 0.45rem;
    border-radius: 0.55rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.onboard-row em {
    margin-left: auto;
    color: #1c2a24;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.onboard-row--join {
    background: color-mix(in srgb, var(--hh-brand) 10%, #fff);
}

.onboard-row--join em {
    color: var(--hh-brand);
}

.onboard-check {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    border: 1.5px solid color-mix(in srgb, var(--hh-brand) 55%, #c9ddd4);
    border-radius: 0.28rem;
}

.onboard-row time {
    flex: 0 0 auto;
    color: var(--hh-brand);
    font-size: 0.75rem;
    font-weight: 750;
}

.onboard-sign {
    width: 1.15rem;
    flex: 0 0 auto;
    color: var(--hh-brand);
    font-weight: 750;
    text-align: center;
}

.onboard-row--out .onboard-sign {
    color: #8a5a4a;
}

.onboard-app {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.15rem 0.85rem 0.7rem;
    color: #3d5248;
    font-size: 0.78rem;
    font-weight: 700;
}

.onboard-recipe {
    padding: 0.8rem 0.85rem 0.15rem;
}

.onboard-recipe-name {
    margin: 0;
    padding: 0.15rem 0.5rem 0.2rem;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.onboard-recipe ul {
    padding-top: 0.1rem;
    padding-bottom: 0.2rem;
}

.onboard-buy {
    position: relative;
    height: 2.45rem;
    margin: 0.2rem 0.7rem 0.75rem;
}

.onboard-buy-label,
.onboard-buy-done {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--hh-radius);
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.onboard-buy-label {
    background: var(--hh-brand);
    color: #fff;
}

.onboard-buy-done {
    background: color-mix(in srgb, var(--hh-brand) 12%, #fff);
    color: var(--hh-brand);
    opacity: 0;
}

.onboard-pass {
    padding: 0.95rem 1rem 1rem;
}

.onboard-pass-name,
.onboard-pass-who {
    margin: 0;
}

.onboard-pass-name {
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.onboard-pass-who {
    margin-top: 0.55rem;
    color: #6d7f76;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.onboard-barcode {
    height: 3.35rem;
    margin-top: 0.75rem;
    border-radius: calc(var(--hh-radius) - 0.05rem);
    background:
        repeating-linear-gradient(
            90deg,
            #1c2a24 0 2px,
            transparent 2px 4px,
            #1c2a24 4px 5px,
            transparent 5px 8px,
            #1c2a24 8px 13px,
            transparent 13px 15px,
            #1c2a24 15px 17px,
            transparent 17px 21px
        );
}

.onboard-note-stage {
    position: relative;
}

.onboard-push {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    background: #10241c;
    color: #fff;
    border-radius: var(--hh-radius);
    box-shadow: 0 14px 28px rgba(8, 24, 18, 0.28);
}

.onboard-push-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: var(--hh-radius);
    background: var(--hh-brand);
}

.onboard-push small,
.onboard-push strong {
    display: block;
}

.onboard-push small {
    margin-bottom: 0.1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.onboard-push strong {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.onboard-chart {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.15rem 0.75rem 0.75rem;
}

.onboard-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 750;
}

.onboard-bar b {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.onboard-bar-track {
    display: block;
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e7f0eb;
}

.onboard-bar-track i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: var(--hh-brand);
}

.onboard-bar--out .onboard-bar-track i {
    background: #8a5a4a;
}

.onboard-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.onboard-chips span {
    padding: 0.7rem 0.3rem;
    border: 1px solid #e1ebe6;
    border-radius: var(--hh-radius);
    background: #fff;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.onboard-progress {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.4rem;
}

.onboard-progress button {
    position: relative;
    height: 1.35rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.onboard-progress button::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0.28rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #e1ebe6;
}

.onboard-progress button:focus-visible {
    outline: 2px solid var(--hh-brand);
    outline-offset: 3px;
}

.onboard-progress span {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0.28rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--hh-brand);
}

@container (min-width: 680px) {
    .onboard-chapter {
        display: grid;
        grid-template-columns: minmax(13rem, 0.86fr) minmax(18rem, 1.14fr);
        grid-template-rows: auto auto 1fr;
        column-gap: 1.5rem;
        row-gap: 0.4rem;
        align-items: start;
    }

    .onboard-kicker {
        grid-column: 1;
        grid-row: 1;
    }

    .onboard-title {
        grid-column: 1;
        grid-row: 2;
        max-width: 16ch;
    }

    .onboard-line {
        grid-column: 1;
        grid-row: 3;
        align-self: end;
        margin-top: 0;
    }

    .onboard-chapter > .onboard-visual {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
        min-height: 0;
    }
}

.public-stage {
    color: #fff;
    background:
        radial-gradient(42rem 24rem at 0% 0%, rgba(255, 255, 255, 0.16), transparent 58%),
        radial-gradient(28rem 20rem at 100% 120%, rgba(8, 36, 26, 0.35), transparent 60%),
        linear-gradient(165deg, #186b50 0%, #1f6f54 48%, #143f32 100%);
}

.public-stage-inner {
    width: min(100% - 2.5rem, 72rem);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 2.25rem 0 2.4rem;
}

.public-stage-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.public-stage-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.public-stage-lead {
    margin: 0 0 1.1rem;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.45;
}

.blog-page,
.legal-page {
    padding: 0 0 2.5rem;
    min-height: 100dvh;
}

.blog-shell,
.legal-shell {
    width: 100%;
    max-width: none;
}

.blog-header,
.legal-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    margin: 0;
    padding: 0.8rem 1.25rem;
    background: color-mix(in srgb, var(--hh-surface) 88%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hh-border);
}

.blog-header-bar,
.legal-header-bar {
    width: min(100%, 76rem);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.1rem;
}

.blog-header-bar .app-store-chips,
.legal-header-bar .app-store-chips {
    margin-left: auto;
}

.legal-brand {
    margin: 0;
}

.blog-main,
.blog-footer {
    width: min(100% - 2.5rem, 56rem);
    margin-left: auto;
    margin-right: auto;
}

.blog-main {
    padding-top: 2rem;
}

.legal-article,
.legal-footer {
    width: min(100% - 2rem, 42rem);
    margin-left: auto;
    margin-right: auto;
}

.legal-article {
    margin-top: 1.75rem;
}

@keyframes public-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes onboard-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes onboard-drop {
    0% {
        opacity: 0;
        transform: translateY(-16px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes onboard-press {
    0% {
        opacity: 1;
        transform: none;
    }
    40% {
        opacity: 1;
        transform: scale(0.97);
    }
    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes onboard-grow {
    from {
        width: 0;
    }
    to {
        width: var(--w);
    }
}

@keyframes onboard-fill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .auth-pitch-body > * {
        animation: public-rise 0.7s ease both;
    }

    .auth-pitch-body > *:nth-child(2) {
        animation-delay: 0.08s;
    }

    .auth-pitch-body > *:nth-child(3) {
        animation-delay: 0.16s;
    }

    .public-stage-copy,
    .public-stage .onboard {
        animation: public-rise 0.7s ease both;
    }

    .public-stage .onboard {
        animation-delay: 0.12s;
    }

    .onboard-chapter {
        transition: opacity 0.48s ease, visibility 0.48s ease;
    }

    .onboard-chapter.is-active .onboard-row {
        animation: onboard-in 0.4s ease both;
        animation-delay: var(--d, 0s);
    }

    .onboard-chapter.is-active .onboard-push {
        animation: onboard-drop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        animation-delay: var(--d, 0s);
    }

    .onboard-chapter.is-active .onboard-bar-track i {
        animation: onboard-grow 0.65s ease both;
        animation-delay: 0.55s;
    }

    .onboard-chapter.is-active .onboard-buy-label {
        animation: onboard-press 0.45s ease 0.85s both;
    }

    .onboard-chapter.is-active .onboard-buy-done {
        animation: onboard-in 0.35s ease 1.15s both;
    }
}

@media (min-width: 900px) {
    .public-stage-inner {
        grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
        gap: 1.75rem;
        align-items: center;
    }

    .public-stage .onboard {
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onboard-chapter,
    .onboard-row {
        animation: none;
        transition: none;
    }

    .onboard-progress button.is-current span {
        width: 100%;
    }

    .onboard-buy-label {
        opacity: 0;
    }

    .onboard-buy-done {
        opacity: 1;
    }
}

@media (max-width: 860px) {
    .blog-header-bar .app-store-chips,
    .legal-header-bar .app-store-chips {
        order: 3;
        flex-basis: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .auth-page-main:not(:has(.auth-shell--solo)) {
        align-items: stretch;
    }

    .auth-pitch-top,
    .auth-pitch-body,
    .auth-pitch-apps--mobile {
        color: #fff;
    }

    .auth-pitch-top {
        padding: 0.7rem 1.1rem 0.55rem;
    }

    .auth-pitch-apps--mobile {
        display: block;
        order: 3;
        padding: 0.85rem 1.25rem 0.2rem;
        background: var(--hh-surface);
        color: var(--hh-ink);
    }

    .auth-pitch-apps--mobile .auth-pitch-apps-label {
        color: var(--hh-muted);
    }

    .auth-panel {
        order: 2;
        padding-top: 1.15rem;
    }

    .auth-pitch-body {
        order: 4;
    }

    .auth-pitch-apps--desktop {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-pitch-body > *,
    .public-stage-copy,
    .public-stage .onboard {
        animation: none;
    }

    .app-store__badge:hover,
    .app-store__badge:focus-visible,
    .app-store-chip:hover,
    .app-store-chip:focus-visible {
        transform: none;
    }
}



