:root {
    --indlu-bg: #fff8ee;
    --indlu-bg-warm: #f9ead8;
    --indlu-surface: #fffdfa;
    --indlu-surface-soft: #fff5e9;
    --indlu-ink: #43291f;
    --indlu-ink-soft: #654a3e;
    --indlu-text-muted: #856f63;
    --indlu-accent: #dc744c;
    --indlu-accent-dark: #b85437;
    --indlu-apricot: #efa777;
    --indlu-peach: #f4c6a5;
    --indlu-sage: #a3ab88;
    --indlu-sage-dark: #6f795c;
    --indlu-sage-deep: #5f684f;
    --indlu-sand: #d9ba8f;
    --indlu-candle: #f2c47b;
    --indlu-border: rgba(108, 72, 50, 0.10);
    --indlu-shadow-xs: 0 4px 14px rgba(116, 74, 48, 0.05);
    --indlu-shadow-sm: 0 10px 30px rgba(116, 74, 48, 0.08);
    --indlu-shadow-md: 0 24px 60px rgba(116, 74, 48, 0.12);
    --indlu-shadow-soft: var(--indlu-shadow-sm);
    --indlu-background: var(--indlu-bg);
    --indlu-serif: Georgia, "Times New Roman", Times, serif;
    --indlu-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --indlu-nav-height: 86px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--indlu-bg);
    color: var(--indlu-ink);
    font-family: var(--indlu-sans);
}

body {
    min-height: 100%;
    margin: 0;
    background: radial-gradient( circle at 92% 2%, rgba(242, 196, 123, 0.22) 0, rgba(242, 196, 123, 0.08) 17%, transparent 39% ), radial-gradient( circle at 7% 19%, rgba(244, 198, 165, 0.25) 0, rgba(244, 198, 165, 0.08) 19%, transparent 40% ), radial-gradient( circle at 86% 72%, rgba(163, 171, 136, 0.10) 0, transparent 28% ), linear-gradient( 180deg, #fff9f0 0%, var(--indlu-bg) 38%, #fff6e9 72%, var(--indlu-bg-warm) 100% );
    color: var(--indlu-ink);
    font-family: var(--indlu-sans);
    text-rendering: optimizeLegibility;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgba(215, 111, 71, 0.4);
    outline-offset: 3px;
}

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

.indlu-shell {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background: var(--indlu-bg);
}

.indlu-screen {
    width: 100%;
    max-width: 430px;
    min-height: 100dvh;
    padding: max(20px, env(safe-area-inset-top)) 20px calc(var(--indlu-nav-height) + env(safe-area-inset-bottom) + 28px);
    background: var(--indlu-bg);
    transition: background-color .45s ease;
}

.home-page,
.placeholder-page {
    display: flex;
    flex-direction: column;
}

.home-page {
    gap: 20px;
}

.placeholder-page {
    gap: 24px;
    min-height: calc(100dvh - var(--indlu-nav-height) - 64px);
    justify-content: center;
}

.home-loading {
    min-height: 70dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--indlu-text-muted);
}

.home-loading__pulse {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--indlu-accent);
    box-shadow: 0 0 0 8px rgba(220, 116, 76, 0.1);
}

/* =========================================================
   HOME OPENING
   ========================================================= */

.home-opening {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-inline: -12px;
    margin-bottom: 4px;
}

    .home-opening .quote-card {
        position: relative;
        z-index: 4;
        width: calc(100% - 24px);
        margin: -44px auto 0;
    }
/* =========================================================
   HOME HERO
   ========================================================= */

.home-hero {
    position: relative;
    height: 176px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient( circle at 82% 26%, rgba(242, 196, 123, 0.08), transparent 30% ), linear-gradient( 180deg, rgba(255, 249, 241, 1) 0%, rgba(255, 247, 238, 1) 100% );
}

.home-hero__scene {
    position: absolute;
    z-index: 0;
    inset: -2px 0 -14px 0;
    width: 100%;
    height: calc(100% + 14px);
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.home-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient( 90deg, rgba(255, 248, 238, 0.94) 0%, rgba(255, 248, 238, 0.84) 24%, rgba(255, 248, 238, 0.54) 40%, rgba(255, 248, 238, 0.18) 56%, transparent 68% );
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    background: linear-gradient( 180deg, rgba(255, 248, 238, 0) 0%, rgba(255, 248, 238, 0.46) 52%, rgba(255, 248, 238, 0.86) 82%, rgba(255, 248, 238, 1) 100% );
    pointer-events: none;
}

.home-hero__veil {
    display: none;
}

.home-hero__copy {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px 30px;
}

.home-hero h1 {
    width: 48%;
    margin: 0;
    color: #4d2819;
    font-family: var(--indlu-serif);
    font-size: 2.05rem;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.045em;
    white-space: normal;
}

.home-hero__copy p {
    width: 42%;
    margin: 12px 0 0;
    color: #684433;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
}

/* =========================================================
   SHARED NARRATIVE TITLES
   ========================================================= */

.section-kicker {
    margin: 0;
    color: var(--indlu-accent-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.timeline-section h2,
.memory-section h2,
.narrative-title {
    font-family: var(--indlu-serif);
    font-weight: 400;
    letter-spacing: -0.035em;
}

/* =========================================================
   DAILY QUOTE
   ========================================================= */

.quote-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    background: #fff8eb;
    box-shadow: 0 4px 10px rgba(116, 74, 48, 0.02), 0 11px 24px rgba(116, 74, 48, 0.045);
    isolation: isolate;
}

.quote-card__background {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    object-position: center;
    pointer-events: none;
}

.quote-card__content {
    position: relative;
    z-index: 2;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 26px 17px 36px;
}

.quote-card .section-kicker {
    margin: 0 0 8px;
    color: #c86e47;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.quote-card blockquote {
    width: 58%;
    margin: 0;
    color: #4d3123;
    font-family: var(--indlu-serif);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

/* =========================================================
   HOUSEHOLD MEMBERS
   ========================================================= */

.member-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 0 3px;
}

.member-person {
    min-width: 0;
    text-align: center;
}

.member-portrait {
    position: relative;
    width: 62px;
    height: 62px;
    margin: 0 auto 8px;
    overflow: hidden;
    border: 3px solid rgba(255, 253, 248, 0.98);
    border-radius: 50%;
    background: rgba(255, 246, 235, 0.92);
    box-shadow: 0 0 0 1px rgba(108, 72, 50, 0.10), 0 6px 15px rgba(116, 74, 48, 0.075);
}

    .member-portrait::after {
        content: "";
        position: absolute;
        z-index: 2;
        inset: 0;
        border-radius: inherit;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
        pointer-events: none;
    }

    .member-portrait img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        display: block;
        border-radius: inherit;
        object-fit: cover;
        object-position: center;
    }

.member-person__identity {
    min-width: 0;
}

.member-name {
    overflow: hidden;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-mood {
    margin-top: 4px;
    overflow: hidden;
    color: var(--indlu-text-muted);
    font-size: 0.58rem;
    font-weight: 400;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .member-mood span {
        margin-left: 3px;
    }

/* =========================================================
   HOME LIFE GRID
   ========================================================= */

.home-life-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 9px;
    align-items: start;
}

.home-life-grid__left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-life-grid__right {
    min-width: 0;
    display: flex;
    align-self: start;
}
/* =========================================================
   TONIGHT
   ========================================================= */

.tonight-card {
    position: relative;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, 0.09);
    border-radius: 21px;
    background: linear-gradient( 145deg, rgba(255, 253, 248, 0.99), rgba(255, 247, 237, 0.97) );
    box-shadow: 0 7px 19px rgba(116, 74, 48, 0.05);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.tonight-card__heading {
    position: relative;
    z-index: 2;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

    .tonight-card__heading span {
        margin-left: 3px;
        color: var(--indlu-accent);
        font-family: var(--indlu-sans);
        font-size: 0.68rem;
    }

.tonight-card__body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 10px;
    align-items: center;
}

.tonight-card__photo {
    width: 100%;
    aspect-ratio: 1.08;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(217, 186, 143, 0.15);
}

    .tonight-card__photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.tonight-card__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .tonight-card__copy strong {
        color: var(--indlu-ink);
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1.28;
    }

    .tonight-card__copy > span {
        color: var(--indlu-text-muted);
        font-size: 0.6rem;
        line-height: 1.4;
    }

.tonight-card__branch {
    position: absolute;
    z-index: 1;
    right: -4px;
    bottom: -6px;
    width: 59px;
    color: var(--indlu-sage);
    opacity: 0.59;
    pointer-events: none;
}

    .tonight-card__branch svg {
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .tonight-card__branch path {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.4;
        stroke-linecap: round;
    }

    .tonight-card__branch ellipse {
        fill: currentColor;
    }


/* =========================================================
   TODAY TIMELINE
   ========================================================= */

.timeline-section {
    width: 100%;
    min-height: 0;
    height: 485px;
    max-height: 485px;
    display: flex;
    flex-direction: column;
    padding: 14px 12px 16px;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, 0.09);
    border-radius: 21px;
    background: linear-gradient( 180deg, rgba(255, 253, 248, 0.99), rgba(255, 249, 241, 0.97) );
    box-shadow: 0 7px 19px rgba(116, 74, 48, 0.05);
}

.timeline-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    flex: 0 0 auto;
    margin-bottom: 20px;
}

    .timeline-section__header > div {
        min-width: 0;
    }

    .timeline-section__header .section-kicker {
        margin-bottom: 5px;
        font-size: 0.52rem;
        letter-spacing: 0.075em;
    }

.timeline-section h2 {
    margin: 0;
    color: var(--indlu-ink);
    font-size: 1.15rem;
    line-height: 1;
}

.timeline-section__calendar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(220, 116, 76, 0.10);
    color: var(--indlu-accent);
    font: inherit;
    cursor: pointer;
}

    .timeline-section__calendar:active {
        transform: scale(0.94);
    }

    .timeline-section__calendar svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.timeline-list {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 3px 6px 8px 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 116, 76, 0.30) transparent;
}

    .timeline-list::-webkit-scrollbar {
        width: 4px;
    }

    .timeline-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .timeline-list::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(220, 116, 76, 0.26);
    }

    .timeline-list::before {
        content: "";
        position: absolute;
        top: 7px;
        bottom: 8px;
        left: 49px;
        width: 1px;
        background: rgba(217, 186, 143, 0.78);
    }

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 38px 11px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
}

    .timeline-item time {
        padding-top: 1px;
        color: var(--indlu-accent);
        font-size: 0.63rem;
        font-weight: 800;
        line-height: 1.35;
        font-variant-numeric: tabular-nums;
    }

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--indlu-accent);
    box-shadow: 0 0 0 3px rgba(255, 253, 248, 0.98);
}

.timeline-dot--terracotta {
    background: var(--indlu-accent);
}

.timeline-dot--peach {
    background: var(--indlu-peach);
}

.timeline-dot--sage {
    background: var(--indlu-sage);
}

.timeline-dot--sand {
    background: var(--indlu-sand);
}

.timeline-item__content {
    min-width: 0;
}

.timeline-item p {
    margin: -2px 0 0;
    color: var(--indlu-ink-soft);
    font-size: 0.63rem;
    line-height: 1.48;
}

.timeline-item strong {
    color: var(--indlu-ink);
    font-weight: 800;
}

.timeline-item__title {
    color: var(--indlu-ink-soft);
}

    .timeline-item__title:not(:empty)::before {
        content: " ";
    }

.timeline-item__description {
    display: block;
    margin-top: 2px;
    color: var(--indlu-text-muted);
    font-size: 0.59rem;
    line-height: 1.42;
}

/* =========================================================
   MEMORY
   ========================================================= */

.memory-section {
    min-width: 0;
}

.memory-card {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, 0.09);
    border-radius: 23px;
    background: linear-gradient( 145deg, rgba(255, 253, 248, 0.99), rgba(255, 247, 237, 0.97) );
    box-shadow: 0 8px 23px rgba(116, 74, 48, 0.055);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.memory-card__heading {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 3px;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.memory-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 1.52;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(217, 186, 143, 0.15);
}

    .memory-photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }

.memory-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px 3px;
}

    .memory-copy strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.86rem;
        font-weight: 600;
        line-height: 1.16;
    }

    .memory-copy > span {
        color: var(--indlu-text-muted);
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .memory-copy time {
        margin-top: 1px;
        color: var(--indlu-accent);
        font-size: 0.63rem;
        line-height: 1.3;
    }

.memory-branch {
    position: absolute;
    z-index: 1;
    right: -4px;
    bottom: -7px;
    width: 58px;
    color: var(--indlu-sage);
    opacity: 0.57;
    pointer-events: none;
}

    .memory-branch svg {
        width: 100%;
        height: auto;
    }

    .memory-branch path {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.4;
        stroke-linecap: round;
    }

    .memory-branch ellipse {
        fill: currentColor;
    }
/* =========================================================
   BOTTOM NAV
   ========================================================= */

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 30;
    width: min(calc(100% - 12px), 418px);
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 7px 10px calc(6px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 68px minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    transform: translateX(-50%);
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 252, 247, 0.97);
    box-shadow: 0 -3px 9px rgba(116, 74, 48, 0.02), 0 -11px 27px rgba(116, 74, 48, 0.065);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    isolation: isolate;
}


    /* Encoche centrale autour du bouton + */

    .bottom-nav::before {
        content: "";
        position: absolute;
        z-index: 1;
        top: -28px;
        left: 50%;
        width: 80px;
        height: 80px;
        transform: translateX(-50%);
        border-radius: 50%;
        background: var(--indlu-background);
        box-shadow: 0 1px 0 rgba(108, 72, 50, 0.05);
    }


    /* Petit raccord doux autour de l'encoche */

    .bottom-nav::after {
        content: "";
        position: absolute;
        z-index: 0;
        top: 0;
        left: 50%;
        width: 112px;
        height: 43px;
        transform: translateX(-50%);
        background: radial-gradient( circle at 50% -11px, transparent 0, transparent 44px, rgba(255, 252, 247, 0.97) 45px );
        pointer-events: none;
    }


.bottom-nav__item {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 5px 4px;
    border-radius: 17px;
    color: #7c6659;
    font-size: 0.61rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}


    .bottom-nav__item.active {
        color: var(--indlu-accent-dark);
        background: linear-gradient( 145deg, rgba(220, 116, 76, 0.13), rgba(234, 167, 116, 0.10) );
    }


    .bottom-nav__item:active {
        transform: scale(0.97);
    }

.nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
}


.bottom-nav svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav__item.active svg {
    stroke-width: 1.8;
}


.bottom-nav__add {
    position: relative;
    z-index: 3;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    justify-self: center;
    align-self: start;
    margin-top: -23px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient( 145deg, #e77a4f, var(--indlu-accent) );
    color: #ffffff;
    box-shadow: 0 5px 11px rgba(185, 85, 53, 0.14), 0 12px 24px rgba(185, 85, 53, 0.24);
    cursor: pointer;
}


    .bottom-nav__add:active {
        transform: scale(0.95);
        box-shadow: 0 4px 9px rgba(185, 85, 53, 0.14), 0 9px 19px rgba(185, 85, 53, 0.22);
    }


    .bottom-nav__add span {
        display: block;
        margin-top: -3px;
        font-size: 2.05rem;
        font-weight: 300;
        line-height: 1;
    }


/* =========================================================
   ADD SHEET
   ========================================================= */

.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(58, 38, 30, 0.28);
}

.add-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 41;
    width: min(100%, 430px);
    max-height: min(82dvh, 720px);
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: translateX(-50%);
    border: 1px solid var(--indlu-border);
    border-radius: 30px 30px 0 0;
    background: var(--indlu-surface);
    box-shadow: var(--indlu-shadow-soft);
    animation: sheet-in 180ms ease-out;
}

.sheet-handle {
    width: 56px;
    height: 28px;
    margin: 0 auto 4px;
    display: block;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .sheet-handle::before {
        content: "";
        display: block;
        width: 44px;
        height: 5px;
        margin: 10px auto;
        border-radius: 999px;
        background: rgba(120, 103, 94, 0.28);
    }

.sheet-heading h2 {
    margin: 6px 0 6px;
    font-family: var(--indlu-serif);
    font-size: 1.85rem;
    font-weight: 600;
}

.sheet-heading p {
    margin: 0;
    color: var(--indlu-text-muted);
}

.add-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.add-action {
    min-height: 66px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 4px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .add-action:hover,
    .add-action:focus-visible {
        background: var(--indlu-surface-soft);
    }

.add-action__icon {
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(215, 111, 71, 0.12);
    color: var(--indlu-accent-dark);
}

.add-action svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.add-action span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.add-action strong {
    font-weight: 800;
}

.add-action small {
    margin-top: 2px;
    color: var(--indlu-text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes sheet-in {
    from {
        transform: translate(-50%, 26px);
        opacity: 0.75;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* =========================================================
   IPHONE HOME POLISH
   Global mobile pass
   ========================================================= */

@media (max-width: 430px) {

    /* -----------------------------------------------------
       GLOBAL SCREEN
       ----------------------------------------------------- */

    .indlu-screen {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: calc( 70px + env(safe-area-inset-bottom) + 22px );
    }

    .home-page {
        gap: 17px;
    }


    /* -----------------------------------------------------
       OPENING / HERO
       ----------------------------------------------------- */

    .home-opening {
        margin-inline: -8px;
        margin-bottom: 2px;
    }

    .home-hero {
        height: 192px;
    }

    .home-hero__scene {
        inset: 0;
        height: 100%;
        transform: none;
        object-position: 54% center;
    }

    .home-hero::before {
        background: linear-gradient( 90deg, rgba(255, 248, 238, 0.97) 0%, rgba(255, 248, 238, 0.91) 23%, rgba(255, 248, 238, 0.70) 39%, rgba(255, 248, 238, 0.30) 55%, rgba(255, 248, 238, 0.05) 72%, transparent 82% );
    }

    .home-hero::after {
        height: 62px;
        background: linear-gradient( 180deg, rgba(255, 248, 238, 0) 0%, rgba(255, 248, 238, 0.30) 38%, rgba(255, 248, 238, 0.76) 74%, rgba(255, 248, 238, 1) 100% );
    }

    .home-hero__copy {
        justify-content: center;
        padding: 0 18px 34px;
    }

    .home-hero h1 {
        width: 50%;
        font-size: 2.15rem;
        line-height: 0.93;
        letter-spacing: -0.048em;
    }

    .home-hero__copy p {
        width: 48%;
        margin-top: 10px;
        font-size: 0.79rem;
        line-height: 1.35;
    }


    /* -----------------------------------------------------
       QUOTE
       Moins massive + overlap plus naturel
       ----------------------------------------------------- */

    .home-opening .quote-card {
        width: calc(100% - 20px);
        margin-top: -35px;
    }

    .quote-card {
        min-height: 112px;
        border-radius: 22px;
    }

    .quote-card__content {
        min-height: 112px;
        padding: 14px 23px 15px 30px;
    }

    .quote-card .section-kicker {
        margin-bottom: 6px;
        font-size: 0.59rem;
    }

    .quote-card blockquote {
        width: 60%;
        font-size: 0.98rem;
        line-height: 1.16;
    }


    /* -----------------------------------------------------
       HOUSEHOLD MEMBERS
       ----------------------------------------------------- */

    .member-strip {
        gap: 4px;
        padding-inline: 5px;
    }

    .member-portrait {
        width: 56px;
        height: 56px;
        margin-bottom: 7px;
        border-width: 2px;
    }

    .member-name {
        font-size: 0.78rem;
    }

    .member-mood {
        margin-top: 3px;
        font-size: 0.55rem;
    }


    /* -----------------------------------------------------
       LOWER LIFE GRID
       Timeline volontairement dominante
       ----------------------------------------------------- */

    .home-life-grid {
        grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
        gap: 8px;
    }

    .home-life-grid__left {
        gap: 11px;
    }


    /* -----------------------------------------------------
       TONIGHT
       ----------------------------------------------------- */

    .tonight-card {
        gap: 8px;
        padding: 9px;
        border-radius: 18px;
    }

    .tonight-card__heading {
        font-size: 1rem;
    }

    .tonight-card__body {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .tonight-card__photo {
        aspect-ratio: 1.35;
        border-radius: 13px;
    }

    .tonight-card__copy {
        gap: 4px;
    }

        .tonight-card__copy strong {
            font-size: 0.66rem;
        }

        .tonight-card__copy > span {
            font-size: 0.57rem;
        }


    /* -----------------------------------------------------
       MEMORY
       ----------------------------------------------------- */

    .memory-card {
        gap: 7px;
        padding: 9px;
        border-radius: 19px;
    }

    .memory-card__heading {
        padding-inline: 2px;
        font-size: 0.94rem;
        line-height: 1.05;
    }

    .memory-photo {
        aspect-ratio: 1.38;
        border-radius: 13px;
    }

    .memory-copy {
        gap: 3px;
        padding: 0 2px 2px;
    }

        .memory-copy strong {
            font-size: 0.78rem;
        }

        .memory-copy > span {
            font-size: 0.59rem;
        }

        .memory-copy time {
            font-size: 0.58rem;
        }


    /* -----------------------------------------------------
       TODAY TIMELINE
       ----------------------------------------------------- */

    .timeline-section {
        padding: 12px 11px 14px;
        border-radius: 19px;
    }

    .timeline-section__header {
        margin-bottom: 17px;
    }

    .timeline-section h2 {
        font-size: 1.08rem;
    }

    .timeline-section__calendar {
        width: 30px;
        height: 30px;
    }

        .timeline-section__calendar svg {
            width: 15px;
            height: 15px;
        }

    .timeline-list {
        gap: 18px;
    }

        .timeline-list::before {
            left: 43px;
        }

    .timeline-item {
        grid-template-columns: 33px 9px minmax(0, 1fr);
        gap: 6px;
    }

        .timeline-item time {
            font-size: 0.59rem;
        }

    .timeline-dot {
        width: 8px;
        height: 8px;
    }

    .timeline-item p {
        font-size: 0.61rem;
        line-height: 1.37;
    }


    /* -----------------------------------------------------
       BOTTOM NAV
       Plus fine / moins "grosse barre"
       ----------------------------------------------------- */

    .bottom-nav {
        width: min(calc(100% - 10px), 420px);
        height: calc( 60px + env(safe-area-inset-bottom) );
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 60px minmax(0, 1fr) minmax(0, 1fr);
        border-radius: 20px 20px 0 0;
    }

    .bottom-nav__item {
        min-height: 44px;
        gap: 2px;
        padding: 4px 3px;
        border-radius: 14px;
        font-size: 0.56rem;
    }

    .nav-icon {
        width: 21px;
        height: 21px;
    }

    .bottom-nav svg {
        width: 18px;
        height: 18px;
    }

    .bottom-nav__add {
        width: 50px;
        height: 50px;
        margin-top: -20px;
    }

        .bottom-nav__add span {
            font-size: 1.85rem;
        }

    .bottom-nav::before {
        top: -23px;
        width: 70px;
        height: 70px;
        background: var(--indlu-bg);
    }

    .bottom-nav::after {
        width: 96px;
        height: 38px;
    }
}

@media (max-width: 380px) {
    .timeline-section {
        height: 455px;
        max-height: 455px;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: calc( 100dvh - max(20px, env(safe-area-inset-top)) - env(safe-area-inset-bottom) );
    display: flex;
    flex-direction: column;
    margin: calc(max(20px, env(safe-area-inset-top)) * -1) -20px calc( (
                var(--indlu-nav-height) +
                env(safe-area-inset-bottom) +
                28px
            ) * -1 );
    background: linear-gradient( 180deg, #fff9f0 0%, #fff8ee 100% );
}


/* ---------------------------------------------------------
   VISUAL
   --------------------------------------------------------- */

.login-visual {
    position: relative;
    height: 285px;
    flex: 0 0 auto;
    overflow: hidden;
    isolation: isolate;
}

.login-visual__image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 47%;
}

.login-visual__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient( 180deg, rgba(67, 41, 31, 0.04) 0%, rgba(67, 41, 31, 0.02) 45%, rgba(255, 248, 238, 0.18) 68%, #fff8ee 100% );
}

.login-visual__brand {
    position: absolute;
    z-index: 2;
    top: max(22px, env(safe-area-inset-top));
    left: 22px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #4d2819;
}

.login-visual__name {
    font-family: var(--indlu-serif);
    font-size: 1.48rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
}

.login-visual__motto {
    font-size: 0.49rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    opacity: 0.72;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.login-content {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: -25px;
    padding: 0 24px calc(28px + env(safe-area-inset-bottom));
}

.login-heading {
    margin-bottom: 27px;
}

.login-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--indlu-accent-dark);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: clamp(2.4rem, 11vw, 3rem);
    font-weight: 400;
    line-height: 0.91;
    letter-spacing: -0.055em;
}

.login-heading p {
    margin: 13px 0 0;
    color: var(--indlu-text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .login-field label,
    .login-field__header {
        color: var(--indlu-ink-soft);
        font-size: 0.72rem;
        font-weight: 700;
    }

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

.login-forgot {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-accent-dark);
    font-size: 0.67rem;
    font-weight: 700;
    cursor: pointer;
}

.login-input {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid rgba(108, 72, 50, 0.10);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.88);
    box-shadow: 0 5px 17px rgba(116, 74, 48, 0.035);
}

    .login-input:focus-within {
        border-color: rgba(220, 116, 76, 0.42);
        box-shadow: 0 0 0 3px rgba(220, 116, 76, 0.07), 0 6px 20px rgba(116, 74, 48, 0.04);
    }

    .login-input svg {
        width: 19px;
        height: 19px;
        flex: 0 0 auto;
        fill: none;
        stroke: var(--indlu-sage-dark);
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .login-input input {
        width: 100%;
        min-width: 0;
        padding: 15px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--indlu-ink);
        font: inherit;
        font-size: 0.86rem;
    }

        .login-input input::placeholder {
            color: #ae9c92;
        }




/* ---------------------------------------------------------
   SUBMIT
   --------------------------------------------------------- */

.login-submit {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient( 145deg, #e77a4f, var(--indlu-accent-dark) );
    color: #fff;
    font-size: 0.79rem;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(185, 85, 53, 0.14), 0 15px 30px rgba(185, 85, 53, 0.15);
    cursor: pointer;
}

    .login-submit:active {
        transform: scale(0.985);
    }

    .login-submit svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ---------------------------------------------------------
   HOUSEHOLD
   --------------------------------------------------------- */

.login-household {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 30px;
}

.login-household__faces {
    display: flex;
    align-items: center;
}

    .login-household__faces img {
        width: 31px;
        height: 31px;
        display: block;
        margin-left: -7px;
        border: 2px solid #fff8ee;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 3px 9px rgba(116, 74, 48, 0.08);
    }

        .login-household__faces img:first-child {
            margin-left: 0;
        }

.login-household p {
    max-width: 145px;
    margin: 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.72rem;
    line-height: 1.25;
}


/* ---------------------------------------------------------
   SMALL IPHONES
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .login-visual {
        height: 250px;
    }

    .login-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .login-heading {
        margin-bottom: 22px;
    }

        .login-heading h1 {
            font-size: 2.35rem;
        }

    .login-form {
        gap: 15px;
    }

    .login-household {
        margin-top: 24px;
    }
}

.login-register {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--indlu-text-muted);
    font-size: 0.7rem;
}

    .login-register a {
        color: var(--indlu-accent-dark);
        font-weight: 800;
        text-decoration: none;
    }

.login-message--error,
.register-message--error {
    padding: 11px 14px;
    border-radius: 13px;
    background: rgba(184, 84, 55, 0.08);
    color: var(--indlu-accent-dark);
    font-size: 0.72rem;
    line-height: 1.4;
}

.register-message--success {
    padding: 11px 14px;
    border-radius: 13px;
    background: rgba(163, 171, 136, 0.15);
    color: var(--indlu-sage-dark);
    font-size: 0.72rem;
    line-height: 1.4;
}

/* =========================================================
   TODAY — QUICK ADD
   ========================================================= */

.timeline-quick-add {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    margin-top: 18px;
    padding: 7px 10px;
    border: 1px dashed rgba(220, 116, 76, 0.24);
    border-radius: 13px;
    background: rgba(220, 116, 76, 0.045);
    color: var(--indlu-accent-dark);
    font-size: 0.59rem;
    font-weight: 700;
    cursor: pointer;
}

.timeline-quick-add__plus {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(220, 116, 76, 0.12);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.timeline-quick-add:active {
    transform: scale(0.98);
}

/* =========================================================
   QUICK ADD PAGE
   ========================================================= */

.quick-add-page {
    min-height: calc(100dvh - 140px);
    display: flex;
    flex-direction: column;
    padding-top: 14px;
}

.quick-add-back {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    padding: 0;
    border: 1px solid var(--indlu-border);
    border-radius: 50%;
    background: rgba(255, 253, 250, 0.86);
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.quick-add-heading {
    margin-bottom: 30px;
}

    .quick-add-heading .section-kicker {
        display: block;
        margin-bottom: 8px;
    }

    .quick-add-heading h1 {
        margin: 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 2.3rem;
        font-weight: 400;
        line-height: 0.96;
        letter-spacing: -0.05em;
    }

    .quick-add-heading p {
        max-width: 300px;
        margin: 13px 0 0;
        color: var(--indlu-text-muted);
        font-size: 0.78rem;
        line-height: 1.5;
    }

.quick-add-form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.quick-add-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .quick-add-field label {
        color: var(--indlu-ink-soft);
        font-size: 0.7rem;
        font-weight: 800;
    }

    .quick-add-field textarea {
        width: 100%;
        min-height: 155px;
        resize: none;
        padding: 17px;
        border: 1px solid rgba(108, 72, 50, 0.11);
        border-radius: 21px;
        outline: 0;
        background: rgba(255, 253, 250, 0.9);
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.05rem;
        line-height: 1.45;
        box-shadow: 0 8px 24px rgba(116, 74, 48, 0.045);
    }

        .quick-add-field textarea:focus {
            border-color: rgba(220, 116, 76, 0.38);
            box-shadow: 0 0 0 3px rgba(220, 116, 76, 0.06), 0 8px 24px rgba(116, 74, 48, 0.045);
        }

        .quick-add-field textarea::placeholder {
            color: #aa9589;
        }

.quick-add-field__footer {
    display: flex;
    justify-content: space-between;
    padding-inline: 4px;
    color: var(--indlu-text-muted);
    font-size: 0.57rem;
}

.quick-add-error {
    margin: 15px 0 0;
    color: var(--indlu-accent-dark);
    font-size: 0.68rem;
}

.quick-add-submit {
    width: 100%;
    min-height: 55px;
    margin-top: auto;
    border: 0;
    border-radius: 18px;
    background: linear-gradient( 145deg, #e77a4f, var(--indlu-accent-dark) );
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(185, 85, 53, 0.17);
    cursor: pointer;
}

/* =========================================================
   GIRLS QUICK ADD
   ========================================================= */

.girls-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.girl-choice {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid rgba(108, 72, 50, 0.10);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.82);
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

    .girl-choice img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 253, 248, 0.98);
    }

.girl-choice--active {
    border-color: rgba(220, 116, 76, 0.34);
    background: rgba(220, 116, 76, 0.07);
    box-shadow: 0 0 0 3px rgba(220, 116, 76, 0.045);
}

.girls-categories {
    display: flex;
    gap: 7px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .girls-categories::-webkit-scrollbar {
        display: none;
    }

.girls-category {
    min-height: 35px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    border: 1px solid rgba(108, 72, 50, 0.09);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.78);
    color: var(--indlu-text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
}

.girls-category--active {
    border-color: rgba(163, 171, 136, 0.45);
    background: rgba(163, 171, 136, 0.13);
    color: var(--indlu-sage-dark);
}

/* =========================================================
   MEAL QUICK ADD
   ========================================================= */

.meal-moments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 20px;
}

.meal-moment {
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid rgba(108, 72, 50, 0.10);
    border-radius: 14px;
    background: rgba(255, 253, 250, 0.78);
    color: var(--indlu-text-muted);
    font-size: 0.59rem;
    font-weight: 700;
    cursor: pointer;
}

.meal-moment--active {
    border-color: rgba(220, 116, 76, 0.28);
    background: rgba(220, 116, 76, 0.09);
    color: var(--indlu-accent-dark);
}

.quick-add-text-input {
    width: 100%;
    min-height: 53px;
    padding: 0 16px;
    border: 1px solid rgba(108, 72, 50, 0.11);
    border-radius: 17px;
    outline: 0;
    background: rgba(255, 253, 250, 0.90);
    color: var(--indlu-ink);
    font: inherit;
    font-size: 0.82rem;
    box-shadow: 0 6px 18px rgba(116, 74, 48, 0.035);
}

    .quick-add-text-input:focus {
        border-color: rgba(220, 116, 76, 0.38);
        box-shadow: 0 0 0 3px rgba(220, 116, 76, 0.06);
    }

    .quick-add-text-input::placeholder {
        color: #aa9589;
    }

.meal-note-field {
    margin-top: 18px;
}

.memory-note-field {
    margin-top: 18px;
}

/* =========================================================
   EXPENSE QUICK ADD
   ========================================================= */

.expense-amount {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .expense-amount > label {
        color: var(--indlu-ink-soft);
        font-size: 0.7rem;
        font-weight: 800;
    }

.expense-amount__input {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid rgba(108, 72, 50, 0.11);
    border-radius: 20px;
    background: rgba(255, 253, 250, 0.90);
    box-shadow: 0 7px 21px rgba(116, 74, 48, 0.04);
}

    .expense-amount__input input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.65rem;
    }

    .expense-amount__input span {
        color: var(--indlu-accent-dark);
        font-size: 0.68rem;
        font-weight: 800;
    }

.expense-field {
    margin-top: 18px;
}

.expense-categories {
    display: flex;
    gap: 7px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .expense-categories::-webkit-scrollbar {
        display: none;
    }

.expense-category {
    min-height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    border: 1px solid rgba(108, 72, 50, 0.09);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.78);
    color: var(--indlu-text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
}

.expense-category--active {
    border-color: rgba(220, 116, 76, 0.28);
    background: rgba(220, 116, 76, 0.08);
    color: var(--indlu-accent-dark);
}

/* =========================================================
   OTHER QUICK ADD
   ========================================================= */

.other-member-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 20px;
}

.other-member-choice {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    border: 1px solid rgba(108, 72, 50, 0.09);
    border-radius: 15px;
    background: rgba(255, 253, 250, 0.78);
    color: var(--indlu-text-muted);
    font-size: 0.57rem;
    font-weight: 700;
    cursor: pointer;
}

.other-member-choice__emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.other-member-choice--active {
    border-color: rgba(220, 116, 76, 0.30);
    background: rgba(220, 116, 76, 0.08);
    color: var(--indlu-accent-dark);
}

/* =========================================================
   SIGNAL — REFINED
   ========================================================= */

.signal-page {
    padding-top: 6px;
}

.signal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.signal-back {
    margin: 0;
}

.signal-topbar__wordmark {
    color: rgba(67, 41, 31, 0.52);
    font-family: var(--indlu-serif);
    font-size: 0.82rem;
    font-style: italic;
    letter-spacing: -0.02em;
}


/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.signal-heading {
    margin-bottom: 29px;
}

.signal-heading__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    color: var(--indlu-accent-dark);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.signal-heading__line {
    width: 21px;
    height: 1px;
    background: rgba(220, 116, 76, 0.65);
}

.signal-heading h1 {
    margin: 0;
    max-width: 350px;
    color: #46281d;
    font-family: var(--indlu-serif);
    font-size: 2.62rem;
    font-weight: 400;
    line-height: 0.91;
    letter-spacing: -0.055em;
}

.signal-heading p {
    max-width: 330px;
    margin: 16px 0 0;
    color: var(--indlu-text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   COMPOSE CARD
   --------------------------------------------------------- */

.signal-compose {
    position: relative;
    overflow: hidden;
    padding: 18px 19px 15px;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 26px;
    background: radial-gradient( circle at 100% 0%, rgba(242, 196, 123, 0.09), transparent 32% ), linear-gradient( 145deg, #fffdfa 0%, #fff9f1 100% );
    box-shadow: 0 2px 5px rgba(116, 74, 48, 0.015), 0 13px 33px rgba(116, 74, 48, 0.055);
}

    .signal-compose::after {
        content: "";
        position: absolute;
        right: -22px;
        bottom: -33px;
        width: 100px;
        height: 100px;
        border: 1px solid rgba(163, 171, 136, 0.16);
        border-radius: 50%;
        pointer-events: none;
    }

    .signal-compose:focus-within {
        border-color: rgba(220, 116, 76, 0.23);
        box-shadow: 0 0 0 3px rgba(220, 116, 76, 0.035), 0 15px 38px rgba(116, 74, 48, 0.065);
    }

.signal-compose__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

    .signal-compose__header > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

.signal-compose__kicker {
    color: var(--indlu-accent);
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.signal-compose__header strong {
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.92rem;
    font-weight: 600;
}

.signal-compose__count {
    color: rgba(133, 111, 99, 0.70);
    font-size: 0.52rem;
}

.signal-compose textarea {
    width: 100%;
    min-height: 132px;
    margin-top: 16px;
    padding: 0;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.08rem;
    line-height: 1.5;
    letter-spacing: -0.015em;
}

    .signal-compose textarea::placeholder {
        color: #b9a49a;
        font-style: italic;
    }

.signal-compose__bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(108, 72, 50, 0.055);
}

.signal-compose__audience {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--indlu-text-muted);
    font-size: 0.52rem;
}

.signal-compose__spark {
    color: var(--indlu-sage-dark);
    font-size: 0.65rem;
}

.signal-compose__status {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(163, 171, 136, 0.10);
    color: var(--indlu-sage-dark);
    font-size: 0.48rem;
    font-weight: 800;
}


/* ---------------------------------------------------------
   PRIORITY
   --------------------------------------------------------- */

.signal-priority {
    margin-top: 23px;
}

.signal-priority__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-inline: 2px;
}

    .signal-priority__header > span {
        color: var(--indlu-ink);
        font-size: 0.67rem;
        font-weight: 800;
    }

    .signal-priority__header small {
        color: var(--indlu-text-muted);
        font-size: 0.51rem;
    }

.signal-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
}

.signal-level {
    position: relative;
    min-height: 72px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 11px;
    border: 1px solid rgba(108, 72, 50, 0.075);
    border-radius: 19px;
    background: rgba(255, 253, 250, 0.70);
    color: var(--indlu-text-muted);
    text-align: left;
    cursor: pointer;
    transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease, background 130ms ease;
}

    .signal-level:active {
        transform: scale(0.98);
    }

.signal-level--active {
    border-color: rgba(220, 116, 76, 0.24);
    background: linear-gradient( 145deg, rgba(255, 249, 242, 0.98), rgba(244, 198, 165, 0.10) );
    color: var(--indlu-ink);
    box-shadow: 0 7px 18px rgba(116, 74, 48, 0.04);
}

.signal-level__visual {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
}

.signal-level__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.signal-level__dot--normal {
    background: var(--indlu-sage);
}

.signal-level__dot--important {
    background: var(--indlu-accent);
}

.signal-level__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .signal-level__copy strong {
        color: inherit;
        font-family: var(--indlu-serif);
        font-size: 0.7rem;
        font-weight: 600;
    }

    .signal-level__copy small {
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: 0.48rem;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.signal-level__check {
    opacity: 0;
    color: var(--indlu-accent-dark);
    font-size: 0.65rem;
    font-weight: 800;
}

.signal-level--active .signal-level__check {
    opacity: 1;
}

.signal-priority__note {
    min-height: 17px;
    margin: 8px 3px 0;
    color: var(--indlu-text-muted);
    font-size: 0.52rem;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   SEND
   --------------------------------------------------------- */

.signal-submit-zone {
    margin-top: 29px;
}

.signal-submit {
    min-height: 58px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 6px 7px 6px 20px;
    border-radius: 20px;
    background: linear-gradient( 135deg, #e97b50 0%, #cb5b3a 100% );
    box-shadow: 0 8px 18px rgba(185, 85, 53, 0.15), 0 17px 35px rgba(185, 85, 53, 0.12);
    text-align: left;
}

.signal-submit__label {
    justify-self: center;
    margin-left: 38px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.signal-submit__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
}

    .signal-submit__icon svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: #fff;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.signal-submit-zone > p {
    margin: 9px 0 0;
    color: rgba(133, 111, 99, 0.78);
    font-size: 0.49rem;
    text-align: center;
}


/* ---------------------------------------------------------
   SMALL IPHONE
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .signal-heading h1 {
        font-size: 2.35rem;
    }

    .signal-compose {
        padding: 16px;
    }

    .signal-level {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .signal-level__check {
        display: none;
    }
}

.signal-household-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -2px 0 22px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 21px;
    background: radial-gradient( circle at 100% 0%, rgba(242, 196, 123, 0.15), transparent 45% ), rgba(255, 252, 246, 0.78);
    box-shadow: 0 9px 26px rgba(116, 74, 48, 0.04);
}

.signal-household-preview__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .signal-household-preview__copy span {
        color: var(--indlu-accent);
        font-size: 0.48rem;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .signal-household-preview__copy strong {
        max-width: 170px;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.25;
    }

.signal-household-preview__faces {
    display: flex;
    align-items: center;
}

    .signal-household-preview__faces img {
        width: 35px;
        height: 35px;
        display: block;
        margin-left: -8px;
        border: 2px solid #fffaf2;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 4px 10px rgba(116, 74, 48, 0.08);
    }

        .signal-household-preview__faces img:first-child {
            margin-left: 0;
        }

/* ---------------------------------------------------------
   FEEDBACK
   --------------------------------------------------------- */

.signal-toast {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -8px 0 20px;
    padding: 10px 12px;
    border: 1px solid rgba(163, 171, 136, 0.20);
    border-radius: 14px;
    background: rgba(163, 171, 136, 0.09);
    color: var(--indlu-sage-dark);
    font-size: 0.61rem;
    font-weight: 700;
}

.signal-toast--error {
    border-color: rgba(220, 116, 76, 0.18);
    background: rgba(220, 116, 76, 0.07);
    color: var(--indlu-accent-dark);
}


/* ---------------------------------------------------------
   RECENT
   --------------------------------------------------------- */

.signal-recent {
    margin-top: 4px;
}

.signal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-inline: 2px;
}

    .signal-section-heading h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.15rem;
        font-weight: 400;
        letter-spacing: -0.035em;
    }

.signal-section-heading__count {
    min-width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(220, 116, 76, 0.08);
    color: var(--indlu-accent-dark);
    font-size: 0.55rem;
    font-weight: 800;
}

.signal-recent__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.signal-recent__loading,
.signal-empty {
    padding: 24px 18px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 20px;
    background: rgba(255, 253, 250, 0.58);
    color: var(--indlu-text-muted);
    text-align: center;
}

.signal-recent__loading {
    font-size: 0.59rem;
}

.signal-empty__icon {
    display: block;
    margin-bottom: 5px;
    color: var(--indlu-accent);
    font-size: 1rem;
}

.signal-empty strong {
    display: block;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.8rem;
}

.signal-empty p {
    margin: 4px 0 0;
    font-size: 0.55rem;
}





/* ---------------------------------------------------------
   SMALL IPHONE
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .signal-presets {
        gap: 6px;
    }

    .signal-preset {
        min-height: 96px;
        padding-inline: 4px;
    }

    .signal-preset__icon {
        width: 34px;
        height: 34px;
    }

    .signal-preset__label {
        font-size: 0.62rem;
    }

    .signal-hub__intro h1 {
        font-size: 1.95rem;
    }
}

/* =========================================================
   HOUSE MODE
   ========================================================= */

.house-mode-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* HEADER */

.house-mode-header {
    padding: 4px 2px 0;
}

.house-mode-header__hello {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.86rem;
}

    .house-mode-header__hello span {
        color: var(--indlu-accent);
        font-family: var(--indlu-sans);
    }

.house-mode-header h1 {
    margin: 5px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.house-mode-header p {
    margin: 7px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.77rem;
    font-style: italic;
}

    .house-mode-header p span {
        margin-left: 5px;
        color: var(--indlu-accent);
        font-family: var(--indlu-sans);
    }


/* HERO */

.house-mode-hero {
    position: relative;
    min-height: 225px;
    overflow: hidden;
    border-radius: 25px;
    background: #352a23;
    box-shadow: 0 11px 30px rgba(68, 43, 31, 0.12);
    isolation: isolate;
}

.house-mode-hero__image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.house-mode-hero__veil {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient( 90deg, rgba(35, 29, 25, 0.93) 0%, rgba(35, 29, 25, 0.76) 39%, rgba(35, 29, 25, 0.20) 75%, rgba(35, 29, 25, 0.08) 100% );
}

.house-mode-hero__content {
    position: relative;
    z-index: 2;
    min-height: 225px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 28px 22px 55px;
    color: white;
}

.house-mode-hero__icon {
    align-self: flex-start;
    margin-top: 17px;
    font-size: 2rem;
}

.house-mode-hero__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.house-mode-hero h2 {
    margin: 0;
    color: #fff;
    font-family: var(--indlu-serif);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.house-mode-hero__content p {
    max-width: 215px;
    margin: 11px 0 0;
    color: rgba(255, 255, 255, 0.81);
    font-family: var(--indlu-serif);
    font-size: 0.73rem;
    line-height: 1.45;
}

.house-mode-hero__status {
    position: absolute;
    z-index: 3;
    left: 20px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.89);
    font-size: 0.55rem;
    backdrop-filter: blur(8px);
}


/* MODE GRID */

.house-mode-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 23px;
    background: rgba(255, 253, 250, 0.72);
    box-shadow: 0 8px 25px rgba(116, 74, 48, 0.04);
}

.house-mode-choice {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 0;
    border-right: 1px solid rgba(108, 72, 50, 0.07);
    border-bottom: 1px solid rgba(108, 72, 50, 0.07);
    background: transparent;
    color: var(--indlu-ink-soft);
    font-family: var(--indlu-serif);
    font-size: 0.69rem;
    text-align: left;
    cursor: pointer;
}

    .house-mode-choice:nth-child(even) {
        border-right: 0;
    }

    .house-mode-choice:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

.house-mode-choice__icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: rgba(217, 186, 143, 0.10);
    font-family: var(--indlu-sans);
    font-size: 1rem;
}

.house-mode-choice--active {
    background: linear-gradient( 145deg, rgba(220, 116, 76, 0.10), rgba(244, 198, 165, 0.07) );
    color: var(--indlu-accent-dark);
    font-weight: 700;
}

    .house-mode-choice--active .house-mode-choice__icon {
        background: rgba(220, 116, 76, 0.13);
    }


/* CONTEXT */

.house-mode-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 19px;
    background: rgba(255, 253, 250, 0.68);
}

.house-mode-note__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(163, 171, 136, 0.11);
    font-size: 1.15rem;
}

.house-mode-note > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.house-mode-note span {
    color: var(--indlu-accent-dark);
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.house-mode-note strong {
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
}


/* DEPARTURE */

.departure-card {
    padding: 15px;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 23px;
    background: rgba(255, 253, 250, 0.80);
    box-shadow: 0 9px 27px rgba(116, 74, 48, 0.045);
}

.departure-card__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 12px;
    border-bottom: 1px solid rgba(108, 72, 50, 0.07);
}

    .departure-card__header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
        font-weight: 600;
    }

.departure-card__time {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(220, 116, 76, 0.12);
    border-radius: 999px;
    color: var(--indlu-accent-dark);
    font-size: 0.49rem;
}

.departure-checklist {
    display: flex;
    flex-direction: column;
}

.departure-checklist__item {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr) 26px;
    gap: 9px;
    align-items: center;
    padding: 7px 2px;
    border: 0;
    border-bottom: 1px solid rgba(108, 72, 50, 0.06);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .departure-checklist__item:last-child {
        border-bottom: 0;
    }

.departure-checklist__icon {
    font-size: 1rem;
    text-align: center;
}

.departure-checklist__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

    .departure-checklist__copy strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.7rem;
        font-weight: 600;
    }

    .departure-checklist__copy small {
        color: var(--indlu-text-muted);
        font-size: 0.49rem;
    }

.departure-checklist__check {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(163, 171, 136, 0.22);
    border-radius: 50%;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
}

.departure-checklist__item--checked
.departure-checklist__check {
    border-color: var(--indlu-sage);
    background: var(--indlu-sage);
}


/* MEMBERS */

.house-mode-members {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 2px 4px 4px;
}

.house-mode-member {
    min-width: 0;
    text-align: center;
}

    .house-mode-member img {
        width: 54px;
        height: 54px;
        display: block;
        margin: 0 auto 7px;
        border: 2px solid rgba(255, 253, 248, 0.98);
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 1px rgba(108, 72, 50, 0.10), 0 6px 14px rgba(116, 74, 48, 0.07);
    }

    .house-mode-member strong {
        display: block;
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.68rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .house-mode-member span {
        display: block;
        margin-top: 2px;
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: 0.47rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* =========================================================
   QUESTS
   ========================================================= */

.quests-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.quests-header {
    padding: 4px 2px 0;
}

.quests-header__hello {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.86rem;
}

    .quests-header__hello span {
        color: var(--indlu-accent);
    }

.quests-header h1 {
    margin: 5px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 2.45rem;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.quests-header p {
    margin: 8px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.78rem;
    font-style: italic;
}

    .quests-header p span {
        margin-left: 5px;
        color: var(--indlu-accent);
    }


/* FEATURED QUEST */

.quest-featured {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 24px;
    background: linear-gradient( 145deg, rgba(255, 253, 250, 0.96), rgba(255, 247, 237, 0.88) );
    box-shadow: 0 8px 22px rgba(116, 74, 48, 0.05);
}

.quest-featured__avatar {
    width: 78px;
    height: 78px;
    display: block;
    border: 3px solid rgba(255, 253, 248, 0.98);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(184, 84, 55, 0.28), 0 7px 18px rgba(116, 74, 48, 0.08);
}

.quest-featured__copy {
    min-width: 0;
}

.quest-featured__giver {
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.7rem;
}

    .quest-featured__giver strong {
        color: var(--indlu-accent-dark);
    }

.quest-featured h2 {
    margin: 7px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.1;
}

.quest-featured p {
    margin: 6px 0 0;
    color: var(--indlu-ink-soft);
    font-family: var(--indlu-serif);
    font-size: 0.72rem;
}


/* HEADER */

.quests-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 3px;
}

    .quests-section-header h2 {
        margin: 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.02rem;
        font-weight: 600;
    }

    .quests-section-header > span {
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: 0.66rem;
    }


/* LIST */

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.quest-card {
    position: relative;
    display: grid;
    grid-template-columns: 67px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(108, 72, 50, 0.075);
    border-radius: 21px;
    background: rgba(255, 253, 250, 0.78);
    box-shadow: 0 6px 18px rgba(116, 74, 48, 0.04);
}

.quest-card__icon {
    width: 63px;
    height: 63px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 72, 50, 0.10);
    border-radius: 50%;
    background: rgba(255, 250, 243, 0.84);
    font-size: 1.55rem;
    box-shadow: 0 5px 12px rgba(116, 74, 48, 0.04);
}

.quest-card__content {
    min-width: 0;
}

.quest-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .quest-card__top h3 {
        margin: 1px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.87rem;
        font-weight: 600;
        line-height: 1.1;
    }

    .quest-card__top p {
        margin: 5px 0 0;
        color: var(--indlu-ink-soft);
        font-family: var(--indlu-serif);
        font-size: 0.65rem;
        line-height: 1.25;
    }


/* STATUS */

.quest-status {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 0.5rem;
    font-weight: 700;
}

.quest-status--done {
    background: rgba(127, 177, 104, 0.10);
    color: #5f8a50;
}

.quest-status--progress {
    background: rgba(217, 186, 143, 0.13);
    color: #9a6f3c;
}

.quest-status--todo {
    background: rgba(55, 76, 101, 0.07);
    color: #40556d;
}


/* PROGRESS */

.quest-card__progress-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

    .quest-card__progress-row > span {
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: 0.58rem;
    }

.quest-card__progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(108, 72, 50, 0.09);
}

    .quest-card__progress > span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient( 90deg, var(--indlu-accent), var(--indlu-accent-dark) );
    }


/* REWARD */

.quest-card__reward {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    margin-left: auto;
    padding: 6px 8px;
    border: 1px solid rgba(217, 186, 143, 0.20);
    border-radius: 12px;
    background: rgba(255, 247, 237, 0.56);
}

.quest-card__reward-icon {
    font-size: 1rem;
}

.quest-card__reward > span:last-child {
    display: flex;
    flex-direction: column;
}

.quest-card__reward small {
    color: var(--indlu-text-muted);
    font-size: 0.43rem;
    text-transform: uppercase;
}

.quest-card__reward strong {
    color: var(--indlu-ink-soft);
    font-family: var(--indlu-serif);
    font-size: 0.58rem;
    font-weight: 600;
}


/* ACTIONS */

.quest-card__more {
    position: absolute;
    top: 7px;
    right: 6px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--indlu-text-muted);
    font-size: 1rem;
    cursor: pointer;
}

.quest-card__advance {
    position: absolute;
    left: 51px;
    bottom: 7px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid var(--indlu-surface);
    border-radius: 50%;
    background: var(--indlu-accent);
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(185, 85, 53, 0.14);
    cursor: pointer;
}


/* TEAM */

.quests-team {
    padding: 3px 5px 0;
}

    .quests-team h2 {
        margin: 0 0 12px;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.9rem;
        font-weight: 600;
    }

.quests-team__members {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.quests-team__member {
    min-width: 0;
    text-align: center;
}

.quests-team__portrait {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 7px;
}

    .quests-team__portrait img {
        width: 100%;
        height: 100%;
        display: block;
        border: 2px solid rgba(255, 253, 248, 0.98);
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 1px rgba(108, 72, 50, 0.11);
    }

.quests-team__status {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--indlu-bg);
    border-radius: 50%;
    background: var(--indlu-accent);
}

.quests-team__member strong {
    display: block;
    overflow: hidden;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   CREATE QUEST
   ========================================================= */

.quest-create-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    margin-bottom: 20px;
}

.quest-create-icon {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 72, 50, 0.09);
    border-radius: 15px;
    background: rgba(255, 253, 250, 0.76);
    font-size: 1.2rem;
    cursor: pointer;
}

.quest-create-icon--active {
    border-color: rgba(220, 116, 76, 0.30);
    background: rgba(220, 116, 76, 0.08);
    box-shadow: 0 0 0 3px rgba(220, 116, 76, 0.035);
}

.quest-create-spacing {
    margin-top: 17px;
}

.quest-create-section {
    margin-top: 20px;
}

.quest-create-label {
    display: block;
    margin-bottom: 9px;
    color: var(--indlu-ink-soft);
    font-size: 0.67rem;
    font-weight: 800;
}

.quest-create-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.quest-create-member {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 3px;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 15px;
    background: rgba(255, 253, 250, 0.72);
    color: var(--indlu-text-muted);
    font-size: 0.53rem;
    cursor: pointer;
}

    .quest-create-member img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
    }

.quest-create-member--active {
    border-color: rgba(220, 116, 76, 0.29);
    background: rgba(220, 116, 76, 0.07);
    color: var(--indlu-accent-dark);
}

.quest-create-givers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quest-create-giver {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.72);
    color: var(--indlu-text-muted);
    font-size: 0.56rem;
    font-weight: 700;
    cursor: pointer;
}

.quest-create-giver--active {
    border-color: rgba(163, 171, 136, 0.38);
    background: rgba(163, 171, 136, 0.12);
    color: var(--indlu-sage-dark);
}

.quest-create-row {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    gap: 10px;
    margin-top: 19px;
}

.quest-create-small-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .quest-create-small-field label {
        color: var(--indlu-ink-soft);
        font-size: 0.65rem;
        font-weight: 800;
    }

    .quest-create-small-field input {
        width: 100%;
        min-height: 48px;
        padding: 0 13px;
        border: 1px solid rgba(108, 72, 50, 0.10);
        border-radius: 15px;
        outline: 0;
        background: rgba(255, 253, 250, 0.82);
        color: var(--indlu-ink);
        font: inherit;
        font-size: 0.7rem;
    }

/* =========================================================
   US
   ========================================================= */

.us-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.us-header {
    padding: 4px 2px 0;
}

    .us-header h1 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 2.45rem;
        font-weight: 400;
        line-height: 0.96;
        letter-spacing: -0.055em;
    }

    .us-header p {
        margin: 8px 0 0;
        max-width: 280px;
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: 0.78rem;
        font-style: italic;
        line-height: 1.45;
    }


/* FAMILY HERO */

.us-family-card {
    position: relative;
    overflow: hidden;
    min-height: 205px;
    padding: 24px 20px;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 26px;
    background: radial-gradient( circle at 90% 15%, rgba(214, 165, 116, 0.18), transparent 36% ), linear-gradient( 145deg, rgba(255, 250, 243, 0.98), rgba(246, 237, 224, 0.92) );
    box-shadow: 0 10px 28px rgba(116, 74, 48, 0.07);
}

.us-family-card__content {
    position: relative;
    z-index: 2;
    max-width: 230px;
}

.us-family-card__eyebrow {
    color: var(--indlu-accent-dark);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.us-family-card h2 {
    margin: 7px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.us-family-card p {
    margin: 10px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.69rem;
    line-height: 1.45;
}

.us-family-card__members {
    position: absolute;
    right: 15px;
    bottom: 18px;
    display: flex;
    align-items: center;
}

.us-family-card__avatar {
    width: 48px;
    height: 48px;
    margin-left: -12px;
    overflow: hidden;
    border: 3px solid rgba(255, 250, 243, 0.98);
    border-radius: 50%;
    background: white;
    box-shadow: 0 5px 14px rgba(116, 74, 48, 0.08);
}

    .us-family-card__avatar:first-child {
        margin-left: 0;
    }

    .us-family-card__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* SECTION */

.us-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 11px;
    padding: 0 2px;
}

    .us-section__header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
        font-weight: 600;
    }


/* MEMBERS */

.us-members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.us-member-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 14px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(108, 72, 50, 0.075);
    border-radius: 19px;
    background: rgba(255, 253, 250, 0.76);
    color: inherit;
    text-align: left;
    box-shadow: 0 6px 16px rgba(116, 74, 48, 0.035);
    cursor: pointer;
}

    .us-member-card img {
        width: 52px;
        height: 52px;
        border: 2px solid rgba(255, 253, 248, 0.98);
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 1px rgba(108, 72, 50, 0.08);
    }

.us-member-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .us-member-card__content strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.74rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .us-member-card__content span {
        margin-top: 2px;
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: 0.48rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.us-member-card__arrow {
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 1.2rem;
}


/* COUPLE */

.us-couple-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(220, 116, 76, 0.11);
    border-radius: 22px;
    background: linear-gradient( 145deg, rgba(220, 116, 76, 0.06), rgba(255, 253, 250, 0.84) );
}

.us-couple-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(220, 116, 76, 0.09);
    color: var(--indlu-accent);
    font-family: var(--indlu-serif);
    font-size: 1.4rem;
}

.us-couple-card h2 {
    margin: 3px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.95rem;
    font-weight: 600;
}

.us-couple-card p {
    margin: 4px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.6rem;
    line-height: 1.35;
}

.us-inline-action {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(220, 116, 76, 0.15);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.70);
    color: var(--indlu-accent-dark);
    font-size: 0.52rem;
    font-weight: 700;
    cursor: pointer;
}


/* STATS */

.us-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.us-stat-card {
    min-width: 0;
    padding: 12px 9px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.70);
    text-align: center;
}

    .us-stat-card span {
        display: block;
        color: var(--indlu-text-muted);
        font-size: 0.48rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .us-stat-card strong {
        display: block;
        margin-top: 5px;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.25rem;
        font-weight: 500;
    }

    .us-stat-card small {
        display: block;
        margin-top: 2px;
        color: var(--indlu-text-muted);
        font-size: 0.43rem;
    }


/* MEMORY */

.us-memory-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.us-memory-card {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 15px;
    gap: 11px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.72);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.us-memory-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(163, 171, 136, 0.10);
    font-size: 1rem;
}

.us-memory-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.us-memory-card strong {
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.72rem;
}

.us-memory-card div span {
    margin-top: 2px;
    color: var(--indlu-text-muted);
    font-size: 0.49rem;
}

.us-memory-card > span:last-child {
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 1.2rem;
}


@media (max-width: 390px) {

    .us-members-grid {
        grid-template-columns: 1fr;
    }

    .us-family-card {
        min-height: 220px;
    }

    .us-family-card__members {
        right: 16px;
        bottom: 15px;
    }
}

/* =========================================================
   MEMBER PROFILE
   ========================================================= */

.member-profile-page {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.member-profile-loading {
    padding: 40px 20px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    text-align: center;
}


/* HERO */

.member-profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 20px 2px;
    text-align: center;
}

.member-profile-hero__portrait {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 16px;
}

    .member-profile-hero__portrait img {
        width: 100%;
        height: 100%;
        display: block;
        border: 4px solid rgba(255, 253, 248, 0.98);
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 1px rgba(108, 72, 50, 0.12), 0 12px 30px rgba(116, 74, 48, 0.10);
    }

.member-profile-hero__status {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    border: 4px solid var(--indlu-bg);
    border-radius: 50%;
    background: var(--indlu-accent);
}

.member-profile-hero h1 {
    margin: 5px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
}

.member-profile-hero p {
    max-width: 295px;
    margin: 9px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.7rem;
    line-height: 1.5;
}


/* STATS */

.member-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

    .member-profile-stats article {
        padding: 12px 7px;
        border: 1px solid rgba(108, 72, 50, 0.07);
        border-radius: 18px;
        background: rgba(255, 253, 250, 0.72);
        text-align: center;
    }

    .member-profile-stats span {
        display: block;
        color: var(--indlu-text-muted);
        font-size: 0.47rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .member-profile-stats strong {
        display: block;
        margin-top: 5px;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.22rem;
        font-weight: 500;
    }

    .member-profile-stats small {
        display: block;
        margin-top: 2px;
        color: var(--indlu-text-muted);
        font-size: 0.45rem;
    }


/* SECTION */

.member-profile-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

    .member-profile-section__header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
        font-weight: 600;
    }

    .member-profile-section__header button {
        border: 0;
        background: transparent;
        color: var(--indlu-accent-dark);
        font-size: 0.53rem;
        font-weight: 700;
        cursor: pointer;
    }


/* QUESTS */

.member-profile-quest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-profile-quest {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.72);
}

.member-profile-quest__icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(217, 186, 143, 0.11);
    font-size: 1rem;
}

.member-profile-quest > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-profile-quest strong {
    overflow: hidden;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-profile-quest div span {
    overflow: hidden;
    color: var(--indlu-text-muted);
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-profile-quest__status {
    padding: 5px 7px;
    border-radius: 9px;
    font-size: 0.46rem;
    font-weight: 700;
}

.member-profile-quest__status--todo {
    background: rgba(55, 76, 101, 0.07);
    color: #40556d;
}

.member-profile-quest__status--progress {
    background: rgba(217, 186, 143, 0.14);
    color: #9a6f3c;
}

.member-profile-quest__status--done {
    background: rgba(127, 177, 104, 0.11);
    color: #5f8a50;
}


/* TIMELINE */

.member-profile-timeline {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.member-profile-event {
    display: grid;
    grid-template-columns: 42px 10px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 2px;
}

    .member-profile-event time {
        padding-top: 1px;
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: 0.54rem;
    }

.member-profile-event__dot {
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--indlu-accent);
}

.member-profile-event > div {
    min-width: 0;
}

.member-profile-event strong {
    display: block;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.67rem;
}

.member-profile-event p {
    margin: 2px 0 0;
    color: var(--indlu-text-muted);
    font-size: 0.51rem;
    line-height: 1.4;
}


/* EMPTY */

.member-profile-empty-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.67);
}

    .member-profile-empty-card > span {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: rgba(163, 171, 136, 0.10);
    }

    .member-profile-empty-card strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.69rem;
    }

    .member-profile-empty-card p {
        margin: 3px 0 0;
        color: var(--indlu-text-muted);
        font-size: 0.5rem;
        line-height: 1.4;
    }


/* ACTIONS */

.member-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .member-profile-actions button {
        width: 100%;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 14px;
        gap: 10px;
        align-items: center;
        padding: 11px 12px;
        border: 1px solid rgba(108, 72, 50, 0.07);
        border-radius: 18px;
        background: rgba(255, 253, 250, 0.72);
        color: inherit;
        text-align: left;
        cursor: pointer;
    }

        .member-profile-actions button > span:first-child {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 13px;
            background: rgba(220, 116, 76, 0.08);
        }

        .member-profile-actions button div {
            display: flex;
            flex-direction: column;
        }

    .member-profile-actions strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.69rem;
    }

    .member-profile-actions small {
        margin-top: 2px;
        color: var(--indlu-text-muted);
        font-size: 0.48rem;
    }

/* =========================================================
   COUPLE
   ========================================================= */

.couple-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.couple-loading {
    padding: 40px 20px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    text-align: center;
}


/* HERO */

.couple-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 18px 4px;
    text-align: center;
}

.couple-hero__portraits {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
}

.couple-hero__portrait {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 4px solid rgba(255, 253, 248, 0.98);
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 1px rgba(108, 72, 50, 0.10), 0 10px 25px rgba(116, 74, 48, 0.09);
}

    .couple-hero__portrait img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.couple-hero__portrait--ghassen {
    transform: translateX(10px);
}

.couple-hero__portrait--salma {
    transform: translateX(-10px);
}

.couple-hero__heart {
    position: relative;
    z-index: 2;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 4px solid var(--indlu-bg);
    border-radius: 50%;
    background: var(--indlu-accent);
    color: white;
    font-family: var(--indlu-serif);
    font-size: 1.15rem;
    box-shadow: 0 6px 14px rgba(185, 85, 53, 0.15);
}

.couple-hero h1 {
    margin: 5px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
}

.couple-hero p {
    max-width: 305px;
    margin: 9px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.7rem;
    line-height: 1.5;
}


/* STATS */

.couple-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

    .couple-stats article {
        min-width: 0;
        padding: 12px 7px;
        border: 1px solid rgba(108, 72, 50, 0.07);
        border-radius: 18px;
        background: rgba(255, 253, 250, 0.72);
        text-align: center;
    }

    .couple-stats span {
        display: block;
        color: var(--indlu-text-muted);
        font-size: 0.46rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .couple-stats strong {
        display: block;
        margin-top: 5px;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.2rem;
        font-weight: 500;
    }

    .couple-stats small {
        display: block;
        margin-top: 2px;
        color: var(--indlu-text-muted);
        font-size: 0.44rem;
    }


/* HIGHLIGHT */

.couple-highlight {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(220, 116, 76, 0.10);
    border-radius: 21px;
    background: linear-gradient( 145deg, rgba(220, 116, 76, 0.055), rgba(255, 253, 250, 0.78) );
}

.couple-highlight__icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(220, 116, 76, 0.09);
    color: var(--indlu-accent);
    font-family: var(--indlu-serif);
    font-size: 1.2rem;
}

.couple-highlight h2 {
    margin: 3px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}

.couple-highlight p {
    margin: 4px 0 0;
    color: var(--indlu-text-muted);
    font-size: 0.51rem;
    line-height: 1.45;
}


/* SECTION */

.couple-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 2px;
}

    .couple-section__header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
        font-weight: 600;
    }

    .couple-section__header button {
        border: 0;
        background: transparent;
        color: var(--indlu-accent-dark);
        font-size: 0.52rem;
        font-weight: 700;
        cursor: pointer;
    }


/* EVENTS */

.couple-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.couple-event {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.70);
}

.couple-event__avatar {
    width: 43px;
    height: 43px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(108, 72, 50, 0.10);
}

    .couple-event__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.couple-event__content {
    min-width: 0;
}

.couple-event__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .couple-event__meta strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.67rem;
    }

    .couple-event__meta time {
        color: var(--indlu-text-muted);
        font-size: 0.47rem;
    }

.couple-event__title {
    display: block;
    margin-top: 3px;
    color: var(--indlu-ink-soft);
    font-family: var(--indlu-serif);
    font-size: 0.62rem;
    font-weight: 600;
}

.couple-event p {
    margin: 2px 0 0;
    color: var(--indlu-text-muted);
    font-size: 0.49rem;
    line-height: 1.4;
}


/* EMPTY */

.couple-empty {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.67);
}

    .couple-empty > span {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: rgba(220, 116, 76, 0.08);
        color: var(--indlu-accent);
        font-family: var(--indlu-serif);
        font-size: 1rem;
    }

    .couple-empty strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.68rem;
    }

    .couple-empty p {
        margin: 3px 0 0;
        color: var(--indlu-text-muted);
        font-size: 0.49rem;
    }


/* QUESTS */

.couple-quests {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.couple-quest {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.70);
}

.couple-quest__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(217, 186, 143, 0.11);
}

.couple-quest > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.couple-quest strong {
    overflow: hidden;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.couple-quest div span {
    color: var(--indlu-text-muted);
    font-size: 0.48rem;
}

.couple-quest__status {
    padding: 5px 7px;
    border-radius: 9px;
    font-size: 0.45rem;
    font-weight: 700;
}

.couple-quest__status--todo {
    background: rgba(55, 76, 101, 0.07);
    color: #40556d;
}

.couple-quest__status--progress {
    background: rgba(217, 186, 143, 0.14);
    color: #9a6f3c;
}

.couple-quest__status--done {
    background: rgba(127, 177, 104, 0.11);
    color: #5f8a50;
}


/* SHORTCUTS */

.couple-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .couple-shortcuts button {
        width: 100%;
        display: grid;
        grid-template-columns: 41px minmax(0, 1fr) 15px;
        gap: 10px;
        align-items: center;
        padding: 11px 12px;
        border: 1px solid rgba(108, 72, 50, 0.07);
        border-radius: 18px;
        background: rgba(255, 253, 250, 0.72);
        color: inherit;
        text-align: left;
        cursor: pointer;
    }

.couple-shortcuts__icon {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(220, 116, 76, 0.075);
    font-size: 1rem;
}

.couple-shortcuts button > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.couple-shortcuts strong {
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.68rem;
}

.couple-shortcuts small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--indlu-text-muted);
    font-size: 0.47rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   MEMORIES
   ========================================================= */

.memories-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.memories-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

    .memories-header h1 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 2.35rem;
        font-weight: 400;
        letter-spacing: -0.05em;
    }

    .memories-header p {
        margin: 6px 0 0;
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: 0.72rem;
        font-style: italic;
    }

.memories-add {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--indlu-accent);
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 7px 17px rgba(185, 85, 53, 0.16);
}


/* QUOTE */

.memories-highlight {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(220, 116, 76, 0.09);
    border-radius: 20px;
    background: linear-gradient( 145deg, rgba(220, 116, 76, 0.055), rgba(255, 253, 250, 0.78) );
}

    .memories-highlight > span {
        width: 43px;
        height: 43px;
        display: grid;
        place-items: center;
        border-radius: 15px;
        background: rgba(220, 116, 76, 0.08);
        color: var(--indlu-accent);
        font-family: var(--indlu-serif);
        font-size: 1.2rem;
    }

    .memories-highlight div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .memories-highlight small {
        color: var(--indlu-accent-dark);
        font-size: 0.45rem;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .memories-highlight strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.67rem;
        font-weight: 600;
        line-height: 1.35;
    }


/* LIST */

.memories-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.memory-card {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.76);
    box-shadow: 0 7px 20px rgba(116, 74, 48, 0.04);
}

.memory-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.memory-card__date {
    width: 42px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(217, 186, 143, 0.10);
}

    .memory-card__date strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
        font-weight: 500;
    }

    .memory-card__date span {
        color: var(--indlu-text-muted);
        font-size: 0.41rem;
        font-weight: 800;
    }

.memory-card__favorite {
    width: 33px;
    height: 33px;
    border: 0;
    background: transparent;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 1.2rem;
    cursor: pointer;
}

.memory-card__favorite--active {
    color: var(--indlu-accent);
}

.memory-card__content {
    margin-top: 11px;
}

    .memory-card__content time {
        color: var(--indlu-text-muted);
        font-size: 0.46rem;
    }

    .memory-card__content h2 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
        font-weight: 600;
    }

    .memory-card__content p {
        margin: 6px 0 0;
        color: var(--indlu-ink-soft);
        font-family: var(--indlu-serif);
        font-size: 0.63rem;
        line-height: 1.48;
    }

.memory-card__members {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid rgba(108, 72, 50, 0.06);
}

.memory-card__avatars {
    display: flex;
    align-items: center;
}

    .memory-card__avatars img {
        width: 30px;
        height: 30px;
        display: block;
        margin-left: -7px;
        border: 2px solid #fffaf3;
        border-radius: 50%;
        background: #fffaf3;
        object-fit: cover;
        box-shadow: 0 2px 7px rgba(80, 52, 35, 0.08);
    }

        .memory-card__avatars img:first-child {
            margin-left: 0;
        }

.memory-card__members > span {
    color: var(--indlu-text-muted);
    font-size: 0.47rem;
}


/* EMPTY */

.memories-empty {
    padding: 35px 20px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.67);
    text-align: center;
}

    .memories-empty > span {
        font-size: 2rem;
    }

    .memories-empty h2 {
        margin: 11px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
    }

    .memories-empty p {
        margin: 5px 0 15px;
        color: var(--indlu-text-muted);
        font-size: 0.55rem;
    }

    .memories-empty button {
        min-height: 38px;
        padding: 0 14px;
        border: 0;
        border-radius: 999px;
        background: var(--indlu-accent);
        color: white;
        font-size: 0.55rem;
        font-weight: 700;
    }


/* =========================================================
   MEMORY CREATION
   ========================================================= */

.memory-create-spacing {
    margin-top: 17px;
}

.memory-create-date {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 18px;
}

    .memory-create-date label,
    .memory-create-members > span {
        color: var(--indlu-ink-soft);
        font-size: 0.65rem;
        font-weight: 800;
    }

    .memory-create-date input {
        min-height: 48px;
        padding: 0 13px;
        border: 1px solid rgba(108, 72, 50, 0.10);
        border-radius: 15px;
        background: rgba(255, 253, 250, 0.82);
        color: var(--indlu-ink);
        font: inherit;
    }

.memory-create-members {
    margin-top: 20px;
}

    .memory-create-members > div {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        margin-top: 9px;
    }

.memory-create-member {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 3px;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 15px;
    background: rgba(255, 253, 250, 0.72);
    color: var(--indlu-text-muted);
    cursor: pointer;
}

    .memory-create-member img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
    }

    .memory-create-member strong {
        overflow: hidden;
        max-width: 100%;
        font-family: var(--indlu-serif);
        font-size: 0.55rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.memory-create-member--active {
    border-color: rgba(220, 116, 76, 0.28);
    background: rgba(220, 116, 76, 0.07);
    color: var(--indlu-accent-dark);
}

.memory-create-favorite {
    display: grid;
    grid-template-columns: 18px 37px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-top: 19px;
    padding: 11px;
    border: 1px solid rgba(220, 116, 76, 0.08);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.68);
}

    .memory-create-favorite > span {
        color: var(--indlu-accent);
        font-family: var(--indlu-serif);
        font-size: 1.1rem;
    }

    .memory-create-favorite div {
        display: flex;
        flex-direction: column;
    }

    .memory-create-favorite strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.65rem;
    }

    .memory-create-favorite small {
        margin-top: 2px;
        color: var(--indlu-text-muted);
        font-size: 0.46rem;
    }

.memory-card {
    min-height: 0 !important;
    height: auto !important;
}

.memory-card__content {
    min-height: 0 !important;
    height: auto !important;
}

.memory-card__members {
    position: static !important;
}

/* =========================================================
   MEMORY PHOTOS
   ========================================================= */

.memory-photo-picker {
    margin-bottom: 20px;
}

.memory-photo-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.memory-photo-picker__label {
    position: relative;
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    overflow: hidden;
    padding: 15px;
    border: 1px dashed rgba(220, 116, 76, 0.25);
    border-radius: 21px;
    background: linear-gradient( 145deg, rgba(220, 116, 76, 0.045), rgba(255, 253, 250, 0.77) );
    cursor: pointer;
}

    .memory-photo-picker__label > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.memory-photo-picker__icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    background: rgba(220, 116, 76, 0.09);
    font-size: 1.1rem;
}

.memory-photo-picker__label > div {
    display: flex;
    flex-direction: column;
}

.memory-photo-picker__label strong {
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.68rem;
}

.memory-photo-picker__label small {
    margin-top: 2px;
    color: var(--indlu-text-muted);
    font-size: 0.48rem;
}

.memory-photo-picker__remove {
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-accent-dark);
    font-size: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}


/* DISPLAY */

.memory-card__photo {
    width: calc(100% + 28px);
    height: 190px;
    overflow: hidden;
    margin: -14px -14px 14px;
    border-radius: 22px 22px 0 0;
}

    .memory-card__photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* =========================================================
   MEMBER MEMORIES
   ========================================================= */

.member-memory-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-memory-card {
    position: relative;
    min-height: 78px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.72);
}

    .member-memory-card > img,
    .member-memory-card__fallback {
        width: 72px;
        height: 100%;
        min-height: 78px;
        object-fit: cover;
    }

.member-memory-card__fallback {
    display: grid;
    place-items: center;
    background: rgba(217, 186, 143, 0.11);
    font-size: 1.2rem;
}

.member-memory-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9px 28px 9px 0;
}

.member-memory-card time {
    color: var(--indlu-text-muted);
    font-size: 0.44rem;
}

.member-memory-card strong {
    margin-top: 2px;
    overflow: hidden;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-memory-card p {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--indlu-text-muted);
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-memory-card__favorite {
    position: absolute;
    top: 9px;
    right: 10px;
    color: var(--indlu-accent);
    font-size: 0.75rem;
}

/* =========================================================
   MEMORY DETAILS
   ========================================================= */

.memory-details-page {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.memory-details-loading {
    padding: 40px 20px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    text-align: center;
}

.memory-details-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.memory-details-favorite {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 72, 50, 0.08);
    border-radius: 50%;
    background: rgba(255, 253, 250, 0.76);
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 1.3rem;
    cursor: pointer;
}

.memory-details-favorite--active {
    color: var(--indlu-accent);
}


/* PHOTO */

.memory-details-photo {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(108, 72, 50, 0.08);
    box-shadow: 0 11px 30px rgba(90, 58, 39, 0.08);
}

    .memory-details-photo > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.memory-details-photo__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, transparent 50%, rgba(34, 25, 19, 0.36) );
}

.memory-details-photo__date {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 54px;
    height: 59px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.86);
    backdrop-filter: blur(9px);
    box-shadow: 0 7px 18px rgba(30, 20, 15, 0.10);
}

    .memory-details-photo__date strong,
    .memory-details-date strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.25rem;
        font-weight: 500;
    }

    .memory-details-photo__date span,
    .memory-details-date span {
        color: var(--indlu-text-muted);
        font-size: 0.43rem;
        font-weight: 800;
    }


/* HEADER */

.memory-details-header {
    text-align: center;
}

.memory-details-date {
    width: 52px;
    height: 57px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: rgba(217, 186, 143, 0.10);
}

.memory-details-header h1 {
    margin: 5px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.memory-details-header time {
    display: block;
    margin-top: 8px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 0.58rem;
}


/* STORY */

.memory-details-story {
    padding: 18px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 21px;
    background: rgba(255, 253, 250, 0.70);
}

    .memory-details-story p {
        margin: 7px 0 0;
        color: var(--indlu-ink-soft);
        font-family: var(--indlu-serif);
        font-size: 0.75rem;
        line-height: 1.65;
        white-space: pre-line;
    }


/* MEMBERS */

.memory-details-members header h2 {
    margin: 3px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1rem;
    font-weight: 600;
}

.memory-details-members__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 11px;
}

.memory-details-member {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.70);
    color: inherit;
    cursor: pointer;
}

    .memory-details-member img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }

    .memory-details-member strong {
        overflow: hidden;
        max-width: 100%;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.58rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* ACTIONS */

.memory-details-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .memory-details-actions > button {
        width: 100%;
        display: grid;
        grid-template-columns: 41px minmax(0, 1fr) 15px;
        gap: 10px;
        align-items: center;
        padding: 11px 12px;
        border: 1px solid rgba(108, 72, 50, 0.07);
        border-radius: 18px;
        background: rgba(255, 253, 250, 0.72);
        color: inherit;
        text-align: left;
        cursor: pointer;
    }

        .memory-details-actions > button > span:first-child {
            width: 41px;
            height: 41px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: rgba(220, 116, 76, 0.08);
            color: var(--indlu-accent);
            font-size: 1rem;
        }

    .memory-details-actions button > div {
        display: flex;
        flex-direction: column;
    }

    .memory-details-actions strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.68rem;
    }

    .memory-details-actions small {
        margin-top: 2px;
        color: var(--indlu-text-muted);
        font-size: 0.47rem;
    }

.memory-details-actions__delete > span:first-child {
    background: rgba(167, 68, 55, 0.07) !important;
    color: #a14d42 !important;
}


/* DELETE CONFIRM */

.memory-delete-confirm {
    padding: 17px;
    border: 1px solid rgba(161, 77, 66, 0.14);
    border-radius: 21px;
    background: rgba(161, 77, 66, 0.035);
}

    .memory-delete-confirm h2 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.9rem;
    }

    .memory-delete-confirm p {
        margin: 5px 0 0;
        color: var(--indlu-text-muted);
        font-size: 0.51rem;
    }

.memory-delete-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

    .memory-delete-confirm__actions button {
        min-height: 40px;
        padding: 0 10px;
        border-radius: 13px;
        font-size: 0.52rem;
        font-weight: 700;
        cursor: pointer;
    }

.memory-delete-confirm__cancel {
    border: 1px solid rgba(108, 72, 50, 0.08);
    background: rgba(255, 253, 250, 0.76);
    color: var(--indlu-ink-soft);
}

.memory-delete-confirm__danger {
    border: 0;
    background: #a14d42;
    color: white;
}

/* =========================================================
   MEMORIES FILTER
   ========================================================= */

.memories-filter {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.66);
}

.memories-filter__button {
    min-height: 33px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--indlu-text-muted);
    font-size: 0.53rem;
    font-weight: 700;
    cursor: pointer;
}

    .memories-filter__button > span {
        min-width: 19px;
        height: 19px;
        display: grid;
        place-items: center;
        padding: 0 5px;
        border-radius: 999px;
        background: rgba(108, 72, 50, 0.06);
        font-size: 0.44rem;
    }

.memories-filter__button--active {
    background: var(--indlu-accent);
    color: white;
    box-shadow: 0 4px 11px rgba(185, 85, 53, 0.14);
}

    .memories-filter__button--active > span {
        background: rgba(255, 255, 255, 0.16);
        color: white;
    }

.tonight-card__mode {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin-top: 7px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(220, 116, 76, 0.08);
    color: var(--indlu-accent-dark);
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =========================================================
   HOME HOUSE MODE BADGE
   ========================================================= */

.house-mode-badge {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(108, 72, 50, 0.07);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.72);
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(116, 74, 48, 0.035);
}

.house-mode-badge__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(217, 186, 143, 0.11);
    font-size: 1rem;
}

.house-mode-badge__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .house-mode-badge__copy small {
        color: var(--indlu-text-muted);
        font-size: 0.43rem;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .house-mode-badge__copy strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 0.72rem;
        font-weight: 600;
    }

.house-mode-badge__arrow {
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 1.15rem;
}


/* petites variations suivant le mode */

.house-mode-badge--movie,
.house-mode-badge--music,
.house-mode-badge--gaming {
    background: linear-gradient( 145deg, rgba(220, 116, 76, 0.055), rgba(255, 253, 250, 0.76) );
}

.house-mode-badge--girls {
    background: linear-gradient( 145deg, rgba(217, 186, 143, 0.08), rgba(255, 253, 250, 0.76) );
}

.house-mode-badge--ko {
    background: linear-gradient( 145deg, rgba(163, 171, 136, 0.09), rgba(255, 253, 250, 0.76) );
}

.house-mode-badge--leaving {
    background: linear-gradient( 145deg, rgba(55, 76, 101, 0.045), rgba(255, 253, 250, 0.76) );
}

/* =========================================================
   HOUSE MODE — GLOBAL APP THEME
   ========================================================= */

.indlu-shell {
    transition: background-color .45s ease, color .35s ease;
}


    /* NORMAL */

    .indlu-shell.house-mode--normal {
        --indlu-bg: #f7f1e8;
    }


    /* FILM */

    .indlu-shell.house-mode--movie {
        --indlu-bg: #eee2dc;
        --indlu-accent: #a95344;
        --indlu-accent-dark: #843f35;
        --indlu-sage: #827464;
        --indlu-sage-deep: #65594c;
    }


    /* GAMING */

    .indlu-shell.house-mode--gaming {
        --indlu-bg: #efedf3;
        --indlu-accent: #75658e;
        --indlu-accent-dark: #594a72;
        --indlu-sage: #77738c;
        --indlu-sage-deep: #59556c;
    }


    /* MUSIQUE */

    .indlu-shell.house-mode--music {
        --indlu-bg: #f4e9df;
        --indlu-accent: #a46f4d;
        --indlu-accent-dark: #815438;
        --indlu-sage: #87765d;
        --indlu-sage-deep: #675943;
    }


    /* MAISON KO */

    .indlu-shell.house-mode--ko {
        --indlu-bg: #edf0e8;
        --indlu-accent: #7c876a;
        --indlu-accent-dark: #606a52;
        --indlu-sage: #7b866c;
        --indlu-sage-deep: #5f684f;
    }


    /* FILLES SEULES */

    .indlu-shell.house-mode--girls {
        --indlu-bg: #f7ebe8;
        --indlu-accent: #c27e6e;
        --indlu-accent-dark: #9e6054;
        --indlu-sage: #95836d;
        --indlu-sage-deep: #74634f;
    }


    /* GRAND MÉNAGE */

    .indlu-shell.house-mode--cleaning {
        --indlu-bg: #edf3ed;
        --indlu-accent: #709078;
        --indlu-accent-dark: #52705b;
        --indlu-sage: #718977;
        --indlu-sage-deep: #536858;
    }


    /* ON REÇOIT */

    .indlu-shell.house-mode--guests {
        --indlu-bg: #f8eee4;
        --indlu-accent: #b87a50;
        --indlu-accent-dark: #925c39;
        --indlu-sage: #8f8066;
        --indlu-sage-deep: #6d604b;
    }


    /* ON PART */

    .indlu-shell.house-mode--leaving {
        --indlu-bg: #edf0f1;
        --indlu-accent: #647887;
        --indlu-accent-dark: #485d6b;
        --indlu-sage: #73817b;
        --indlu-sage-deep: #56645f;
    }


    /* MAISON VIDE */

    .indlu-shell.house-mode--empty {
        --indlu-bg: #efeeea;
        --indlu-accent: #77716b;
        --indlu-accent-dark: #59534e;
        --indlu-sage: #7c7d70;
        --indlu-sage-deep: #5f6056;
    }

/* =========================================================
   HOME — STRUCTURE V2
   ========================================================= */

.home-page {
    display: flex;
    flex-direction: column;
    gap: 26px;
}


/* HERO + QUOTE */

.home-opening {
    display: flex;
    flex-direction: column;
}


/* HOUSEHOLD */

.home-household {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* MAIN CONTENT */

.home-main {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 18px;
    align-items: start;
}

.home-main__left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-main__right {
    min-width: 0;
}


/* MOBILE */

@media (max-width: 720px) {

    .home-page {
        gap: 22px;
    }

    .home-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-main__left {
        gap: 16px;
    }
}

/* =========================================================
   HOME DASHBOARD V3
   Practical / living house
   ========================================================= */

.home-dashboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 23px;
}


/* =========================================================
   HEADER
   ========================================================= */

.home-dashboard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 2px 0;
}

.home-dashboard__date {
    color: var(--indlu-accent-dark);
    font-size: .49rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-dashboard__header h1 {
    margin: 4px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.045em;
}

.home-dashboard__header p {
    margin: 6px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: .68rem;
}

.home-dashboard__profile {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    border: 3px solid rgba(255, 253, 248, .95);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 1px rgba(108, 72, 50, .09), 0 6px 16px rgba(108, 72, 50, .07);
    cursor: pointer;
}

    .home-dashboard__profile img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }


/* =========================================================
   CURRENT MODE
   ========================================================= */

.home-current-mode {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid color-mix( in srgb, var(--indlu-accent) 16%, transparent );
    border-radius: 20px;
    background: linear-gradient( 135deg, color-mix( in srgb, var(--indlu-accent) 7%, rgba(255, 253, 250, .90) ), rgba(255, 253, 250, .73) );
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(90, 58, 39, .04);
}

.home-current-mode__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: color-mix( in srgb, var(--indlu-accent) 10%, white );
    font-size: 1.25rem;
}

.home-current-mode__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .home-current-mode__content small {
        color: var(--indlu-accent-dark);
        font-size: .43rem;
        font-weight: 900;
        letter-spacing: .08em;
    }

    .home-current-mode__content strong {
        margin-top: 2px;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .82rem;
        font-weight: 600;
    }

    .home-current-mode__content > span {
        margin-top: 2px;
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: .49rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.home-current-mode__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--indlu-accent-dark);
    font-size: .49rem;
    font-weight: 800;
}


/* =========================================================
   GENERIC SECTION
   ========================================================= */

.home-section {
    min-width: 0;
}

.home-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 2px;
}

    .home-section__header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.02rem;
        font-weight: 600;
    }

.home-section__link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-accent-dark);
    font-size: .5rem;
    font-weight: 800;
    cursor: pointer;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.home-quick-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

    .home-quick-actions button {
        min-width: 0;
        min-height: 71px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 3px;
        border: 1px solid rgba(108, 72, 50, .07);
        border-radius: 17px;
        background: rgba(255, 253, 250, .70);
        color: var(--indlu-ink);
        cursor: pointer;
        transition: transform .15s ease, background .15s ease;
    }

        .home-quick-actions button:active {
            transform: scale(.97);
        }

        .home-quick-actions button > span {
            font-size: 1.12rem;
        }

    .home-quick-actions strong {
        overflow: hidden;
        max-width: 100%;
        font-family: var(--indlu-serif);
        font-size: .51rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================================
   TIMELINE
   ========================================================= */

.home-live-section {
    padding: 15px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 23px;
    background: rgba(255, 253, 250, .52);
    box-shadow: 0 8px 24px rgba(90, 58, 39, .035);
}

.home-live-section__count {
    color: var(--indlu-text-muted);
    font-size: .48rem;
}


/*
   TodayTimeline possède déjà son propre container.
   Dans l'accueil on retire la sensation de "carte dans carte".
*/

.home-live-section .timeline-section {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}


/* =========================================================
   PRIORITIES
   ========================================================= */

.home-priority-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-priority-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 21px;
    background: rgba(255, 253, 250, .72);
    box-shadow: 0 6px 18px rgba(90, 58, 39, .035);
}

    .home-priority-card > header {
        display: flex;
        align-items: center;
        gap: 7px;
    }

.home-priority-card__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(217, 186, 143, .11);
    font-size: .95rem;
}

.home-priority-card__type {
    color: var(--indlu-accent-dark);
    font-size: .43rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.home-priority-card h3 {
    margin: 11px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.15;
}

.home-priority-card > p {
    margin: 5px 0 0;
    color: var(--indlu-text-muted);
    font-size: .5rem;
    line-height: 1.4;
}

.home-priority-card > footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 13px;
}

.home-priority-card__primary,
.home-priority-card__secondary {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .48rem;
    font-weight: 800;
    cursor: pointer;
}

.home-priority-card__primary {
    border: 0;
    background: var(--indlu-accent);
    color: white;
}

.home-priority-card__secondary {
    border: 1px solid rgba(108, 72, 50, .08);
    background: rgba(255, 253, 250, .72);
    color: var(--indlu-ink-soft);
}


/* QUEST PROGRESS */

.home-priority-progress {
    margin-top: 12px;
}

    .home-priority-progress > div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        color: var(--indlu-text-muted);
        font-size: .46rem;
    }

        .home-priority-progress > div strong {
            color: var(--indlu-accent-dark);
        }

.home-priority-progress__track {
    height: 6px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(108, 72, 50, .08);
}

    .home-priority-progress__track > span {
        height: 100%;
        display: block;
        border-radius: inherit;
        background: var(--indlu-accent);
    }


/* =========================================================
   LATEST MEMORY
   ========================================================= */

.home-latest-memory {
    position: relative;
    width: 100%;
    min-height: 108px;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 16px;
    gap: 13px;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 21px;
    background: rgba(255, 253, 250, .72);
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(90, 58, 39, .035);
}

.home-latest-memory__photo,
.home-latest-memory__fallback {
    width: 116px;
    min-height: 108px;
}

    .home-latest-memory__photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.home-latest-memory__fallback {
    display: grid;
    place-items: center;
    background: rgba(217, 186, 143, .10);
    font-size: 1.5rem;
}

.home-latest-memory__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
}

    .home-latest-memory__copy small {
        color: var(--indlu-text-muted);
        font-size: .44rem;
    }

    .home-latest-memory__copy strong {
        margin-top: 4px;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .79rem;
        font-weight: 600;
    }

    .home-latest-memory__copy > span {
        margin-top: 3px;
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: .49rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.home-latest-memory__favorite {
    position: absolute;
    top: 10px;
    right: 12px;
    color: var(--indlu-accent);
    font-size: .75rem;
}

.home-latest-memory__arrow {
    align-self: center;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 1.2rem;
}

.home-empty-memory {
    width: 100%;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 14px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 18px;
    background: rgba(255, 253, 250, .70);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .home-empty-memory > div {
        display: flex;
        flex-direction: column;
    }

    .home-empty-memory strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .67rem;
    }

    .home-empty-memory small {
        margin-top: 2px;
        color: var(--indlu-text-muted);
        font-size: .47rem;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .home-dashboard {
        gap: 20px;
    }

    .home-dashboard__header h1 {
        font-size: 1.75rem;
    }

    .home-dashboard__profile {
        width: 47px;
        height: 47px;
    }

    .home-current-mode {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding: 11px 12px;
    }

    .home-current-mode__icon {
        width: 44px;
        height: 44px;
    }

    .home-priority-grid {
        grid-template-columns: 1fr;
    }

    .home-latest-memory {
        grid-template-columns: 96px minmax(0, 1fr) 13px;
        min-height: 95px;
    }

    .home-latest-memory__photo,
    .home-latest-memory__fallback {
        width: 96px;
        min-height: 95px;
    }
}

/* =========================================================
   HOUSE MODE V2
   ========================================================= */

.house-mode-v2 {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* HEADER */

.house-mode-v2__header {
    padding: 3px 2px 0;
}

.house-mode-v2__house {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: .73rem;
}

.house-mode-v2__header h1 {
    margin: 4px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.045em;
}

.house-mode-v2__header p {
    margin: 7px 0 0;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: .66rem;
    font-style: italic;
}


/* CURRENT */

.house-mode-current {
    position: relative;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 17px;
    border: 1px solid color-mix( in srgb, var(--indlu-accent) 18%, transparent );
    border-radius: 22px;
    background: linear-gradient( 135deg, color-mix( in srgb, var(--indlu-accent) 8%, #fffaf5 ), rgba(255, 253, 250, .75) );
    box-shadow: 0 8px 23px rgba(81, 52, 37, .05);
}

.house-mode-current__icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: color-mix( in srgb, var(--indlu-accent) 11%, white );
    font-size: 1.5rem;
}

.house-mode-current__copy {
    min-width: 0;
}

    .house-mode-current__copy > span {
        color: var(--indlu-accent-dark);
        font-size: .42rem;
        font-weight: 900;
        letter-spacing: .09em;
    }

.house-mode-current h2 {
    margin: 3px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.house-mode-current p {
    margin: 3px 0 0;
    color: var(--indlu-text-muted);
    font-size: .51rem;
}

.house-mode-current__status {
    position: absolute;
    right: 13px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--indlu-text-muted);
    font-size: .43rem;
}

    .house-mode-current__status > span {
        color: var(--indlu-accent);
    }


/* SECTION */

.house-mode-v2__section-header {
    margin-bottom: 10px;
    padding: 0 2px;
}

    .house-mode-v2__section-header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .95rem;
        font-weight: 600;
    }


/* GRID */

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

.house-mode-option {
    position: relative;
    min-width: 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 17px;
    background: rgba(255, 253, 250, .70);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

    .house-mode-option:active {
        transform: scale(.98);
    }

.house-mode-option__icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(217, 186, 143, .10);
    font-size: 1rem;
}

.house-mode-option__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .house-mode-option__copy strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .65rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .house-mode-option__copy small {
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: .43rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.house-mode-option--active {
    border-color: color-mix( in srgb, var(--indlu-accent) 35%, transparent );
    background: color-mix( in srgb, var(--indlu-accent) 7%, rgba(255, 253, 250, .88) );
}

    .house-mode-option--active
    .house-mode-option__icon {
        background: color-mix( in srgb, var(--indlu-accent) 12%, white );
    }

.house-mode-option__check {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--indlu-accent);
    color: white;
    font-size: .45rem;
    font-weight: 900;
}


/* CONTEXT */

.house-mode-context {
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 19px;
    background: rgba(255, 253, 250, .64);
}

.house-mode-context__icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(163, 171, 136, .10);
    font-size: 1.15rem;
}

.house-mode-context h2 {
    margin: 3px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: .75rem;
    font-weight: 600;
}

.house-mode-context p {
    margin: 4px 0 0;
    color: var(--indlu-text-muted);
    font-size: .49rem;
    line-height: 1.45;
}


/* LEAVING */

.house-mode-context--leaving {
    display: block;
}

.house-mode-context__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .house-mode-context__header h2 {
        margin: 3px 0 0;
    }

.house-mode-context__counter {
    min-width: 43px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(220, 116, 76, .08);
    color: var(--indlu-accent-dark);
    font-size: .48rem;
    font-weight: 800;
    text-align: center;
}


/* SMALL SCREEN */

@media (max-width: 370px) {

    .house-mode-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   TIMELINE PAGE
   ========================================================= */

.timeline-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.timeline-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

    .timeline-page__header h1 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 2rem;
        font-weight: 400;
        line-height: 1;
        letter-spacing: -.045em;
    }

    .timeline-page__header p {
        max-width: 290px;
        margin: 7px 0 0;
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: .64rem;
        line-height: 1.45;
    }

.timeline-page__add {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--indlu-accent);
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(185, 85, 53, .15);
}

/* FILTERS */

.timeline-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-filter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

    .timeline-filter-row::-webkit-scrollbar {
        display: none;
    }

.timeline-filter {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 999px;
    background: rgba(255, 253, 250, .70);
    color: var(--indlu-text-muted);
    font-size: .49rem;
    font-weight: 700;
    cursor: pointer;
}

    .timeline-filter img {
        width: 23px;
        height: 23px;
        border-radius: 50%;
        object-fit: cover;
    }

.timeline-filter--active {
    border-color: color-mix(in srgb, var(--indlu-accent) 24%, transparent);
    background: color-mix(in srgb, var(--indlu-accent) 8%, white);
    color: var(--indlu-accent-dark);
}

/* HISTORY */

.timeline-history {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.timeline-day__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.timeline-day__eyebrow {
    color: var(--indlu-accent-dark);
    font-size: .43rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.timeline-day__header h2 {
    margin: 3px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1rem;
    font-weight: 600;
}

.timeline-day__count {
    color: var(--indlu-text-muted);
    font-size: .46rem;
}

.timeline-day__events {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 21px;
    background: rgba(255, 253, 250, .68);
}

/* EVENT */

.timeline-history-item {
    width: 100%;
    display: grid;
    grid-template-columns: 43px 14px minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: start;
    padding: 13px 11px;
    border: 0;
    border-bottom: 1px solid rgba(108, 72, 50, .055);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .timeline-history-item:last-child {
        border-bottom: 0;
    }

    .timeline-history-item time {
        padding-top: 2px;
        color: var(--indlu-accent-dark);
        font-family: var(--indlu-serif);
        font-size: .57rem;
        font-weight: 600;
    }

.timeline-history-item__line {
    position: relative;
    min-height: 49px;
    display: flex;
    justify-content: center;
}

    .timeline-history-item__line::after {
        content: "";
        position: absolute;
        top: 12px;
        bottom: -17px;
        width: 1px;
        background: rgba(181, 127, 91, .20);
    }

.timeline-history-item:last-child .timeline-history-item__line::after {
    display: none;
}

.timeline-history-item__dot {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 2px;
    border: 2px solid rgba(255, 253, 250, .95);
    border-radius: 50%;
}

.timeline-history-item__dot--ghassen {
    background: #ba705f;
}

.timeline-history-item__dot--salma {
    background: #e5ac80;
}

.timeline-history-item__dot--chloe {
    background: #87927b;
}

.timeline-history-item__dot--zoe {
    background: #c4a780;
}

.timeline-history-item__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.timeline-history-item__meta {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

    .timeline-history-item__meta strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .64rem;
    }

    .timeline-history-item__meta small {
        color: var(--indlu-text-muted);
        font-size: .43rem;
    }

.timeline-history-item__title {
    margin-top: 3px;
    color: var(--indlu-ink-soft);
    font-family: var(--indlu-serif);
    font-size: .58rem;
    font-weight: 600;
}

.timeline-history-item__description {
    margin-top: 2px;
    color: var(--indlu-text-muted);
    font-size: .49rem;
    line-height: 1.4;
}

.timeline-history-item__icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(217, 186, 143, .09);
    font-size: .72rem;
}

/* EMPTY */

.timeline-page__loading {
    padding: 35px;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    text-align: center;
}

.timeline-page__empty {
    padding: 35px 20px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 21px;
    background: rgba(255, 253, 250, .67);
    text-align: center;
}

    .timeline-page__empty > span {
        font-size: 1.5rem;
    }

    .timeline-page__empty h2 {
        margin: 8px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .9rem;
    }

    .timeline-page__empty p {
        margin: 5px 0 0;
        color: var(--indlu-text-muted);
        font-size: .5rem;
    }

/* =========================================================
   HOME — TODAY TIMELINE EMBED
   ========================================================= */

.home-live-section .timeline-section {
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

/* Le titre est déjà affiché par Home.razor */
.home-live-section .timeline-section__header {
    display: none;
}

/* Timeline réellement utile, sans énorme zone vide */
.home-live-section .timeline-list {
    min-height: 0;
    max-height: 340px;
    padding: 5px 8px 5px 0;
    gap: 20px;
    overflow-y: auto;
}

    /* Repositionnement de la ligne verticale */
    .home-live-section .timeline-list::before {
        top: 8px;
        bottom: 8px;
    }

/* Un peu plus d'air dans la carte principale */
.home-live-section {
    padding-bottom: 16px;
}

.timeline-item__meta {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

    .timeline-item__meta strong {
        color: var(--indlu-ink);
        font-size: .63rem;
        font-weight: 800;
    }

    .timeline-item__meta span {
        color: var(--indlu-text-muted);
        font-size: .48rem;
    }

.timeline-item__title {
    display: block;
    margin-top: 2px;
}

.timeline-item__description {
    display: block;
    margin-top: 2px;
}

.home-live-section__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-live-section__header .home-section__link {
    white-space: nowrap;
}

.home-live-section__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-live-section__count {
    color: var(--indlu-text-muted);
    font-size: .48rem;
    white-space: nowrap;
}

.home-live-section__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-accent-dark);
    font-size: .49rem;
    font-weight: 800;
    cursor: pointer;
}

    .home-live-section__link span {
        font-size: .75rem;
        line-height: 1;
    }

/* =========================================================
   MEAL PAGE
   ========================================================= */

.meal-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* HEADER */

.meal-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

    .meal-page__header h1 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 2rem;
        font-weight: 400;
        line-height: 1;
        letter-spacing: -.045em;
    }

    .meal-page__header p {
        margin: 7px 0 0;
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: .65rem;
    }

.meal-page__add {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--indlu-accent);
    color: white;
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 7px 17px rgba(185, 85, 53, .15);
}


/* SUGGESTION */

.meal-suggestion {
    padding: 18px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 26px;
    background: linear-gradient( 145deg, rgba(255, 253, 249, .98), rgba(255, 247, 237, .92) );
    box-shadow: 0 10px 28px rgba(116, 74, 48, .06);
}

.meal-suggestion__visual {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 24px;
    background: rgba(220, 116, 76, .08);
    font-size: 2rem;
}

.meal-suggestion__copy {
    text-align: center;
}

    .meal-suggestion__copy h2 {
        margin: 5px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.55rem;
        font-weight: 600;
        line-height: 1.05;
    }

    .meal-suggestion__copy p {
        margin: 6px 0 0;
        color: var(--indlu-text-muted);
        font-size: .56rem;
    }

.meal-suggestion__actions {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 8px;
    margin-top: 18px;
}

    .meal-suggestion__actions button {
        min-height: 46px;
        border-radius: 15px;
        font-size: .55rem;
        font-weight: 800;
        cursor: pointer;
    }

.meal-suggestion__yes {
    border: 0;
    background: var(--indlu-sage-dark);
    color: white;
}

    .meal-suggestion__yes span {
        margin-right: 4px;
    }

.meal-suggestion__another {
    border: 1px solid rgba(108, 72, 50, .09);
    background: rgba(255, 253, 250, .82);
    color: var(--indlu-ink);
}


/* SELECTED */

.meal-selected {
    position: relative;
    padding: 18px;
    border-radius: 24px;
    background: color-mix( in srgb, var(--indlu-sage) 12%, rgba(255, 253, 250, .92) );
    border: 1px solid color-mix( in srgb, var(--indlu-sage) 22%, transparent );
}

.meal-selected__eyebrow {
    color: var(--indlu-sage-deep);
    font-size: .44rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.meal-selected__content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 9px;
}

.meal-selected__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 17px;
    background: rgba(255, 255, 255, .50);
    font-size: 1.35rem;
}

.meal-selected h2 {
    margin: 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.15rem;
}

.meal-selected p {
    margin: 3px 0 0;
    color: var(--indlu-text-muted);
    font-size: .5rem;
}

.meal-selected__change {
    margin-top: 13px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-sage-deep);
    font-size: .5rem;
    font-weight: 800;
    cursor: pointer;
}


/* SECTION */

.meal-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meal-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

    .meal-section__header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .95rem;
        font-weight: 600;
    }

.meal-section__count {
    color: var(--indlu-text-muted);
    font-size: .47rem;
}

.meal-section__clear {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-accent-dark);
    font-size: .48rem;
    font-weight: 800;
    cursor: pointer;
}


/* CATEGORIES */

.meal-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.meal-category {
    min-height: 63px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 17px;
    background: rgba(255, 253, 250, .68);
    color: var(--indlu-ink);
    cursor: pointer;
}

    .meal-category > span {
        font-size: 1rem;
    }

    .meal-category strong {
        font-family: var(--indlu-serif);
        font-size: .51rem;
        font-weight: 600;
    }

.meal-category--active {
    border-color: color-mix( in srgb, var(--indlu-accent) 30%, transparent );
    background: color-mix( in srgb, var(--indlu-accent) 8%, white );
    color: var(--indlu-accent-dark);
}


/* IDEAS */

.meal-ideas {
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 20px;
    background: rgba(255, 253, 250, .68);
}

.meal-idea {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 39px;
    border-bottom: 1px solid rgba(108, 72, 50, .055);
}

    .meal-idea:last-child {
        border-bottom: 0;
    }

.meal-idea__main {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 12px;
    gap: 9px;
    align-items: center;
    padding: 10px 9px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.meal-idea__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(217, 186, 143, .10);
    font-size: 1.05rem;
}

.meal-idea__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .meal-idea__copy strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .64rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meal-idea__copy small {
        color: var(--indlu-text-muted);
        font-size: .44rem;
    }

.meal-idea__arrow {
    color: var(--indlu-accent-dark);
    font-size: .9rem;
}

.meal-idea__reject {
    border: 0;
    border-left: 1px solid rgba(108, 72, 50, .055);
    background: transparent;
    color: #b29c90;
    font-size: .85rem;
    cursor: pointer;
}


/* HISTORY */

.meal-history {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 19px;
    background: rgba(255, 253, 250, .64);
}

.meal-history__item {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(108, 72, 50, .055);
}

    .meal-history__item:last-child {
        border-bottom: 0;
    }

.meal-history__icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(217, 186, 143, .08);
}

.meal-history__item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meal-history strong {
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: .61rem;
}

.meal-history small {
    color: var(--indlu-text-muted);
    font-size: .44rem;
}


/* EMPTY / ERROR */

.meal-empty,
.meal-section__empty {
    padding: 27px 18px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 20px;
    background: rgba(255, 253, 250, .66);
    color: var(--indlu-text-muted);
    text-align: center;
}

    .meal-empty > span {
        font-size: 1.5rem;
    }

    .meal-empty h2 {
        margin: 8px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .85rem;
    }

    .meal-empty p {
        margin: 5px auto 0;
        max-width: 235px;
        font-size: .49rem;
        line-height: 1.45;
    }

    .meal-empty button {
        margin-top: 14px;
        padding: 9px 13px;
        border: 0;
        border-radius: 13px;
        background: var(--indlu-accent);
        color: white;
        font-size: .5rem;
        font-weight: 800;
        cursor: pointer;
    }

.meal-section__empty {
    padding: 18px;
    font-size: .49rem;
}

.meal-loading {
    min-height: 65dvh;
    display: grid;
    place-items: center;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
}

.meal-error {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(184, 84, 55, .08);
    color: var(--indlu-accent-dark);
    font-size: .5rem;
}

/* =========================================================
   MEAL VOTE V2
   ========================================================= */

.meal-vote-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* HEADER */

.meal-vote-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

    .meal-vote-header h1 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.9rem;
        font-weight: 500;
        line-height: 1;
        letter-spacing: -.04em;
    }

    .meal-vote-header p {
        max-width: 290px;
        margin: 8px 0 0;
        color: var(--indlu-text-muted);
        font-family: var(--indlu-serif);
        font-size: .61rem;
        line-height: 1.4;
    }

.meal-vote-header__add {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--indlu-ink);
    color: white;
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
}


/* POLL CARD */

.meal-poll {
    overflow: hidden;
    border: 1px solid rgba(102, 76, 55, .08);
    border-radius: 25px;
    background: rgba(255, 253, 249, .86);
    box-shadow: 0 9px 26px rgba(101, 73, 53, .055);
}

.meal-poll__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 17px 13px;
}

.meal-poll__eyebrow {
    color: var(--indlu-accent-dark);
    font-size: .43rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.meal-poll__header h2 {
    margin: 4px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.meal-poll__header p {
    margin: 4px 0 0;
    color: var(--indlu-text-muted);
    font-size: .48rem;
}

.meal-poll__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
    font-size: 1.1rem;
}


/* OPTIONS */

.meal-poll__options {
    padding: 0 12px;
}

.meal-option {
    border-top: 1px solid rgba(105, 76, 56, .07);
}

.meal-option__main {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 19px;
    gap: 9px;
    align-items: center;
    padding: 12px 3px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.meal-option__food {
    font-size: 1.35rem;
    text-align: center;
}

.meal-option__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.meal-option__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .meal-option__title-row strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .72rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.meal-option__winner {
    padding: 2px 5px;
    border-radius: 999px;
    background: color-mix( in srgb, var(--indlu-sage) 15%, white );
    color: var(--indlu-sage-deep);
    font-family: var(--indlu-sans);
    font-size: .36rem;
    font-weight: 900;
    text-transform: uppercase;
}


/* BARS */

.meal-option__bar {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(111, 85, 66, .075);
}

    .meal-option__bar > span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: var(--indlu-accent);
        transition: width .28s ease;
    }

.meal-option:first-child
.meal-option__bar > span {
    background: var(--indlu-sage-dark);
}

.meal-option--selected
.meal-option__bar > span {
    background: var(--indlu-sage-deep);
}


/* AVATARS */

.meal-option__voters {
    display: flex;
    min-width: 75px;
}

.meal-option__avatar {
    width: 27px;
    height: 27px;
    display: block;
    margin-left: -5px;
    overflow: hidden;
    border: 1px solid rgba(112, 83, 62, .08);
    border-radius: 50%;
    background: rgba(116, 88, 69, .035);
}

    .meal-option__avatar:first-child {
        margin-left: 0;
    }

.meal-option__avatar--filled {
    padding: 2px;
    border-color: rgba(182, 105, 70, .42);
    background: white;
}

.meal-option__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.meal-option__count {
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: .68rem;
    font-weight: 500;
    text-align: right;
}


/* POLL FOOTER */

.meal-poll__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1px;
    padding: 12px 15px 14px;
    border-top: 1px solid rgba(105, 76, 56, .07);
}

.meal-poll__last-vote {
    min-width: 0;
    overflow: hidden;
    color: var(--indlu-text-muted);
    font-size: .48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meal-poll__finalize {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(190, 115, 77, .18);
    border-radius: 999px;
    background: rgba(222, 174, 122, .11);
    color: var(--indlu-accent-dark);
    font-family: var(--indlu-serif);
    font-size: .49rem;
    font-weight: 600;
    cursor: pointer;
}

    .meal-poll__finalize:disabled {
        opacity: .4;
    }

.meal-poll__done {
    padding: 7px 10px;
    border-radius: 999px;
    background: color-mix( in srgb, var(--indlu-sage) 13%, white );
    color: var(--indlu-sage-deep);
    font-size: .45rem;
    font-weight: 800;
}


/* VOTERS */

.meal-voters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meal-voters__header h2 {
    margin: 3px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: .93rem;
    font-weight: 600;
}

.meal-voters__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.meal-voter {
    min-width: 0;
    min-height: 57px;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 17px;
    background: rgba(255, 253, 250, .66);
    text-align: left;
    cursor: pointer;
}

    .meal-voter img {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        object-fit: cover;
    }

    .meal-voter > span:nth-child(2) {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .meal-voter strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .56rem;
    }

    .meal-voter small {
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: .39rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.meal-voter--active {
    border-color: color-mix( in srgb, var(--indlu-sage) 30%, transparent );
    background: color-mix( in srgb, var(--indlu-sage) 8%, white );
}

.meal-voter__active {
    color: var(--indlu-sage-deep);
    font-size: .55rem;
    font-weight: 900;
}


/* ADD OPTION */

.meal-vote-add button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px dashed rgba(108, 72, 50, .14);
    border-radius: 17px;
    background: rgba(255, 253, 250, .40);
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: .55rem;
    cursor: pointer;
}

    .meal-vote-add button > span {
        font-family: var(--indlu-sans);
        font-size: .9rem;
    }


/* VOTE SHEET */

.meal-vote-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 14px calc(82px + env(safe-area-inset-bottom));
    background: rgba(50, 37, 29, .22);
    backdrop-filter: blur(4px);
}

.meal-vote-sheet {
    width: min(100%, 480px);
    padding: 9px 15px 15px;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 25px;
    background: var(--indlu-surface);
    box-shadow: 0 22px 55px rgba(67, 47, 34, .19);
}

.meal-vote-sheet__handle {
    width: 31px;
    height: 3px;
    display: block;
    margin: 0 auto 13px;
    border-radius: 999px;
    background: rgba(77, 58, 45, .14);
}

.meal-vote-sheet header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-vote-sheet__icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(217, 186, 143, .10);
    font-size: 1.3rem;
}

.meal-vote-sheet header small {
    color: var(--indlu-accent-dark);
    font-size: .4rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.meal-vote-sheet h2 {
    margin: 2px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.05rem;
}

.meal-vote-sheet > p {
    margin: 14px 0 8px;
    color: var(--indlu-text-muted);
    font-size: .5rem;
}

.meal-vote-sheet__members {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meal-vote-sheet__member {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 53px;
    padding: 7px 9px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 16px;
    background: rgba(255, 253, 250, .70);
    color: var(--indlu-ink);
    text-align: left;
    cursor: pointer;
}

    .meal-vote-sheet__member img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
    }

    .meal-vote-sheet__member > span:nth-child(2) {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .meal-vote-sheet__member strong {
        font-family: var(--indlu-serif);
        font-size: .59rem;
    }

    .meal-vote-sheet__member small {
        color: var(--indlu-text-muted);
        font-size: .41rem;
    }

.meal-vote-sheet__member--active {
    border-color: color-mix( in srgb, var(--indlu-sage) 28%, transparent );
    background: color-mix( in srgb, var(--indlu-sage) 8%, white );
}

.meal-vote-sheet__close {
    width: 100%;
    min-height: 42px;
    margin-top: 11px;
    border: 0;
    border-radius: 14px;
    background: rgba(109, 83, 65, .065);
    color: var(--indlu-text-muted);
    font-size: .49rem;
    font-weight: 800;
    cursor: pointer;
}


/* EMPTY / STATES */

.meal-vote-empty {
    padding: 33px 20px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 23px;
    background: rgba(255, 253, 250, .68);
    text-align: center;
}

    .meal-vote-empty > span {
        font-size: 1.7rem;
    }

    .meal-vote-empty h2 {
        margin: 8px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .9rem;
    }

    .meal-vote-empty p {
        max-width: 240px;
        margin: 5px auto 0;
        color: var(--indlu-text-muted);
        font-size: .48rem;
        line-height: 1.45;
    }

    .meal-vote-empty button {
        margin-top: 14px;
        padding: 9px 13px;
        border: 0;
        border-radius: 13px;
        background: var(--indlu-accent);
        color: white;
        font-size: .49rem;
        font-weight: 800;
    }

.meal-vote-loading {
    min-height: 65dvh;
    display: grid;
    place-items: center;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
}

.meal-vote-error {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(184, 84, 55, .08);
    color: var(--indlu-accent-dark);
    font-size: .49rem;
}

/* =========================================================
   MEAL VOTE BUILDER
   ========================================================= */

.meal-choice-builder {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-choice-builder__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

    .meal-choice-builder__header h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .92rem;
    }

    .meal-choice-builder__header > span {
        color: var(--indlu-text-muted);
        font-size: .46rem;
    }

.meal-choice-builder__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meal-choice-builder__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 19px;
    background: rgba(255, 253, 250, .72);
}

.meal-choice-builder__number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(222, 126, 82, .09);
    color: var(--indlu-accent-dark);
    font-family: var(--indlu-serif);
    font-size: .55rem;
    font-weight: 700;
}

.meal-choice-builder__fields {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .meal-choice-builder__fields
    .quick-add-text-input {
        min-height: 43px;
        padding: 0 11px;
        border-radius: 13px;
    }

.meal-choice-builder__note {
    width: 100%;
    padding: 0 3px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: .46rem;
}

.meal-choice-builder__remove {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(155, 92, 71, .07);
    color: var(--indlu-text-muted);
    cursor: pointer;
}

.meal-choice-builder__add {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed rgba(108, 72, 50, .15);
    border-radius: 15px;
    background: transparent;
    color: var(--indlu-accent-dark);
    font-family: var(--indlu-serif);
    font-size: .52rem;
    font-weight: 600;
    cursor: pointer;
}

    .meal-choice-builder__add span {
        font-family: var(--indlu-sans);
        font-size: .85rem;
    }

.meal-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meal-author__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.meal-author__member {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 53px;
    padding: 7px 10px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 16px;
    background: rgba(255, 253, 250, .68);
    color: var(--indlu-ink);
    cursor: pointer;
}

    .meal-author__member img {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        object-fit: cover;
    }

    .meal-author__member span {
        font-family: var(--indlu-serif);
        font-size: .55rem;
        font-weight: 600;
    }

.meal-author__member--active {
    border-color: color-mix( in srgb, var(--indlu-sage) 30%, transparent );
    background: color-mix( in srgb, var(--indlu-sage) 8%, white );
}

/* =========================================================
   HOME ACTIVE POLL - COMPACT
   ========================================================= */

.home-active-poll {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 10px;
    min-height: 67px;
    padding: 10px 12px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 19px;
    background: linear-gradient( 135deg, rgba(255, 253, 249, .91), rgba(255, 247, 237, .76) );
    color: inherit;
    text-align: left;
    box-shadow: 0 6px 18px rgba(103, 73, 52, .045);
    cursor: pointer;
}


/* ICON */

.home-active-poll__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(218, 128, 84, .09);
    font-size: 1.05rem;
}


/* CONTENT */

.home-active-poll__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

    .home-active-poll__content small {
        color: var(--indlu-accent-dark);
        font-size: .38rem;
        font-weight: 900;
        letter-spacing: .08em;
    }

    .home-active-poll__content strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .65rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-active-poll__content > span {
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: .42rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* LEADER */

.home-active-poll__leader {
    min-width: 58px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

    .home-active-poll__leader strong {
        max-width: 85px;
        overflow: hidden;
        color: var(--indlu-sage-deep);
        font-family: var(--indlu-serif);
        font-size: .5rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-active-poll__leader small {
        color: var(--indlu-text-muted);
        font-size: .37rem;
    }


/* ARROW */

.home-active-poll__arrow {
    color: var(--indlu-accent-dark);
    font-size: .85rem;
}

/* =========================================================
   TIMELINE TYPOGRAPHY — CLEANER
   ========================================================= */

.timeline-item__content,
.timeline-item__content *,
.timeline-item__meta,
.timeline-item__title,
.timeline-item__description {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.timeline-item__title {
    color: var(--indlu-ink);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.012em;
}

.timeline-item__description {
    margin-top: 3px;
    color: var(--indlu-text-muted);
    font-size: .49rem;
    font-weight: 400;
    line-height: 1.4;
}

.timeline-item__meta strong {
    color: var(--indlu-ink);
    font-size: .51rem;
    font-weight: 700;
}

.timeline-item__meta span {
    color: var(--indlu-text-muted);
    font-size: .42rem;
    font-weight: 500;
}

.timeline-item time {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .49rem;
    font-weight: 700;
}



/* =========================================================
   HOME QUICK ACTIONS — COMPACT GRID
   ========================================================= */

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.home-quick-card {
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(108, 72, 50, .06);
    border-radius: 18px;
    background: rgba(255, 253, 250, .76);
    color: var(--indlu-ink);
    text-align: left;
    box-shadow: 0 5px 16px rgba(80, 58, 43, .035);
    cursor: pointer;
}

.home-quick-card__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(218, 168, 116, .11);
    font-size: .95rem;
}

.home-quick-card__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .home-quick-card__text strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-sans);
        font-size: .48rem;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-quick-card__text small {
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-family: var(--indlu-sans);
        font-size: .38rem;
        font-weight: 500;
        text-overflow: ellipsis;
        white-space: nowrap;
    }



/* MOBILE */

@media (max-width: 430px) {

    .home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* =========================================================
   HOUSE CASES
   ========================================================= */

.cases-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* HEADER */

.cases-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

    .cases-header h1 {
        margin: 4px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.65rem;
        font-weight: 500;
        line-height: 1.04;
        letter-spacing: -.035em;
    }

    .cases-header p {
        margin: 6px 0 0;
        color: var(--indlu-text-muted);
        font-size: .5rem;
    }

.cases-header__add {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--indlu-ink);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}


/* SUMMARY */

.cases-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 18px;
    background: rgba(255, 253, 250, .68);
}

    .cases-summary > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 10px 5px;
        border-right: 1px solid rgba(108, 72, 50, .055);
    }

        .cases-summary > div:last-child {
            border-right: 0;
        }

    .cases-summary small {
        color: var(--indlu-text-muted);
        font-size: .33rem;
        font-weight: 850;
        letter-spacing: .08em;
    }

    .cases-summary strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .75rem;
    }


/* LIST */

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* CARD */

.case-card {
    padding: 13px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 21px;
    background: rgba(255, 253, 250, .73);
    box-shadow: 0 7px 22px rgba(90, 61, 44, .035);
    cursor: pointer;
}

.case-card__header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 15px;
    align-items: center;
    gap: 10px;
}

.case-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(218, 168, 116, .11);
    font-size: 1.15rem;
}

.case-card__title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .case-card__title strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .68rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .case-card__title span {
        color: var(--indlu-text-muted);
        font-size: .4rem;
    }

.case-card__more {
    color: var(--indlu-text-muted);
    font-size: .85rem;
}


/* DESCRIPTION */

.case-card__description {
    margin: 9px 0 0 52px;
    color: var(--indlu-text-muted);
    font-size: .45rem;
    line-height: 1.4;
}


/* SUSPECTS */

.case-card__suspects-label {
    margin-top: 12px;
    color: var(--indlu-text-muted);
    font-size: .38rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.case-card__suspects {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 7px;
}

.case-suspect {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .case-suspect img {
        width: 43px;
        height: 43px;
        display: block;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, .88);
        box-shadow: 0 0 0 1px rgba(108, 72, 50, .10);
    }

    .case-suspect span {
        overflow: hidden;
        max-width: 100%;
        color: var(--indlu-ink);
        font-family: var(--indlu-sans);
        font-size: .39rem;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.case-suspect--responsible img {
    box-shadow: 0 0 0 2px rgba(88, 112, 76, .28);
}

.case-suspect--responsible span {
    color: var(--indlu-sage-deep);
    font-weight: 800;
}


/* STATUS */

.case-card__status {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(218, 168, 116, .09);
}

.case-card__status-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    font-size: .65rem;
}

.case-card__status > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.case-card__status strong {
    color: var(--indlu-accent-dark);
    font-size: .45rem;
}

.case-card__status small {
    color: var(--indlu-text-muted);
    font-size: .37rem;
}

.case-card__status--resolved {
    background: rgba(100, 125, 84, .08);
}

    .case-card__status--resolved strong {
        color: var(--indlu-sage-deep);
    }

.case-card__status--contested {
    background: rgba(194, 125, 64, .09);
}


/* RESOLVED CARD */

.case-card--resolved {
    background: rgba(251, 251, 246, .70);
}


/* EMPTY */

.cases-empty {
    min-height: 43dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

    .cases-empty > span {
        font-size: 1.5rem;
    }

    .cases-empty strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .75rem;
    }

    .cases-empty small {
        color: var(--indlu-text-muted);
        font-size: .43rem;
    }

    .cases-empty button {
        margin-top: 8px;
        padding: 9px 14px;
        border: 0;
        border-radius: 13px;
        background: var(--indlu-ink);
        color: #fff;
        font-size: .42rem;
        font-weight: 750;
        cursor: pointer;
    }


/* LOADING / ERROR */

.cases-loading {
    min-height: 55dvh;
    display: grid;
    place-items: center;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
}

.cases-error {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(184, 84, 55, .08);
    color: var(--indlu-accent-dark);
    font-size: .45rem;
}

/* =========================================================
   CREATE HOUSE CASE
   ========================================================= */

.case-create-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* BACK */

.case-create-back {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 50%;
    background: rgba(255, 253, 250, .75);
    color: var(--indlu-ink);
    font-size: .85rem;
    cursor: pointer;
}


/* HEADER */

.case-create-header h1 {
    margin: 4px 0 0;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.case-create-header p {
    margin: 7px 0 0;
    color: var(--indlu-text-muted);
    font-size: .5rem;
    line-height: 1.45;
}


/* FORM */

.case-create-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}


/* FIELD */

.case-create-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .case-create-field label {
        color: var(--indlu-text-muted);
        font-size: .38rem;
        font-weight: 850;
        letter-spacing: .08em;
    }

    .case-create-field input,
    .case-create-field textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid rgba(108, 72, 50, .07);
        outline: 0;
        border-radius: 17px;
        background: rgba(255, 253, 250, .72);
        color: var(--indlu-ink);
        font-family: var(--indlu-sans);
        font-size: .54rem;
    }

    .case-create-field input {
        min-height: 51px;
        padding: 0 13px;
    }

    .case-create-field textarea {
        min-height: 105px;
        padding: 12px 13px;
        resize: vertical;
        line-height: 1.45;
    }

        .case-create-field input:focus,
        .case-create-field textarea:focus {
            border-color: rgba(190, 117, 79, .22);
            box-shadow: 0 0 0 3px rgba(190, 117, 79, .05);
        }

.case-create-counter {
    padding-right: 3px;
    color: var(--indlu-text-muted);
    font-size: .35rem;
    text-align: right;
}


/* SUSPECT SECTION */

.case-create-suspects {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.case-create-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

    .case-create-section-heading > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .case-create-section-heading small {
        color: var(--indlu-text-muted);
        font-size: .37rem;
    }

    .case-create-section-heading > button {
        border: 0;
        background: transparent;
        color: var(--indlu-accent-dark);
        font-size: .4rem;
        font-weight: 800;
        cursor: pointer;
    }


/* SUSPECT GRID */

.case-create-suspect-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.case-create-suspect {
    min-width: 0;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    padding: 9px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 17px;
    background: rgba(255, 253, 250, .67);
    color: var(--indlu-ink);
    text-align: left;
    cursor: pointer;
}

.case-create-suspect__photo {
    position: relative;
    grid-row: 1 / 3;
    width: 43px;
    height: 43px;
}

    .case-create-suspect__photo img {
        width: 43px;
        height: 43px;
        display: block;
        border-radius: 50%;
        object-fit: cover;
    }

.case-create-suspect__check {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 253, 249, .95);
    border-radius: 50%;
    background: var(--indlu-sage-deep);
    color: #fff;
    font-size: .3rem;
}

.case-create-suspect strong {
    align-self: end;
    overflow: hidden;
    font-size: .46rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-create-suspect > small {
    align-self: start;
    overflow: hidden;
    color: var(--indlu-text-muted);
    font-size: .33rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-create-suspect--selected {
    border-color: rgba(176, 111, 72, .20);
    background: rgba(218, 168, 116, .08);
}


/* AUTHOR */

.case-create-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-create-author-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.case-create-author-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 3px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 14px;
    background: rgba(255, 253, 250, .61);
    color: var(--indlu-ink);
    cursor: pointer;
}

    .case-create-author-item img {
        width: 31px;
        height: 31px;
        border-radius: 50%;
        object-fit: cover;
    }

    .case-create-author-item span {
        overflow: hidden;
        max-width: 100%;
        font-size: .37rem;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.case-create-author-item--active {
    border-color: rgba(89, 112, 76, .22);
    background: rgba(89, 112, 76, .07);
}

    .case-create-author-item--active img {
        box-shadow: 0 0 0 2px rgba(89, 112, 76, .22);
    }


/* SUBMIT */

.case-create-submit {
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 17px;
    background: var(--indlu-ink);
    color: #fff;
    font-family: var(--indlu-sans);
    font-size: .47rem;
    font-weight: 800;
    cursor: pointer;
}

    .case-create-submit > span:first-child {
        font-size: .75rem;
    }

    .case-create-submit:disabled {
        opacity: .55;
        cursor: default;
    }

/* =========================================================
   HOUSE CASE DETAIL
   ========================================================= */

.case-detail-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* HEADER */

.case-detail-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

    .case-detail-header > div {
        min-width: 0;
    }

    .case-detail-header h1 {
        margin: 3px 0 0;
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.3rem;
        font-weight: 500;
        line-height: 1.08;
        text-overflow: ellipsis;
    }

.case-detail-back {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 50%;
    background: rgba(255, 253, 250, .72);
    color: var(--indlu-ink);
    font-size: .85rem;
    cursor: pointer;
}


/* STATUS BADGE */

.case-detail-status {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(218, 168, 116, .10);
    color: var(--indlu-accent-dark);
    font-size: .37rem;
    font-weight: 800;
}

.case-detail-status--resolved {
    background: rgba(88, 112, 76, .09);
    color: var(--indlu-sage-deep);
}

.case-detail-status--contested {
    background: rgba(191, 120, 62, .10);
}


/* DESCRIPTION */

.case-detail-description {
    padding: 13px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 18px;
    background: rgba(255, 253, 250, .65);
}

    .case-detail-description p {
        margin: 6px 0 0;
        color: var(--indlu-ink);
        font-size: .5rem;
        line-height: 1.5;
    }


/* META */

.case-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 16px;
    background: rgba(255, 253, 250, .56);
}

    .case-detail-meta > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 9px 11px;
    }

        .case-detail-meta > div:first-child {
            border-right: 1px solid rgba(108, 72, 50, .06);
        }

    .case-detail-meta small {
        color: var(--indlu-text-muted);
        font-size: .32rem;
        font-weight: 850;
        letter-spacing: .07em;
    }

    .case-detail-meta strong {
        color: var(--indlu-ink);
        font-size: .43rem;
    }


/* SUSPECTS SECTION */

.case-detail-suspects {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 21px;
    background: rgba(255, 253, 250, .70);
}

    .case-detail-suspects > header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
    }

    .case-detail-suspects h2 {
        margin: 3px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: .8rem;
        font-weight: 600;
    }

    .case-detail-suspects > header > span {
        color: var(--indlu-text-muted);
        font-size: .36rem;
    }


/* SUSPECT GRID */

.case-detail-suspect-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.case-detail-suspect {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 3px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--indlu-ink);
    cursor: pointer;
}

    .case-detail-suspect:disabled {
        cursor: default;
    }

.case-detail-suspect__photo {
    position: relative;
    width: 46px;
    height: 46px;
}

    .case-detail-suspect__photo img {
        width: 46px;
        height: 46px;
        display: block;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, .9);
        box-shadow: 0 0 0 1px rgba(108, 72, 50, .10);
    }

.case-detail-suspect__guilty {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--indlu-accent);
    color: white;
    font-size: .31rem;
    font-weight: 900;
}

.case-detail-suspect strong {
    overflow: hidden;
    max-width: 100%;
    font-size: .4rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-detail-suspect small {
    color: var(--indlu-text-muted);
    font-size: .31rem;
}

.case-detail-suspect--selected {
    border-color: rgba(190, 117, 79, .18);
    background: rgba(218, 168, 116, .08);
}

    .case-detail-suspect--selected strong {
        color: var(--indlu-accent-dark);
    }


/* SELECTED RESPONSIBLE */

.case-detail-selection {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(218, 168, 116, .07);
    color: var(--indlu-text-muted);
    font-size: .4rem;
}

    .case-detail-selection strong {
        color: var(--indlu-accent-dark);
    }


/* VERDICT */

.case-detail-verdict {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(218, 168, 116, .08);
}

.case-detail-verdict__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .67);
    font-size: .75rem;
}

.case-detail-verdict > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-detail-verdict small {
    color: var(--indlu-text-muted);
    font-size: .3rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.case-detail-verdict strong {
    color: var(--indlu-ink);
    font-size: .46rem;
}

.case-detail-verdict span {
    color: var(--indlu-text-muted);
    font-size: .34rem;
}

.case-detail-verdict--resolved {
    background: rgba(88, 112, 76, .08);
}

    .case-detail-verdict--resolved strong {
        color: var(--indlu-sage-deep);
    }

.case-detail-verdict--contested {
    background: rgba(190, 117, 79, .08);
}


/* BUTTONS */

.case-detail-resolve {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 16px;
    background: var(--indlu-ink);
    color: #fff;
    font-size: .46rem;
    font-weight: 800;
    cursor: pointer;
}

    .case-detail-resolve:disabled {
        opacity: .38;
        cursor: default;
    }

.case-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.case-detail-secondary,
.case-detail-contest {
    min-height: 45px;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 14px;
    background: rgba(255, 253, 250, .72);
    color: var(--indlu-ink);
    font-size: .4rem;
    font-weight: 700;
    cursor: pointer;
}

.case-detail-contest {
    color: var(--indlu-accent-dark);
}


/* DELETE */

.case-detail-delete {
    align-self: center;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: rgba(150, 68, 57, .70);
    font-size: .38rem;
    cursor: pointer;
}

.case-detail-delete-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(157, 69, 55, .06);
    color: var(--indlu-text-muted);
    font-size: .38rem;
}

    .case-detail-delete-confirm > div {
        display: flex;
        gap: 5px;
    }

    .case-detail-delete-confirm button {
        padding: 6px 8px;
        border: 0;
        border-radius: 9px;
        background: rgba(255, 255, 255, .70);
        color: var(--indlu-ink);
        font-size: .36rem;
        cursor: pointer;
    }

.case-detail-delete-confirm__yes {
    background: rgba(157, 69, 55, .11) !important;
    color: rgb(139, 57, 48) !important;
}

/* =========================================================
   HOME LOGOUT
   ========================================================= */

.home-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 999px;
    background: rgba(255, 253, 250, .64);
    color: var(--indlu-text-muted);
    font-family: var(--indlu-sans);
    font-size: .38rem;
    font-weight: 700;
    cursor: pointer;
}

    .home-logout > span:first-child {
        font-size: .55rem;
    }

    .home-logout:hover {
        color: var(--indlu-ink);
        background: rgba(255, 253, 250, .90);
    }

/* =========================================================
   INDLU V3 — DESIGN SYSTEM
   NOTER. VIVRE. SE SOUVENIR.
   ========================================================= */

:root {
    /* -----------------------------------------------------
       COLORS
       ----------------------------------------------------- */

    --indlu-v3-bg: #f7f2e9;
    --indlu-v3-surface: #fffdf9;
    --indlu-v3-surface-soft: #fbf7f0;
    --indlu-v3-text: #2b211b;
    --indlu-v3-text-soft: #756c65;
    --indlu-v3-text-faint: #9a9189;
    --indlu-v3-terracotta: #c96f4c;
    --indlu-v3-terracotta-soft: #f2ddd2;
    --indlu-v3-terracotta-faint: #fbf0ea;
    --indlu-v3-sage: #78856d;
    --indlu-v3-sage-soft: #e8ece3;
    --indlu-v3-border: rgba(82, 61, 47, .075);
    --indlu-v3-shadow: 0 10px 30px rgba(66, 46, 34, .055);
    /* -----------------------------------------------------
       TYPOGRAPHY
       ----------------------------------------------------- */

    --indlu-v3-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --indlu-v3-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* -----------------------------------------------------
       FONT SCALE
       ----------------------------------------------------- */

    --indlu-v3-xs: 12px;
    --indlu-v3-sm: 14px;
    --indlu-v3-base: 16px;
    --indlu-v3-md: 18px;
    --indlu-v3-lg: 22px;
    --indlu-v3-xl: 30px;
    --indlu-v3-hero: 38px;
    /* -----------------------------------------------------
       SPACING
       ----------------------------------------------------- */

    --indlu-v3-space-1: 4px;
    --indlu-v3-space-2: 8px;
    --indlu-v3-space-3: 12px;
    --indlu-v3-space-4: 16px;
    --indlu-v3-space-5: 20px;
    --indlu-v3-space-6: 24px;
    --indlu-v3-space-7: 32px;
    /* -----------------------------------------------------
       RADII
       ----------------------------------------------------- */

    --indlu-v3-radius-sm: 12px;
    --indlu-v3-radius-md: 18px;
    --indlu-v3-radius-lg: 24px;
    --indlu-v3-radius-pill: 999px;
}


/* =========================================================
   PAGE
   ========================================================= */

.indlu-v3-page {
    min-height: 100dvh;
    padding: 18px 18px 120px;
    background: radial-gradient( circle at top right, rgba(225, 203, 170, .14), transparent 32% ), var(--indlu-v3-bg);
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-sans);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.indlu-v3-display {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: var(--indlu-v3-hero);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
}


.indlu-v3-title {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: var(--indlu-v3-xl);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.025em;
}


.indlu-v3-section-title {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: var(--indlu-v3-lg);
    font-weight: 600;
    line-height: 1.1;
}


.indlu-v3-body {
    color: var(--indlu-v3-text);
    font-size: var(--indlu-v3-base);
    line-height: 1.5;
}


.indlu-v3-muted {
    color: var(--indlu-v3-text-soft);
    font-size: var(--indlu-v3-sm);
    line-height: 1.45;
}


.indlu-v3-eyebrow {
    color: var(--indlu-v3-terracotta);
    font-size: var(--indlu-v3-xs);
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}


/* =========================================================
   SURFACE
   ========================================================= */

.indlu-v3-surface {
    background: rgba(255, 253, 249, .74);
    border-radius: var(--indlu-v3-radius-lg);
    box-shadow: var(--indlu-v3-shadow);
}


/* =========================================================
   AVATAR
   ========================================================= */

.indlu-v3-avatar {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(255, 253, 249, .96), 0 3px 10px rgba(70, 48, 36, .08);
}


.indlu-v3-avatar--large {
    width: 64px;
    height: 64px;
}


/* =========================================================
   LINK BUTTON
   ========================================================= */

.indlu-v3-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font-family: var(--indlu-v3-sans);
    font-size: var(--indlu-v3-sm);
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.indlu-v3-primary {
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--indlu-v3-radius-md);
    background: var(--indlu-v3-terracotta);
    color: white;
    font-family: var(--indlu-v3-sans);
    font-size: var(--indlu-v3-base);
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   SMALL ACTION
   ========================================================= */

.indlu-v3-action {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--indlu-v3-radius-md);
    background: var(--indlu-v3-surface);
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-sans);
    font-size: var(--indlu-v3-sm);
    font-weight: 700;
    cursor: pointer;
}


.indlu-v3-action--terracotta {
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
}


.indlu-v3-action--sage {
    background: var(--indlu-v3-sage-soft);
    color: #56634e;
}


/* =========================================================
   IMPORTANT:
   KILL THE OLD MICRO TYPOGRAPHY INSIDE V3
   ========================================================= */

.indlu-v3-page button,
.indlu-v3-page input,
.indlu-v3-page textarea,
.indlu-v3-page select {
    font-family: var(--indlu-v3-sans);
}

.indlu-v3-page p,
.indlu-v3-page span,
.indlu-v3-page small,
.indlu-v3-page strong {
    font-size: inherit;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .indlu-v3-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .indlu-v3-display {
        font-size: 36px;
    }

    .indlu-v3-title {
        font-size: 28px;
    }

    .indlu-v3-section-title {
        font-size: 21px;
    }
}

/* =========================================================
   INDLU V3 — HOME
   ========================================================= */

.home-v3 {
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* =========================================================
   LOADING
   ========================================================= */

.home-v3-loading {
    min-height: 70dvh;
    display: grid;
    place-items: center;
    color: var(--indlu-v3-text-soft);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}


/* =========================================================
   HERO
   ========================================================= */

.home-v3-hero {
    padding-top: 6px;
}

.home-v3-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.home-v3-hero__date {
    display: block;
    margin-bottom: 7px;
    color: var(--indlu-v3-text-soft);
    font-size: 15px;
    font-weight: 500;
}

.home-v3-hero h1 {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: clamp(38px, 10vw, 48px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.045em;
}

.home-v3-hero__message {
    margin: 13px 0 0;
    max-width: 350px;
    color: var(--indlu-v3-text-soft);
    font-size: 16px;
    line-height: 1.5;
}

.home-v3-hero__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-v3-icon-button,
.home-v3-avatar-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 249, .72);
    color: var(--indlu-v3-text);
    cursor: pointer;
}

.home-v3-icon-button {
    font-size: 21px;
}

.home-v3-avatar-button {
    overflow: hidden;
    padding: 0;
}

    .home-v3-avatar-button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* =========================================================
   FAMILY
   ========================================================= */

.home-v3-family {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.home-v3-family-member {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.home-v3-family-member__photo {
    position: relative;
    width: 64px;
    height: 64px;
}

    .home-v3-family-member__photo img {
        width: 64px;
        height: 64px;
        display: block;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 3px rgba(255, 253, 249, .94), 0 7px 18px rgba(74, 49, 34, .10);
    }

.home-v3-family-member__status {
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--indlu-v3-bg);
    border-radius: 50%;
}

.home-v3-family-member__status--sage {
    background: var(--indlu-v3-sage);
}

.home-v3-family-member__status--terracotta {
    background: var(--indlu-v3-terracotta);
}

.home-v3-family-member__status--rose {
    background: #b96856;
}


/* =========================================================
   HOUSE
   ========================================================= */

.home-v3-house {
    width: 100%;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient( 135deg, rgba(255, 253, 249, .96), rgba(238, 232, 216, .72) );
    box-shadow: 0 12px 32px rgba(72, 49, 35, .055);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.home-v3-house__visual {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .55);
    font-size: 30px;
}

.home-v3-house__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .home-v3-house__copy small {
        margin-bottom: 3px;
        color: var(--indlu-v3-terracotta);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .08em;
    }

    .home-v3-house__copy strong {
        display: flex;
        align-items: center;
        gap: 7px;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 21px;
        font-weight: 600;
    }

    .home-v3-house__copy > span:last-child {
        margin-top: 2px;
        overflow: hidden;
        color: var(--indlu-v3-text-soft);
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.home-v3-house__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--indlu-v3-sage);
}

.home-v3-house__arrow {
    color: var(--indlu-v3-text-soft);
    font-size: 25px;
}


/* =========================================================
   POLL
   ========================================================= */

.home-v3-poll {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: var(--indlu-v3-surface);
    box-shadow: 0 11px 30px rgba(73, 50, 35, .05);
}

.home-v3-poll__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--indlu-v3-terracotta);
    font-size: 25px;
}

.home-v3-poll__body {
    min-width: 0;
}

.home-v3-poll header small {
    color: var(--indlu-v3-terracotta);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.home-v3-poll h2 {
    margin: 3px 0 13px;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.home-v3-poll__choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-v3-poll-option__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 14px;
}

    .home-v3-poll-option__row strong {
        font-weight: 650;
    }

    .home-v3-poll-option__row span {
        color: var(--indlu-v3-text-soft);
    }

.home-v3-poll-option__track {
    position: relative;
    height: 8px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #f0ece5;
}

    .home-v3-poll-option__track > span {
        height: 100%;
        display: block;
        border-radius: inherit;
        background: linear-gradient( 90deg, #d98b70, var(--indlu-v3-terracotta) );
    }

.home-v3-poll footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
}

    .home-v3-poll footer > span {
        color: var(--indlu-v3-text-soft);
        font-size: 13px;
    }

    .home-v3-poll footer button {
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--indlu-v3-terracotta);
        font-size: 14px;
        font-weight: 750;
        cursor: pointer;
    }


/* =========================================================
   ESSENTIAL ACTIONS
   ========================================================= */

.home-v3-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.home-v3-action {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    color: var(--indlu-v3-text);
    font-size: 14px;
    cursor: pointer;
}

    .home-v3-action > span {
        font-size: 20px;
    }

    .home-v3-action strong {
        font-size: 14px;
        font-weight: 700;
    }



.home-v3-action--signal {
    background: var(--indlu-v3-sage-soft);
    color: #596651;
}

.home-v3-action--evening {
    background: #f6eadb;
    color: #9b673f;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.home-v3-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

    .home-v3-section-heading > div > span {
        display: block;
        margin-bottom: 4px;
        color: var(--indlu-v3-terracotta);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
    }

    .home-v3-section-heading h2 {
        margin: 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 28px;
        font-weight: 600;
        letter-spacing: -.025em;
    }

    .home-v3-section-heading > button {
        padding: 4px 0;
        border: 0;
        background: transparent;
        color: var(--indlu-v3-terracotta);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }


/* =========================================================
   FEED
   ========================================================= */

.home-v3-feed-list {
    display: flex;
    flex-direction: column;
}


.home-v3-feed-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
    min-width: 0;
    padding: 17px 0;
    border-bottom: 1px solid rgba(83, 61, 47, .07);
}

    .home-v3-feed-item:first-child {
        padding-top: 3px;
    }

    .home-v3-feed-item:last-child {
        border-bottom: 0;
    }

.home-v3-feed-item__avatar img {
    width: 52px;
    height: 52px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--indlu-v3-surface);
}

.home-v3-feed-item__content {
    min-width: 0;
}

    .home-v3-feed-item__content header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
    }

        .home-v3-feed-item__content header > div {
            min-width: 0;
        }

        .home-v3-feed-item__content header strong {
            color: var(--indlu-v3-text);
            font-size: 15px;
            font-weight: 750;
            overflow-wrap: anywhere;
        }

        .home-v3-feed-item__content header div > span {
            color: var(--indlu-v3-text-faint);
            font-size: 13px;
        }

.home-v3-feed-item__type {
    flex: 0 0 auto;
    color: var(--indlu-v3-text-soft);
    font-size: 12px;
}

.home-v3-feed-item h3 {
    margin: 7px 0 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 20px;
    font-weight: 550;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.home-v3-feed-item p {
    margin: 4px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.home-v3-feed-item__link {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   FEED EMPTY
   ========================================================= */

.home-v3-feed-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
}

    .home-v3-feed-empty > span {
        font-size: 28px;
    }

    .home-v3-feed-empty strong {
        display: block;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 19px;
    }

    .home-v3-feed-empty p {
        margin: 3px 0 0;
        color: var(--indlu-v3-text-soft);
        font-size: 14px;
    }


/* =========================================================
   MEMORY
   ========================================================= */

.home-v3-memory > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

    .home-v3-memory > header span {
        color: var(--indlu-v3-terracotta);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
    }

    .home-v3-memory > header h2 {
        margin: 4px 0 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 27px;
        font-weight: 600;
    }

    .home-v3-memory > header button {
        border: 0;
        background: transparent;
        color: var(--indlu-v3-terracotta);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

.home-v3-memory-card {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #dacbbd;
    text-align: left;
    cursor: pointer;
}

    .home-v3-memory-card > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.home-v3-memory-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(30, 19, 13, .72), rgba(30, 19, 13, .04) 65% );
}

.home-v3-memory-card__content {
    position: absolute;
    right: 17px;
    bottom: 17px;
    left: 17px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

    .home-v3-memory-card__content small {
        margin-bottom: 3px;
        font-size: 13px;
        opacity: .82;
    }

    .home-v3-memory-card__content strong {
        font-family: var(--indlu-v3-serif);
        font-size: 25px;
        font-weight: 600;
    }

    .home-v3-memory-card__content > span {
        margin-top: 3px;
        overflow: hidden;
        font-size: 14px;
        opacity: .88;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================================
   QUEST
   ========================================================= */

.home-v3-quest {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(83, 61, 47, .07);
    border-bottom: 1px solid rgba(83, 61, 47, .07);
}

.home-v3-quest__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--indlu-v3-sage-soft);
    font-size: 21px;
}

.home-v3-quest > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-v3-quest small {
    color: var(--indlu-v3-text-faint);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

.home-v3-quest strong {
    margin-top: 2px;
    overflow: hidden;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v3-quest div > span {
    margin-top: 2px;
    color: var(--indlu-v3-text-soft);
    font-size: 13px;
}

.home-v3-quest > button {
    border: 0;
    background: transparent;
    color: var(--indlu-v3-text-soft);
    font-size: 24px;
    cursor: pointer;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.home-v3-logout {
    align-self: center;
    margin-top: 4px;
    padding: 9px;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-text-faint);
    font-size: 13px;
    cursor: pointer;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 390px) {

    .home-v3-family-member__photo,
    .home-v3-family-member__photo img {
        width: 57px;
        height: 57px;
    }

    .home-v3-action strong {
        font-size: 13px;
    }

    .home-v3-poll {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .home-v3-poll__icon {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }
}

/* =========================================================
   INDLU V3 — JOURNAL
   ========================================================= */

.journal-v3 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* =========================================================
   HEADER
   ========================================================= */

.journal-v3-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 5px;
}

.journal-v3-header__brand {
    display: block;
    margin-bottom: 10px;
    color: var(--indlu-v3-terracotta);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
    font-weight: 600;
}

.journal-v3-header h1 {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 44px;
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.04em;
}

.journal-v3-header p {
    margin: 8px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 16px;
    line-height: 1.45;
}

.journal-v3-header__bell {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 249, .75);
    color: var(--indlu-v3-text);
    font-size: 22px;
    cursor: pointer;
}


/* =========================================================
   FILTERS
   ========================================================= */

.journal-v3-filters {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 8px;
}

.journal-v3-filter {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 17px;
    background: rgba(255, 253, 249, .68);
    color: var(--indlu-v3-text-soft);
    font-family: var(--indlu-v3-sans);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.journal-v3-filter--active {
    background: var(--indlu-v3-terracotta);
    color: #fff;
    box-shadow: 0 8px 20px rgba(201, 111, 76, .16);
}


/* =========================================================
   TIMELINE
   ========================================================= */

.journal-v3-feed {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 8px;
}

.journal-v3-line {
    position: absolute;
    top: 20px;
    bottom: 15px;
    left: 18px;
    width: 1px;
    background: rgba(100, 76, 59, .14);
}


/* =========================================================
   ENTRY
   ========================================================= */

.journal-v3-entry {
    position: relative;
    display: grid;
    grid-template-columns: 20px 58px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0 25px;
}


/* =========================================================
   MARKER
   ========================================================= */

.journal-v3-marker {
    position: relative;
    z-index: 2;
    align-self: start;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    margin-top: 16px;
    border: 4px solid var(--indlu-v3-bg);
    border-radius: 50%;
    background: var(--indlu-v3-terracotta);
    color: white;
    font-size: 9px;
}

.journal-v3-marker--memory {
    background: #ba6552;
}

.journal-v3-marker--sage {
    background: var(--indlu-v3-sage);
}

.journal-v3-marker--girls {
    background: #ad7568;
}

.journal-v3-marker--meal {
    background: var(--indlu-v3-terracotta);
}


/* =========================================================
   AVATAR
   ========================================================= */

.journal-v3-entry__avatar {
    width: 58px;
    height: 58px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

    .journal-v3-entry__avatar img {
        width: 58px;
        height: 58px;
        display: block;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 3px rgba(255, 253, 249, .95);
    }


/* =========================================================
   BODY
   ========================================================= */

.journal-v3-entry__body {
    min-width: 0;
    padding-top: 5px;
}

.journal-v3-entry__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .journal-v3-entry__header > div {
        min-width: 0;
    }

    .journal-v3-entry__header strong {
        color: var(--indlu-v3-text);
        font-size: 16px;
        font-weight: 750;
    }

    .journal-v3-entry__header div > span {
        color: var(--indlu-v3-text-faint);
        font-size: 14px;
    }

.journal-v3-entry__more {
    padding: 3px;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-text-faint);
    font-size: 18px;
    cursor: pointer;
}

.journal-v3-entry__context {
    margin: 2px 0 10px;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
}


/* =========================================================
   NORMAL POST
   ========================================================= */

.journal-v3-text-post h3 {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 21px;
    font-weight: 550;
    line-height: 1.25;
}

.journal-v3-text-post p {
    margin: 5px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   REMEMBER NOTE
   ========================================================= */

.journal-v3-note {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
    padding: 13px;
    border-radius: 17px;
    background: var(--indlu-v3-terracotta-faint);
}

    .journal-v3-note > span {
        color: var(--indlu-v3-terracotta);
        font-size: 20px;
    }

    .journal-v3-note strong {
        display: block;
        color: var(--indlu-v3-text);
        font-size: 15px;
    }

    .journal-v3-note p {
        margin: 4px 0 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 18px;
        font-style: italic;
        line-height: 1.35;
    }


/* =========================================================
   MEAL POST
   ========================================================= */

.journal-v3-meal {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: var(--indlu-v3-surface);
    box-shadow: 0 8px 23px rgba(66, 45, 31, .045);
}

.journal-v3-meal__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--indlu-v3-terracotta);
    font-size: 21px;
}

.journal-v3-meal strong {
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 19px;
}

.journal-v3-meal p {
    margin: 4px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
}

.journal-v3-meal button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}


/* =========================================================
   MEMORY
   ========================================================= */

.journal-v3-memory {
    position: relative;
    width: 100%;
    min-height: 230px;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 21px;
    background: #d6c7ba;
    text-align: left;
    cursor: pointer;
}

    .journal-v3-memory img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.journal-v3-memory__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(31, 20, 13, .70), transparent 67% );
}

.journal-v3-memory__content {
    position: absolute;
    right: 16px;
    bottom: 15px;
    left: 16px;
    display: flex;
    flex-direction: column;
    color: white;
}

    .journal-v3-memory__content strong {
        font-family: var(--indlu-v3-serif);
        font-size: 22px;
    }

    .journal-v3-memory__content span {
        margin-top: 3px;
        font-size: 14px;
        opacity: .88;
    }


/* =========================================================
   QUEST
   ========================================================= */

.journal-v3-quest-post {
    display: grid;
    grid-template-columns: 41px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 17px;
    background: var(--indlu-v3-sage-soft);
}

    .journal-v3-quest-post > span {
        width: 41px;
        height: 41px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--indlu-v3-sage);
        color: white;
        font-size: 20px;
    }

    .journal-v3-quest-post strong {
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 18px;
    }

    .journal-v3-quest-post p {
        margin: 3px 0 0;
        color: var(--indlu-v3-text-soft);
        font-size: 14px;
    }


/* =========================================================
   GIRLS
   ========================================================= */

.journal-v3-girls-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

    .journal-v3-girls-post h3 {
        margin: 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 20px;
    }

    .journal-v3-girls-post p {
        margin: 4px 0 0;
        color: var(--indlu-v3-text-soft);
        font-size: 15px;
    }

    .journal-v3-girls-post > span {
        flex: 0 0 auto;
        font-size: 28px;
    }


/* =========================================================
   CASE
   ========================================================= */

.journal-v3-case-post {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 0;
    border-radius: 17px;
    background: rgba(244, 232, 217, .82);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .journal-v3-case-post > span:first-child {
        font-size: 23px;
    }

    .journal-v3-case-post strong {
        display: block;
        color: var(--indlu-v3-text);
        font-size: 15px;
    }

    .journal-v3-case-post small {
        display: block;
        margin-top: 2px;
        color: var(--indlu-v3-text-soft);
        font-size: 13px;
    }


/* =========================================================
   EMPTY
   ========================================================= */

.journal-v3-empty {
    min-height: 45dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .journal-v3-empty > span {
        margin-bottom: 10px;
        font-size: 34px;
    }

    .journal-v3-empty strong {
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 23px;
    }

    .journal-v3-empty p {
        max-width: 280px;
        margin: 5px 0 0;
        color: var(--indlu-v3-text-soft);
        font-size: 15px;
        line-height: 1.5;
    }


/* =========================================================
   LOADING
   ========================================================= */

.journal-v3-loading {
    min-height: 70dvh;
    display: grid;
    place-items: center;
    color: var(--indlu-v3-text-soft);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .journal-v3-header h1 {
        font-size: 40px;
    }

    .journal-v3-entry {
        grid-template-columns: 18px 50px minmax(0, 1fr);
        gap: 9px;
    }

    .journal-v3-entry__avatar,
    .journal-v3-entry__avatar img {
        width: 50px;
        height: 50px;
    }

    .journal-v3-line {
        left: 17px;
    }
}

/* =========================================================
   INDLU V4 — BOTTOM NAVIGATION
   ========================================================= */

.bottom-nav-v3 {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    z-index: 100;
    height: 78px;
    display: grid;
    grid-template-columns: 1fr 1fr 78px 1fr 1fr;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(91, 67, 51, .065);
    border-radius: 27px;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 18px 46px rgba(62, 42, 29, .12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* =========================================================
   NAVIGATION ITEMS
   ========================================================= */

.bottom-nav-v3__item {
    min-width: 0;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: var(--indlu-v3-text-faint);
    font-family: var(--indlu-v3-sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

    .bottom-nav-v3__item:active {
        transform: scale(.96);
    }

/* =========================================================
   SVG ICONS
   ========================================================= */

.bottom-nav-v3__icon {
    width: 39px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: transparent;
    transition: background .2s ease, transform .2s ease;
}

    .bottom-nav-v3__icon svg {
        display: block;
        width: 23px;
        height: 23px;
        flex-shrink: 0;
    }

/* =========================================================
   ACTIVE ITEM
   ========================================================= */

.bottom-nav-v3__item--active {
    color: var(--indlu-v3-terracotta);
    font-weight: 700;
}

    .bottom-nav-v3__item--active .bottom-nav-v3__icon {
        background: rgba(203, 114, 80, .11);
    }

        .bottom-nav-v3__item--active .bottom-nav-v3__icon svg {
            stroke-width: 2;
        }

/* =========================================================
   CENTER ACTION +
   ========================================================= */

.bottom-nav-v3__add {
    position: relative;
    width: 66px;
    height: 66px;
    justify-self: center;
    display: grid;
    place-items: center;
    transform: translateY(-15px);
    padding: 0;
    border: 7px solid var(--indlu-v3-bg);
    border-radius: 50%;
    background: var(--indlu-v3-terracotta);
    color: #fff;
    box-shadow: 0 9px 23px rgba(176, 92, 60, .26);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .bottom-nav-v3__add svg {
        display: block;
        width: 27px;
        height: 27px;
    }

    .bottom-nav-v3__add:active {
        transform: translateY(-15px) scale(.95);
        box-shadow: 0 5px 15px rgba(176, 92, 60, .18);
    }

/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

.bottom-nav-v3 button:focus-visible {
    outline: 3px solid var(--indlu-v3-terracotta);
    outline-offset: 3px;
}

/* =========================================================
   SAFE SPACE
   ========================================================= */

.indlu-v3-page {
    padding-bottom: calc( 118px + env(safe-area-inset-bottom) );
}

/* =========================================================
   DESKTOP / LARGE PWA
   ========================================================= */

@media (min-width: 700px) {
    .bottom-nav-v3 {
        width: 500px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================================================
   SMALL IPHONES
   ========================================================= */

@media (max-width: 380px) {
    .bottom-nav-v3 {
        right: max(9px, env(safe-area-inset-right));
        left: max(9px, env(safe-area-inset-left));
        grid-template-columns: 1fr 1fr 68px 1fr 1fr;
        padding: 5px 5px;
    }

    .bottom-nav-v3__add {
        width: 60px;
        height: 60px;
    }

    .bottom-nav-v3__item {
        font-size: 10px;
    }

    .bottom-nav-v3__icon {
        width: 34px;
        height: 34px;
    }

        .bottom-nav-v3__icon svg {
            width: 21px;
            height: 21px;
        }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .bottom-nav-v3__item,
    .bottom-nav-v3__icon,
    .bottom-nav-v3__add {
        transition: none;
    }
}

/* =========================================================
   INDLU V3 — HOUSEHOLD SETUP
   ========================================================= */

.setup-v3 {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding-top: max(40px, env(safe-area-inset-top));
}


/* =========================================================
   HEADER
   ========================================================= */

.setup-v3-header {
    padding-top: 18px;
}

.setup-v3-brand {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--indlu-v3-terracotta);
    font-family: var(--indlu-v3-serif);
    font-size: 20px;
    font-weight: 600;
}

.setup-v3-header h1 {
    max-width: 430px;
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: clamp(40px, 11vw, 55px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.045em;
}

.setup-v3-header p {
    max-width: 460px;
    margin: 18px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 17px;
    line-height: 1.55;
}


/* =========================================================
   INITIAL CHOICE
   ========================================================= */

.setup-v3-choice {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.setup-v3-choice-card {
    width: 100%;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid rgba(85, 62, 47, .055);
    border-radius: 25px;
    background: rgba(255, 253, 249, .82);
    box-shadow: 0 12px 34px rgba(70, 48, 34, .055);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .setup-v3-choice-card:not(:disabled):active {
        transform: scale(.985);
    }

.setup-v3-choice-card__icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--indlu-v3-terracotta-faint);
    font-size: 29px;
}

.setup-v3-choice-card:nth-child(2)
.setup-v3-choice-card__icon {
    background: var(--indlu-v3-sage-soft);
}

.setup-v3-choice-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .setup-v3-choice-card__content strong {
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 21px;
        font-weight: 600;
    }

    .setup-v3-choice-card__content > span {
        color: var(--indlu-v3-text-soft);
        font-size: 14px;
        line-height: 1.4;
    }

    .setup-v3-choice-card__content small {
        width: fit-content;
        margin-top: 5px;
        padding: 3px 8px;
        border-radius: 999px;
        background: rgba(120, 133, 109, .10);
        color: var(--indlu-v3-sage);
        font-size: 11px;
        font-weight: 700;
    }

.setup-v3-choice-card__arrow {
    color: var(--indlu-v3-text-soft);
    font-size: 28px;
}

.setup-v3-choice-card--disabled {
    opacity: .63;
    cursor: default;
}


/* =========================================================
   CREATE
   ========================================================= */

.setup-v3-create {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.setup-v3-back {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.setup-v3-create__intro {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 4px;
}

    .setup-v3-create__intro > span {
        width: 58px;
        height: 58px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        border-radius: 19px;
        background: var(--indlu-v3-terracotta-faint);
        font-size: 28px;
    }

    .setup-v3-create__intro h2 {
        margin: 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 27px;
        font-weight: 600;
        letter-spacing: -.025em;
    }

    .setup-v3-create__intro p {
        margin: 3px 0 0;
        color: var(--indlu-v3-text-soft);
        font-size: 14px;
    }


/* =========================================================
   FORM
   ========================================================= */

.setup-v3-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 21px;
    border-radius: 26px;
    background: rgba(255, 253, 249, .76);
    box-shadow: 0 12px 34px rgba(70, 48, 34, .045);
}

.setup-v3-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .setup-v3-field > span {
        color: var(--indlu-v3-text);
        font-size: 14px;
        font-weight: 750;
    }

    .setup-v3-field input {
        width: 100%;
        min-height: 54px;
        padding: 0 15px;
        box-sizing: border-box;
        border: 1px solid rgba(85, 62, 47, .10);
        border-radius: 16px;
        outline: none;
        background: rgba(255, 255, 255, .62);
        color: var(--indlu-v3-text);
        font-size: 16px;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

        .setup-v3-field input:focus {
            border-color: rgba(201, 111, 76, .52);
            box-shadow: 0 0 0 4px rgba(201, 111, 76, .08);
        }

        .setup-v3-field input::placeholder {
            color: var(--indlu-v3-text-faint);
        }

    .setup-v3-field small {
        color: var(--indlu-v3-text-faint);
        font-size: 12px;
        line-height: 1.4;
    }


/* =========================================================
   ERROR
   ========================================================= */

.setup-v3-error {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 11px 13px;
    border-radius: 15px;
    background: rgba(184, 82, 60, .09);
    color: #98513e;
}

    .setup-v3-error > span {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: rgba(184, 82, 60, .12);
        font-size: 13px;
        font-weight: 800;
    }

    .setup-v3-error p {
        margin: 1px 0 0;
        font-size: 13px;
        line-height: 1.45;
    }


/* =========================================================
   SUBMIT
   ========================================================= */

.setup-v3-submit {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 17px;
    background: var(--indlu-v3-terracotta);
    color: white;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(181, 91, 57, .18);
}

    .setup-v3-submit:disabled {
        opacity: .46;
        cursor: default;
        box-shadow: none;
    }

.setup-v3-submit__loading {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,.38);
    border-top-color: white;
    border-radius: 50%;
    animation: setup-v3-spin .8s linear infinite;
}

@keyframes setup-v3-spin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .setup-v3-header h1 {
        font-size: 39px;
    }

    .setup-v3-choice-card {
        grid-template-columns: 54px minmax(0, 1fr) 18px;
        padding: 15px;
    }

    .setup-v3-choice-card__icon {
        width: 54px;
        height: 54px;
        font-size: 25px;
    }

    .setup-v3-form {
        padding: 17px;
    }
}

/* =========================================================
   INDLU V3 — HOUSEHOLD
   ========================================================= */

.household-v3 {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* =========================================================
   HEADER
   ========================================================= */

.household-v3-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.household-v3-back {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 249, .76);
    color: var(--indlu-v3-text);
    font-size: 20px;
    cursor: pointer;
}

.household-v3-header > div > span {
    color: var(--indlu-v3-terracotta);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}

.household-v3-header h1 {
    margin: 4px 0 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.035em;
}

.household-v3-header p {
    margin: 8px 0 0;
    max-width: 460px;
    color: var(--indlu-v3-text-soft);
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   CURRENT USER
   ========================================================= */

.household-v3-me {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-radius: 22px;
    background: linear-gradient( 135deg, var(--indlu-v3-terracotta-faint), rgba(255, 253, 249, .86) );
}

.household-v3-me__avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--indlu-v3-terracotta);
    color: white;
    font-family: var(--indlu-v3-serif);
    font-size: 25px;
}

.household-v3-me > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.household-v3-me small {
    color: var(--indlu-v3-terracotta);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.household-v3-me strong {
    margin-top: 2px;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 20px;
}

.household-v3-me div > span {
    color: var(--indlu-v3-text-soft);
    font-size: 13px;
}

.household-v3-me__badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(201, 111, 76, .11);
    color: var(--indlu-v3-terracotta);
    font-size: 11px;
    font-weight: 750;
}


/* =========================================================
   SECTION
   ========================================================= */

.household-v3-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

    .household-v3-section__header > div > span {
        color: var(--indlu-v3-terracotta);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .09em;
    }

    .household-v3-section__header h2 {
        margin: 4px 0 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 26px;
        font-weight: 600;
    }

    .household-v3-section__header > button {
        padding: 7px 10px;
        border: 0;
        border-radius: 12px;
        background: var(--indlu-v3-terracotta-faint);
        color: var(--indlu-v3-terracotta);
        font-size: 13px;
        font-weight: 750;
        cursor: pointer;
    }


/* =========================================================
   MEMBERS
   ========================================================= */

.household-v3-members {
    display: flex;
    flex-direction: column;
}

.household-v3-member {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(83, 61, 47, .07);
}

    .household-v3-member:last-child {
        border-bottom: 0;
    }

.household-v3-member__avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    font-family: var(--indlu-v3-serif);
    font-size: 21px;
    font-weight: 600;
}

    .household-v3-member__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.household-v3-member__avatar--adult {
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
}

.household-v3-member__avatar--child {
    background: #f6ead9;
    color: #a76f42;
}

.household-v3-member__avatar--pet {
    background: var(--indlu-v3-sage-soft);
    color: var(--indlu-v3-sage);
}

.household-v3-member__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .household-v3-member__copy strong {
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 19px;
    }

    .household-v3-member__copy > span {
        margin-top: 1px;
        color: var(--indlu-v3-text-soft);
        font-size: 13px;
    }

    .household-v3-member__copy small {
        margin-top: 4px;
        color: var(--indlu-v3-text-faint);
        font-size: 11px;
    }

.household-v3-member__linked {
    color: var(--indlu-v3-sage) !important;
}

.household-v3-member__owner {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(201, 111, 76, .10);
    color: var(--indlu-v3-terracotta);
    font-size: 10px;
    font-weight: 750;
}


/* =========================================================
   INVITE
   ========================================================= */

.household-v3-invite {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 253, 249, .72);
}

.household-v3-invite__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--indlu-v3-sage-soft);
    font-size: 22px;
}

.household-v3-invite strong {
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}

.household-v3-invite p {
    margin: 2px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 13px;
}

.household-v3-invite button {
    padding: 6px 9px;
    border: 0;
    border-radius: 11px;
    background: var(--indlu-v3-sage-soft);
    color: var(--indlu-v3-sage);
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   SHEET
   ========================================================= */

.household-v3-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(41, 31, 25, .28);
    backdrop-filter: blur(5px);
}

.household-v3-sheet {
    width: min(100%, 620px);
    padding: 22px;
    border-radius: 28px 28px 22px 22px;
    background: var(--indlu-v3-surface);
    box-shadow: 0 -14px 50px rgba(50, 34, 24, .14);
}

    .household-v3-sheet > header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 20px;
    }

    .household-v3-sheet header span {
        color: var(--indlu-v3-terracotta);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .09em;
    }

    .household-v3-sheet h2 {
        margin: 4px 0 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 26px;
        font-weight: 600;
    }

    .household-v3-sheet header button {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: var(--indlu-v3-bg);
        color: var(--indlu-v3-text-soft);
        font-size: 23px;
        cursor: pointer;
    }


/* =========================================================
   FIELD
   ========================================================= */

.household-v3-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .household-v3-field > span {
        color: var(--indlu-v3-text);
        font-size: 13px;
        font-weight: 750;
    }

    .household-v3-field input {
        min-height: 52px;
        padding: 0 14px;
        border: 1px solid rgba(86, 63, 48, .10);
        border-radius: 15px;
        outline: none;
        background: white;
        color: var(--indlu-v3-text);
        font-size: 16px;
    }

        .household-v3-field input:focus {
            border-color: rgba(201, 111, 76, .5);
            box-shadow: 0 0 0 4px rgba(201, 111, 76, .07);
        }


/* =========================================================
   TYPE PICKER
   ========================================================= */

.household-v3-type-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.household-v3-type {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(83, 61, 47, .07);
    border-radius: 16px;
    background: var(--indlu-v3-bg);
    color: var(--indlu-v3-text-soft);
    cursor: pointer;
}

    .household-v3-type > span {
        font-size: 23px;
    }

    .household-v3-type strong {
        font-size: 12px;
    }

.household-v3-type--active {
    border-color: rgba(201, 111, 76, .30);
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
}


/* =========================================================
   INFO
   ========================================================= */

.household-v3-profile-info {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    margin-top: 15px;
    padding: 11px;
    border-radius: 14px;
    background: var(--indlu-v3-sage-soft);
    color: #596451;
}

    .household-v3-profile-info > span {
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        border: 1px solid currentColor;
        border-radius: 50%;
        font-family: var(--indlu-v3-serif);
        font-size: 12px;
    }

    .household-v3-profile-info p {
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
    }


/* =========================================================
   CREATE
   ========================================================= */

.household-v3-create {
    width: 100%;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    border: 0;
    border-radius: 16px;
    background: var(--indlu-v3-terracotta);
    color: white;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

    .household-v3-create:disabled {
        opacity: .42;
        cursor: default;
    }

.household-v3-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(178, 74, 52, .09);
    color: #99513f;
    font-size: 12px;
}


/* =========================================================
   EMPTY / LOADING
   ========================================================= */

.household-v3-loading,
.household-v3-empty {
    min-height: 65dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.household-v3-loading {
    color: var(--indlu-v3-text-soft);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}

.household-v3-empty > span {
    font-size: 38px;
}

.household-v3-empty h1 {
    margin: 10px 0 0;
    font-family: var(--indlu-v3-serif);
    font-size: 28px;
}

.household-v3-empty p {
    margin: 5px 0 15px;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
}

.household-v3-empty button {
    padding: 11px 15px;
    border: 0;
    border-radius: 14px;
    background: var(--indlu-v3-terracotta);
    color: white;
    font-weight: 700;
}

/* =========================================================
   INDLU V3 — DYNAMIC HOUSEHOLD AVATARS
   ========================================================= */

.home-v3-family-member__fallback {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--indlu-v3-serif);
    font-size: 23px;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(255, 253, 249, .94), 0 7px 18px rgba(74, 49, 34, .08);
}

.home-v3-family-member__fallback--adult {
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
}

.home-v3-family-member__fallback--child {
    background: #f5ead7;
    color: #a56e43;
}

.home-v3-family-member__fallback--pet {
    background: var(--indlu-v3-sage-soft);
    color: var(--indlu-v3-sage);
    font-family: var(--indlu-v3-sans);
    font-size: 25px;
}

.home-v3-family-member__status--adult {
    background: var(--indlu-v3-sage);
}

.home-v3-family-member__status--child {
    background: #d39a5e;
}

.home-v3-family-member__status--pet {
    background: #b46f60;
}


@media (max-width: 390px) {

    .home-v3-family-member__fallback {
        width: 57px;
        height: 57px;
    }
}

.home-v3-family {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .home-v3-family::-webkit-scrollbar {
        display: none;
    }

.home-v3-family-member {
    width: 68px;
    flex: 0 0 68px;
}

/* =========================================================
   INDLU V3 — US / HOUSEHOLD CARD
   ========================================================= */

.us-household-card {
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient( 145deg, rgba(255, 253, 249, .96), rgba(247, 239, 228, .78) );
    box-shadow: 0 12px 34px rgba(68, 46, 33, .055);
}


/* =========================================================
   HEADER
   ========================================================= */

.us-household-card__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

    .us-household-card__header > div > span {
        display: block;
        margin-bottom: 3px;
        color: var(--indlu-v3-terracotta);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .09em;
    }

    .us-household-card__header h2 {
        margin: 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 27px;
        font-weight: 600;
        letter-spacing: -.025em;
    }

    .us-household-card__header button {
        padding: 5px 0;
        border: 0;
        background: transparent;
        color: var(--indlu-v3-terracotta);
        font-size: 13px;
        font-weight: 750;
        cursor: pointer;
    }


/* =========================================================
   PEOPLE
   ========================================================= */

.us-household-card__people {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .us-household-card__people::-webkit-scrollbar {
        display: none;
    }


.us-household-person {
    width: 68px;
    flex: 0 0 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}


.us-household-person__avatar {
    width: 58px;
    height: 58px;
    margin-bottom: 2px;
}


    .us-household-person__avatar > img,
    .us-household-person__fallback {
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 3px rgba(255, 253, 249, .94), 0 6px 16px rgba(70, 48, 34, .08);
    }


.us-household-person__fallback {
    font-family: var(--indlu-v3-serif);
    font-size: 22px;
    font-weight: 600;
}


.us-household-person__fallback--adult {
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
}


.us-household-person__fallback--child {
    background: #f5ead8;
    color: #a46e43;
}


.us-household-person__fallback--pet {
    background: var(--indlu-v3-sage-soft);
    color: var(--indlu-v3-sage);
    font-family: var(--indlu-v3-sans);
}


.us-household-person__name {
    width: 100%;
    overflow: hidden;
    color: var(--indlu-v3-text);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.us-household-person small {
    color: var(--indlu-v3-text-faint);
    font-size: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.us-household-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 13px;
    padding-top: 14px;
    border-top: 1px solid rgba(83, 61, 47, .07);
}


    .us-household-card__footer > div {
        display: flex;
        align-items: baseline;
        gap: 5px;
    }


        .us-household-card__footer > div strong {
            color: var(--indlu-v3-text);
            font-family: var(--indlu-v3-serif);
            font-size: 21px;
        }


        .us-household-card__footer > div span {
            color: var(--indlu-v3-text-soft);
            font-size: 12px;
        }


    .us-household-card__footer > button {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 8px 11px;
        border: 0;
        border-radius: 13px;
        background: var(--indlu-v3-terracotta-faint);
        color: var(--indlu-v3-terracotta);
        font-size: 12px;
        font-weight: 750;
        cursor: pointer;
    }


/* =========================================================
   LOADING
   ========================================================= */

.us-household-card--loading {
    min-height: 130px;
    display: grid;
    place-items: center;
    color: var(--indlu-v3-text-soft);
    font-family: var(--indlu-v3-serif);
    font-size: 16px;
}

/* =========================================================
   INDLU V3 — NOUS
   ========================================================= */

.us-v3 {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* =========================================================
   HEADER
   ========================================================= */

.us-v3-header {
    padding-top: 5px;
}

.us-v3-header__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--indlu-v3-terracotta);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}

.us-v3-header h1 {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 44px;
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.045em;
}

.us-v3-header p {
    max-width: 390px;
    margin: 10px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   STORY
   ========================================================= */

.us-v3-story {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 25px;
    background: linear-gradient( 135deg, rgba(245, 225, 215, .78), rgba(255, 253, 249, .88) );
}


.us-v3-story__avatars {
    display: flex;
    padding-left: 8px;
}


.us-v3-story__avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-left: -8px;
    border: 3px solid var(--indlu-v3-surface);
    border-radius: 50%;
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
    font-family: var(--indlu-v3-serif);
    font-size: 20px;
}


    .us-v3-story__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.us-v3-story__content {
    min-width: 0;
}


    .us-v3-story__content > span {
        color: var(--indlu-v3-terracotta);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .08em;
    }


.us-v3-story h2 {
    margin: 3px 0 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 25px;
    font-weight: 600;
}


.us-v3-story p {
    margin: 4px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
    line-height: 1.45;
}


.us-v3-story__action {
    grid-column: 1 / -1;
    justify-self: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.us-v3-section__header {
    margin-bottom: 14px;
}


    .us-v3-section__header span {
        color: var(--indlu-v3-terracotta);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .09em;
    }


    .us-v3-section__header h2 {
        margin: 4px 0 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 27px;
        font-weight: 600;
        letter-spacing: -.025em;
    }


/* =========================================================
   STATS
   ========================================================= */

.us-v3-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}


.us-v3-stat {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    border: 0;
    border-radius: 19px;
    background: rgba(255, 253, 249, .75);
    color: inherit;
    text-align: left;
    cursor: pointer;
}


.us-v3-stat__icon {
    margin-bottom: 10px;
    color: var(--indlu-v3-terracotta);
    font-size: 19px;
}


.us-v3-stat strong {
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 29px;
    font-weight: 600;
    line-height: 1;
}


.us-v3-stat > span:not(.us-v3-stat__icon) {
    margin-top: 6px;
    color: var(--indlu-v3-text);
    font-size: 13px;
    font-weight: 700;
}


.us-v3-stat small {
    margin-top: 2px;
    color: var(--indlu-v3-text-faint);
    font-size: 11px;
}


/* =========================================================
   MEMORY
   ========================================================= */

.us-v3-memory {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.us-v3-memory-item {
    width: 100%;
    display: grid;
    grid-template-columns: 49px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 253, 249, .69);
    color: inherit;
    text-align: left;
    cursor: pointer;
}


.us-v3-memory-item--main {
    padding: 16px 13px;
    background: var(--indlu-v3-terracotta-faint);
}


.us-v3-memory-item__icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.58);
    font-size: 22px;
}


.us-v3-memory-item__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}


    .us-v3-memory-item__copy strong {
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 18px;
    }


    .us-v3-memory-item__copy > span {
        margin-top: 2px;
        color: var(--indlu-v3-text-soft);
        font-size: 13px;
    }


.us-v3-memory-item__arrow {
    color: var(--indlu-v3-text-faint);
    font-size: 18px;
}


/* =========================================================
   MANAGE HOUSEHOLD
   ========================================================= */

.us-v3-manage {
    width: 100%;
    display: grid;
    grid-template-columns: 51px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(83, 61, 47, .06);
    border-radius: 20px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}


.us-v3-manage__icon {
    width: 51px;
    height: 51px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--indlu-v3-sage-soft);
    font-size: 23px;
}


.us-v3-manage > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}


.us-v3-manage small {
    color: var(--indlu-v3-sage);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}


.us-v3-manage strong {
    margin-top: 2px;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}


.us-v3-manage span span {
    margin-top: 2px;
    color: var(--indlu-v3-text-soft);
    font-size: 12px;
}


/* =========================================================
   LOADING
   ========================================================= */

.us-v3-loading {
    min-height: 70dvh;
    display: grid;
    place-items: center;
    color: var(--indlu-v3-text-soft);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .us-v3-header h1 {
        font-size: 40px;
    }

    .us-v3-stats {
        gap: 6px;
    }

    .us-v3-stat {
        padding: 11px;
    }

        .us-v3-stat strong {
            font-size: 25px;
        }

        .us-v3-stat small {
            font-size: 10px;
        }
}

/* =========================================================
   INDLU V3 — NOUS
   La page émotionnelle de la maison
   ========================================================= */

.us-v3 {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 34px;
}


/* =========================================================
   HEADER
   ========================================================= */

.us-v3-header {
    padding-top: 5px;
}

    .us-v3-header > span {
        display: block;
        margin-bottom: 6px;
        color: var(--indlu-v3-terracotta);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .1em;
    }

    .us-v3-header h1 {
        margin: 0;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 46px;
        font-weight: 500;
        line-height: .95;
        letter-spacing: -.045em;
    }

    .us-v3-header p {
        max-width: 380px;
        margin: 11px 0 0;
        color: var(--indlu-v3-text-soft);
        font-size: 17px;
        line-height: 1.5;
    }


/* =========================================================
   STORY
   ========================================================= */

.us-v3-story {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 30px;
    background: radial-gradient( circle at 90% 10%, rgba(210, 139, 104, .17), transparent 36% ), linear-gradient( 145deg, #f8ebe2, #fffaf3 );
    box-shadow: 0 18px 45px rgba(73, 47, 31, .07);
}


.us-v3-story__portraits {
    display: flex;
    margin-bottom: 23px;
    padding-left: 12px;
}


.us-v3-story__portrait {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-left: -12px;
    border: 4px solid #fffaf3;
    border-radius: 50%;
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
    font-family: var(--indlu-v3-serif);
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(64, 43, 30, .09);
}


    .us-v3-story__portrait img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.us-v3-story__copy > span {
    color: var(--indlu-v3-terracotta);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}


.us-v3-story h2 {
    margin: 5px 0 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -.03em;
}


.us-v3-story p {
    max-width: 430px;
    margin: 10px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 15px;
    line-height: 1.55;
}


.us-v3-story button {
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}


/* =========================================================
   FAMILY
   ========================================================= */

.us-v3-family > header > span,
.us-v3-girls header > div > span,
.us-v3-memory-section header > div > span {
    display: block;
    margin-bottom: 4px;
    color: var(--indlu-v3-terracotta);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}


.us-v3-family h2,
.us-v3-girls h2,
.us-v3-memory-section h2 {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.025em;
}


.us-v3-family > header > p {
    margin: 5px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
}


.us-v3-family__list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    margin-top: 19px;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}


    .us-v3-family__list::-webkit-scrollbar {
        display: none;
    }


.us-v3-person {
    width: 82px;
    flex: 0 0 82px;
    text-align: center;
}


.us-v3-person__avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: white;
    font-family: var(--indlu-v3-serif);
    font-size: 28px;
    box-shadow: 0 0 0 3px rgba(255, 253, 249, .96), 0 8px 22px rgba(70, 48, 34, .09);
}


    .us-v3-person__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.us-v3-person__avatar--adult {
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
}


.us-v3-person__avatar--child {
    background: #f6ead8;
    color: #a47348;
}


.us-v3-person__avatar--pet {
    background: var(--indlu-v3-sage-soft);
    color: var(--indlu-v3-sage);
}


.us-v3-person > strong {
    display: block;
    overflow: hidden;
    color: var(--indlu-v3-text);
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.us-v3-person > span {
    display: block;
    margin-top: 2px;
    color: var(--indlu-v3-text-faint);
    font-size: 11px;
    line-height: 1.25;
}


/* =========================================================
   HOUSE NOW
   ========================================================= */

.us-v3-now {
    display: grid;
    grid-template-columns: 59px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border-radius: 23px;
    background: linear-gradient( 135deg, rgba(231, 236, 225, .88), rgba(255, 253, 249, .77) );
}


.us-v3-now__visual {
    width: 59px;
    height: 59px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: rgba(255, 255, 255, .55);
    font-size: 28px;
}


.us-v3-now__copy > span {
    color: var(--indlu-v3-sage);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}


.us-v3-now h2 {
    margin: 3px 0 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 21px;
    font-weight: 600;
}


.us-v3-now p {
    margin: 3px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 13px;
    line-height: 1.4;
}


.us-v3-now > button {
    border: 0;
    background: transparent;
    color: var(--indlu-v3-text-soft);
    font-size: 26px;
    cursor: pointer;
}


/* =========================================================
   GIRLS
   ========================================================= */

.us-v3-girls > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}


.us-v3-girls header button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}


.us-v3-girls__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


.us-v3-girl {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 253, 249, .74);
}


.us-v3-girl__photo {
    width: 57px;
    height: 57px;
    flex: 0 0 57px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 17px;
    background: var(--indlu-v3-sage-soft);
    font-size: 24px;
}


    .us-v3-girl__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.us-v3-girl strong {
    display: block;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}


.us-v3-girl div > span {
    display: block;
    margin-top: 2px;
    color: var(--indlu-v3-text-soft);
    font-size: 11px;
}


/* =========================================================
   MEMORY
   ========================================================= */

.us-v3-memory-section > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}


.us-v3-memory-section header button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}


.us-v3-memory {
    position: relative;
    width: 100%;
    min-height: 255px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: #ddcfc1;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(58, 39, 27, .08);
}


    .us-v3-memory > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.us-v3-memory__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.85);
    font-size: 48px;
}


.us-v3-memory__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(29, 19, 14, .78), rgba(29, 19, 14, .03) 68% );
}


.us-v3-memory__copy {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    color: white;
}


    .us-v3-memory__copy small {
        font-size: 12px;
        opacity: .8;
    }


    .us-v3-memory__copy strong {
        margin-top: 3px;
        font-family: var(--indlu-v3-serif);
        font-size: 26px;
        font-weight: 600;
    }


    .us-v3-memory__copy > span {
        margin-top: 4px;
        font-size: 14px;
        line-height: 1.4;
        opacity: .9;
    }


.us-v3-memory-empty {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 0;
    border-radius: 20px;
    background: var(--indlu-v3-terracotta-faint);
    color: inherit;
    text-align: left;
    cursor: pointer;
}


    .us-v3-memory-empty > span:first-child {
        font-size: 24px;
    }


    .us-v3-memory-empty strong {
        display: block;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-serif);
        font-size: 18px;
    }


    .us-v3-memory-empty small {
        display: block;
        margin-top: 2px;
        color: var(--indlu-v3-text-soft);
        font-size: 12px;
    }


/* =========================================================
   PLACES
   ========================================================= */

.us-v3-places {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


    .us-v3-places > button {
        width: 100%;
        display: grid;
        grid-template-columns: 49px minmax(0, 1fr) 22px;
        align-items: center;
        gap: 12px;
        padding: 13px 0;
        border: 0;
        border-bottom: 1px solid rgba(83, 61, 47, .07);
        background: transparent;
        color: inherit;
        text-align: left;
        cursor: pointer;
    }


        .us-v3-places > button:last-child {
            border-bottom: 0;
        }


.us-v3-places__icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
    font-size: 21px;
}


.us-v3-places button > span:nth-child(2) {
    display: flex;
    flex-direction: column;
}


.us-v3-places small {
    color: var(--indlu-v3-text-faint);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}


.us-v3-places strong {
    margin-top: 3px;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 17px;
}


/* =========================================================
   HOUSEHOLD MANAGEMENT
   ========================================================= */

.us-v3-household-management {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-text-faint);
    font-size: 12px;
    cursor: pointer;
}


/* =========================================================
   LOADING
   ========================================================= */

.us-v3-loading {
    min-height: 70dvh;
    display: grid;
    place-items: center;
    color: var(--indlu-v3-text-soft);
    font-family: var(--indlu-v3-serif);
    font-size: 18px;
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .us-v3-header h1 {
        font-size: 41px;
    }


    .us-v3-story {
        padding: 20px;
    }


    .us-v3-story__portrait {
        width: 67px;
        height: 67px;
    }


    .us-v3-girls__content {
        grid-template-columns: 1fr;
    }


    .us-v3-memory {
        min-height: 225px;
    }
}

.profile-photo-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-photo-picker__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 8px 11px;
    border-radius: 13px;
    background: var(--indlu-v3-terracotta-faint);
    color: var(--indlu-v3-terracotta);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

    .profile-photo-picker__button input {
        display: none;
    }

.profile-photo-picker__status {
    color: var(--indlu-v3-text-soft);
    font-size: 11px;
}

.profile-photo-picker__error {
    color: #a24f3d;
    font-size: 11px;
}

.household-v3-me__avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--indlu-v3-terracotta-faint);
}

    .household-v3-me__avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        border-radius: inherit;
    }

/* =========================================================
   MOBILE INTERACTIONS
   Evite le zoom au double-tap sur les éléments interactifs
   ========================================================= */

button,
a,
[role="button"],
label,
input,
select,
textarea {
    touch-action: manipulation;
}

.home-v3-family-member,
.home-v3-avatar-button,
.home-v3-icon-button,
.home-v3-house,
.home-v3-action,
.home-v3-memory-card,
.household-v3-member,
.household-v3-back,
.household-v3-create,
.profile-photo-picker__button,
.us-v3-story button,
.us-v3-now button,
.us-v3-places button {
    touch-action: manipulation;
}

html,
body {
    touch-action: manipulation;
}

button,
a,
[role="button"],
label,
input,
select,
textarea {
    touch-action: manipulation;
}

/* =========================================================
   IOS FORM ZOOM FIX
   Safari zoome automatiquement sur les inputs < 16px
   ========================================================= */

input,
select,
textarea {
    font-size: 16px;
}

.auth-input,
.login-input,
.form-control,
.household-v3-field input {
    font-size: 16px;
}
.home-v3-notifications {
    position: relative;
    flex-shrink: 0;
}

    .home-v3-notifications svg {
        display: block;
    }

.home-v3-notifications__badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid #f8f1e8;
    background: #c96e4d;
    color: white;
    font-family: var(--indlu-v3-sans, sans-serif);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================================
   INDLU V3 — NOTIFICATIONS
   ========================================================= */

.notifications-v3 {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 120px;
}

.notifications-v3-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 34px;
    align-items: start;
    gap: 12px;
    padding-top: 8px;
}

.notifications-v3-back {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 249, .82);
    color: #604737;
    font-size: 24px;
    cursor: pointer;
}

.notifications-v3-kicker {
    color: #b66f51;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
}

.notifications-v3-header h1 {
    margin: 7px 0 0;
    color: #422c21;
    font-family: var(--indlu-v3-serif, Georgia, serif);
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -.04em;
}

.notifications-v3-header p {
    margin: 10px 0 0;
    color: #866f60;
    font-size: 14px;
    line-height: 1.5;
}

.notifications-v3-header-icon {
    color: #a76c50;
    padding-top: 7px;
}

.notifications-v3-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notifications-v3-filters {
    display: flex;
    gap: 7px;
}

.notifications-v3-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(108, 72, 50, .1);
    border-radius: 999px;
    background: rgba(255, 253, 249, .7);
    color: #806a5b;
    font-size: 13px;
    cursor: pointer;
}

.notifications-v3-filter--active {
    background: #6c7760;
    border-color: #6c7760;
    color: white;
}

.notifications-v3-filter span {
    font-size: 11px;
    font-weight: 700;
}

.notifications-v3-mark-all {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #b66f51;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.notifications-v3-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.notifications-v3-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 15px;
    border: 1px solid rgba(108, 72, 50, .07);
    border-radius: 20px;
    background: rgba(255, 253, 249, .82);
}

.notifications-v3-item--unread {
    background: #fff7ed;
    border-color: rgba(185, 107, 74, .19);
}

.notifications-v3-item-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5e9d9;
    color: #ab694d;
    font-size: 20px;
}

.notifications-v3-item-content {
    min-width: 0;
}

.notifications-v3-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .notifications-v3-item-heading strong {
        color: #422d22;
        font-size: 15px;
        line-height: 1.35;
    }

.notifications-v3-unread-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c97554;
}

.notifications-v3-item-content p {
    margin: 6px 0 0;
    color: #806b5d;
    font-size: 13px;
    line-height: 1.5;
}

.notifications-v3-item-content time {
    display: block;
    margin-top: 9px;
    color: #a08a7a;
    font-size: 11px;
}

.notifications-v3-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
}

    .notifications-v3-item-actions button {
        padding: 0;
        border: 0;
        background: transparent;
        color: #aa684a;
        font-size: 12px;
        font-weight: 650;
        cursor: pointer;
    }

        .notifications-v3-item-actions button:disabled,
        .notifications-v3-mark-all:disabled {
            opacity: .45;
            cursor: wait;
        }

.notifications-v3-empty,
.notifications-v3-loading,
.notifications-v3-error {
    padding: 36px 24px;
    border-radius: 22px;
    background: rgba(255, 253, 249, .75);
    text-align: center;
}

.notifications-v3-empty-icon {
    color: #c58768;
    font-size: 30px;
}

.notifications-v3-empty h2 {
    margin: 12px 0 0;
    color: #4b3125;
    font-family: var(--indlu-v3-serif, Georgia, serif);
    font-size: 23px;
    font-weight: 500;
}

.notifications-v3-empty p,
.notifications-v3-error p {
    color: #876f60;
    font-size: 14px;
    line-height: 1.55;
}

.notifications-v3-loading {
    color: #876f60;
    font-size: 14px;
}

.notifications-v3-error {
    color: #9b4c3b;
}

    .notifications-v3-error button {
        padding: 10px 18px;
        border: 0;
        border-radius: 12px;
        background: #6c7760;
        color: white;
        cursor: pointer;
    }

/* HOME V3 — Notification badge */

.home-v3-notifications {
    position: relative;
}

.home-v3-notifications__badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #c66d55;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #fffaf3;
    pointer-events: none;
}


/* =========================================================
   INDLU V3 — HOUSEHOLD INVITATION
   ========================================================= */

.household-invite-v3 {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.household-invite-v3__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
    border: 1px solid var(--indlu-v3-border);
    border-radius: 26px;
    background: var(--indlu-v3-surface);
    box-shadow: var(--indlu-v3-shadow);
}

.household-invite-v3__intro {
    display: flex;
    align-items: center;
    gap: 14px;
}

.household-invite-v3__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: var(--indlu-v3-terracotta-faint);
    font-size: 27px;
}

.household-invite-v3__intro strong {
    display: block;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 23px;
    font-weight: 600;
}

.household-invite-v3__intro p {
    margin: 4px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 13px;
    line-height: 1.4;
}

.household-invite-v3__form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

/* Champs */

.household-invite-v3 .household-v3-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

    .household-invite-v3 .household-v3-field label {
        color: var(--indlu-v3-text);
        font-size: 13px;
        font-weight: 700;
    }

    .household-invite-v3 .household-v3-field input,
    .household-invite-v3 .household-v3-field select,
    .household-invite-v3 .household-v3-field textarea {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 14px 16px;
        border: 1px solid rgba(86, 63, 48, .12);
        border-radius: 16px;
        outline: none;
        background: #fff;
        color: var(--indlu-v3-text);
        font-family: var(--indlu-v3-sans);
        font-size: 16px;
        line-height: 1.4;
        box-shadow: 0 4px 14px rgba(66, 46, 34, .025);
    }

    .household-invite-v3 .household-v3-field textarea {
        min-height: 105px;
        resize: vertical;
        overflow-wrap: anywhere;
    }

        .household-invite-v3 .household-v3-field input:focus,
        .household-invite-v3 .household-v3-field select:focus,
        .household-invite-v3 .household-v3-field textarea:focus {
            border-color: var(--indlu-v3-terracotta);
            box-shadow: 0 0 0 4px rgba(201, 111, 76, .09);
        }

.household-invite-v3 input::placeholder {
    color: var(--indlu-v3-text-faint);
}

/* Note privée */

.household-invite-v3__note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border-radius: 17px;
    background: var(--indlu-v3-sage-soft);
}

    .household-invite-v3__note > span {
        flex: 0 0 auto;
        font-size: 19px;
    }

    .household-invite-v3__note p {
        margin: 0;
        color: var(--indlu-v3-sage);
        font-size: 12px;
        line-height: 1.55;
    }

/* Bouton principal */

.household-invite-v3__submit {
    width: 100%;
    min-height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 0;
    border-radius: 17px;
    background: var(--indlu-v3-terracotta);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(201, 111, 76, .16);
}

    .household-invite-v3__submit:disabled {
        opacity: .6;
        cursor: wait;
    }

    .household-invite-v3__submit:not(:disabled):active {
        transform: scale(.985);
    }

/* Résultat */

.household-invite-v3__success {
    align-items: stretch;
    text-align: center;
}

.household-invite-v3__success-icon {
    font-size: 45px;
}

.household-invite-v3__success h2 {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 29px;
    font-weight: 500;
}

.household-invite-v3__success > p {
    margin: 0;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.household-invite-v3__success .household-v3-field {
    text-align: left;
}

.household-invite-v3__expiry {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--indlu-v3-sage);
    font-size: 12px;
}

.household-invite-v3__success
.household-invite-v3__privacy {
    font-size: 12px;
    color: var(--indlu-v3-text-faint);
}

.household-invite-v3__error {
    padding: 14px 16px;
    border-radius: 15px;
    background: var(--indlu-v3-terracotta-faint);
    color: #a24f3d;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 380px) {
    .household-invite-v3__card {
        padding: 20px 16px;
    }

    .household-invite-v3
    .household-v3-header h1 {
        font-size: 33px;
    }
}


/* =========================================================
   INDLU V3 — ACCEPTATION D'INVITATION
   ========================================================= */

.invitation-v3 {
    width: 100%;
    max-width: 560px;
    min-height: 70dvh;
    margin: 0 auto;
    padding: 28px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-sans);
}

/* EN-TÊTE */

.invitation-v3__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.invitation-v3__symbol {
    width: 78px;
    height: 78px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: var(--indlu-v3-terracotta-faint);
    font-size: 39px;
    box-shadow: var(--indlu-v3-shadow);
}

.invitation-v3__kicker {
    margin-bottom: 12px;
    color: var(--indlu-v3-terracotta);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.invitation-v3__header h1 {
    margin: 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: clamp(34px, 9vw, 44px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.invitation-v3__header p {
    max-width: 320px;
    margin: 17px 0 0;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
    line-height: 1.65;
}

/* CARTE PRINCIPALE */

.invitation-v3__card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
    padding: 28px 23px;
    border: 1px solid var(--indlu-v3-border);
    border-radius: 27px;
    background: var(--indlu-v3-surface);
    box-shadow: var(--indlu-v3-shadow);
    text-align: center;
}

    .invitation-v3__card h2 {
        margin: 0;
        font-family: var(--indlu-v3-serif);
        font-size: 27px;
        font-weight: 500;
        letter-spacing: -.025em;
        line-height: 1.15;
    }

    .invitation-v3__card > p {
        margin: 0;
        color: var(--indlu-v3-text-soft);
        font-size: 14px;
        line-height: 1.6;
    }

/* BOUTONS */

.invitation-v3__button,
.invitation-v3__secondary {
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 17px;
    font-family: var(--indlu-v3-sans);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.invitation-v3__button {
    border: 0;
    background: var(--indlu-v3-terracotta);
    color: #fff;
    box-shadow: 0 8px 20px rgba(201, 111, 76, .16);
}

.invitation-v3__secondary {
    border: 1px solid rgba(120, 133, 109, .22);
    background: var(--indlu-v3-sage-soft);
    color: var(--indlu-v3-sage);
}

.invitation-v3__button:disabled {
    opacity: .6;
    cursor: wait;
}

.invitation-v3__button:not(:disabled):active,
.invitation-v3__secondary:active {
    transform: scale(.985);
}

/* CONFIRMATION */

.invitation-v3__card--success {
    background: linear-gradient( 155deg, var(--indlu-v3-sage-soft), var(--indlu-v3-surface) 65% );
}

.invitation-v3__success-icon {
    font-size: 44px;
}

.invitation-v3__footnote {
    color: var(--indlu-v3-text-faint) !important;
    font-size: 12px !important;
}

/* ERREURS */

.invitation-v3__error {
    padding: 13px 15px;
    border-radius: 14px;
    background: var(--indlu-v3-terracotta-faint);
    color: #a24f3d;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

/* PETITS ÉCRANS */

@media (max-width: 380px) {
    .invitation-v3 {
        padding-top: 18px;
        gap: 23px;
    }

    .invitation-v3__card {
        padding: 23px 17px;
    }

    .invitation-v3__symbol {
        width: 68px;
        height: 68px;
        font-size: 34px;
    }
}


/* =========================================================
   US V3 — HOUSEHOLD MANAGEMENT
   ========================================================= */

.us-v3-manage {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 14px;
    padding: 21px 17px;
    border: 1px solid var(--indlu-v3-border);
    border-radius: 24px;
    background: var(--indlu-v3-surface);
    box-shadow: var(--indlu-v3-shadow);
}

.us-v3-manage__heading > span {
    color: var(--indlu-v3-terracotta);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.us-v3-manage__heading h2 {
    margin: 8px 0 5px;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 24px;
    font-weight: 500;
}

.us-v3-manage__heading p {
    margin: 0;
    color: var(--indlu-v3-text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.us-v3-manage__action,
.us-v3-manage__invite {
    width: 100%;
    display: flex;
    align-items: center;
    border: 0;
    cursor: pointer;
}

.us-v3-manage__action {
    gap: 12px;
    min-height: 75px;
    padding: 12px;
    border: 1px solid var(--indlu-v3-border);
    border-radius: 17px;
    background: var(--indlu-v3-surface-soft);
    text-align: left;
}

.us-v3-manage__icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--indlu-v3-sage-soft);
    font-size: 23px;
}

.us-v3-manage__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

    .us-v3-manage__copy strong {
        color: var(--indlu-v3-text);
        font-size: 13px;
        font-weight: 800;
    }

    .us-v3-manage__copy small {
        color: var(--indlu-v3-text-soft);
        font-size: 11px;
    }

.us-v3-manage__arrow {
    color: var(--indlu-v3-terracotta);
    font-size: 22px;
}

.us-v3-manage__invite {
    justify-content: center;
    gap: 10px;
    min-height: 49px;
    padding: 12px;
    border-radius: 15px;
    background: var(--indlu-v3-terracotta);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

    .us-v3-manage__invite:active,
    .us-v3-manage__action:active {
        transform: scale(.985);
    }

/* INDLU — Renvoi de confirmation */

.register-resend-button {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid var(--indlu-v3-border);
    border-radius: 15px;
    background: var(--indlu-v3-surface);
    color: var(--indlu-v3-terracotta);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

    .register-resend-button:disabled {
        opacity: .55;
        cursor: wait;
    }


/* =========================================================
   LOGIN — CONFIRMATION E-MAIL
   ========================================================= */

.login-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 14px 0 4px;
    text-align: center;
}

    .login-confirmation > span {
        color: var(--indlu-v3-text-soft);
        font-size: 12px;
    }

.login-confirmation__button {
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

    .login-confirmation__button:hover {
        text-decoration: underline;
    }

    .login-confirmation__button:disabled {
        opacity: .5;
        cursor: wait;
    }


/* =========================================================
   INDLU V3 — HOUSEHOLD WELCOME
   ========================================================= */

.household-welcome-v3 {
    width: 100%;
    max-width: 560px;
    min-height: 85dvh;
    margin: 0 auto;
    padding: 38px 15px 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.household-welcome-v3__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.household-welcome-v3__illustration {
    width: 94px;
    height: 94px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border-radius: 31px;
    background: var(--indlu-v3-sage-soft);
    font-size: 49px;
}

.household-welcome-v3__kicker {
    color: var(--indlu-v3-terracotta);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.household-welcome-v3 h1 {
    margin: 16px 0;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: clamp(37px, 10vw, 51px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.household-welcome-v3__description {
    max-width: 330px;
    margin: 0 0 30px;
    color: var(--indlu-v3-text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.household-welcome-v3__card {
    width: 100%;
    padding: 28px 23px;
    border: 1px solid var(--indlu-v3-border);
    border-radius: 25px;
    background: var(--indlu-v3-surface);
    box-shadow: var(--indlu-v3-shadow);
}

.household-welcome-v3__card-icon {
    display: block;
    margin-bottom: 13px;
    font-size: 32px;
}

.household-welcome-v3__card h2 {
    margin: 0 0 12px;
    color: var(--indlu-v3-text);
    font-family: var(--indlu-v3-serif);
    font-size: 25px;
    font-weight: 500;
}

.household-welcome-v3__card p {
    margin: 0;
    color: var(--indlu-v3-text-soft);
    font-size: 13px;
    line-height: 1.75;
}

.household-welcome-v3__hint {
    max-width: 300px;
    margin: 23px 0;
    color: var(--indlu-v3-text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.household-welcome-v3__logout {
    padding: 11px 17px;
    border: 0;
    background: transparent;
    color: var(--indlu-v3-terracotta);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
/* =========================================================
   INDLU — JOURNAL V4.1 / NOTRE HISTOIRE
   Remplacer l'ancien bloc JOURNAL V4 dans indlu.css.
   ========================================================= */

.indlu-v3-page.journal-v4 {
    --journal-paper: #f8f3ea;
    --journal-card: #fffdf9;
    --journal-ink: #2b211c;
    --journal-muted: #81716a;
    --journal-terracotta: #cb7250;
    --journal-sage: #eaf0e7;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    margin: 0 auto;
    padding: 34px clamp(19px, 5vw, 45px) 130px;
    box-sizing: border-box;
    color: var(--journal-ink);
    background: var(--journal-paper);
    overflow-wrap: anywhere;
}

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

.journal-v4-hero {
    margin-bottom: 27px;
}

.journal-v4-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 3px;
}

.journal-v4-eyebrow,
.journal-v4-day__eyebrow {
    color: var(--journal-terracotta);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.journal-v4-bell {
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--journal-card);
    color: var(--journal-ink);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .journal-v4-bell:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(62,40,28,.09);
    }

.journal-v4-hero h1 {
    margin: 0;
    font-family: var(--indlu-v3-serif, Georgia, serif);
    font-size: clamp(41px, 7vw, 59px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.journal-v4-hero p {
    margin: 10px 0 0;
    color: var(--journal-muted);
    font-size: 15px;
    line-height: 1.5;
}

.journal-v4-filters {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 0 0 11px;
    margin-bottom: 25px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .journal-v4-filters::-webkit-scrollbar {
        display: none;
    }

.journal-v4-filter {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 17px;
    border: 1px solid rgba(109,82,64,.09);
    border-radius: 999px;
    background: rgba(255,253,249,.8);
    color: #78695f;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .journal-v4-filter:hover {
        background: #f1e6dc;
    }

.journal-v4-filter--active,
.journal-v4-filter--active:hover {
    color: #fff;
    background: var(--journal-terracotta);
    border-color: var(--journal-terracotta);
}

.journal-v4-filter:disabled {
    cursor: wait;
    opacity: .7;
}

/* Action présente uniquement lorsqu'un signal est déplié. */
.journal-v4-collapse-actions {
    display: flex;
    justify-content: flex-end;
    margin: -7px 0 18px;
}

.journal-v4-collapse-all {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid rgba(114,85,66,.14);
    border-radius: 999px;
    background: var(--journal-card);
    color: #8b5b47;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

    .journal-v4-collapse-all:hover {
        background: #f5e8dc;
        border-color: rgba(203,114,80,.28);
    }

.journal-v4-day {
    min-width: 0;
    margin: 0 0 33px;
}

.journal-v4-day__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding-bottom: 13px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(99,73,56,.12);
}

    .journal-v4-day__heading > div {
        min-width: 0;
    }

    .journal-v4-day__heading h2 {
        margin: 5px 0 0;
        font-family: var(--indlu-v3-serif, Georgia, serif);
        font-size: clamp(24px, 4.5vw, 31px);
        font-weight: 500;
        line-height: 1.18;
    }

.journal-v4-day__count {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--journal-muted);
    font-size: 12px;
    white-space: nowrap;
}

.journal-v4-entries {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    min-width: 0;
}

.journal-v4-entry {
    min-width: 0;
    padding: clamp(17px, 4vw, 24px);
    border: 1px solid rgba(98,69,48,.08);
    border-radius: 19px;
    background: var(--journal-card);
    box-shadow: 0 6px 22px rgba(66,46,33,.035);
}

.journal-v4-entry--signal {
    display: grid;
    grid-template-columns: minmax(0, 125px) minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 8px 12px;
    border-color: rgba(127,108,92,.11);
    background: #fffdf8;
}

.journal-v4-entry--note {
    background: #fcf2e9;
}

.journal-v4-entry--memory {
    background: #fbfaf6;
}

.journal-v4-entry__author {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin-bottom: 16px;
}

.journal-v4-entry--signal .journal-v4-entry__author {
    gap: 7px;
    margin: 0;
    min-width: 0;
}

.journal-v4-entry--signal .journal-v4-entry__identity {
    gap: 0;
}

    .journal-v4-entry--signal .journal-v4-entry__identity strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow-wrap: normal;
        font-size: 12px;
    }
    /* La date reste dans le détail déplié ; en aperçu on privilégie le nom. */
    .journal-v4-entry--signal .journal-v4-entry__identity > span {
        display: none;
    }

.journal-v4-entry--signal:has(.journal-v4-signal--expanded) .journal-v4-entry__identity > span {
    display: block;
}

.journal-v4-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8e6dd;
    color: #66594d;
    font-family: var(--indlu-v3-serif, Georgia, serif);
    font-size: 21px;
    font-weight: 500;
}

.journal-v4-entry--signal .journal-v4-avatar {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.journal-v4-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-v4-entry__identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .journal-v4-entry__identity strong {
        color: var(--journal-ink);
        font-size: 14px;
        font-weight: 750;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .journal-v4-entry__identity > span {
        color: var(--journal-muted);
        font-size: 12px;
        line-height: 1.4;
    }

.journal-v4-signal,
.journal-v4-note,
.journal-v4-story {
    min-width: 0;
    max-width: 100%;
}

/* Signal fermé : une seule ligne, sans deuxième rangée d'actions. */
.journal-v4-signal--toggle {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    min-height: 31px;
    padding: 5px 18px 5px 9px;
    border: 0;
    border-radius: 8px;
    background: #f8efe8;
    color: #59443a;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease;
}

    .journal-v4-signal--toggle:hover {
        background: #f4e7dd;
    }

.journal-v4-signal__text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.journal-v4-signal--collapsed .journal-v4-signal__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journal-v4-signal--collapsed .journal-v4-signal__hint {
    display: none;
}

.journal-v4-signal--collapsed::after {
    content: "⌄";
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-57%);
    color: #a36247;
    font-size: 16px;
    line-height: 1;
}
/* Signal ouvert : la lecture reprend toute la largeur sous l'auteur. */
.journal-v4-signal--expanded {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
    padding: 13px 14px;
    border-left: 3px solid var(--journal-terracotta);
    border-radius: 5px 11px 11px 5px;
    background: #f6e9df;
}

    .journal-v4-signal--expanded .journal-v4-signal__text {
        font-size: 15px;
        line-height: 1.65;
        white-space: pre-wrap;
    }

.journal-v4-signal__hint {
    align-self: flex-end;
    color: #a36247;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.journal-v4-note h3,
.journal-v4-story h3 {
    margin: 0 0 6px;
    color: var(--journal-ink);
    font-family: var(--indlu-v3-serif, Georgia, serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.28;
}

.journal-v4-note p,
.journal-v4-story p {
    margin: 0;
    color: #65554b;
    font-size: 14px;
    line-height: 1.7;
}

.journal-v4-note h3,
.journal-v4-note p,
.journal-v4-story h3,
.journal-v4-story p,
.journal-v4-memory__details strong,
.journal-v4-memory__details > span {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: pre-wrap;
}

.journal-v4-memory {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f3e7db;
    text-align: left;
    cursor: pointer;
}

    .journal-v4-memory > img {
        display: block;
        width: 100%;
        max-height: 340px;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

.journal-v4-memory__details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 16px 17px;
    min-width: 0;
}

    .journal-v4-memory__details strong {
        color: var(--journal-ink);
        font-family: var(--indlu-v3-serif, Georgia, serif);
        font-size: 23px;
        font-weight: 500;
        line-height: 1.2;
    }

    .journal-v4-memory__details > span {
        color: #69594e;
        font-size: 14px;
        line-height: 1.55;
    }

.journal-v4-entry__action {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--journal-terracotta);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

/* Chargement progressif — élément déjà utilisé par Timeline.razor. */
.journal-v4-load-more {
    display: flex;
    justify-content: center;
    margin: 7px 0 30px;
}

.journal-v4-load-more__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 46px;
    max-width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(203,114,80,.34);
    border-radius: 999px;
    background: var(--journal-card);
    color: #a65c42;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

    .journal-v4-load-more__button:hover:not(:disabled) {
        background: #f7e8de;
        transform: translateY(-1px);
    }

    .journal-v4-load-more__button:disabled {
        opacity: .65;
        cursor: wait;
    }

.journal-v4-loading,
.journal-v4-feedback,
.journal-v4-empty {
    padding: 44px 22px;
    border-radius: 18px;
    background: var(--journal-card);
    text-align: center;
    color: var(--journal-muted);
}

    .journal-v4-empty > span {
        display: block;
        margin-bottom: 13px;
        color: var(--journal-terracotta);
        font-size: 30px;
    }

    .journal-v4-feedback h2,
    .journal-v4-empty h2 {
        margin: 0 0 9px;
        color: var(--journal-ink);
        font-family: var(--indlu-v3-serif, Georgia, serif);
        font-size: 25px;
        font-weight: 500;
    }

    .journal-v4-feedback p,
    .journal-v4-empty p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
    }

    .journal-v4-feedback button {
        margin-top: 18px;
        padding: 10px 20px;
        border: 0;
        border-radius: 999px;
        background: var(--journal-terracotta);
        color: #fff;
        font: inherit;
        cursor: pointer;
    }

.journal-v4-footer {
    margin-top: 35px;
    padding-top: 21px;
    border-top: 1px solid rgba(99,73,56,.11);
    color: #a78a7c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-align: center;
}

.journal-v4 button:focus-visible {
    outline: 3px solid #a16548;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .indlu-v3-page.journal-v4 {
        padding: 25px 18px 132px;
    }

    .journal-v4-hero h1 {
        font-size: 44px;
    }

    .journal-v4-day__count {
        font-size: 11px;
    }

    .journal-v4-entry {
        padding: 17px;
        border-radius: 16px;
    }

    .journal-v4-entry--signal {
        grid-template-columns: minmax(0, 103px) minmax(0, 1fr);
        column-gap: 5px;
        padding: 7px 9px;
        border-radius: 12px;
    }

        .journal-v4-entry--signal .journal-v4-avatar {
            flex-basis: 25px;
            width: 25px;
            height: 25px;
        }

    .journal-v4-signal--toggle {
        padding: 5px 18px 5px 7px;
    }

    .journal-v4-signal--expanded .journal-v4-signal__text {
        font-size: 14px;
    }

    .journal-v4-load-more__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journal-v4-bell,
    .journal-v4-filter,
    .journal-v4-collapse-all,
    .journal-v4-signal--toggle,
    .journal-v4-load-more__button {
        transition: none;
    }
}

/* =========================================================
   INDLU — SIGNAL MAISON V4
   Remplacer les anciens styles de la page Signal par ce bloc.
   ========================================================= */
.signal-hub {
    --signal-ink: var(--indlu-ink, #30241e);
    --signal-muted: var(--indlu-text-muted, #826f65);
    --signal-accent: var(--indlu-accent, #77947b);
    --signal-terracotta: var(--indlu-v3-terracotta, #cb7250);
    --signal-paper: var(--indlu-surface, #fffdfa);
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - 110px);
    padding: 4px 0 135px;
    color: var(--signal-ink);
}

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

    .signal-hub button {
        font: inherit;
    }

        .signal-hub button:focus-visible,
        .signal-hub textarea:focus-visible {
            outline: 2px solid var(--signal-terracotta);
            outline-offset: 3px;
        }

/* En-tête */
.signal-hub__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px;
}

.signal-hub__back {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(108,72,50,.10);
    border-radius: 50%;
    background: rgba(255,253,250,.82);
    color: var(--signal-ink);
    font-family: var(--indlu-serif, Georgia, serif) !important;
    font-size: 27px !important;
    line-height: 1;
    cursor: pointer;
}

.signal-hub__brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

    .signal-hub__brand span {
        font-family: var(--indlu-serif, Georgia, serif);
        font-size: 15px;
        font-weight: 650;
    }

    .signal-hub__brand small {
        color: var(--signal-muted);
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .1em;
    }

.signal-hub__intro {
    margin: 0 0 23px;
    text-align: center;
}

.signal-hub__kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--indlu-accent-dark, #50765d);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.signal-hub__intro h1 {
    margin: 0;
    font-family: var(--indlu-serif, Georgia, serif);
    font-size: clamp(35px, 6vw, 47px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.047em;
}

.signal-hub__intro p {
    max-width: 310px;
    margin: 12px auto 0;
    color: var(--signal-muted);
    font-size: 12px;
    line-height: 1.5;
}

.signal-hub__intro::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--signal-accent);
}

/* Les huit gestes */
.signal-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 16px;
}

.signal-preset {
    min-width: 0;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 5px;
    border: 1px solid rgba(108,72,50,.075);
    border-radius: 19px;
    background: linear-gradient(145deg, #fffdfa, #fff8ef);
    color: var(--signal-ink);
    box-shadow: 0 7px 22px rgba(116,74,48,.05);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .signal-preset:active {
        transform: scale(.96);
    }

    .signal-preset:disabled {
        opacity: .55;
        cursor: wait;
    }

.signal-preset__icon {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(244,198,165,.16);
    color: var(--indlu-ink-soft, #78574a);
}

    .signal-preset__icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.signal-preset__label {
    max-width: 100%;
    font-family: var(--indlu-serif, Georgia, serif);
    font-size: clamp(10px, 2.2vw, 13px);
    font-weight: 600;
    line-height: 1.14;
    text-align: center;
    overflow-wrap: anywhere;
}

.signal-preset:nth-child(4n + 2) .signal-preset__icon {
    background: rgba(217,186,143,.15);
}

.signal-preset:nth-child(4n + 3) .signal-preset__icon {
    background: rgba(163,171,136,.13);
}

.signal-preset:nth-child(4n + 4) .signal-preset__icon {
    background: rgba(220,116,76,.10);
    color: var(--indlu-accent-dark, #50765d);
}

/* Formulaire personnalisé : juste après les gestes rapides */
.signal-custom {
    margin: 0 0 31px;
}

.signal-custom__toggle {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 11px;
    align-items: center;
    padding: 12px 14px;
    border: 1px dashed rgba(203,114,80,.27);
    border-radius: 17px;
    background: rgba(255,253,249,.45);
    color: var(--signal-ink);
    text-align: left;
    cursor: pointer;
}

.signal-custom__plus {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(203,114,80,.12);
    color: var(--signal-terracotta);
    font-size: 21px;
}

.signal-custom__toggle > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.signal-custom__toggle strong {
    font-family: var(--indlu-serif, Georgia, serif);
    font-size: 14px;
    font-weight: 600;
}

.signal-custom__toggle small {
    color: var(--signal-muted);
    font-size: 11px;
}

.signal-custom__chevron {
    justify-self: center;
    color: var(--signal-terracotta);
    font-size: 21px;
}

.signal-custom__composer {
    margin-top: 9px;
    padding: 13px 15px;
    border: 1px solid rgba(108,72,50,.09);
    border-radius: 17px;
    background: rgba(255,253,250,.94);
}

    .signal-custom__composer textarea {
        display: block;
        width: 100%;
        min-height: 70px;
        max-height: 190px;
        padding: 2px 0;
        border: 0;
        outline: 0;
        resize: vertical;
        background: transparent;
        color: var(--signal-ink);
        font-family: var(--indlu-serif, Georgia, serif);
        font-size: 15px;
        line-height: 1.55;
    }

        .signal-custom__composer textarea::placeholder {
            color: #ad978c;
            font-style: italic;
        }

.signal-custom__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(108,72,50,.08);
}

    .signal-custom__footer > span {
        color: var(--signal-muted);
        font-size: 11px;
    }

    .signal-custom__footer button {
        min-height: 37px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0 14px;
        border: 0;
        border-radius: 11px;
        background: var(--signal-accent);
        color: #fff;
        font-size: 12px;
        font-weight: 750;
        cursor: pointer;
    }

        .signal-custom__footer button:disabled {
            opacity: .55;
            cursor: wait;
        }

        .signal-custom__footer button svg {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

/* États d'envoi */
.signal-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 12px 0;
    padding: 11px 14px;
    border: 1px solid rgba(93,137,99,.18);
    border-radius: 13px;
    background: #eef3eb;
    color: #3b654c;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.signal-toast--error {
    border-color: rgba(179,91,67,.18);
    background: #faeee8;
    color: #a44b38;
}

/* Liste des derniers signaux */
.signal-recent {
    min-width: 0;
}

.signal-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

    .signal-section-heading > div {
        min-width: 0;
    }

    .signal-section-heading .section-kicker {
        color: var(--indlu-accent-dark, #50765d);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .12em;
    }

    .signal-section-heading h2 {
        margin: 5px 0 0;
        font-family: var(--indlu-serif, Georgia, serif);
        font-size: 25px;
        font-weight: 500;
        line-height: 1.1;
    }

.signal-section-heading__count {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: rgba(125,154,123,.12);
    color: #56745d;
    font-size: 12px;
    font-weight: 750;
}

.signal-recent__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.signal-recent-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(108,72,50,.07);
    border-radius: 16px;
    background: rgba(255,253,250,.86);
    box-shadow: 0 5px 17px rgba(116,74,48,.035);
}

.signal-recent-card__toggle {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 0;
    background: transparent;
    color: var(--signal-ink);
    text-align: left;
    cursor: pointer;
}

.signal-recent-card__avatar {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1ece5;
    color: #795b4e;
    font-family: var(--indlu-serif, Georgia, serif);
    font-size: 17px;
    overflow: hidden;
}

    .signal-recent-card__avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.signal-recent-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.signal-recent-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
    color: var(--signal-muted);
    font-size: 11px;
}

    .signal-recent-card__meta strong {
        min-width: 0;
        color: var(--signal-ink);
        font-size: 12px;
        font-weight: 750;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .signal-recent-card__meta time {
        flex: 0 0 auto;
        color: var(--signal-muted);
        font-size: 10px;
        white-space: nowrap;
    }

.signal-recent-card__message {
    display: block;
    min-width: 0;
    color: var(--signal-ink);
    font-family: var(--indlu-serif, Georgia, serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.signal-recent-card--compact .signal-recent-card__message {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.signal-recent-card--expanded .signal-recent-card__toggle {
    align-items: start;
    background: rgba(248,241,233,.52);
}

.signal-recent-card--expanded .signal-recent-card__message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.6;
}

.signal-recent-card__chevron {
    justify-self: end;
    align-self: center;
    color: var(--signal-muted);
    font-size: 17px;
}

.signal-recent-card--expanded .signal-recent-card__chevron {
    align-self: start;
}

.signal-recent__loading, .signal-empty {
    padding: 23px 16px;
    border-radius: 17px;
    background: rgba(255,253,250,.75);
    color: var(--signal-muted);
    text-align: center;
    font-size: 13px;
}

    .signal-recent__loading span {
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-right: 6px;
        border-radius: 50%;
        background: var(--signal-accent);
    }

.signal-empty__icon {
    display: block;
    margin-bottom: 8px;
    color: var(--signal-terracotta);
    font-size: 23px;
}

.signal-empty strong {
    color: var(--signal-ink);
    font-family: var(--indlu-serif, Georgia, serif);
    font-size: 19px;
    font-weight: 500;
}

.signal-empty p {
    margin: 6px 0 0;
}

@media (hover: hover) {
    .signal-preset:hover {
        border-color: rgba(203,114,80,.3);
        box-shadow: 0 8px 25px rgba(116,74,48,.08);
    }

    .signal-recent-card__toggle:hover, .signal-custom__toggle:hover {
        background-color: rgba(249,241,231,.65);
    }
}

@media (max-width: 380px) {
    .signal-presets {
        gap: 6px;
    }

    .signal-preset {
        min-height: 96px;
        padding: 10px 3px;
        border-radius: 15px;
    }

    .signal-preset__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

        .signal-preset__icon svg {
            width: 21px;
            height: 21px;
        }

    .signal-recent-card__toggle {
        padding: 10px;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signal-preset {
        transition: none;
    }
}

/* =========================================================
   INDLU — RETIENS ÇA V4
   Remplace intégralement l'ancien bloc CREATE REMEMBER /
   REMEMBER PAGE / HOME REMEMBER CARD.
   Les styles du login et les autres modules restent intacts.
   ========================================================= */

/* ------ AJOUT : catégories et profils (compatibilité) ------ */
.remember-add-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.remember-add-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.remember-add-category {
    min-width: 0;
    min-height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px;
    border: 1px solid rgba(108, 72, 50, .10);
    border-radius: 16px;
    background: rgba(255, 253, 250, .8);
    color: var(--indlu-ink);
    text-align: center;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

    .remember-add-category > span {
        font-size: 1.25rem;
        line-height: 1;
    }

    .remember-add-category strong {
        min-width: 0;
        font-family: var(--indlu-sans);
        font-size: .76rem;
        font-weight: 650;
    }

.remember-add-category--active {
    border-color: rgba(182, 101, 68, .42);
    background: rgba(218, 128, 84, .11);
    color: var(--indlu-accent-dark);
}

.remember-add-category:active {
    transform: scale(.98);
}

.remember-add-members {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.remember-add-member {
    min-width: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid rgba(108, 72, 50, .09);
    border-radius: 16px;
    background: rgba(255, 253, 250, .76);
    color: var(--indlu-ink);
    cursor: pointer;
}

    .remember-add-member img {
        display: block;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
    }

    .remember-add-member span {
        max-width: 100%;
        overflow: hidden;
        font-family: var(--indlu-sans);
        font-size: .75rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.remember-add-member--active {
    border-color: rgba(89, 122, 91, .36);
    background: rgba(120, 151, 118, .11);
}

    .remember-add-member--active img {
        box-shadow: 0 0 0 3px rgba(120, 151, 118, .26);
    }

/* ------ LISTE : mise en page générale ------ */
.remember-page {
    display: flex;
    flex-direction: column;
    gap: 19px;
    min-width: 0;
    padding-bottom: calc(115px + env(safe-area-inset-bottom, 0px));
}

.remember-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .remember-header > div {
        min-width: 0;
    }

    .remember-header h1 {
        margin: 5px 0 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: clamp(1.65rem, 5.4vw, 2.15rem);
        font-weight: 500;
        line-height: 1.08;
        letter-spacing: -.035em;
    }

    .remember-header p {
        margin: 7px 0 0;
        max-width: 35ch;
        color: var(--indlu-text-muted);
        font-size: .83rem;
        line-height: 1.5;
    }

.remember-header__add {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 16px;
    background: var(--indlu-ink);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(64, 42, 30, .13);
}

/* ------ Recherche ------ */
.remember-search {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 51px;
    padding: 0 15px;
    border: 1px solid rgba(108, 72, 50, .10);
    border-radius: 17px;
    background: rgba(255, 253, 250, .88);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .remember-search:focus-within {
        border-color: rgba(182, 101, 68, .38);
        box-shadow: 0 0 0 3px rgba(182, 101, 68, .07);
    }

    .remember-search > span {
        color: var(--indlu-text-muted);
        font-size: 1.25rem;
    }

    .remember-search input {
        min-width: 0;
        width: 100%;
        padding: 12px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--indlu-ink);
        font-family: var(--indlu-sans);
        font-size: .9rem;
    }

        .remember-search input::placeholder {
            color: var(--indlu-text-muted);
            opacity: .86;
        }

/* ------ Catégories / carnets ------ */
.remember-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 11px;
}

.remember-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px 13px 12px;
    border: 1px solid rgba(108, 72, 50, .085);
    border-radius: 20px;
    background: rgba(255, 253, 250, .81);
    box-shadow: 0 7px 22px rgba(101, 73, 53, .035);
}

    .remember-category-card > header {
        display: grid;
        grid-template-columns: 27px minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
    }

.remember-category-card__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.remember-category-card > header strong {
    min-width: 0;
    overflow: hidden;
    color: var(--indlu-ink);
    font-family: var(--indlu-serif);
    font-size: 1.02rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remember-category-card__count {
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(218, 168, 116, .14);
    color: var(--indlu-accent-dark);
    font-size: .75rem;
    font-weight: 700;
}

.remember-category-card__items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.remember-category-card__item {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr) 19px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--indlu-ink);
    font-family: var(--indlu-sans);
    font-size: .78rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

    .remember-category-card__item > span:nth-child(2) {
        min-width: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.remember-category-card__bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--indlu-accent);
}

.remember-category-card__check {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border: 1px solid rgba(108, 72, 50, .18);
    border-radius: 50%;
    color: var(--indlu-sage-deep);
    font-size: .75rem;
}

.remember-category-card__item--done {
    opacity: .53;
    text-decoration: line-through;
}

.remember-category-card__empty {
    padding: 16px 0 10px;
    color: var(--indlu-text-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.remember-category-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid rgba(108, 72, 50, .075);
    background: transparent;
    color: var(--indlu-accent-dark);
    font-family: var(--indlu-sans);
    font-size: .78rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

    .remember-category-card__more span {
        font-size: 1.15rem;
        line-height: 1;
    }

/* ------ Ajouté récemment ------ */
.remember-recent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .remember-recent > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .remember-recent h2 {
        margin: 0;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.3rem;
        font-weight: 600;
        letter-spacing: -.02em;
    }

    .remember-recent > header button {
        padding: 8px 2px;
        border: 0;
        background: transparent;
        color: var(--indlu-accent-dark);
        font-family: var(--indlu-sans);
        font-size: .8rem;
        font-weight: 700;
        cursor: pointer;
    }

.remember-recent__list {
    overflow: hidden;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 20px;
    background: rgba(255, 253, 250, .81);
}

.remember-recent__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 35px;
    align-items: center;
    gap: 11px;
    min-height: 75px;
    padding: 12px 13px;
    border-bottom: 1px solid rgba(108, 72, 50, .075);
    cursor: pointer;
}

    .remember-recent__item:last-child {
        border-bottom: 0;
    }

    .remember-recent__item > img,
    .remember-recent__item > .remember-recent__avatar {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        background: rgba(218, 168, 116, .15);
        color: var(--indlu-accent-dark);
        font-size: 1rem;
        font-weight: 650;
    }

.remember-recent__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .remember-recent__copy strong {
        color: var(--indlu-accent-dark);
        font-size: .75rem;
        font-weight: 750;
    }

    .remember-recent__copy > span {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-sans);
        font-size: .88rem;
        font-weight: 600;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .remember-recent__copy small {
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: .76rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.remember-recent__favorite {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--indlu-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.remember-recent__favorite--active {
    color: var(--indlu-accent);
}

.remember-recent__item--done {
    opacity: .56;
}

.remember-recent__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 16px;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 20px;
    background: rgba(255, 253, 250, .76);
    text-align: center;
}

    .remember-recent__empty > span {
        font-size: 1.8rem;
    }

    .remember-recent__empty strong {
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1.1rem;
    }

    .remember-recent__empty small {
        color: var(--indlu-text-muted);
        font-size: .8rem;
    }

/* ------ Chargement, erreurs, accessibilité ------ */
.remember-loading {
    display: grid;
    place-items: center;
    min-height: 45dvh;
    color: var(--indlu-text-muted);
    font-family: var(--indlu-serif);
    font-size: 1rem;
}

.remember-error {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(184, 84, 55, .09);
    color: var(--indlu-accent-dark);
    font-size: .82rem;
    line-height: 1.45;
}

.remember-page button:focus-visible,
.remember-add-category:focus-visible,
.remember-add-member:focus-visible {
    outline: 2px solid var(--indlu-accent);
    outline-offset: 3px;
}

/* ------ Carte Retiens ça dans Maison ------ */
.home-remember-card {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 75px;
    padding: 13px;
    border: 1px solid rgba(108, 72, 50, .08);
    border-radius: 19px;
    background: rgba(255, 253, 250, .78);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.home-remember-card__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    background: rgba(218, 168, 116, .13);
    font-size: 1.25rem;
}

.home-remember-card__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .home-remember-card__copy small {
        color: var(--indlu-accent-dark);
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .08em;
    }

    .home-remember-card__copy strong {
        overflow: hidden;
        color: var(--indlu-ink);
        font-family: var(--indlu-serif);
        font-size: 1rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-remember-card__copy > span {
        overflow: hidden;
        color: var(--indlu-text-muted);
        font-size: .76rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.home-remember-card__arrow {
    color: var(--indlu-accent-dark);
    font-size: 1.15rem;
}

@media (max-width: 360px) {
    .remember-category-grid {
        gap: 8px;
    }

    .remember-category-card {
        padding: 12px 10px;
    }

        .remember-category-card > header {
            grid-template-columns: 23px minmax(0, 1fr) auto;
            gap: 4px;
        }

            .remember-category-card > header strong {
                font-size: .92rem;
            }

    .remember-category-card__icon {
        font-size: 1.1rem;
    }

    .remember-add-category strong {
        font-size: .68rem;
    }
}

@media (min-width: 700px) {
    .remember-page {
        max-width: 760px;
        margin-inline: auto;
        width: 100%;
    }

    .remember-category-grid {
        gap: 14px;
    }

    .remember-category-card {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .remember-page *, .remember-add-category {
        transition: none !important;
    }
}

.household-v5-danger-link {
    display: block;
    margin: 2px 0 15px auto;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: #a45f55;
    font-size: 12px;
    cursor: pointer;
}

.household-v5-archive {
    display: grid;
    gap: 10px;
}

.household-v5-archive__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 14px;
    background: #f5eee6;
}

    .household-v5-archive__item > span {
        color: #b57c67;
        font-size: 23px;
    }

    .household-v5-archive__item div {
        display: grid;
        gap: 3px;
    }

    .household-v5-archive__item strong {
        color: #4c372d;
        font-size: 14px;
    }

    .household-v5-archive__item small {
        color: #967e70;
        font-size: 12px;
    }

.household-v5-departure {
    margin-top: 25px;
    padding: 18px;
    border: 1px solid #ead9d3;
    border-radius: 18px;
    background: #fffaf7;
}

    .household-v5-departure strong {
        color: #50372c;
        font-size: 15px;
    }

    .household-v5-departure p {
        color: #927b70;
        font-size: 13px;
        line-height: 1.6;
    }

    .household-v5-departure button {
        padding: 10px 13px;
        border: 1px solid #d3a49b;
        border-radius: 12px;
        background: transparent;
        color: #a45449;
        font-weight: 700;
        cursor: pointer;
    }

.household-v5-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(35, 24, 20, .52);
}

.household-v5-modal {
    width: min(100%, 380px);
    padding: 24px;
    border-radius: 22px;
    background: #fffaf4;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

    .household-v5-modal h2 {
        margin: 0 0 10px;
        color: #493127;
        font-family: Georgia, serif;
        font-size: 25px;
    }

    .household-v5-modal p {
        color: #876e60;
        font-size: 14px;
        line-height: 1.6;
    }

.household-v5-error {
    color: #a3483d !important;
}

.household-v5-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

    .household-v5-modal__actions button {
        flex: 1;
        min-height: 44px;
        border: 1px solid #e6d9ce;
        border-radius: 12px;
        background: #fff;
        color: #594238;
        font-weight: 700;
        cursor: pointer;
    }

    .household-v5-modal__actions
    .household-v5-modal__confirm {
        border-color: #ae5d50;
        background: #ae5d50;
        color: white;
    }

    .household-v5-modal__actions button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.household-v3-member {
    position: relative;
}

.household-v5-member-actions {
    position: relative;
    margin-left: auto;
}

.household-v5-member-actions__trigger {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #eaded5;
    border-radius: 12px;
    background: #fffaf5;
    color: #987467;
    font-size: 23px;
    cursor: pointer;
}

.household-v5-member-actions__menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 20;
    min-width: 185px;
    padding: 6px;
    border: 1px solid #e8d9cf;
    border-radius: 13px;
    background: #fffdfa;
    box-shadow: 0 10px 30px rgba(68, 40, 30, .13);
}

    .household-v5-member-actions__menu button {
        width: 100%;
        padding: 11px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: #a45249;
        text-align: left;
        font-size: 13px;
        cursor: pointer;
    }

        .household-v5-member-actions__menu button:hover {
            background: #fdf0eb;
        }
