:root {
    --rose: #db7985;
    --rose-deep: #bd5965;
    --shell: #fbf8f5;
    --ivory: #fffdfb;
    --line: #eadfda;
    --ink: #1f1715;
    --warm: #7e6e68;
    --shadow: 0 18px 60px rgba(94, 69, 60, .10);
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
    --font-logo: "Allura", "Brush Script MT", cursive;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(244, 199, 202, .32), transparent 34rem),
        linear-gradient(180deg, #fffdfb 0%, var(--shell) 100%);
}

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

.app-shell {
    min-height: 100vh;
    padding: 12px 10px 92px;
}

.app-main {
    display: grid;
    gap: 20px;
    justify-content: center;
}

.phone-frame {
    width: min(100%, 430px);
    min-height: calc(100vh - 104px);
    margin-inline: auto;
    padding: 20px 14px 98px;
    background: rgba(255, 253, 251, .86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin-bottom: 16px;
}

.wordmark,
.brand-lockup span {
    color: #9b5d51;
    font-family: var(--font-logo);
    font-size: 43px;
    font-weight: 400;
    letter-spacing: .005em;
    line-height: .72;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header-brand {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.screen-header > a.icon-button[aria-label="Retour au tableau de bord"] {
    display: none;
}

.mobile-menu-button {
    width: 34px;
    height: 34px;
    color: var(--rose-deep);
    background: #fff8f5;
    border: 1px solid var(--line);
}

.icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.icon-button svg,
.nav-item svg,
.mobile-menu-button svg,
.mobile-menu-close svg,
.mobile-menu-item svg,
.desktop-nav-item svg,
.shortcut-card svg,
.task-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.hero-card,
.intro-card,
.panel,
.metric-card,
.soft-callout,
.mood-preview {
    background: rgba(255, 253, 251, .92);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 16px;
}

.hero-card h1,
.intro-card h1 {
    margin: 2px 0 4px;
    font-family: var(--font-display);
    font-size: clamp(29px, 7vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.hero-card h1 {
    display: block;
    white-space: nowrap;
}

.hero-card h1 span {
    display: inline-block;
    margin-left: 5px;
    color: var(--rose);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-hero__copy {
    min-width: 0;
}

.dashboard-hero h1 {
    overflow-wrap: anywhere;
    white-space: normal;
}

.dashboard-hero__date {
    overflow-wrap: anywhere;
}

.dashboard-hero .countdown {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(234, 223, 218, .9);
    text-align: left;
}

.dashboard-hero .countdown span {
    flex: 0 0 auto;
    font-size: 42px;
}

.dashboard-hero .countdown small {
    max-width: 150px;
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
}

.hero-card p,
.intro-card p,
.muted {
    color: var(--warm);
    font-size: 14px;
}

.eyebrow {
    color: var(--rose-deep) !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.countdown {
    flex: 0 0 auto;
    text-align: right;
}

.countdown span {
    display: block;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
}

.countdown small {
    display: block;
    max-width: 76px;
    color: var(--warm);
    font-size: 11px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 18px;
}

.metric-card {
    min-height: 116px;
    padding: 14px 10px;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--warm);
    font-size: 11px;
}

.metric-card strong {
    display: block;
    margin: 9px 0 5px;
    font-family: var(--font-display);
    font-size: clamp(23px, 6vw, 27px);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.progress-line {
    height: 7px;
    margin-top: 14px;
    overflow: hidden;
    background: #efe6e0;
    border-radius: 999px;
}

.progress-line span {
    height: 100%;
    background: var(--rose);
    border-radius: inherit;
}

.progress-card {
    display: flex;
    flex-direction: column;
}

.progress-card > small {
    min-height: 26px;
    line-height: 1.25;
}

.ring {
    --progress: 0%;
    display: grid;
    width: 58px;
    height: 58px;
    margin: 8px auto 0;
    place-items: center;
    background: conic-gradient(var(--rose) var(--progress), #e6ded9 0);
    border-radius: 999px;
}

.ring span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    background: var(--ivory);
    border-radius: inherit;
    font-size: 11px;
    font-weight: 700;
}

.panel {
    padding: 16px;
    margin-bottom: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 17px;
    font-weight: 700;
}

.section-title a {
    color: var(--rose-deep);
    font-size: 12px;
}

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

.task-row {
    --task-accent: var(--line);
    --task-bg: linear-gradient(180deg, #fffdfb, #fffaf7);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px;
    background: var(--task-bg);
    border: 1px solid var(--task-accent);
    border-left-width: 5px;
    border-radius: 8px;
}

.task-row.is-critical {
    --task-accent: #e0001a;
    --task-bg: linear-gradient(180deg, #fff0f1, #fffafa);
}

.task-row.is-late {
    --task-accent: #e0001a;
    --task-bg: linear-gradient(180deg, #fff0f1, #fffafa);
}

.task-row.is-today {
    --task-accent: #cf5f72;
    --task-bg: linear-gradient(180deg, #fff3f6, #fffdfb);
}

.task-row.is-urgent {
    --task-accent: #cf5f72;
    --task-bg: linear-gradient(180deg, #fff3f6, #fffdfb);
}

.task-row.is-soon {
    --task-accent: #f0b9c2;
    --task-bg: linear-gradient(180deg, #fff9fa, #fffdfb);
}

.task-row.is-future {
    --task-accent: #f0b9c2;
    --task-bg: linear-gradient(180deg, #fff9fa, #fffdfb);
}

.task-row.is-complete {
    --task-accent: #b8ada7;
    --task-bg: linear-gradient(180deg, #f8f4f1, #fffdfb);
}

.task-row strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-row small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--warm);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-copy {
    min-width: 0;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    color: var(--warm);
    font-size: 11px;
    line-height: 1.25;
}

.task-meta span:not(.task-timing-badge) {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    background: rgba(255, 253, 251, .72);
    border: 1px solid rgba(234, 223, 218, .86);
    border-radius: 999px;
}

.amount {
    font-size: 13px;
    font-weight: 700;
}

.task-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--rose-deep);
    background: #fff2f2;
    border: 1px solid #f0caca;
    border-radius: 8px;
}

.task-icon.buy,
.task-icon.pay {
    color: #bd6b26;
    background: #fff6e7;
    border-color: #f2d3a8;
}

.task-icon.reserve {
    color: var(--rose-deep);
}

.task-icon.todo {
    color: #88674d;
    background: #fbf3ec;
}

.task-icon--critical {
    color: #b33540;
    background: #ffe9eb;
    border-color: #f3b9bf;
}

.task-icon--late {
    color: #bd5737;
    background: #fff0e8;
    border-color: #efc3ae;
}

.task-icon--today {
    color: #9f6400;
    background: #fff5cf;
    border-color: #e6c56a;
}

.task-icon--urgent {
    color: #a66d13;
    background: #fff4d8;
    border-color: #e8c574;
}

.task-icon--soon {
    color: #5f5651;
    background: #f5f3f1;
    border-color: #ded7d2;
}

.task-icon--future {
    color: #4e4743;
    background: #f4f2f0;
    border-color: #d8d0cb;
}

.task-icon--done {
    color: #9b8f89;
    background: #f5f2f0;
    border-color: #ded7d2;
}

.retroplanning-page {
    --timeline-wall: #e6d6cc;
    --timeline-floor: #fff9f4;
}

.timeline-panel {
    display: grid;
    gap: 14px;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 248, 242, .96)),
        #fffdfb;
}

.timeline-now-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #2f2a27;
    background: #f4f2f0;
    border: 1px solid #d8d0cb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.timeline-track {
    position: relative;
    isolation: isolate;
    z-index: 1;
    min-height: 164px;
    overflow: visible;
    background:
        linear-gradient(90deg, rgba(141, 117, 101, .08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(141, 117, 101, .08) 1px, transparent 1px),
        linear-gradient(180deg, #fffdfb 0%, var(--timeline-floor) 100%);
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid var(--timeline-wall);
    border-radius: 8px;
    box-shadow: inset 0 0 0 8px rgba(234, 223, 218, .22);
}

.timeline-track:has(.timeline-task-dot:hover),
.timeline-track:has(.timeline-task-dot:focus),
.timeline-track:has(.timeline-task-dot:focus-visible) {
    z-index: 12;
}

.timeline-track::before,
.timeline-track::after {
    content: "";
    position: absolute;
    right: 10px;
    left: 10px;
    pointer-events: none;
}

.timeline-track::before {
    top: 47px;
    height: 78px;
    background:
        linear-gradient(rgba(58, 45, 40, .08), rgba(58, 45, 40, .08)) 0 0 / 100% 1px no-repeat,
        linear-gradient(rgba(58, 45, 40, .07), rgba(58, 45, 40, .07)) 0 50% / 100% 1px no-repeat,
        linear-gradient(rgba(58, 45, 40, .06), rgba(58, 45, 40, .06)) 0 100% / 100% 1px no-repeat;
}

.timeline-track::after {
    bottom: 25px;
    height: 2px;
    background: rgba(47, 35, 31, .22);
    border-radius: 999px;
}

.timeline-track__done {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: var(--timeline-progress);
    background: rgba(141, 117, 101, .1);
    border-right: 2px solid rgba(141, 117, 101, .26);
    border-radius: 8px 0 0 8px;
}

.timeline-track__marker {
    position: absolute;
    top: 12px;
    bottom: 18px;
    left: var(--timeline-progress);
    z-index: 6;
    width: 1px;
    height: auto;
    background: rgba(126, 110, 104, .42);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    pointer-events: none;
    transform: translateX(-50%);
}

.timeline-track__marker::before {
    content: "Aujourd’hui";
    position: absolute;
    top: -9px;
    left: 50%;
    min-height: 24px;
    padding: 0 8px;
    color: #7e6e68;
    background: rgba(255, 253, 251, .92);
    border: 1px solid rgba(126, 110, 104, .2);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 24px;
    transform: translate(-50%, -100%);
    white-space: nowrap;
}

.timeline-track__marker::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 9px;
    height: 9px;
    background: #fffdfb;
    border: 2px solid rgba(126, 110, 104, .48);
    border-radius: 999px;
    transform: translateX(-50%);
}

.timeline-task-layer {
    position: absolute;
    inset: 0 12px 0;
    z-index: 5;
}

.timeline-track:has(.timeline-task-dot:hover) .timeline-task-layer,
.timeline-track:has(.timeline-task-dot:focus) .timeline-task-layer,
.timeline-track:has(.timeline-task-dot:focus-visible) .timeline-task-layer {
    z-index: 20;
}

.timeline-task-dot {
    --dot-color: #5f5651;
    --dot-glow: rgba(95, 86, 81, .22);
    position: absolute;
    top: var(--task-y);
    left: clamp(12px, var(--task-x), calc(100% - 12px));
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    transform: translateX(-50%);
    z-index: 8;
}

.timeline-task-dot__pin {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    background: var(--dot-color);
    border: 3px solid #fffdfb;
    border-radius: 999px;
    box-shadow: 0 8px 18px var(--dot-glow), 0 0 0 1px rgba(47, 35, 31, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.timeline-task-dot__pin::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 50%;
    width: 2px;
    height: 19px;
    background: var(--dot-color);
    border-radius: 999px;
    opacity: .95;
    transform: translateX(-50%);
}

.timeline-task-dot--critical {
    --dot-color: #e0001a;
    --dot-glow: rgba(224, 0, 26, .38);
}

.timeline-task-dot--late {
    --dot-color: #e0001a;
    --dot-glow: rgba(224, 0, 26, .38);
}

.timeline-task-dot--critical .timeline-task-dot__pin,
.timeline-task-dot--late .timeline-task-dot__pin {
    background: #e0001a;
    box-shadow: 0 8px 18px rgba(224, 0, 26, .38), 0 0 0 1px rgba(142, 0, 18, .22);
}

.timeline-task-dot--critical .timeline-task-dot__pin::after,
.timeline-task-dot--late .timeline-task-dot__pin::after {
    background: #e0001a;
}

.timeline-task-dot--today {
    --dot-color: #cf5f72;
    --dot-glow: rgba(207, 95, 114, .32);
}

.timeline-task-dot--urgent {
    --dot-color: #cf5f72;
    --dot-glow: rgba(207, 95, 114, .32);
}

.timeline-task-dot--soon {
    --dot-color: #f0b9c2;
    --dot-glow: rgba(240, 185, 194, .26);
}

.timeline-task-dot--future {
    --dot-color: #f0b9c2;
    --dot-glow: rgba(240, 185, 194, .24);
}

.timeline-task-dot--done {
    --dot-color: #c9c1bc;
    --dot-glow: rgba(143, 129, 123, .12);
    opacity: .45;
}

.timeline-task-dot:hover {
    z-index: 30;
    outline: none;
}

.timeline-task-dot:hover .timeline-task-dot__pin {
    box-shadow: 0 12px 24px var(--dot-glow), 0 0 0 5px rgba(255, 253, 251, .8);
    transform: scale(1.18);
}

.timeline-task-popover {
    position: absolute;
    left: 50%;
    display: none;
    width: min(250px, calc(100vw - 44px));
    gap: 4px;
    padding: 10px 12px;
    color: var(--ink);
    background: rgba(255, 253, 251, .98);
    border: 1px solid #e7d0c3;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(47, 35, 31, .18);
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, 6px);
    transition: opacity .16s ease, transform .16s ease;
    z-index: 40;
}

.timeline-task-dot--popover-below .timeline-task-popover {
    top: calc(100% + 8px);
}

.timeline-task-dot--popover-above .timeline-task-popover {
    bottom: calc(100% + 8px);
}

.timeline-task-dot--edge-start .timeline-task-popover {
    left: 0;
    transform: translate(0, 6px);
}

.timeline-task-dot--edge-end .timeline-task-popover {
    right: 0;
    left: auto;
    transform: translate(0, 6px);
}

.timeline-task-dot:hover .timeline-task-popover {
    display: grid;
    opacity: 1;
    transform: translate(-50%, 0);
}

.timeline-task-dot--edge-start:hover .timeline-task-popover,
.timeline-task-dot--edge-end:hover .timeline-task-popover {
    transform: translate(0, 0);
}

@media (hover: none), (pointer: coarse) {
    .timeline-task-dot:focus,
    .timeline-task-dot:focus-visible {
        z-index: 30;
        outline: none;
    }

    .timeline-task-dot:focus .timeline-task-dot__pin,
    .timeline-task-dot:focus-visible .timeline-task-dot__pin {
        box-shadow: 0 12px 24px var(--dot-glow), 0 0 0 5px rgba(255, 253, 251, .8);
        transform: scale(1.18);
    }

    .timeline-task-dot:focus .timeline-task-popover,
    .timeline-task-dot:focus-visible .timeline-task-popover {
        display: grid;
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .timeline-task-dot--edge-start:focus .timeline-task-popover,
    .timeline-task-dot--edge-start:focus-visible .timeline-task-popover,
    .timeline-task-dot--edge-end:focus .timeline-task-popover,
    .timeline-task-dot--edge-end:focus-visible .timeline-task-popover {
        transform: translate(0, 0);
    }
}

.timeline-task-popover strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-task-popover span {
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.timeline-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.timeline-labels,
.timeline-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
}

.timeline-stats {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.timeline-chip,
.task-timing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.timeline-chip {
    gap: 4px;
    cursor: pointer;
}

button.timeline-chip {
    font-family: inherit;
}

.timeline-chip strong {
    font-weight: 950;
}

.timeline-chip[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px currentColor, 0 8px 18px rgba(83, 57, 48, .08);
}

.timeline-chip:hover {
    transform: translateY(-1px);
}

.timeline-chip.is-all {
    color: #5f5651;
    background: #f8f2ee;
    border-color: #e5d7d1;
}

.timeline-chip.is-todo {
    color: #8f5260;
    background: #fff4f6;
    border-color: #efc4ca;
}

.timeline-chip.is-critical,
.task-timing-badge--critical {
    color: #b00016;
    background: #fff0f1;
    border-color: #e0001a;
}

.timeline-chip.is-late,
.task-timing-badge--late {
    color: #b00016;
    background: #fff0f1;
    border-color: #e0001a;
}

.timeline-chip.is-today,
.task-timing-badge--today {
    color: #914253;
    background: #fff2f5;
    border-color: #e9acb7;
}

.timeline-chip.is-urgent,
.task-timing-badge--urgent {
    color: #914253;
    background: #fff2f5;
    border-color: #e9acb7;
}

.timeline-chip.is-soon,
.task-timing-badge--soon {
    color: #9b6370;
    background: #fff9fa;
    border-color: #f3cdd4;
}

.timeline-chip.is-future,
.task-timing-badge--future {
    color: #9b6370;
    background: #fff9fa;
    border-color: #f3cdd4;
}

.timeline-chip.is-upcoming {
    color: #9b6370;
    background: #fff9fa;
    border-color: #f3cdd4;
}

.timeline-chip.is-done,
.task-timing-badge--done {
    color: #8f817b;
    background: #f5f2f0;
    border-color: #ded7d2;
}

.task-timing-badge--neutral {
    color: var(--warm);
    background: #f9f2ee;
    border-color: var(--line);
}

.timeline-chip.is-neutral {
    color: var(--warm);
    background: #f9f2ee;
    border-color: var(--line);
}

.coach-mobile-drawer {
    overflow: hidden;
    margin: 14px 0;
    background: rgba(255, 253, 251, .94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(91, 48, 58, .07);
    scroll-margin-top: 18px;
}

.coach-mobile-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 13px;
    color: var(--rose-deep);
    cursor: pointer;
    list-style: none;
}

.coach-mobile-summary::-webkit-details-marker {
    display: none;
}

.coach-mobile-summary::marker {
    content: "";
}

.coach-mobile-drawer[open] .coach-mobile-summary {
    border-bottom: 1px solid var(--line);
}

.coach-mobile-drawer[open] .coach-mobile-summary-icon {
    transform: rotate(180deg);
}

.coach-mobile-summary span,
.coach-mobile-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coach-mobile-summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coach-mobile-summary strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.coach-mobile-summary svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.task-filter-summary {
    margin: -2px 0 12px;
    padding: 10px 12px;
    color: #5f5651;
    background: #fff8f5;
    border: 1px solid #eadbd4;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.task-filter-summary[hidden],
.task-filter-empty[hidden] {
    display: none;
}

.task-filter-empty {
    margin: 0;
    padding: 14px;
    color: var(--warm);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.retro-toast {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: min(420px, calc(100vw - 32px));
    min-height: 46px;
    padding: 0 14px;
    color: #376d45;
    background: #f2fbf3;
    border: 1px solid #cfe4d1;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(63, 43, 36, .16);
    font-size: 13px;
    font-weight: 850;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.retro-toast[hidden] {
    display: none;
}

.retro-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.retro-toast svg {
    width: 18px;
    height: 18px;
}

.retro-toast[data-tone="error"] {
    color: var(--rose-deep);
    background: #fff5f5;
    border-color: #efcaca;
}

.add-task-panel {
    padding: 0;
    overflow: hidden;
}

.add-task-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    color: var(--rose-deep);
    cursor: pointer;
    list-style: none;
}

.add-task-summary::-webkit-details-marker {
    display: none;
}

.add-task-summary span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 900;
}

.add-task-summary svg {
    width: 18px;
    height: 18px;
}

.add-task-summary small {
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
}

.add-task-panel[open] .add-task-summary {
    border-bottom: 1px solid var(--line);
}

.add-task-panel .module-form {
    padding: 16px;
}

.task-quick-form .task-title-field {
    grid-column: 1 / -1;
}

.task-quick-form > .form-grid.two {
    grid-column: 1 / -1;
}

.task-quick-form .primary-button {
    grid-column: 1 / -1;
    justify-self: end;
    min-width: 126px;
}

.task-title-field input {
    font-size: 15px;
    font-weight: 850;
}

.timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.coach-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 248, 245, .94)),
        var(--ivory);
}

.coach-panel--mobile {
    margin-top: 14px;
    margin-bottom: 14px;
    scroll-margin-top: 18px;
}

.coach-panel--drawer {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.coach-panel--desktop {
    display: none;
}

.coach-panel-header {
    display: grid;
    gap: 3px;
}

.coach-panel-header span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rose-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coach-panel-header svg {
    width: 15px;
    height: 15px;
}

.coach-panel-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
}

.coach-summary {
    margin: 0;
    color: #4f423d;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

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

.coach-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.coach-action-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #5d4f49;
    background: #f7efea;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.coach-action-icon svg {
    width: 17px;
    height: 17px;
}

.coach-action-card--warning .coach-action-icon {
    color: #8d404b;
    background: #fff0f1;
    border-color: #efcaca;
}

.coach-action-card--focus .coach-action-icon,
.coach-action-card--coach .coach-action-icon {
    color: #8f5a1a;
    background: #fff4d8;
    border-color: #e8c574;
}

.coach-action-card--next .coach-action-icon {
    color: #366b51;
    background: #edf8ef;
    border-color: #c5e1cb;
}

.coach-action-card--ok .coach-action-icon {
    color: #2f6b50;
    background: #edf8ef;
    border-color: #c5e1cb;
}

.coach-action-card > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.coach-action-card span:not(.coach-action-icon) {
    color: var(--rose-deep);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.coach-action-card strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coach-action-card p {
    margin: 0;
    color: var(--warm);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.coach-chat {
    display: grid;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid rgba(234, 223, 218, .9);
}

.coach-chat-log {
    display: grid;
    gap: 7px;
    max-height: 170px;
    overflow: auto;
}

.coach-message {
    width: fit-content;
    max-width: 92%;
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.coach-message--assistant {
    color: #3f3632;
    background: #f8f2ee;
    border: 1px solid #eadbd4;
}

.coach-message--user {
    justify-self: end;
    color: #fffdfb;
    background: #bd5965;
}

.coach-prompt-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coach-prompt-list button {
    min-height: 32px;
    padding: 0 9px;
    color: #665a55;
    background: #fff8f5;
    border: 1px solid #e5d7d1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.coach-prompt-list button:hover {
    color: var(--rose-deep);
    border-color: #efcaca;
}

.coach-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.coach-chat-form label {
    display: grid;
    gap: 6px;
}

.coach-chat-form label span {
    color: var(--warm);
    font-size: 11px;
    font-weight: 900;
}

.coach-chat-form input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 11px;
    background: #fffdfb;
    border: 1px solid #e5d7d1;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    font-weight: 800;
}

.coach-chat-form input:focus {
    border-color: #d88b93;
    box-shadow: 0 0 0 3px rgba(216, 139, 147, .14);
}

.coach-chat-form button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fffdfb;
    background: #bd5965;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.coach-chat-form button svg {
    width: 17px;
    height: 17px;
}

.soft-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 16px;
    background:
        linear-gradient(90deg, rgba(250, 226, 226, .92), rgba(255, 250, 247, .96)),
        #fff7f5;
}

.soft-callout h2 {
    font-size: 15px;
    font-weight: 800;
}

.soft-callout p {
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
}

.soft-callout svg {
    width: 58px;
    height: 58px;
    color: #c78d79;
    stroke-width: 1.2;
}

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

.shortcut-card {
    display: grid;
    min-height: 74px;
    place-items: center;
    gap: 7px;
    color: var(--ink);
    background: #fffaf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.shortcut-card svg {
    color: var(--rose-deep);
}

.shortcut-card span {
    width: 100%;
    overflow-wrap: normal;
    font-size: 9px;
    hyphens: none;
    line-height: 1.15;
}

.intro-card {
    padding: 18px 16px;
    margin-bottom: 14px;
}

.mariage-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .96), rgba(255, 249, 246, .9)),
        var(--ivory);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-grid {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.form-grid > * {
    min-width: 0;
}

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

.mariage-form label,
.module-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.mariage-form label span,
.module-form label span {
    color: #5c4b45;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.mariage-form input,
.mariage-form select,
.module-form input,
.module-form select,
.module-form textarea,
.budget-add-form input,
.amount-form input,
.budget-amount-form input,
.assign-form select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    color: var(--ink);
    background: rgba(255, 253, 251, .98);
    border: 1px solid #e5d8d2;
    border-radius: 8px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mariage-form input[type="date"],
.module-form input[type="date"],
.settings-field input[type="date"],
.settings-field input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 50px;
    min-height: 50px;
    line-height: 1.2;
}

.mariage-form input[type="date"]::-webkit-date-and-time-value,
.module-form input[type="date"]::-webkit-date-and-time-value,
.settings-field input[type="date"]::-webkit-date-and-time-value,
.settings-field input[type="datetime-local"]::-webkit-date-and-time-value {
    width: 100%;
    min-width: 0;
    min-height: 1.2em;
    text-align: left;
}

.mariage-form input:focus,
.mariage-form select:focus,
.module-form input:focus,
.module-form select:focus,
.module-form textarea:focus,
.budget-add-form input:focus,
.amount-form input:focus,
.budget-amount-form input:focus,
.assign-form select:focus {
    background: #fff;
    border-color: rgba(219, 121, 133, .72);
    box-shadow: 0 0 0 4px rgba(219, 121, 133, .13);
}

.mariage-form small {
    color: var(--rose-deep);
    font-size: 11px;
}

.form-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.form-alert svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.form-alert-error {
    color: #9a3741;
    background: #fff2f2;
    border: 1px solid #efcaca;
}

.password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: stretch;
    min-width: 0;
}

.mariage-form .password-field input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.password-field button {
    display: grid;
    place-items: center;
    color: #6d5c56;
    background: rgba(255, 253, 251, .98);
    border: 1px solid #e5d8d2;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.password-field button:hover,
.password-field button:focus-visible {
    color: var(--rose-deep);
    background: #fff2f2;
    outline: none;
}

.password-field button svg {
    width: 18px;
    height: 18px;
}

.module-frame {
    display: grid;
    align-content: start;
    gap: 14px;
}

.module-heading {
    padding: 2px 2px 4px;
}

.module-heading h1 {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: clamp(34px, 8vw, 43px);
    font-weight: 700;
    line-height: 1;
}

.module-heading p:not(.eyebrow) {
    margin-top: 6px;
    color: var(--warm);
    font-size: 13px;
    line-height: 1.4;
}

.module-form {
    display: grid;
    gap: 14px;
}

.module-form textarea {
    min-height: 96px;
    padding-top: 13px;
    resize: vertical;
}

.module-form small {
    color: var(--rose-deep);
    font-size: 11px;
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 9px;
    color: var(--rose-deep);
    background: #fff2f2;
    border: 1px solid #f0caca;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.task-groups,
.table-list {
    display: grid;
    gap: 14px;
}

.task-group {
    padding: 16px;
    background: rgba(255, 253, 251, .92);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.retroplanning-page .task-groups {
    gap: 10px;
}

.retroplanning-page .task-group {
    padding: 12px;
}

.retroplanning-page .task-list {
    gap: 6px;
}

.retroplanning-page .task-row {
    --task-accent: var(--line);
    --task-bg: #fffdfb;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    min-height: 48px;
    padding: 5px 6px;
    background: var(--task-bg);
    border-color: color-mix(in srgb, var(--task-accent) 30%, var(--line));
    border-left-color: var(--task-accent);
    border-left-width: 4px;
}

.task-check-form {
    margin: 0;
}

.retroplanning-page .task-check-form {
    grid-column: auto;
    justify-self: auto;
}

.retroplanning-page .task-check-button {
    width: 32px;
    height: 32px;
}

.task-check-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #8f817b;
    background: #fff8f5;
    border: 1px solid #e8d9d2;
    border-radius: 999px;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.task-check-button:hover {
    color: #3f7f4d;
    background: #f2fbf3;
    border-color: #cfe4d1;
    transform: translateY(-1px);
}

.task-check-button:disabled,
.task-open-button:disabled,
.task-dialog-footer button:disabled,
.task-quick-form .primary-button:disabled {
    cursor: progress;
    opacity: .68;
}

.task-check-button svg {
    width: 17px;
    height: 17px;
}

.module-task.is-done .task-check-button {
    color: #8f817b;
    background: #f3efec;
    border-color: #ded7d2;
}

.task-open-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 7px 8px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.retroplanning-page .task-open-button {
    min-height: 38px;
    gap: 6px;
    padding: 4px 4px 4px 6px;
}

.task-open-button:hover {
    background: #fff8f5;
}

.retroplanning-page .task-copy {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
}

.retroplanning-page [data-task-row-title] {
    flex: 1 1 auto;
    min-width: 0;
}

.task-date-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 82px;
    min-width: 82px;
    min-height: 20px;
    padding: 0 7px;
    color: color-mix(in srgb, var(--task-accent) 82%, #47332c);
    background: color-mix(in srgb, var(--task-accent) 9%, #fffdfb);
    border: 1px solid color-mix(in srgb, var(--task-accent) 34%, #eadfda);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.retroplanning-page .task-date-inline {
    flex-basis: 76px;
    min-width: 76px;
    padding: 0 6px;
}

.task-date-inline--empty {
    color: #8f817b;
    background: #f8f4f1;
    border-color: #ded7d2;
}

.task-open-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    color: #b19f98;
}

.retroplanning-page .task-open-icon {
    display: none;
}

.task-open-icon svg {
    width: 16px;
    height: 16px;
}

.retroplanning-page .task-meta span:not(.task-timing-badge) {
    gap: 4px;
    min-height: 20px;
    padding: 0 6px;
}

.retroplanning-page .task-meta {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 0;
    overflow: hidden;
}

.retroplanning-page .task-timing-badge,
.retroplanning-page .task-meta [data-task-row-files] {
    flex: 0 0 auto;
}

.retroplanning-page .task-meta svg {
    width: 12px;
    height: 12px;
}

.module-task.is-done {
    opacity: .82;
}

.module-task.is-done [data-task-row-title] {
    text-decoration: line-through;
}

.small-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    color: var(--rose-deep);
    background: #fff5f5;
    border: 1px solid #efcaca;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.task-dialog {
    width: min(720px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(780px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.task-dialog::backdrop {
    background: rgba(50, 40, 35, .42);
    backdrop-filter: blur(3px);
}

.task-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(780px, calc(100dvh - 24px));
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(63, 43, 36, .22);
}

.task-dialog-header,
.task-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: #fff8f5;
}

.task-dialog-header {
    border-bottom: 1px solid rgba(229, 216, 210, .95);
}

.task-dialog-header div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.task-dialog-header span {
    color: var(--warm);
    font-size: 12px;
    font-weight: 900;
}

.task-dialog-header strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-dialog-body {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow: auto;
    padding: 14px;
}

.task-dialog-body textarea {
    min-height: 180px;
    line-height: 1.5;
}

.task-dialog-footer {
    border-top: 1px solid rgba(229, 216, 210, .95);
}

.task-file-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #fffaf7;
    border: 1px solid #eadfda;
    border-radius: 8px;
}

.task-file-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--warm);
    font-size: 12px;
    font-weight: 950;
}

.task-file-heading > span,
.task-file-upload span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.task-file-heading svg {
    width: 15px;
    height: 15px;
    color: var(--rose-deep);
}

.task-file-upload {
    cursor: pointer;
}

.task-file-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.task-file-upload span {
    min-height: 34px;
    padding: 0 10px;
    color: var(--rose-deep);
    background: #fff5f5;
    border: 1px solid #efd4d6;
    border-radius: 8px;
}

.task-file-list {
    display: grid;
    gap: 7px;
}

.task-file-list:empty {
    display: none;
}

.task-file-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 9px;
    color: #5f5651;
    background: #fffdfb;
    border: 1px solid #eee1db;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.task-file-list a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-file-empty {
    margin: 0;
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
}

.task-file-empty[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .retro-toast {
        right: 12px;
        bottom: 96px;
        left: 12px;
        max-width: none;
    }

    .task-quick-form .primary-button {
        justify-self: stretch;
    }

    .task-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
    }

    .task-dialog-header,
    .task-dialog-body,
    .task-dialog-footer {
        padding: 12px;
    }

    .task-dialog-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .task-dialog-footer .secondary-button,
    .task-dialog-footer .primary-button {
        width: 100%;
    }
}

.budget-clarity-panel {
    display: grid;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(255, 242, 242, .82), rgba(255, 253, 251, .94)),
        #fffdfb;
}

.budget-clarity-copy span,
.budget-clarity-number span {
    display: block;
    color: var(--rose-deep);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.budget-clarity-copy strong {
    display: block;
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 650;
    line-height: 1.05;
}

.budget-clarity-copy p {
    max-width: 560px;
    margin-top: 8px;
    color: var(--warm);
    font-size: 13px;
    line-height: 1.45;
}

.budget-clarity-number {
    align-self: end;
    padding-top: 12px;
    border-top: 1px solid rgba(234, 223, 218, .9);
}

.budget-clarity-number strong {
    display: block;
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 650;
    line-height: 1;
}

.budget-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.budget-metric-card strong {
    overflow-wrap: anywhere;
    white-space: normal;
}

.budget-metrics.budget-metrics--simple {
    grid-template-columns: minmax(0, 1fr);
}

.budget-mobile-summary {
    display: block;
}

.budget-mobile-summary .budget-side-panel {
    margin-bottom: 0;
}

.budget-expense-create-panel,
.budget-parts-panel {
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 249, 246, .94)),
        #fffdfb;
}

.budget-page.is-budget-updating {
    cursor: progress;
}

.budget-page [aria-busy="true"] {
    opacity: .72;
}

.budget-page [aria-busy="true"] button[disabled] {
    cursor: progress;
}

.budget-expense-form {
    display: grid;
    gap: 10px;
}

.budget-expense-form label {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.budget-expense-form label span {
    color: #5c4b45;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-expense-form input,
.budget-expense-form select,
.budget-expense-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(255, 253, 251, .98);
    border: 1px solid #e5d8d2;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.budget-expense-form textarea {
    min-height: 86px;
    padding-block: 10px;
    resize: vertical;
}

.budget-expense-form input[type="file"] {
    min-height: auto;
    padding: 10px;
    font-size: 12px;
    font-weight: 750;
}

.budget-expense-form input:focus,
.budget-expense-form select:focus,
.budget-expense-form textarea:focus {
    background: #fff;
    border-color: rgba(219, 121, 133, .72);
    box-shadow: 0 0 0 4px rgba(219, 121, 133, .13);
}

.budget-file-field small {
    color: var(--warm);
    font-size: 11px;
    line-height: 1.35;
}

.budget-empty-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    background: #fbf7f4;
    border: 1px dashed #d9cac2;
    border-radius: 8px;
}

.budget-empty-state > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #7a5c50;
    background: #fffdfb;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.budget-empty-state svg {
    width: 17px;
    height: 17px;
}

.budget-empty-state strong,
.budget-empty-state small {
    display: block;
}

.budget-empty-state strong {
    font-size: 14px;
    font-weight: 900;
}

.budget-empty-state small {
    margin-top: 3px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.budget-expense-list,
.budget-part-list {
    display: grid;
    gap: 10px;
}

.budget-expense-card {
    display: grid;
    gap: 11px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-left: 4px solid color-mix(in srgb, var(--budget-part-color) 72%, #fffdfb);
    border-radius: 8px;
}

.budget-expense-card[data-budget-status="paid"] {
    background: #fbfdf9;
    border-color: #d7e6d1;
    border-left-color: #77a26d;
}

.budget-expense-card[data-budget-status="partial"] {
    background: #fffdf7;
    border-color: #ead8a7;
    border-left-color: #d7a936;
}

.budget-expense-card__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.budget-expense-card .budget-family-icon,
.budget-part-card .budget-family-icon {
    color: color-mix(in srgb, var(--budget-part-color) 82%, #47332c);
    background: color-mix(in srgb, var(--budget-part-color) 13%, #fffdfb);
    border-color: color-mix(in srgb, var(--budget-part-color) 28%, #eadfda);
}

.budget-expense-card__title {
    min-width: 0;
}

.budget-expense-card__title strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-expense-card__title small {
    display: block;
    margin-top: 4px;
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.budget-status--paid {
    color: #4f744f;
    background: #f1f8ef;
    border: 1px solid #cfe2cd;
}

.budget-status--partial {
    color: #725117;
    background: #fff7db;
    border: 1px solid #edd18b;
}

.budget-status--pending,
.budget-status--draft {
    color: #9f2f39;
    background: #fff0f2;
    border: 1px solid #efcaca;
}

.budget-expense-card__money,
.budget-part-card__numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.budget-part-card__numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.budget-expense-card__money span,
.budget-part-card__numbers span {
    min-width: 0;
    padding: 9px;
    color: var(--warm);
    background: #fbf6f2;
    border: 1px solid #efe2dc;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-expense-card__money strong,
.budget-part-card__numbers strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    overflow-wrap: anywhere;
    text-transform: none;
}

.budget-expense-note {
    margin: 0;
    padding: 10px;
    color: var(--warm);
    background: #fbf7f4;
    border: 1px solid #efe2dc;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.budget-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.budget-file-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    gap: 6px;
    padding: 0 9px;
    overflow: hidden;
    color: #5f514b;
    background: #fff8f2;
    border: 1px solid #eadbd4;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.budget-file-pill svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.budget-expense-edit {
    border-top: 1px solid #efe2dc;
    padding-top: 2px;
}

.budget-expense-edit summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: #5f514b;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.budget-expense-edit summary::-webkit-details-marker {
    display: none;
}

.budget-expense-edit summary svg {
    width: 14px;
    height: 14px;
}

.budget-expense-form--edit {
    margin-top: 8px;
    padding: 10px;
    background: #fff9f5;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.budget-expense-delete {
    margin-top: 8px;
}

.budget-part-add-form {
    margin-bottom: 12px;
}

.budget-part-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-left: 4px solid color-mix(in srgb, var(--budget-part-color) 72%, #fffdfb);
    border-radius: 8px;
}

.budget-part-card__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.budget-part-card__header > div {
    min-width: 0;
}

.budget-part-card__header strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-part-card__header small {
    display: block;
    margin-top: 4px;
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.budget-family-edit,
.budget-hidden-families {
    border-top: 1px solid #efe2dc;
    padding-top: 2px;
}

.budget-family-edit summary,
.budget-hidden-families summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: #5f514b;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.budget-family-edit summary::-webkit-details-marker,
.budget-hidden-families summary::-webkit-details-marker {
    display: none;
}

.budget-family-edit summary svg,
.budget-hidden-families summary svg {
    width: 14px;
    height: 14px;
}

.budget-family-edit-form {
    display: grid;
    gap: 9px;
    margin-top: 8px;
    padding: 10px;
    background: #fff9f5;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.budget-family-edit-form label {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.budget-family-edit-form label span {
    color: #5c4b45;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-family-edit-form input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid #e5d8d2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}

.budget-family-edit-form input:focus {
    background: #fff;
    border-color: color-mix(in srgb, var(--budget-part-color) 55%, #e5d8d2);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--budget-part-color) 13%, transparent);
    outline: none;
}

.budget-family-actions {
    padding-top: 2px;
}

.budget-hidden-families {
    margin-top: 12px;
}

.budget-hidden-families .budget-hidden-list {
    margin-top: 8px;
}

.budget-section-title {
    align-items: flex-start;
}

.budget-section-title p {
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.budget-chip,
.budget-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.budget-chip {
    color: #77564f;
    background: #fff6ee;
    border: 1px solid #ead6cc;
}

.budget-posts-panel--simple {
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 249, 246, .94)),
        #fffdfb;
}

.budget-family-list {
    display: grid;
    gap: 9px;
}

.budget-family-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 12px;
    color: var(--ink);
    text-align: left;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-left: 4px solid color-mix(in srgb, var(--budget-family-color) 70%, #fffdfb);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.budget-family-card:hover,
.budget-family-card:focus-visible {
    border-color: color-mix(in srgb, var(--budget-family-color) 46%, #eadfda);
    box-shadow: 0 16px 34px rgba(94, 69, 60, .1);
    outline: none;
    transform: translateY(-1px);
}

.budget-family-card[data-budget-state="over"] {
    border-left-color: #cf4b55;
}

.budget-family-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: color-mix(in srgb, var(--budget-family-color) 82%, #47332c);
    background: color-mix(in srgb, var(--budget-family-color) 13%, #fffdfb);
    border: 1px solid color-mix(in srgb, var(--budget-family-color) 28%, #eadfda);
    border-radius: 8px;
}

.budget-family-icon svg {
    width: 19px;
    height: 19px;
}

.budget-family-card__copy,
.budget-family-card__meta {
    min-width: 0;
}

.budget-family-card__copy strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-family-card__copy small,
.budget-family-card__meta small {
    display: block;
    margin-top: 4px;
    color: var(--warm);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
}

.budget-family-card__stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
}

.budget-family-card__stats > span {
    min-width: 0;
    padding: 8px;
    background: #fbf6f2;
    border: 1px solid #efe2dc;
    border-radius: 8px;
}

.budget-family-card__stats small {
    display: block;
    color: var(--warm);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.budget-family-card__stats strong {
    display: block;
    margin-top: 2px;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 900;
}

.budget-family-card__meta {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
}

.budget-family-card__meta small {
    margin-top: 0;
}

.budget-family-chevron {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--warm);
}

.budget-family-chevron svg {
    width: 17px;
    height: 17px;
}

.budget-family-card[data-budget-state="active"] .budget-status,
.budget-family-card[data-budget-state="ready"] .budget-status {
    color: #725117;
    background: #fff7db;
    border-color: #edd18b;
}

.budget-family-card[data-budget-state="paid"] .budget-status {
    color: #4f744f;
    background: #f1f8ef;
    border-color: #cfe2cd;
}

.budget-family-card[data-budget-state="over"] .budget-status {
    color: #9f2f39;
    background: #fff0f2;
    border-color: #efcaca;
}

.budget-family-dialog {
    width: min(780px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(780px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.budget-family-dialog::backdrop {
    background: rgba(50, 40, 35, .42);
    backdrop-filter: blur(4px);
}

.budget-family-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(780px, calc(100dvh - 24px));
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(63, 43, 36, .22);
}

.budget-family-modal__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: #fff8f5;
    border-bottom: 1px solid rgba(229, 216, 210, .95);
}

.budget-family-modal__header > div {
    min-width: 0;
}

.budget-family-modal__header span:not(.budget-family-icon) {
    display: block;
    overflow: hidden;
    color: var(--warm);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-family-modal__header strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 650;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-family-modal__body {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow: auto;
    padding: 14px;
}

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

.budget-family-summary article {
    min-width: 0;
    padding: 10px;
    background: #fbf6f2;
    border: 1px solid #efe2dc;
    border-radius: 8px;
}

.budget-family-summary span {
    display: block;
    color: var(--warm);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-family-summary strong {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 950;
}

.budget-family-add-form {
    display: grid;
    gap: 9px;
    padding: 10px;
    background: #fff9f5;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.budget-family-add-form label,
.budget-amount-form--dialog label {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.budget-family-add-form label span,
.budget-amount-form--dialog label span {
    color: #5c4b45;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-family-add-form input,
.budget-amount-form--dialog input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid #e5d8d2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}

.budget-family-add-form input:focus,
.budget-amount-form--dialog input:focus {
    border-color: color-mix(in srgb, var(--budget-family-color) 55%, #e5d8d2);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--budget-family-color) 13%, transparent);
    outline: none;
}

.budget-family-add-form .primary-button {
    min-height: 42px;
}

.budget-post-detail-list {
    display: grid;
    gap: 9px;
}

.budget-post-empty,
.budget-post-detail {
    padding: 12px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.budget-post-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    background: #fbf7f4;
    border-style: dashed;
}

.budget-post-empty > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: color-mix(in srgb, var(--budget-family-color) 78%, #47332c);
    background: #fffdfb;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.budget-post-empty svg {
    width: 16px;
    height: 16px;
}

.budget-post-empty strong,
.budget-post-empty small {
    display: block;
}

.budget-post-empty strong {
    font-size: 14px;
    font-weight: 900;
}

.budget-post-empty small {
    margin-top: 3px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.budget-post-detail {
    display: grid;
    gap: 10px;
}

.budget-post-detail[data-budget-state="over"] {
    background: #fff8f8;
    border-color: #efcaca;
}

.budget-post-detail__main {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.budget-post-detail__main > div {
    min-width: 0;
}

.budget-post-detail__main strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-post-detail__main small {
    display: block;
    margin-top: 4px;
    color: var(--warm);
    font-size: 11px;
    line-height: 1.35;
}

.budget-family-modal .budget-progress__used {
    background: color-mix(in srgb, var(--budget-family-color) 76%, #fffdfb);
}

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

.budget-post-detail__numbers span {
    min-width: 0;
    color: var(--warm);
    font-size: 11px;
    line-height: 1.25;
}

.budget-post-detail__numbers strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.budget-post-detail__actions {
    display: grid;
    gap: 8px;
}

.budget-amount-form--dialog {
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0;
}

@media (max-width: 560px) {
    .budget-family-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
    }

    .budget-family-modal__header,
    .budget-family-modal__body {
        padding: 12px;
    }

    .budget-family-modal__header strong {
        font-size: 22px;
    }

    .budget-family-summary,
    .budget-post-detail__numbers,
    .budget-expense-card__money,
    .budget-part-card__numbers {
        grid-template-columns: minmax(0, 1fr);
    }

    .budget-post-detail__main {
        align-items: flex-start;
        flex-direction: column;
    }

    .budget-expense-card__summary {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .budget-expense-card__summary .budget-status {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.budget-chart-grid {
    display: grid;
    gap: 18px;
    align-items: center;
}

.budget-pie {
    position: relative;
    display: grid;
    width: min(100%, 214px);
    aspect-ratio: 1;
    margin-inline: auto;
    place-items: center;
    background: var(--budget-pie);
    border: 1px solid rgba(94, 69, 60, .1);
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(94, 69, 60, .12);
    text-align: center;
}

.budget-pie::after {
    content: "";
    position: absolute;
    inset: 27px;
    background: #fffdfb;
    border: 1px solid rgba(234, 223, 218, .9);
    border-radius: inherit;
    box-shadow: inset 0 0 0 8px rgba(251, 248, 245, .9);
}

.budget-pie span,
.budget-pie small {
    position: relative;
    z-index: 1;
    display: block;
}

.budget-pie span {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 650;
    line-height: .95;
}

.budget-pie small {
    margin-top: 5px;
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.budget-chart-copy {
    min-width: 0;
}

.budget-chart-copy > strong {
    display: block;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
}

.budget-chart-copy > p {
    margin-top: 6px;
    color: var(--warm);
    font-size: 13px;
    line-height: 1.4;
}

.budget-legend {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.budget-legend span {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: #4d3f3a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.budget-legend i {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background: var(--budget-color);
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(234, 223, 218, .52);
}

.budget-flow {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.budget-flow-row {
    display: grid;
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.budget-flow-row div {
    min-width: 0;
}

.budget-flow-row span {
    display: block;
    color: var(--warm);
    font-size: 11px;
    font-weight: 750;
}

.budget-flow-row strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.budget-flow-row i {
    display: block;
    height: 10px;
    overflow: hidden;
    background: #efe6e0;
    border-radius: 999px;
}

.budget-flow-row i span {
    display: block;
    width: var(--flow);
    height: 100%;
    background: var(--flow-color);
    border-radius: inherit;
}

.budget-custom-panel {
    background:
        linear-gradient(135deg, rgba(255, 253, 251, .98), rgba(255, 248, 242, .92)),
        #fffdfb;
}

.budget-add-guide {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    background: #fff8f3;
    border: 1px solid #eadbd2;
    border-radius: 8px;
}

.budget-add-guide > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--rose-deep);
    background: #fffdfb;
    border: 1px solid #efcfca;
    border-radius: 8px;
}

.budget-add-guide svg {
    width: 18px;
    height: 18px;
}

.budget-add-guide strong {
    display: block;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
}

.budget-add-guide p {
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.4;
}

.budget-add-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.budget-add-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.budget-add-form label span {
    color: #5c4b45;
    font-size: 12px;
    font-weight: 850;
}

.budget-add-form .primary-button {
    min-height: 50px;
}

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

.budget-hidden-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #f9f5f2;
    border: 1px dashed #d9cac2;
    border-radius: 8px;
}

.budget-hidden-row strong {
    display: block;
    font-size: 14px;
    font-weight: 850;
}

.budget-hidden-row small,
.budget-delete-note {
    display: block;
    margin-top: 4px;
    color: var(--warm);
    font-size: 11px;
    line-height: 1.35;
}

.budget-hidden-actions,
.budget-row__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.budget-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 9px;
    color: #5f514b;
    background: #fffdfb;
    border: 1px solid #e3d9d2;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.budget-mini-action svg {
    width: 14px;
    height: 14px;
}

.budget-mini-action.is-danger {
    color: #9f2f39;
    background: #fff5f6;
    border-color: #efcaca;
}

.budget-list,
.guest-list {
    display: grid;
    gap: 8px;
}

.budget-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 250, 247, .94)),
        #fffdfb;
    border: 1px solid var(--line);
    border-left: 5px solid var(--budget-color);
    border-radius: 8px;
}

.budget-row.is-over {
    border-color: #e8b3b8;
    border-left-color: #cf4b55;
    background:
        linear-gradient(180deg, rgba(255, 244, 245, .98), rgba(255, 253, 251, .94)),
        #fffdfb;
}

.budget-post-chart {
    position: relative;
    display: grid;
    width: 54px;
    aspect-ratio: 1;
    place-items: center;
    background: conic-gradient(var(--budget-color) var(--budget-used), #efe6e0 0);
    border-radius: 999px;
}

.budget-post-chart::after {
    content: "";
    position: absolute;
    inset: 8px;
    background: #fffdfb;
    border: 1px solid rgba(234, 223, 218, .9);
    border-radius: inherit;
}

.budget-post-chart span {
    position: relative;
    z-index: 1;
    color: var(--ink);
    font-size: 11px;
    font-weight: 850;
}

.budget-row__content {
    min-width: 0;
}

.budget-row__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.budget-row__header > div {
    min-width: 0;
}

.budget-row__header strong,
.guest-row strong {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
}

.budget-row__header strong i {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background: var(--budget-color);
    border-radius: 999px;
}

.budget-row__header small,
.guest-row small {
    display: block;
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.3;
}

.budget-status {
    color: #5f514b;
    background: #f6f1ed;
    border: 1px solid #e3d9d2;
}

.budget-row.is-active .budget-status {
    color: #6f4e11;
    background: #fff7db;
    border-color: #edd18b;
}

.budget-row.is-over .budget-status {
    color: #9f2f39;
    background: #fff0f2;
    border-color: #efcaca;
}

.budget-progress {
    position: relative;
    height: 10px;
    margin-top: 12px;
    overflow: hidden;
    background: #efe6e0;
    border-radius: 999px;
}

.budget-progress__used,
.budget-progress__paid {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
}

.budget-progress__used {
    width: var(--budget-used);
    background: color-mix(in srgb, var(--budget-color) 76%, #fffdfb);
}

.budget-progress__paid {
    width: var(--budget-paid);
    background: #6f936f;
}

.budget-row__numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.budget-row__numbers span {
    min-width: 0;
    color: var(--warm);
    font-size: 11px;
    line-height: 1.25;
}

.budget-row__numbers strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.budget-row__manage {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.budget-amount-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.budget-amount-form label {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.budget-amount-form label span {
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
}

.budget-amount-form input {
    min-width: 0;
    min-height: 36px;
    padding: 0 9px;
    text-align: right;
}

.budget-amount-form .small-action {
    width: 38px;
    min-height: 36px;
    padding: 0;
}

.budget-amount-form .small-action svg {
    width: 16px;
    height: 16px;
}

.amount-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.amount-form input {
    min-width: 0;
    text-align: right;
}

.guest-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invites-page .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invite-create-form {
    gap: 12px;
}

.quick-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.check-pill,
.event-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--warm);
    background: #fff8f5;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.check-pill input,
.event-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--rose-deep);
}

.check-pill:has(input:checked),
.event-check:has(input:checked) {
    color: var(--rose-deep);
    background: #fff2f2;
    border-color: #efcaca;
}

.event-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.event-check-grid.compact {
    padding: 10px;
    background: #fffdfb;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.soft-details {
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.soft-details summary {
    min-height: 42px;
    padding: 11px 12px;
    color: var(--rose-deep);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.soft-details[open] summary {
    border-bottom: 1px solid var(--line);
}

.invite-details-grid {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.guest-editor-title {
    align-items: flex-start;
}

.guest-editor-title p {
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.guest-editor-list {
    display: grid;
    gap: 10px;
}

.guest-editor-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.guest-editor-card.is-saving {
    border-color: #ead39c;
}

.guest-editor-card.is-saved {
    box-shadow: inset 0 0 0 2px rgba(125, 154, 128, .2);
}

.guest-editor-card.is-error {
    border-color: #df8f97;
}

.guest-editor-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.guest-name-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.guest-name-fields label,
.guest-rsvp-select,
.invite-details-grid label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.guest-name-fields span,
.guest-rsvp-select span,
.invite-details-grid label span {
    color: var(--warm);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.guest-editor-card input:not([type="checkbox"]),
.guest-editor-card select,
.guest-editor-card textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    color: var(--ink);
    background: #fff8f5;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.guest-editor-card textarea {
    min-height: 66px;
    padding-top: 10px;
    resize: vertical;
}

.guest-rsvp-select {
    grid-column: 2;
}

.guest-followup-checks {
    padding-left: 46px;
}

.guest-more-details {
    margin-left: 46px;
}

.inline-save-status {
    position: sticky;
    bottom: 84px;
    z-index: 5;
    justify-self: end;
    min-height: 28px;
    padding: 7px 10px;
    color: var(--rose-deep);
    background: rgba(255, 253, 251, .96);
    border: 1px solid #efcaca;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(94, 69, 60, .12);
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    transform: translateY(4px);
}

.inline-save-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.inline-save-status[data-tone="error"] {
    color: #b7515c;
    border-color: #efcaca;
}

.guest-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    background: linear-gradient(145deg, #cf7b84, #e9b0a8);
    border-radius: 999px;
    white-space: nowrap;
}

.table-card {
    margin-bottom: 0;
}

.table-guests {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.table-guests span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    background: #fff6f2;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.assign-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
}

.inspiration-hero {
    display: grid;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    padding: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 253, 251, .96), rgba(255, 244, 241, .92)),
        #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.inspiration-hero h1 {
    margin: 2px 0 6px;
    font-family: var(--font-display);
    font-size: clamp(38px, 11vw, 50px);
    font-weight: 700;
    line-height: .94;
    letter-spacing: 0;
}

.inspiration-hero__copy > p:not(.eyebrow) {
    max-width: 620px;
    color: var(--warm);
    font-size: 14px;
    line-height: 1.55;
}

.inspiration-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 16px;
}

.pinterest-profile-link {
    min-height: 46px;
    padding-inline: 14px;
    text-decoration: none;
}

.pinterest-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    color: #4f4743;
    background: rgba(255, 253, 251, .84);
    border: 1px solid rgba(234, 223, 218, .94);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.pinterest-count-pill svg {
    width: 16px;
    height: 16px;
    color: var(--rose-deep);
    stroke-width: 2;
}

.inspiration-hero__preview {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    grid-template-rows: repeat(2, minmax(82px, 1fr));
    gap: 7px;
    height: clamp(178px, 48vw, 232px);
    min-height: 178px;
}

.inspiration-hero__tile {
    min-width: 0;
    overflow: hidden;
    background: #eee6e1;
    border: 1px solid rgba(255, 253, 251, .78);
    border-radius: 8px;
}

.inspiration-hero__tile:first-child {
    grid-row: 1 / -1;
}

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

.pinterest-board-section {
    display: grid;
    gap: 12px;
}

.pinterest-board-section .section-title {
    align-items: end;
    margin-bottom: 0;
    padding: 0 4px;
}

.pinterest-board-section .section-title h2 {
    margin-top: 2px;
    font-size: 18px;
}

.pinterest-board-grid {
    display: grid;
    gap: 16px;
}

.pinterest-board-card {
    --board-accent: var(--rose-deep);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 340px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(94, 69, 60, .07);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pinterest-board-card:hover,
.pinterest-board-card:focus-visible {
    border-color: color-mix(in srgb, var(--board-accent) 52%, var(--line));
    box-shadow: 0 18px 42px rgba(94, 69, 60, .12);
    transform: translateY(-2px);
}

.pinterest-board-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--board-accent) 28%, transparent);
    outline-offset: 2px;
}

.pinterest-board-card__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    aspect-ratio: 16 / 10;
    min-width: 0;
    min-height: 156px;
    max-height: 190px;
    padding: 6px;
    background: color-mix(in srgb, var(--board-accent) 10%, #fff8f5);
}

.pinterest-board-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: 6px;
}

.pinterest-board-card__media img:first-child {
    min-height: 0;
}

.pinterest-board-card__media img:last-child {
    filter: saturate(.94);
}

.pinterest-board-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px 14px 13px;
}

.pinterest-board-card__body span {
    color: var(--board-accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pinterest-board-card__body strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.pinterest-board-card__body p {
    margin-top: 8px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.42;
}

.pinterest-board-card__body small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--board-accent);
    font-size: 11px;
    font-weight: 850;
}

.pinterest-board-card__body small svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.pinterest-profile-panel {
    display: grid;
    gap: 12px;
}

.pinterest-profile-panel__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: white;
    background: #bd5965;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(189, 89, 101, .24);
}

.pinterest-profile-panel__icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 2;
}

.pinterest-profile-panel h2 {
    margin-top: -4px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: .98;
}

.pinterest-profile-panel p:not(.eyebrow) {
    color: var(--warm);
    font-size: 13px;
    line-height: 1.55;
}

.pinterest-side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--rose-deep);
    text-decoration: none;
    background: #fff2f2;
    border: 1px solid #efcaca;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
}

.pinterest-side-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

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

.pinterest-mini-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 56px;
    padding: 6px 8px 6px 6px;
    color: var(--ink);
    text-decoration: none;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pinterest-mini-list img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}

.pinterest-mini-list span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pinterest-mini-list svg {
    width: 15px;
    height: 15px;
    color: var(--rose-deep);
    stroke-width: 2.2;
}

.primary-button {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 18px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(180deg, #e48b96, #d96f7d);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(219, 121, 133, .28);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .18s ease, box-shadow .18s ease;
}

.primary-button svg {
    width: 18px;
    height: 18px;
}

@media (hover: hover) and (pointer: fine) {
    .primary-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 20px 38px rgba(219, 121, 133, .34);
    }
}

body.is-mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(31, 23, 21, .28);
    opacity: 0;
    transition: opacity .2s ease;
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 31;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(360px, calc(100vw - 20px));
    padding: 18px;
    background: rgba(255, 253, 251, .98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(47, 35, 31, .22);
    transform: translateX(calc(100% + 20px));
    transition: transform .22s ease;
}

.mobile-menu-panel.is-open {
    transform: translateX(0);
}

.mobile-menu-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.mobile-menu-panel__header span {
    color: #9b5d51;
    font-family: var(--font-logo);
    font-size: 44px;
    font-weight: 400;
    line-height: .72;
}

.mobile-menu-close {
    color: var(--ink);
    background: #fff8f5;
    border: 1px solid var(--line);
}

.mobile-menu-list {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-top: 16px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    color: var(--warm);
    background: #fffaf7;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.mobile-menu-form,
.desktop-nav-form {
    margin: 0;
}

.mobile-menu-form {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.mobile-menu-item--button,
.desktop-nav-item--button {
    width: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.mobile-menu-item--button {
    background: #fffaf7;
    border: 1px solid transparent;
}

.mobile-menu-item svg {
    color: var(--rose-deep);
}

.mobile-menu-item.is-active {
    color: var(--rose-deep);
    background: #fff2f2;
    border-color: #efcaca;
}

.logout-dialog {
    position: fixed;
    inset: 0;
    width: min(430px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin: auto;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.logout-dialog::backdrop {
    background: rgba(50, 40, 35, .42);
    backdrop-filter: blur(3px);
}

.logout-dialog__shell {
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(63, 43, 36, .22);
}

.logout-dialog__header,
.logout-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: #fff8f5;
}

.logout-dialog__header {
    border-bottom: 1px solid rgba(229, 216, 210, .95);
}

.logout-dialog__header div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.logout-dialog__header span {
    color: var(--warm);
    font-size: 12px;
    font-weight: 900;
}

.logout-dialog__header strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.logout-dialog__body {
    padding: 16px 14px;
}

.logout-dialog__body p {
    margin: 0;
    color: #5c4b45;
    font-size: 14px;
    line-height: 1.5;
}

.logout-dialog__footer {
    border-top: 1px solid rgba(229, 216, 210, .95);
}

.logout-dialog__footer form {
    margin: 0;
}

.logout-dialog__confirm svg {
    width: 17px;
    height: 17px;
}

.mobile-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    height: 76px;
    max-width: 430px;
    margin-inline: auto;
    padding: 8px 7px;
    background: rgba(255, 253, 251, .92);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.nav-item {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 58px;
    color: #3f3632;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
}

.nav-item span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.nav-item.is-active {
    color: var(--rose-deep);
    background: #fff2f2;
}

.desktop-sidebar,
.desktop-companion {
    display: none;
}

.flash-stack {
    position: fixed;
    top: 14px;
    right: 14px;
    left: 14px;
    z-index: 40;
    display: grid;
    gap: 8px;
    max-width: 430px;
    margin-inline: auto;
}

.flash {
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
}

.flash-success {
    color: #3f7f4d;
    border-color: #cfe4d1;
}

.flash-error {
    color: var(--rose-deep);
    border-color: #f0caca;
}

.marketing-flash-stack {
    top: 88px;
    z-index: 70;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    padding: 112px 14px 42px;
    place-items: start center;
    background:
        radial-gradient(circle at 14% 14%, rgba(219, 121, 133, .16), transparent 28rem),
        linear-gradient(180deg, #fffaf7 0%, #fbf3ee 100%);
}

.auth-frame {
    min-height: auto;
    padding-bottom: 20px;
}

.marketing-nav.auth-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.marketing-nav.auth-nav nav {
    justify-self: center;
}

.marketing-nav.auth-nav .marketing-nav-cta {
    justify-self: end;
}

.auth-page .auth-form {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.auth-page .auth-form > * {
    grid-column: 1 / -1;
}

.auth-page .auth-form > .primary-button {
    width: 100%;
    pointer-events: auto;
}

.auth-switch {
    margin: 0;
    color: var(--warm);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.auth-switch a {
    color: var(--rose-deep);
}

.foundation-list {
    display: grid;
    gap: 9px;
}

.foundation-list span {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: var(--warm);
    background: #fffaf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
}

.repere-panel {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 248, 245, .94)),
        var(--ivory);
}

.repere-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: white;
    background: linear-gradient(135deg, #c86f7b, #e6a0a7);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(200, 111, 123, .24);
    text-align: left;
}

.budget-side-panel .section-title p {
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.budget-side-panel .repere-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.budget-side-panel .repere-hero span {
    display: block;
    color: rgba(255, 255, 255, .88);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.budget-side-panel .repere-hero strong {
    display: block;
    min-width: 0;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 650;
    line-height: 1;
    overflow-wrap: anywhere;
}

.budget-side-panel .repere-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.budget-side-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 6px;
    min-height: 34px;
    margin-top: 4px;
    padding: 0 11px;
    color: #8f4250;
    background: rgba(255, 253, 251, .9);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.budget-side-link svg {
    width: 14px;
    height: 14px;
}

.budget-side-grid {
    grid-template-columns: minmax(0, 1fr);
}

.budget-side-grid article:first-child {
    border-color: rgba(219, 121, 133, .34);
    background: #fff7f6;
}

.budget-side-grid strong {
    overflow-wrap: anywhere;
    white-space: normal;
}

.budget-due-panel {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(234, 223, 218, .9);
}

.budget-due-header,
.budget-due-total,
.budget-due-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.budget-due-header span,
.budget-due-total span {
    display: block;
    color: var(--rose-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.budget-due-header strong {
    display: block;
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 650;
    line-height: 1;
    overflow-wrap: anywhere;
}

.budget-due-header small {
    justify-self: end;
    min-height: 28px;
    padding: 7px 9px;
    color: #7a6962;
    background: #fff7f6;
    border: 1px solid #efdad6;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.budget-due-list {
    display: grid;
    max-height: 268px;
    overflow: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.budget-due-row {
    min-height: 46px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(234, 223, 218, .72);
}

.budget-due-row span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.budget-due-row span strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-due-row span small {
    overflow: hidden;
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-due-row > strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.budget-due-empty {
    margin: 0;
    padding: 11px 0;
    color: var(--warm);
    border-top: 1px solid rgba(234, 223, 218, .72);
    border-bottom: 1px solid rgba(234, 223, 218, .72);
    font-size: 12px;
    font-weight: 850;
}

.budget-due-total {
    min-height: 42px;
    padding-top: 8px;
}

.budget-due-total strong {
    justify-self: end;
    color: var(--rose-deep);
    font-size: 17px;
    font-weight: 950;
    white-space: nowrap;
}

.repere-grid span,
.next-task-card span,
.repere-countdown span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.repere-countdown span,
.repere-countdown small {
    display: block;
    color: rgba(255, 255, 255, .88);
}

.repere-countdown small {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.repere-countdown strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
}

.repere-date {
    display: grid;
    justify-items: center;
    min-width: 86px;
    padding: 10px 12px;
    color: white;
    background: rgba(255, 253, 251, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    text-align: center;
}

.repere-date strong,
.repere-date span,
.repere-date small {
    display: block;
    line-height: 1;
}

.repere-date strong {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
}

.repere-date span {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 900;
    text-transform: lowercase;
}

.repere-date small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 900;
}

.repere-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.repere-grid article,
.next-task-card {
    padding: 14px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.repere-grid span,
.next-task-card span {
    color: var(--rose-deep);
}

.repere-grid strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.repere-grid small,
.next-task-card small {
    display: block;
    margin-top: 6px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-repere-grid article:nth-child(3) {
    grid-column: 1 / -1;
}

.next-task-card {
    margin-top: 12px;
}

.next-task-card strong {
    display: block;
    margin-top: 7px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.mood-preview {
    padding: 16px;
    background: #fff8f3;
}

.mood-preview span {
    color: var(--rose-deep);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mood-preview strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
}

.swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.swatches i {
    display: block;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
}

.animate-rise {
    animation: rise .45s ease backwards;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 370px) {
    .budget-side-panel .repere-hero strong {
        font-size: 34px;
    }

    .budget-due-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .budget-due-header small {
        justify-self: start;
    }

    .dashboard-hero .countdown {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .dashboard-hero .countdown span {
        font-size: 36px;
    }

    .dashboard-hero .countdown small {
        max-width: none;
        text-align: left;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 88px;
    }

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

    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .form-grid.three,
    .pinterest-board-card {
        grid-template-columns: 1fr;
    }

    .pinterest-board-card__media {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(118px, 1fr);
        aspect-ratio: 16 / 9;
        min-height: 132px;
        max-height: none;
    }

    .budget-row {
        grid-template-columns: 1fr;
    }

    .budget-post-chart {
        justify-self: start;
    }

    .budget-row__header,
    .budget-flow-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .budget-row__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .budget-row__numbers {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 700px) and (max-width: 939px) {
    .onboarding-frame .mariage-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .onboarding-frame .mariage-form > .form-grid.two,
    .onboarding-frame .mariage-form > label:has(input[name="style"]),
    .onboarding-frame .mariage-form > label:has(select[name="planning_stage"]),
    .onboarding-frame .mariage-form > .primary-button {
        grid-column: 1 / -1;
    }

    .onboarding-frame .mariage-form > label:has(input[name="wedding_date"]) {
        grid-column: 1;
    }

    .onboarding-frame .mariage-form > .form-grid.two:has(input[name="city"]) {
        display: contents;
    }

    .onboarding-frame .mariage-form > .form-grid.two:has(input[name="city"]) > label:first-child {
        grid-column: 2;
    }

    .onboarding-frame .mariage-form > .form-grid.two:has(input[name="city"]) > label:nth-child(2) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 940px) {
    .budget-mobile-summary {
        display: none;
    }

    .app-shell {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 36px;
        padding: 24px 38px;
    }

    .app-main {
        grid-template-columns: minmax(700px, 820px) minmax(360px, 460px);
        align-content: start;
        justify-content: start;
        padding-top: 0;
    }

    .phone-frame {
        width: min(100%, 820px);
        min-height: calc(100vh - 48px);
        margin-inline: 0;
        padding: 24px;
        background: rgba(255, 253, 251, .9);
    }

    .phone-frame > .screen-header {
        justify-content: flex-end;
        min-height: 28px;
        margin-bottom: 8px;
    }

    .phone-frame > .screen-header .wordmark {
        display: none;
    }

    .phone-frame > .screen-header:has(> a.icon-button[aria-label="Retour au tableau de bord"]) {
        display: none;
    }

    .dashboard-page > .screen-header {
        display: none;
    }

    .app-main:has(.dashboard-page) {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
        width: min(100%, 900px);
    }

    .app-main:has(.inspiration-page) {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 1440px);
    }

    .app-main:has(.inspiration-page) .desktop-companion {
        display: none;
    }

    .inspiration-page {
        width: min(100%, 1440px);
    }

    .dashboard-page {
        width: min(100%, 560px);
    }

    .dashboard-hero {
        min-height: 142px;
        align-content: center;
    }

    .dashboard-hero .countdown,
    .dashboard-page .metric-grid {
        display: none;
    }

    .dashboard-hero h1 {
        font-size: 38px;
    }

    .app-main:has(.retroplanning-page) {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
        width: min(100%, 1000px);
    }

    .retroplanning-page {
        width: min(100%, 680px);
    }

    .module-frame {
        gap: 18px;
    }

    .module-heading {
        padding: 2px 4px;
    }

    .module-heading h1 {
        font-size: 48px;
    }

    .hero-card,
    .intro-card,
    .panel,
    .task-group {
        padding: 20px;
    }

    .mariage-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 20px;
    }

    .mariage-form > label,
    .mariage-form > .primary-button,
    .mariage-form > .form-grid.two {
        grid-column: 1 / -1;
    }

    .module-form {
        gap: 16px;
    }

    .panel .module-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel .module-form > .form-grid,
    .panel .module-form > label:has(textarea),
    .panel .module-form > .primary-button {
        grid-column: 1 / -1;
    }

    .metric-grid {
        gap: 12px;
    }

    .metric-card {
        min-height: 128px;
        padding: 16px;
    }

    .task-list {
        gap: 10px;
    }

    .task-row {
        min-height: 70px;
        padding: 12px;
    }

    .inspiration-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
        align-items: center;
    }

    .inspiration-hero__preview {
        height: 256px;
    }

    .pinterest-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .pinterest-board-card__media {
        min-height: 164px;
        max-height: 198px;
    }

    .budget-clarity-panel {
        grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
        align-items: end;
    }

    .budget-clarity-number {
        padding: 0 0 0 18px;
        border-top: 0;
        border-left: 1px solid rgba(234, 223, 218, .9);
    }

    .budget-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .budget-metrics.budget-metrics--simple {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .budget-chart-grid {
        grid-template-columns: minmax(190px, 236px) minmax(0, 1fr);
    }

    .budget-add-form {
        grid-template-columns: minmax(0, 1fr) 150px auto;
        align-items: end;
    }

    .budget-expense-form--create {
        grid-template-columns: minmax(0, 1.25fr) minmax(170px, .9fr) 128px 128px;
        align-items: end;
    }

    .budget-expense-form--create .budget-file-field {
        grid-column: 1 / -2;
    }

    .budget-expense-form--create .primary-button {
        grid-column: auto;
        min-height: 44px;
    }

    .budget-expense-form--edit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .budget-expense-form__wide {
        grid-column: 1 / -1;
    }

    .budget-hidden-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .budget-hidden-actions {
        justify-content: flex-end;
    }

    .budget-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .budget-family-card {
        grid-template-columns: auto minmax(210px, 1fr) minmax(245px, auto) minmax(132px, auto) auto;
    }

    .budget-family-card__stats,
    .budget-family-card__meta {
        grid-column: auto;
    }

    .budget-family-add-form {
        grid-template-columns: minmax(0, 1fr) 150px auto;
        align-items: end;
    }

    .budget-part-card {
        grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr);
        align-items: start;
    }

    .budget-part-card__numbers {
        align-self: stretch;
    }

    .budget-family-edit,
    .budget-family-actions {
        grid-column: 1 / -1;
    }

    .budget-family-edit-form {
        grid-template-columns: minmax(0, 1fr) 150px auto;
        align-items: end;
    }

    .budget-post-detail__actions {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
        align-items: end;
    }

    .budget-row__tools {
        justify-content: flex-end;
    }

    .budget-row {
        grid-template-columns: 64px minmax(0, 1fr) 214px;
    }

    .budget-post-chart {
        width: 60px;
    }

    .budget-row__manage {
        grid-column: auto;
    }

    .invites-page {
        width: min(100%, 980px);
    }

    .app-main:has(.invites-page) {
        grid-template-columns: minmax(760px, 980px) minmax(300px, 360px);
    }

    .guest-editor-main {
        grid-template-columns: auto minmax(0, 1fr) 150px;
    }

    .guest-rsvp-select {
        grid-column: auto;
    }

    .mobile-shortcuts {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-menu-button,
    .mobile-menu-backdrop,
    .mobile-menu-panel {
        display: none !important;
    }

    .desktop-sidebar {
        position: sticky;
        top: 24px;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 48px);
        padding: 22px 16px;
        background: rgba(255, 253, 251, .84);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .desktop-nav {
        display: flex;
        min-height: 0;
        flex: 1;
        flex-direction: column;
        gap: 8px;
        margin-top: 34px;
    }

    .desktop-nav-form {
        margin-top: auto;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }

    .desktop-nav-item {
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 44px;
        padding: 0 12px;
        color: var(--warm);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
    }

    .desktop-nav-item.is-active {
        color: var(--rose-deep);
        background: #fff2f2;
    }

    .desktop-companion {
        display: grid;
        align-content: start;
        gap: 14px;
    }

    .coach-panel--mobile {
        display: none;
    }

    .coach-mobile-drawer {
        display: none;
    }

    .coach-panel--desktop {
        display: grid;
    }

    .desktop-sidebar .brand-lockup span {
        display: inline-block;
        font-size: 47px;
    }
}

@media (min-width: 1180px) {
    .app-main:has(.inspiration-page) .pinterest-board-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 940px) and (max-width: 1500px) {
    .app-main:has(.budget-page) {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 900px);
    }

    .app-main:has(.budget-page) .desktop-companion {
        display: none;
    }

    .budget-page {
        width: min(100%, 900px);
    }
}

@media (max-width: 560px) {
    .invites-page .metric-grid {
        grid-template-columns: 1fr;
    }

    .invites-page .invite-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, max-content));
        justify-content: flex-start;
    }

    .invites-page .invite-stats-group {
        display: contents;
    }

    .invites-page .invite-stats-group--side {
        margin-left: 0;
    }

    .timeline-labels {
        font-size: 10px;
    }

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

    .task-row form {
        grid-column: 2;
        justify-self: start;
    }

    .guest-editor-main,
    .guest-name-fields {
        grid-template-columns: 1fr;
    }

    .guest-editor-main .guest-avatar {
        display: none;
    }

    .guest-rsvp-select,
    .guest-followup-checks,
    .guest-more-details {
        grid-column: auto;
        margin-left: 0;
        padding-left: 0;
    }
}

.invite-heading {
    gap: 8px;
}

.invite-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 10px;
}

.invite-stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.invite-stats-group--side {
    margin-left: auto;
}

.invite-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 10px;
    color: #6d5c56;
    background: rgba(255, 253, 251, .82);
    border: 1px solid rgba(234, 223, 218, .78);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.invite-stat-chip:hover,
.invite-stat-chip:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.invite-stat-chip strong {
    color: var(--rose-deep);
    font-weight: 950;
}

.invite-stat-chip--total {
    color: #5f5651;
    background: #fffdfb;
    border-color: #eadfda;
}

.invite-stat-chip--confirmed {
    color: #4f7654;
    background: #eef8ef;
    border-color: #c7dcc9;
}

.invite-stat-chip--confirmed strong {
    color: #4f7654;
}

.invite-stat-chip--pending {
    color: #8a6418;
    background: #fff7df;
    border-color: #ead89e;
}

.invite-stat-chip--pending strong {
    color: #8a6418;
}

.invite-stat-chip--declined {
    color: #8f5d5a;
    background: #f7eeee;
    border-color: #dec9c4;
}

.invite-stat-chip--declined strong {
    color: #8f5d5a;
}

.invite-stat-chip--gift {
    color: #725a1f;
    background: #fff7db;
    border-color: #edd18b;
}

.invite-stat-chip--gift strong {
    color: #725a1f;
}

.invite-stat-chip.is-active {
    box-shadow: inset 0 0 0 1px currentColor, 0 9px 20px rgba(83, 57, 48, .08);
}

.invite-quick-panel {
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(255, 241, 242, .96), rgba(246, 250, 242, .9)),
        #fffdfb;
    border: 1px solid #f0d8d4;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(94, 69, 60, .09);
}

.quick-guest-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 9px;
    align-items: end;
}

.quick-guest-form label {
    display: grid;
    gap: 7px;
}

.quick-guest-form label span {
    color: var(--rose-deep);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-guest-form input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid #e9cfcf;
    border-radius: 8px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    font-size: 18px;
    font-weight: 800;
}

.quick-guest-form input:focus {
    border-color: rgba(219, 121, 133, .75);
    box-shadow: 0 0 0 4px rgba(219, 121, 133, .13);
}

.quick-guest-form button {
    display: grid;
    width: 48px;
    height: 54px;
    place-items: center;
    color: white;
    background: linear-gradient(180deg, #e48b96, #d96f7d);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(219, 121, 133, .28);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.quick-guest-form button svg {
    width: 20px;
    height: 20px;
}

.quick-guest-form button:active {
    transform: translateY(1px) scale(.98);
    box-shadow: 0 8px 18px rgba(219, 121, 133, .22);
}

.quick-add-feedback {
    min-height: 18px;
    margin-top: 8px;
    color: #55775a;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity .18s ease, transform .18s ease;
}

.quick-add-feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-feedback[data-tone="error"] {
    color: #b84e5a;
}

.guest-stream-section {
    display: grid;
    gap: 8px;
}

.guest-stream-title {
    padding: 0 4px;
    margin-bottom: 2px;
}

.guest-stream {
    position: relative;
    display: grid;
}

.guest-stream-row {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(234, 223, 218, .82);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.guest-stream-row.is-expanded,
.guest-stream-row:has(.guest-more[open]) {
    z-index: 80;
}

.guest-stream-row:first-child {
    border-top: 1px solid rgba(234, 223, 218, .82);
}

.guest-stream-row.is-new {
    animation: guestPop .38s ease both;
}

.guest-stream-row.is-saving {
    background: rgba(255, 248, 233, .52);
}

.guest-stream-row[data-temp-guest] {
    opacity: .72;
}

.guest-stream-row.is-saved {
    box-shadow: inset 4px 0 0 rgba(125, 154, 128, .42);
}

.guest-stream-row.is-error {
    box-shadow: inset 4px 0 0 rgba(207, 75, 85, .42);
}

.guest-row-core {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.guest-card-open {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 11px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    color: inherit;
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.guest-card-open:hover,
.guest-card-open:focus-visible {
    background: #fff8f5;
    border-color: rgba(239, 202, 202, .82);
    outline: none;
}

.guest-card-open:active {
    transform: translateY(1px);
}

.guest-drag-handle,
.guest-group-drag-handle {
    display: grid;
    width: 34px;
    height: 36px;
    place-items: center;
    color: var(--warm);
    background: #fff8f5;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
}

.guest-group-drag-handle {
    height: 34px;
    color: #8a7c76;
}

.guest-drag-handle svg,
.guest-group-drag-handle svg {
    width: 17px;
    height: 17px;
}

.guest-drag-handle:hover,
.guest-drag-handle:focus-visible,
.guest-group-drag-handle:hover,
.guest-group-drag-handle:focus-visible {
    color: var(--rose-deep);
    background: #fff1f2;
    border-color: #efcaca;
    outline: none;
}

.guest-drag-handle:disabled,
.guest-group-drag-handle:disabled {
    cursor: not-allowed;
    opacity: .28;
}

.guest-stream.is-reordering {
    user-select: none;
}

.guest-stream.is-reordering .guest-stream-row {
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
    will-change: transform;
}

.guest-stream.is-reordering .guest-stream-row:not(.is-dragging) {
    background: rgba(255, 253, 251, .78);
}

body.is-guest-reordering,
body.is-guest-group-reordering {
    cursor: grabbing;
    user-select: none;
}

body.is-guest-reordering .guest-family-group,
body.is-guest-group-reordering .guest-family-group {
    overflow: visible;
}

.guest-stream-row[data-reorder-enabled="true"] .guest-drag-handle,
.guest-family-group[data-group-reorder-enabled="true"] .guest-group-drag-handle {
    cursor: grab;
}

.guest-stream-row.is-dragging,
.guest-family-group.is-group-dragging {
    z-index: 90;
    background: #fffdfb;
    border-color: transparent;
    box-shadow:
        0 12px 30px rgba(94, 69, 60, .14),
        inset 4px 0 0 rgba(219, 121, 133, .34);
    cursor: grabbing;
    opacity: .98;
    pointer-events: none;
}

.guest-family-group.is-group-dragging {
    border-color: rgba(95, 86, 81, .2);
    box-shadow:
        0 16px 36px rgba(94, 69, 60, .16),
        inset 4px 0 0 rgba(95, 86, 81, .22);
}

.guest-stream-row.is-dragging .guest-drag-handle,
.guest-family-group.is-group-dragging .guest-group-drag-handle {
    color: var(--rose-deep);
    cursor: grabbing;
}

.guest-drop-placeholder,
.guest-group-drop-placeholder {
    display: grid;
    margin: 6px 4px;
    place-items: center;
    color: #7c716c;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(95, 86, 81, .035) 0,
            rgba(95, 86, 81, .035) 8px,
            rgba(95, 86, 81, .07) 8px,
            rgba(95, 86, 81, .07) 16px
        ),
        rgba(95, 86, 81, .055);
    border: 1px dashed rgba(95, 86, 81, .28);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 253, 251, .74);
}

.guest-drop-placeholder {
    min-height: var(--guest-placeholder-height, 58px);
}

.guest-group-drop-placeholder {
    min-height: var(--guest-group-placeholder-height, 58px);
    margin: 7px 0;
}

.guest-drop-placeholder::before {
    content: "Déposer ici";
}

.guest-group-drop-placeholder::before {
    content: "Déposer la famille ici";
}

.guest-drop-placeholder::before,
.guest-group-drop-placeholder::before {
    padding: 4px 9px;
    background: rgba(255, 253, 251, .78);
    border: 1px solid rgba(234, 223, 218, .9);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.guest-name-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.guest-name-inline input,
.guest-status-select,
.guest-more-panel input,
.guest-more-panel select,
.guest-more-panel textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(126, 110, 104, .24);
    border-radius: 0;
    outline: none;
    font-size: 13px;
    font-weight: 800;
}

.guest-name-inline input:first-child {
    color: var(--rose-deep);
}

.with-tooltip {
    position: relative;
}

.with-tooltip::after {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    z-index: 130;
    width: max-content;
    max-width: 190px;
    padding: 7px 9px;
    color: #fffdfb;
    background: rgba(31, 23, 21, .92);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(31, 23, 21, .18);
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(50%, 4px);
    transition: opacity .16s ease, transform .16s ease;
    white-space: normal;
}

.with-tooltip:hover::after,
.with-tooltip:focus-within::after,
.with-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(50%, 0);
}

.guest-name-inline input:focus,
.guest-status-select:focus,
.guest-more-panel input:focus,
.guest-more-panel select:focus,
.guest-more-panel textarea:focus {
    border-bottom-color: var(--rose-deep);
    background: rgba(255, 253, 251, .72);
}

.guest-status-select {
    min-height: 36px;
    padding: 0 6px;
    color: #6d5c56;
    background: #fffaf7;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.guest-stream-row.is-confirmed .guest-avatar {
    background: linear-gradient(145deg, #719a76, #a8c9a7);
}

.guest-stream-row.is-declined .guest-avatar {
    background: linear-gradient(145deg, #9d8580, #c8b8b0);
}

.guest-icon-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-toggle,
.guest-more summary {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--warm);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.icon-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.icon-toggle svg,
.guest-more summary svg {
    width: 18px;
    height: 18px;
}

.icon-toggle:has(input:checked) {
    color: var(--rose-deep);
    background: #fff2f2;
    border-color: #efcaca;
}

.guest-more {
    position: relative;
    z-index: 1;
}

.guest-more summary {
    list-style: none;
}

.guest-more summary::-webkit-details-marker {
    display: none;
}

.guest-more[open] summary {
    color: var(--rose-deep);
    background: #fff2f2;
    border-color: #efcaca;
}

.guest-more[open] {
    z-index: 90;
}

.guest-more-panel {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(560px, calc(100vw - 36px));
    padding: 14px;
    background: rgba(255, 253, 251, .98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(94, 69, 60, .18);
}

.guest-more-panel label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.guest-more-panel label span {
    color: var(--warm);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.guest-more-panel textarea {
    min-height: 64px;
    padding-top: 8px;
    resize: vertical;
}

.guest-wide-field,
.guest-mini-checks {
    grid-column: 1 / -1;
}

.guest-mini-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-mini-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
}

.guest-mini-checks input {
    accent-color: var(--rose-deep);
}

.guest-event-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 46px;
}

.guest-event-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 9px;
    color: var(--warm);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.guest-event-pill input {
    width: 13px;
    height: 13px;
    accent-color: #719a76;
}

.guest-event-pill:has(input:checked) {
    color: #527457;
    background: #eef8ef;
    border-color: #c7dcc9;
}

@keyframes guestPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 940px) {
    .app-main:has(.invites-page) {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 900px);
    }

    .app-main:has(.invites-page) .desktop-companion {
        display: none;
    }

    .invites-page {
        width: min(100%, 900px);
    }
}

@media (max-width: 640px) {
    .guest-row-core {
        grid-template-columns: auto minmax(0, 1fr);
    }

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

    .guest-icon-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .guest-status-tag {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .guest-open-chevron {
        grid-column: 3;
        grid-row: 1;
    }

    .guest-name-inline {
        grid-template-columns: 1fr;
    }

    .guest-event-strip {
        padding-left: 46px;
    }

    .guest-more-panel {
        right: auto;
        left: -46px;
        grid-template-columns: 1fr;
        width: calc(100vw - 36px);
    }
}

.invite-add-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.invite-add-panel span {
    display: block;
    color: var(--rose-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.invite-add-panel strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 650;
    line-height: 1;
}

.invite-add-panel p {
    max-width: 560px;
    margin-top: 6px;
    color: var(--warm);
    font-size: 13px;
    line-height: 1.4;
}

.invite-add-button,
.guest-open-button,
.danger-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.invite-add-button {
    color: white;
    background: linear-gradient(180deg, #e48b96, #d96f7d);
    border: 0;
    box-shadow: 0 14px 28px rgba(219, 121, 133, .24);
}

.guest-open-button,
.secondary-button {
    color: var(--rose-deep);
    background: #fff8f5;
    border: 1px solid #efcaca;
}

.danger-button {
    color: #9a3741;
    background: #fff5f5;
    border: 1px solid #efcaca;
}

.danger-button:hover,
.danger-button:focus-visible {
    color: #842631;
    background: #fff0f1;
    outline: none;
}

.invite-add-button svg,
.guest-open-button svg,
.danger-button svg {
    width: 17px;
    height: 17px;
}

.invite-filter-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 253, 251, .92);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invite-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    background: #fffdfb;
    border: 1px solid #e5d8d2;
    border-radius: 8px;
}

.invite-search svg {
    width: 17px;
    height: 17px;
    color: var(--warm);
}

.invite-search input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    background: transparent;
    border: 0;
    outline: none;
    font-size: 13px;
    font-weight: 750;
}

.invite-filter-group {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.invite-filter-group::-webkit-scrollbar {
    display: none;
}

.invite-filter-chip {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    color: #675953;
    background: #fffdfb;
    border: 1px solid #e6dad4;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.invite-filter-chip.is-active {
    color: var(--rose-deep);
    background: #fff1f2;
    border-color: #efcaca;
}

.guest-stream-title {
    align-items: flex-start;
}

.guest-stream-title p {
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.guest-empty-message {
    padding: 14px 4px;
}

.guest-stream-row[hidden] {
    display: none;
}

.guest-family-group[hidden] {
    display: none;
}

.guest-family-group {
    position: relative;
    margin: 7px 0;
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid #eadfda;
    border-radius: 8px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.guest-family-group--ungrouped {
    background: #fbfaf8;
    border-style: dashed;
}

.guest-family-group--ungrouped .guest-family-icon {
    color: #6d6a61;
    background: #f6f1ed;
    border-color: #e4d8d0;
}

.guest-family-group.is-drop-target {
    z-index: 70;
    background: #f8f7f5;
    border-color: rgba(95, 86, 81, .34);
    box-shadow: 0 12px 28px rgba(94, 69, 60, .10);
}

.guest-family-group.is-drop-target .guest-family-summary {
    background: rgba(95, 86, 81, .045);
}

.guest-family-summary {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px;
    cursor: pointer;
    list-style: none;
}

.guest-family-summary::-webkit-details-marker {
    display: none;
}

.guest-family-summary:focus-visible {
    outline: 3px solid rgba(219, 121, 133, .2);
    outline-offset: -3px;
}

.guest-family-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #7c5a52;
    background: #fff8f5;
    border: 1px solid #efddd6;
    border-radius: 8px;
}

.guest-family-icon svg {
    width: 17px;
    height: 17px;
}

.guest-family-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.guest-family-main strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-family-main small {
    color: var(--warm);
    font-size: 12px;
    font-weight: 850;
}

.guest-family-stats {
    display: flex;
    flex-wrap: wrap;
    grid-column: 3 / -1;
    justify-content: flex-start;
    gap: 5px;
}

.guest-family-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.guest-family-stat--confirmed {
    color: #4f7654;
    background: #eef8ef;
    border-color: #c7dcc9;
}

.guest-family-stat--pending {
    color: #8a6418;
    background: #fff7df;
    border-color: #ead89e;
}

.guest-family-stat--declined {
    color: #8f5d5a;
    background: #f7eeee;
    border-color: #dec9c4;
}

.guest-family-chevron {
    display: grid;
    grid-column: 4;
    grid-row: 1;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--warm);
    transition: transform .18s ease;
}

.guest-family-chevron svg {
    width: 17px;
    height: 17px;
}

.guest-family-group[open] .guest-family-chevron {
    transform: rotate(180deg);
}

.guest-family-body {
    position: relative;
    display: grid;
    border-top: 1px solid rgba(234, 223, 218, .8);
    transition: background .18s ease;
}

body.is-guest-reordering .guest-family-body {
    min-height: 54px;
}

.guest-family-body.is-drop-target {
    background: rgba(95, 86, 81, .045);
}

body.is-guest-reordering .guest-family-body:empty::before {
    display: grid;
    min-height: 52px;
    margin: 8px;
    place-items: center;
    color: #746a64;
    background: rgba(255, 253, 251, .74);
    border: 1px dashed #d9ccc5;
    border-radius: 8px;
    content: attr(data-empty-label);
    font-size: 12px;
    font-weight: 900;
}

body.is-guest-reordering .guest-family-body.is-drop-target:empty::before {
    color: #625954;
    background: rgba(95, 86, 81, .075);
    border-color: rgba(95, 86, 81, .3);
}

.guest-family-body .guest-stream-row {
    padding-left: 8px;
    padding-right: 8px;
}

.guest-family-body .guest-drop-placeholder {
    margin-left: 8px;
    margin-right: 8px;
}

.guest-family-body .guest-stream-row:first-child {
    border-top: 0;
}

.guest-family-body .guest-stream-row:last-child {
    border-bottom: 0;
}

.guest-stream-row {
    padding: 13px 4px;
}

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

.guest-summary {
    min-width: 0;
}

.guest-summary strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.guest-summary small {
    display: block;
    margin-top: 3px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.25;
}

.guest-badge-line {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.guest-event-tag,
.guest-flag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.guest-event-tag {
    color: #527457;
    background: #eef8ef;
    border: 1px solid #c7dcc9;
}

.guest-flag {
    display: none;
    color: #725a1f;
    background: #fff7db;
    border: 1px solid #edd18b;
}

.guest-flag.is-on {
    display: inline-flex;
}

.guest-status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.guest-status-tag svg {
    width: 15px;
    height: 15px;
}

.guest-status-tag--pending {
    color: #8a6418;
    background: #fff7df;
    border-color: #ead89e;
}

.guest-status-tag--confirmed {
    color: #4f7654;
    background: #eef8ef;
    border-color: #c7dcc9;
}

.guest-status-tag--declined {
    color: #8f5d5a;
    background: #f7eeee;
    border-color: #dec9c4;
}

.guest-open-chevron {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--warm);
    opacity: .7;
}

.guest-open-chevron svg {
    width: 17px;
    height: 17px;
}

.invite-dialog {
    width: min(760px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 28px));
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
}

.invite-dialog::backdrop {
    background: rgba(31, 23, 21, .34);
    backdrop-filter: blur(4px);
}

.invite-dialog__shell {
    display: grid;
    max-height: inherit;
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(31, 23, 21, .22);
}

.invite-dialog__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.invite-dialog__header span {
    display: block;
    color: var(--rose-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.invite-dialog__header strong {
    display: block;
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 650;
    line-height: 1.05;
}

.invite-dialog__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    max-height: calc(100vh - 128px);
    padding: 16px;
    overflow: auto;
}

.invite-dialog:has(.invite-info-button:hover),
.invite-dialog:has(.invite-info-button:focus-visible),
.invite-dialog:has(.invite-info-button:focus-within),
.invite-dialog:has(.invite-info-button:hover) .invite-dialog__shell,
.invite-dialog:has(.invite-info-button:focus-visible) .invite-dialog__shell,
.invite-dialog:has(.invite-info-button:focus-within) .invite-dialog__shell,
.invite-dialog:has(.invite-info-button:hover) .invite-dialog__content,
.invite-dialog:has(.invite-info-button:focus-visible) .invite-dialog__content,
.invite-dialog:has(.invite-info-button:focus-within) .invite-dialog__content {
    overflow: visible;
}

.invite-dialog:has(.invite-info-button:hover) .invite-dialog__content,
.invite-dialog:has(.invite-info-button:focus-visible) .invite-dialog__content,
.invite-dialog:has(.invite-info-button:focus-within) .invite-dialog__content {
    z-index: 8;
}

.invite-form-section {
    display: grid;
    gap: 10px;
}

.invite-rsvp-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    background: #fff8f5;
    border: 1px solid #efddd6;
    border-radius: 8px;
}

.invite-form-section h2 {
    font-size: 15px;
    font-weight: 900;
}

.invite-status-field select {
    min-height: 48px;
    font-size: 15px;
    font-weight: 900;
}

.invite-form-grid,
.invite-check-grid,
.invite-event-grid {
    display: grid;
    gap: 10px;
}

.invite-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.invite-field > span {
    color: #5c4b45;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.invite-field-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.invite-field-label:has(.invite-info-button:hover),
.invite-field-label:has(.invite-info-button:focus-visible),
.invite-field-label:has(.invite-info-button:focus-within) {
    z-index: 30;
}

.invite-info-button {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--warm);
    background: #fff8f5;
    border: 1px solid #eadbd4;
    border-radius: 999px;
    cursor: help;
    flex: 0 0 auto;
}

.invite-info-button svg {
    width: 13px;
    height: 13px;
}

.invite-info-button:hover,
.invite-info-button:focus-visible {
    color: var(--rose-deep);
    border-color: #efcaca;
    outline: none;
}

.invite-info-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 1000;
    width: max-content;
    max-width: min(260px, calc(100vw - 48px));
    padding: 7px 9px;
    color: #fffdfb;
    background: rgba(31, 23, 21, .94);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(31, 23, 21, .2);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    text-transform: none;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease;
}

.invite-field-label:has(.invite-info-button:hover) .invite-info-tooltip,
.invite-field-label:has(.invite-info-button:focus) .invite-info-tooltip,
.invite-field-label:has(.invite-info-button:focus-visible) .invite-info-tooltip,
.invite-field-label:has(.invite-info-button:focus-within) .invite-info-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.invite-field input,
.invite-field select,
.invite-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: #fffaf7;
    border: 1px solid #e5d8d2;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    font-weight: 750;
}

.invite-field textarea {
    min-height: 76px;
    padding-top: 10px;
    resize: vertical;
}

.invite-field input:focus,
.invite-field select:focus,
.invite-field textarea:focus {
    background: #fff;
    border-color: rgba(219, 121, 133, .72);
    box-shadow: 0 0 0 4px rgba(219, 121, 133, .13);
}

.invite-check-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    background: #fffaf7;
    border: 1px solid #eadfda;
    border-radius: 8px;
}

.invite-check-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--rose-deep);
}

.invite-check-card strong,
.invite-check-card small {
    display: block;
}

.invite-check-card strong {
    font-size: 13px;
    font-weight: 900;
}

.invite-check-card small {
    margin-top: 2px;
    color: var(--warm);
    font-size: 11px;
    line-height: 1.25;
}

.invite-check-card:has(input:checked) {
    background: #fff2f2;
    border-color: #efcaca;
}

.invite-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.invite-delete-button {
    margin-right: auto;
}

.guest-dialog .invite-dialog__footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.guest-dialog .invite-delete-button {
    grid-column: 1;
    margin-right: 0;
}

.guest-dialog .inline-save-status {
    position: static;
    grid-column: 2;
    justify-self: end;
    display: none;
    max-width: 100%;
    white-space: nowrap;
}

.guest-dialog .inline-save-status.is-visible {
    display: inline-flex;
}

.guest-dialog [data-guest-dialog-save] {
    grid-column: 3;
}

@media (max-width: 520px) {
    .guest-dialog .invite-dialog__footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-dialog .invite-delete-button,
    .guest-dialog [data-guest-dialog-save] {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
    }

    .guest-dialog .invite-delete-button {
        grid-column: 1;
    }

    .guest-dialog [data-guest-dialog-save] {
        grid-column: 2;
    }

    .guest-dialog .inline-save-status {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }

    .guest-dialog .invite-dialog__footer:has(.inline-save-status.is-visible) .inline-save-status {
        grid-row: 1;
    }

    .guest-dialog .invite-dialog__footer:has(.inline-save-status.is-visible) .invite-delete-button,
    .guest-dialog .invite-dialog__footer:has(.inline-save-status.is-visible) [data-guest-dialog-save] {
        grid-row: 2;
    }
}

.invite-global-status {
    min-height: 20px;
}

@media (min-width: 680px) {
    .invite-form-grid,
    .invite-check-grid,
    .invite-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invite-field--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .invite-add-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .guest-family-summary {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
    }

    .guest-family-stats {
        grid-column: 3 / -1;
        justify-content: flex-start;
    }

    .guest-family-chevron {
        grid-column: 4;
        grid-row: 1;
    }

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

    .invite-add-button {
        width: 100%;
    }

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

    .guest-status-tag {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .guest-open-chevron {
        grid-column: 3;
        grid-row: 1;
    }
}

.settings-page {
    overflow: visible;
}

.settings-heading {
    --settings-score: 0%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 16px;
    background:
        linear-gradient(135deg, rgba(255, 237, 229, .96), rgba(238, 250, 240, .96) 52%, rgba(231, 247, 251, .92)),
        #fffdfb;
    border: 1px solid #edd7cf;
    border-radius: 8px;
}

.settings-heading h1 {
    margin-bottom: 10px;
}

.settings-heading-copy {
    min-width: 0;
}

.settings-summary,
.settings-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-summary span,
.settings-achievement,
.settings-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #6d5c56;
    background: rgba(255, 253, 251, .82);
    border: 1px solid rgba(234, 223, 218, .78);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.settings-summary strong {
    margin-right: 4px;
    color: var(--rose-deep);
}

.settings-score {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    place-items: center;
    background: conic-gradient(#21a878 var(--settings-score), #f2dfd7 0);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(83, 57, 48, .13);
}

.settings-score::before {
    content: "";
    position: absolute;
    inset: 7px;
    background: #fffdfb;
    border-radius: inherit;
}

.settings-score strong,
.settings-score span {
    position: relative;
    z-index: 1;
}

.settings-score strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.settings-score span {
    color: var(--warm);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.settings-achievements {
    margin-top: -4px;
}

.settings-achievement {
    gap: 6px;
    min-height: 32px;
    color: #89756d;
    background: rgba(255, 253, 251, .72);
}

.settings-achievement svg {
    width: 15px;
    height: 15px;
}

.settings-achievement.is-complete {
    color: #2f7656;
    background: #ecf8ef;
    border-color: #bfe2c8;
}

.settings-layout,
.settings-form,
.settings-event-list {
    display: grid;
    gap: 14px;
}

.settings-card {
    display: grid;
    gap: 14px;
    overflow: visible;
}

.settings-card-badge {
    color: #b65f47;
    background: #fff0e7;
    border-color: #efc7b4;
}

.settings-fast-grid,
.settings-field-grid {
    display: grid;
    gap: 10px;
}

.settings-fast-grid,
.settings-field-grid.two,
.settings-field-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
    position: relative;
    display: grid;
    gap: 7px;
    min-width: 0;
}

.settings-field--wide {
    grid-column: 1 / -1;
}

.settings-field--date input {
    min-height: 58px;
    font-size: 16px;
    font-weight: 950;
}

.settings-field > span,
.settings-stage > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f5e58;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.settings-field > span svg,
.settings-stage > span svg,
.settings-more summary svg,
.settings-event-options summary svg,
.settings-event-guests summary svg {
    width: 15px;
    height: 15px;
    color: var(--rose-deep);
}

.settings-field input,
.settings-field select,
.settings-form input,
.settings-event-add input,
.settings-event-form input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 13px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid #e8d6cf;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    font-weight: 850;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}

.settings-field--hero input {
    min-height: 58px;
    color: var(--rose-deep);
    background: linear-gradient(180deg, #fffdfb, #fff7f5);
    font-size: 18px;
    font-weight: 950;
}

.settings-field input:focus,
.settings-field select:focus,
.settings-form input:focus,
.settings-event-add input:focus,
.settings-event-form input:focus {
    background: #fff;
    border-color: rgba(219, 121, 133, .78);
    box-shadow: 0 0 0 4px rgba(219, 121, 133, .13);
}

.settings-form small,
.settings-event-add small {
    color: #b84e5a;
    font-size: 11px;
    font-weight: 850;
}

.settings-more,
.settings-event-options {
    background: rgba(255, 250, 247, .72);
    border: 1px solid rgba(234, 223, 218, .82);
    border-radius: 8px;
}

.settings-more summary,
.settings-event-options summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 13px;
    cursor: pointer;
    list-style: none;
}

.settings-more summary::-webkit-details-marker,
.settings-event-options summary::-webkit-details-marker,
.settings-event-guests summary::-webkit-details-marker {
    display: none;
}

.settings-more summary span,
.settings-event-options summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rose-deep);
    font-size: 13px;
    font-weight: 950;
}

.settings-more summary small {
    color: var(--warm);
    font-size: 11px;
    font-weight: 850;
}

.settings-more-panel {
    display: grid;
    gap: 12px;
    padding: 0 13px 13px;
}

.settings-stage {
    display: grid;
    gap: 9px;
}

.settings-stage-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.settings-stage-option {
    position: relative;
    display: grid;
    min-height: 66px;
    place-items: center;
    gap: 5px;
    padding: 8px 6px;
    color: #796962;
    background: #fffdfb;
    border: 1px solid #e8d6cf;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.settings-stage-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-stage-option svg {
    width: 18px;
    height: 18px;
}

.settings-stage-option span {
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
}

.settings-stage-option:has(input:checked) {
    color: #236b54;
    background: #edfaf1;
    border-color: #a9d8ba;
    box-shadow: 0 10px 24px rgba(61, 121, 85, .12);
}

.settings-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.settings-save-hint {
    color: #5b8b66;
    font-size: 12px;
    font-weight: 900;
}

.settings-form[data-unsaved="true"] .settings-save-hint {
    color: #b65f47;
}

.settings-event-add {
    display: grid;
    grid-template-columns: auto minmax(160px, 1.2fr) minmax(140px, 1fr) minmax(170px, .9fr) auto auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255, 239, 229, .95), rgba(236, 249, 240, .92) 56%, rgba(232, 247, 250, .92)),
        #fffdfb;
    border: 1px solid #eed5ca;
    border-radius: 8px;
}

.settings-add-spark {
    display: grid;
    width: 48px;
    height: 50px;
    place-items: center;
    color: #fffdfb;
    background: linear-gradient(135deg, #dc5a48, #ecaa39);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(201, 96, 61, .22);
}

.settings-add-spark svg {
    width: 21px;
    height: 21px;
}

.settings-event-add-name input {
    color: var(--rose-deep);
}

.settings-invite-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 10px;
    color: #5d6f5a;
    background: rgba(255, 253, 251, .82);
    border: 1px solid rgba(197, 220, 201, .95);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.settings-invite-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-invite-toggle span {
    position: relative;
    width: 34px;
    height: 20px;
    background: #e7d9d1;
    border-radius: 999px;
    transition: background .16s ease;
}

.settings-invite-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fffdfb;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(47, 35, 31, .18);
    transition: transform .16s ease;
}

.settings-invite-toggle:has(input:checked) span {
    background: #5eb276;
}

.settings-invite-toggle:has(input:checked) span::after {
    transform: translateX(14px);
}

.settings-add-button,
.settings-event-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 50px;
    min-height: 50px;
    padding: 0 14px;
    color: #fffdfb;
    background: linear-gradient(180deg, #e36d5b, #c94f5e);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(201, 79, 94, .22);
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    transition: transform .16s ease, box-shadow .16s ease;
}

.settings-add-button svg,
.settings-event-save svg {
    width: 18px;
    height: 18px;
}

.settings-add-button:active,
.settings-event-save:active {
    transform: translateY(1px);
    box-shadow: 0 9px 18px rgba(201, 79, 94, .18);
}

.settings-event-list {
    gap: 12px;
}

.settings-empty {
    margin: 0;
    padding: 12px 4px;
    color: var(--warm);
    font-size: 13px;
    font-weight: 850;
}

.settings-event-card {
    --event-color: #d95d4d;
    --event-soft: #fff0e9;
    position: relative;
    display: grid;
    gap: 11px;
    padding: 15px 15px 13px 58px;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 250, 247, .95)),
        var(--event-soft);
    border: 1px solid rgba(234, 223, 218, .92);
    border-left: 6px solid var(--event-color);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(83, 57, 48, .08);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.settings-event-card--sun {
    --event-color: #e0a82c;
    --event-soft: #fff7df;
}

.settings-event-card--mint {
    --event-color: #3fae72;
    --event-soft: #edf9f0;
}

.settings-event-card--sky {
    --event-color: #2e9caf;
    --event-soft: #edf8fb;
}

.settings-event-token {
    position: absolute;
    top: 15px;
    left: 15px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fffdfb;
    background: var(--event-color);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(47, 35, 31, .12);
}

.settings-event-card[data-save-state="saving"] {
    box-shadow: inset 0 0 0 2px rgba(224, 168, 44, .34), 0 14px 34px rgba(83, 57, 48, .08);
}

.settings-event-card[data-save-state="saved"] {
    box-shadow: inset 0 0 0 2px rgba(63, 174, 114, .34), 0 14px 34px rgba(83, 57, 48, .08);
}

.settings-event-card[data-save-state="error"] {
    box-shadow: inset 0 0 0 2px rgba(207, 75, 85, .36), 0 14px 34px rgba(83, 57, 48, .08);
}

.settings-event-form {
    display: grid;
    gap: 9px;
}

.settings-event-main {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(170px, .95fr) 50px;
    gap: 9px;
    align-items: end;
}

.settings-event-name input {
    color: var(--rose-deep);
}

.settings-event-options {
    background: rgba(255, 253, 251, .74);
}

.settings-event-options summary {
    min-height: 36px;
    padding: 0 10px;
}

.settings-event-options summary span {
    font-size: 12px;
}

.settings-event-options .settings-field {
    padding: 0 10px 10px;
}

.settings-order-field {
    max-width: 160px;
}

.settings-order-field input {
    text-align: center;
}

.settings-event-guests {
    background: rgba(255, 253, 251, .7);
    border: 1px solid rgba(234, 223, 218, .84);
    border-radius: 8px;
}

.settings-event-guests summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(90px, 130px);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 0 11px;
    color: var(--warm);
    cursor: pointer;
    list-style: none;
}

.settings-event-guests summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 12px;
    font-weight: 950;
}

.settings-event-guests summary strong {
    color: var(--rose-deep);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.settings-event-progress {
    display: block;
    height: 8px;
    overflow: hidden;
    background: #efe3db;
    border-radius: 999px;
}

.settings-event-progress span {
    display: block;
    width: var(--event-progress);
    height: 100%;
    background: linear-gradient(90deg, var(--event-color), #5eb276);
    border-radius: inherit;
    transition: width .18s ease;
}

.settings-guest-index {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 190px;
    overflow: auto;
    padding: 0 10px 10px;
}

.settings-guest-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    max-width: 100%;
    padding: 0 10px 0 7px;
    color: var(--warm);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.settings-guest-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-guest-check {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: transparent;
    background: #f6eee9;
    border: 1px solid #e1ccc1;
    border-radius: 999px;
}

.settings-guest-check svg {
    width: 12px;
    height: 12px;
}

.settings-guest-pill:has(input:checked) {
    color: #357052;
    background: #ecf8ef;
    border-color: #bfe2c8;
}

.settings-guest-pill:has(input:checked) .settings-guest-check {
    color: #fffdfb;
    background: #4da76b;
    border-color: #4da76b;
}

.settings-event-footer {
    display: flex;
    justify-content: flex-end;
}

.settings-delete-form button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 9px;
    color: #9c5660;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.settings-delete-form button:hover {
    background: #fff0f2;
    border-color: #efcaca;
}

.settings-delete-form svg {
    width: 15px;
    height: 15px;
}

@media (min-width: 940px) {
    .app-main:has(.settings-page) {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 900px);
    }

    .settings-page {
        width: min(100%, 900px);
    }
}

@media (min-width: 940px) and (max-width: 1180px) {
    .settings-event-add {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-event-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .settings-add-spark,
    .settings-add-button,
    .settings-event-main .settings-event-save {
        width: 100%;
    }

    .settings-stage-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .settings-heading {
        align-items: flex-start;
    }

    .settings-score {
        width: 66px;
        height: 66px;
    }

    .settings-fast-grid,
    .settings-field-grid.two,
    .settings-field-grid.three,
    .settings-event-add,
    .settings-event-main,
    .settings-stage-options,
    .settings-event-guests summary {
        grid-template-columns: 1fr;
    }

    .settings-event-add {
        align-items: stretch;
    }

    .settings-add-spark {
        width: 100%;
    }

    .settings-invite-toggle {
        justify-content: flex-start;
    }

    .settings-add-button {
        width: 100%;
    }

    .settings-event-card {
        padding-left: 52px;
    }

    .settings-event-save {
        width: 100%;
    }

    .settings-event-progress {
        width: 100%;
    }
}

.settings-page {
    overflow: visible;
}

.settings-toast {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 90;
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: min(380px, calc(100vw - 28px));
    min-height: 54px;
    padding: 12px 14px;
    color: #24432a;
    background:
        linear-gradient(135deg, rgba(238, 248, 239, .96), rgba(255, 253, 251, .98)),
        #fffdfb;
    border: 1px solid #c7dcc9;
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(31, 23, 21, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}

.settings-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.settings-toast svg {
    width: 20px;
    height: 20px;
}

.settings-toast span {
    min-width: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.settings-toast[data-tone="error"] {
    color: #8d404b;
    background:
        linear-gradient(135deg, rgba(255, 240, 241, .96), rgba(255, 253, 251, .98)),
        #fffdfb;
    border-color: #efcaca;
}

.settings-heading {
    display: grid;
    gap: 14px;
    padding: 18px 16px;
    background:
        linear-gradient(135deg, rgba(255, 242, 239, .96), rgba(235, 248, 241, .96) 46%, rgba(232, 245, 251, .96)),
        #fffdfb;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.settings-heading h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: .96;
}

.settings-heading-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.settings-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-summary span,
.settings-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    color: #625852;
    background: rgba(255, 253, 251, .86);
    border: 1px solid rgba(224, 211, 204, .9);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.settings-summary svg {
    width: 15px;
    height: 15px;
    color: var(--rose-deep);
}

.settings-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px;
    padding: 6px;
    background: rgba(255, 249, 246, .76);
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.settings-tab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    color: #6f5e58;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    text-align: left;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.settings-tab:hover,
.settings-tab:focus-visible {
    color: var(--rose-deep);
    background: rgba(255, 253, 251, .82);
    border-color: rgba(239, 202, 202, .82);
    outline: none;
}

.settings-tab.is-active {
    color: var(--rose-deep);
    background: #fffdfb;
    border-color: #efcaca;
    box-shadow: 0 10px 24px rgba(94, 69, 60, .08);
}

.settings-tab svg {
    width: 17px;
    height: 17px;
}

.settings-tab span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-tab small {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 7px;
    color: #7b655e;
    background: #f7eee9;
    border: 1px solid #eadbd4;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.settings-tab.is-active small {
    color: #fffdfb;
    background: var(--rose-deep);
    border-color: var(--rose-deep);
}

.settings-layout,
.settings-form,
.settings-event-list {
    display: grid;
    gap: 14px;
}

.settings-card {
    display: grid;
    gap: 16px;
    overflow: visible;
}

.settings-card[hidden] {
    display: none;
}

.settings-card .section-title {
    align-items: flex-start;
}

.settings-card .section-title p {
    margin-top: 4px;
    color: var(--warm);
    font-size: 12px;
    line-height: 1.35;
}

.settings-field-grid,
.settings-event-add-fields,
.settings-event-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.settings-field-grid--couple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
    position: relative;
    display: grid;
    gap: 7px;
    min-width: 0;
}

.settings-field--wide {
    grid-column: 1 / -1;
}

.settings-field > span,
.settings-invite-mode legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f5e58;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.settings-field > span svg,
.settings-invite-mode svg,
.settings-event-meta svg,
.settings-event-guests summary svg {
    width: 15px;
    height: 15px;
    color: var(--rose-deep);
}

.settings-field input,
.settings-event-add input,
.settings-event-form input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 13px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid #e5d7d1;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    font-weight: 850;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.settings-field--hero input {
    min-height: 58px;
    color: var(--rose-deep);
    background: linear-gradient(180deg, #fffdfb, #fff7f5);
    font-size: 18px;
    font-weight: 950;
}

.settings-field input:focus,
.settings-event-add input:focus,
.settings-event-form input:focus,
.settings-guest-search input:focus {
    background: #fff;
    border-color: rgba(219, 121, 133, .76);
    box-shadow: 0 0 0 4px rgba(219, 121, 133, .12);
}

.settings-field small {
    color: #b84e5a;
    font-size: 11px;
    font-weight: 850;
}

.settings-address-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 95;
    display: grid;
    gap: 4px;
    max-height: 244px;
    overflow: auto;
    padding: 6px;
    background: #fffdfb;
    border: 1px solid #e5d7d1;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(31, 23, 21, .16);
}

.settings-address-suggestions[hidden] {
    display: none;
}

.settings-address-option {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 44px;
    padding: 8px 9px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
}

.settings-address-option:hover,
.settings-address-option.is-active {
    background: #fff2f2;
}

.settings-address-option strong {
    font-size: 12px;
    font-weight: 950;
    line-height: 1.25;
}

.settings-address-option small {
    color: var(--warm);
    font-size: 11px;
    font-weight: 850;
}

.settings-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.settings-save-hint {
    color: #5b8b66;
    font-size: 12px;
    font-weight: 900;
}

.settings-save-hint[data-tone="warning"] {
    color: #b65f47;
}

.settings-event-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .38fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255, 244, 236, .96), rgba(239, 249, 242, .92) 55%, rgba(236, 247, 250, .94)),
        #fffdfb;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.settings-event-add.is-saving {
    opacity: .82;
}

.settings-event-add-fields {
    grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(160px, .9fr);
}

.settings-invite-mode {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 0;
    border: 0;
}

.settings-invite-mode label {
    position: relative;
    display: grid;
    min-height: 42px;
    align-items: center;
    color: #695c56;
    background: #fffdfb;
    border: 1px solid #e5d7d1;
    border-radius: 8px;
    cursor: pointer;
}

.settings-invite-mode input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-invite-mode label span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.settings-invite-mode label:has(input:checked) {
    color: #2f7656;
    background: #edf9f0;
    border-color: #bfe2c8;
}

.settings-add-button,
.settings-event-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    padding: 0 14px;
    color: #fffdfb;
    background: linear-gradient(180deg, #d96f7d, #c85e6d);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(201, 79, 94, .2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.settings-add-button svg,
.settings-event-save svg {
    width: 18px;
    height: 18px;
}

.settings-add-button:disabled {
    cursor: progress;
    opacity: .72;
}

.settings-event-add-feedback {
    grid-column: 1 / -1;
    min-height: 16px;
    color: #5b8b66;
    font-size: 12px;
    font-weight: 900;
}

.settings-event-add-feedback[data-tone="working"] {
    color: #a0712f;
}

.settings-event-add-feedback[data-tone="error"] {
    color: #b84e5a;
}

.settings-empty {
    margin: 0;
    padding: 12px 4px;
    color: var(--warm);
    font-size: 13px;
    font-weight: 850;
}

.settings-empty[hidden] {
    display: none;
}

.settings-event-card {
    --event-color: #c86b76;
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(83, 57, 48, .06);
}

.settings-event-card.is-new {
    animation: settings-event-appear .32s ease-out both;
}

@keyframes settings-event-appear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-event-card[data-save-state="saving"] {
    box-shadow: inset 0 0 0 2px rgba(212, 161, 65, .28), 0 10px 24px rgba(83, 57, 48, .06);
}

.settings-event-card[data-save-state="saved"] {
    box-shadow: inset 0 0 0 2px rgba(77, 154, 114, .3), 0 10px 24px rgba(83, 57, 48, .06);
}

.settings-event-card[data-save-state="error"] {
    box-shadow: inset 0 0 0 2px rgba(207, 75, 85, .32), 0 10px 24px rgba(83, 57, 48, .06);
}

.settings-event-overview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.settings-event-token {
    position: static;
    top: auto;
    left: auto;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--rose-deep);
    background: #fff0f1;
    border: 1px solid #efd0d2;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.settings-event-title {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.settings-event-title h3 {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-event-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.settings-event-chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-height: 28px;
    padding: 0 8px;
    color: #72625b;
    background: #faf3ef;
    border: 1px solid #eee1db;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.settings-event-chips svg {
    width: 13px;
    height: 13px;
    color: #9d6b70;
}

.settings-event-chips strong {
    color: var(--rose-deep);
}

.settings-event-fields {
    grid-template-columns: minmax(150px, 1.1fr) minmax(140px, 1fr) minmax(160px, .9fr);
}

.settings-event-progress {
    display: block;
    height: 6px;
    overflow: hidden;
    background: #efe3db;
    border-radius: 999px;
}

.settings-event-progress span {
    display: block;
    width: var(--event-progress);
    height: 100%;
    background: #64a874;
    border-radius: inherit;
    transition: width .18s ease;
}

.settings-event-editor,
.settings-event-guests {
    border-top: 1px solid rgba(229, 216, 210, .9);
}

.settings-event-guests {
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

.settings-event-editor summary,
.settings-event-guests summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 0 2px;
    color: var(--warm);
    cursor: pointer;
    list-style: none;
}

.settings-event-editor summary::-webkit-details-marker,
.settings-event-guests summary::-webkit-details-marker {
    display: none;
}

.settings-event-editor summary span,
.settings-event-editor summary strong,
.settings-event-guests summary span,
.settings-event-guests summary strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
}

.settings-event-editor summary svg,
.settings-event-guests summary svg {
    width: 15px;
    height: 15px;
    color: var(--rose-deep);
}

.settings-event-editor summary strong,
.settings-event-guests summary strong {
    color: var(--rose-deep);
}

.settings-event-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    color: var(--warm);
}

.settings-event-section-heading > span,
.settings-event-section-heading button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
}

.settings-event-section-heading svg {
    width: 15px;
    height: 15px;
    color: var(--rose-deep);
}

.settings-event-section-heading button {
    min-height: 34px;
    padding: 0 10px;
    color: var(--rose-deep);
    background: #fff5f5;
    border: 1px solid #efd4d6;
    border-radius: 8px;
    cursor: pointer;
}

.settings-event-section-heading button:hover {
    background: #fff0f2;
    border-color: #efcaca;
}

.settings-event-guest-preview {
    margin: 0;
    color: #6f625c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.settings-event-form {
    display: grid;
    gap: 10px;
    padding: 0 0 12px;
}

.settings-event-form .settings-event-save {
    justify-self: end;
    min-height: 42px;
}

.settings-guest-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 0 0 10px;
}

.settings-guest-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
    background: #fffdfb;
    border: 1px solid #e5d7d1;
    border-radius: 8px;
}

.settings-guest-search svg {
    width: 15px;
    height: 15px;
    color: var(--warm);
}

.settings-guest-search input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    background: transparent;
    border: 0;
    outline: none;
    font-size: 13px;
    font-weight: 800;
}

.settings-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.settings-bulk-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 9px;
    color: #665a55;
    background: #fff8f5;
    border: 1px solid #e5d7d1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.settings-bulk-actions svg {
    width: 15px;
    height: 15px;
}

.settings-bulk-actions button:hover {
    color: var(--rose-deep);
    border-color: #efcaca;
}

.settings-guest-index {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 210px;
    overflow: auto;
    padding: 0 0 10px;
}

.settings-guest-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    max-width: 100%;
    padding: 0 10px 0 7px;
    color: var(--warm);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
}

.settings-guest-pill[hidden] {
    display: none;
}

.settings-guest-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-guest-check {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: transparent;
    background: #f6eee9;
    border: 1px solid #e1ccc1;
    border-radius: 999px;
}

.settings-guest-check svg {
    width: 12px;
    height: 12px;
}

.settings-guest-pill:has(input:checked) {
    color: #357052;
    background: #ecf8ef;
    border-color: #bfe2c8;
}

.settings-guest-pill:has(input:checked) .settings-guest-check {
    color: #fffdfb;
    background: #4da76b;
    border-color: #4da76b;
}

.settings-guest-pill:has(input:disabled) {
    cursor: progress;
    opacity: .68;
}

.settings-guest-dialog {
    width: min(720px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(760px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    overflow: visible;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.settings-guest-dialog::backdrop {
    background: rgba(50, 40, 35, .42);
    backdrop-filter: blur(3px);
}

.settings-guest-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(760px, calc(100dvh - 24px));
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(63, 43, 36, .22);
}

.settings-guest-dialog-header,
.settings-guest-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: #fff8f5;
    border-bottom: 1px solid rgba(229, 216, 210, .95);
}

.settings-guest-dialog-header div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.settings-guest-dialog-header span,
.settings-guest-draft-count,
.settings-guest-draft-status {
    color: var(--warm);
    font-size: 12px;
    font-weight: 900;
}

.settings-guest-dialog-header strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-guest-dialog-body {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding: 14px;
}

.settings-guest-dialog .settings-guest-tools {
    padding: 0;
}

.settings-guest-draft-count {
    min-height: 28px;
    padding: 7px 10px;
    color: #6f625c;
    background: #faf3ef;
    border: 1px solid #eee1db;
    border-radius: 8px;
}

.settings-guest-index--dialog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    max-height: min(390px, 48dvh);
    padding: 0 4px 2px 0;
}

.settings-guest-index--dialog .settings-guest-pill {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.settings-guest-dialog-footer {
    border-top: 1px solid rgba(229, 216, 210, .95);
    border-bottom: 0;
}

.settings-guest-dialog-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.settings-guest-draft-status[data-tone="warning"] {
    color: #a0712f;
}

.settings-guest-draft-status[data-tone="ok"] {
    color: #5b8b66;
}

.settings-guest-save:disabled {
    color: #8f807a;
    background: #e9ddd8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.settings-bulk-actions button:disabled {
    cursor: default;
    opacity: .62;
}

.settings-delete-form button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #9c5660;
    background: #fff7f7;
    border: 1px solid #efd4d6;
    border-radius: 8px;
    cursor: pointer;
}

.settings-delete-form button:hover {
    background: #fff0f2;
    border-color: #efcaca;
}

.settings-delete-form svg {
    width: 15px;
    height: 15px;
}

@media (min-width: 940px) {
    .app-main:has(.settings-page) {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 980px);
    }

    .settings-page {
        width: min(100%, 980px);
    }
}

@media (max-width: 980px) {
    .settings-event-add,
    .settings-event-top,
    .settings-event-meta,
    .settings-guest-tools {
        grid-template-columns: 1fr;
    }

    .settings-event-save,
    .settings-add-button {
        width: 100%;
    }

    .settings-event-overview .settings-event-token {
        width: 34px;
    }
}

@media (max-width: 760px) {
    .settings-heading h1 {
        font-size: 34px;
    }

    .settings-tabs {
        grid-template-columns: 1fr;
        padding: 4px;
    }

    .settings-tab {
        min-height: 44px;
        padding: 0 10px;
    }

    .settings-field-grid,
    .settings-field-grid--couple,
    .settings-event-add-fields,
    .settings-event-fields {
        grid-template-columns: 1fr;
    }

    .settings-bulk-actions {
        justify-content: flex-start;
    }

    .settings-event-section-heading {
        align-items: flex-start;
    }

    .settings-guest-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
    }

    .settings-guest-dialog-header,
    .settings-guest-dialog-footer {
        padding: 12px;
    }

    .settings-guest-dialog-footer,
    .settings-guest-dialog-footer > div {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-guest-dialog-footer .secondary-button,
    .settings-guest-dialog-footer .settings-event-save {
        width: 100%;
    }

    .settings-guest-index--dialog {
        grid-template-columns: 1fr;
    }

    .settings-event-card {
        padding: 12px;
    }
}

@media (min-width: 700px) and (max-width: 760px) {
    .settings-page .settings-field-grid,
    .settings-page .settings-field-grid--couple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.settings-events-heading {
    align-items: center;
}

.settings-events-heading-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.settings-event-open-add {
    min-height: 40px;
}

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

.settings-event-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(92px, 124px) minmax(0, 1fr);
    gap: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.settings-event-time {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 3px;
    min-height: 78px;
    padding: 13px 18px 12px 0;
    border-right: 2px solid #eadbd4;
    text-align: right;
}

.settings-event-time::after {
    content: "";
    position: absolute;
    top: 19px;
    right: -7px;
    width: 12px;
    height: 12px;
    background: #d86c79;
    border: 3px solid #fffdfb;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #efd0d2;
}

.settings-event-time span,
.settings-event-time strong {
    display: block;
    line-height: 1.12;
}

.settings-event-time span {
    color: #7a6962;
    font-size: 12px;
    font-weight: 900;
}

.settings-event-time strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 950;
}

.settings-event-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 78px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(83, 57, 48, .06);
}

.settings-event-summary {
    display: block;
    min-width: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.settings-event-summary:focus-visible,
.settings-event-edit-button:focus-visible,
.settings-event-guest-button:focus-visible {
    outline: 3px solid rgba(219, 121, 133, .2);
    outline-offset: 3px;
}

.settings-event-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.settings-event-title h3 {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-event-title small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    color: #75645d;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-event-title svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: #9d6b70;
}

.settings-event-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.settings-event-guest-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 38px;
    padding: 0 10px;
    color: #365f4d;
    background: #edf9f0;
    border: 1px solid #bfe2c8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.settings-event-guest-button svg {
    width: 16px;
    height: 16px;
}

.settings-event-guest-button span {
    color: #6f8070;
}

.settings-event-guest-button:disabled {
    color: #8b807a;
    background: #f4ece8;
    border-color: #eadbd4;
    cursor: default;
}

.settings-event-edit-button {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.settings-event-body .settings-event-progress {
    grid-column: 1 / -1;
    height: 5px;
}

.settings-event-dialog {
    box-sizing: border-box;
    width: min(760px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(720px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    overflow: visible;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.settings-event-dialog::backdrop {
    background: rgba(50, 40, 35, .42);
    backdrop-filter: blur(3px);
}

.settings-event-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
    max-height: min(720px, calc(100dvh - 24px));
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(63, 43, 36, .22);
}

.settings-event-dialog-header,
.settings-event-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: #fff8f5;
}

.settings-event-dialog-header {
    border-bottom: 1px solid rgba(229, 216, 210, .95);
}

.settings-event-dialog-footer {
    border-top: 1px solid rgba(229, 216, 210, .95);
}

.settings-event-dialog-header div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.settings-event-dialog-header span,
.settings-event-add-feedback {
    color: var(--warm);
    font-size: 12px;
    font-weight: 900;
}

.settings-event-dialog-header strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-event-modal-form,
.settings-event-dialog .settings-event-add {
    display: grid;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    padding: 14px;
    overflow: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.settings-event-modal-timeline {
    display: grid;
    grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}

.settings-event-time-field {
    align-content: start;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    background: #fff8f5;
    border: 1px solid #eadbd4;
    border-radius: 8px;
}

.settings-event-modal-main {
    display: grid;
    gap: 10px;
    min-width: 0;
    align-content: start;
}

.settings-event-dialog .settings-invite-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-event-dialog-footer > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.settings-event-dialog .settings-delete-form button {
    display: inline-flex;
    width: auto;
    height: 40px;
    gap: 7px;
    padding: 0 11px;
}

.settings-event-add-feedback[data-tone="working"] {
    color: #a0712f;
}

.settings-event-add-feedback[data-tone="error"] {
    color: #b84e5a;
}

@media (max-width: 760px) {
    .settings-events-heading,
    .settings-events-heading-actions {
        align-items: stretch;
    }

    .settings-events-heading-actions,
    .settings-event-open-add {
        width: 100%;
    }

    .settings-event-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .settings-event-time {
        min-height: auto;
        justify-items: start;
        padding: 0 0 0 16px;
        border-right: 0;
        border-left: 2px solid #eadbd4;
        text-align: left;
    }

    .settings-event-time::after {
        top: 4px;
        right: auto;
        left: -7px;
    }

    .settings-event-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-event-actions {
        justify-content: flex-start;
    }

    .settings-event-modal-timeline,
    .settings-event-dialog .settings-invite-mode {
        grid-template-columns: 1fr;
    }

    .settings-event-time-field {
        padding: 12px;
        border: 1px solid #eadbd4;
    }

    .settings-event-dialog-footer,
    .settings-event-dialog-footer > div {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-event-dialog-footer .secondary-button,
    .settings-event-dialog-footer .settings-event-save,
    .settings-event-dialog-footer .settings-add-button,
    .settings-event-dialog .settings-delete-form button {
        width: 100%;
    }
}

body.marketing-body {
    background: #fffaf7;
}

.marketing-body .eyebrow {
    letter-spacing: 0;
}

.marketing-page {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    background: #fffaf7;
}

.marketing-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 50;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    width: min(calc(100% - 28px), 1180px);
    min-height: 62px;
    padding: 8px 10px 8px 18px;
    background: rgba(255, 253, 251, .88);
    border: 1px solid rgba(234, 223, 218, .92);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(94, 69, 60, .10);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.marketing-page > .marketing-nav {
    position: absolute;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
}

.marketing-page > .marketing-nav .marketing-brand,
.marketing-page > .marketing-nav .marketing-nav-cta,
.marketing-page > .marketing-nav .marketing-nav-auth {
    pointer-events: auto;
}

.marketing-brand {
    color: #9b5d51;
    font-family: var(--font-logo);
    font-size: 42px;
    line-height: .76;
    white-space: nowrap;
}

.marketing-nav nav {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.marketing-nav nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: #5e514c;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.marketing-nav nav a:hover {
    color: var(--rose-deep);
    background: #fff2f2;
}

.marketing-nav-auth {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.marketing-nav-auth a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.marketing-nav-login {
    color: #5e514c;
    background: rgba(255, 253, 251, .68);
    border: 1px solid rgba(234, 223, 218, .9);
}

.marketing-nav-register {
    color: #fff;
    background: #cf6f7b;
    border: 1px solid rgba(174, 72, 86, .18);
    box-shadow: 0 12px 28px rgba(207, 111, 123, .22);
}

.marketing-nav-register:visited,
.marketing-nav-register:hover {
    color: #fff;
}

.marketing-nav-cta,
.marketing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.marketing-nav-cta {
    color: white;
    background: #cf6f7b;
    box-shadow: 0 12px 28px rgba(207, 111, 123, .24);
}

.marketing-nav-cta svg,
.marketing-button svg,
.hero-proof svg,
.tool-card-icon svg,
.demo-step svg,
.demo-row svg,
.ai-actions svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
}

.marketing-hero {
    position: relative;
    display: grid;
    height: min(760px, 82svh);
    min-height: 520px;
    align-items: center;
    padding: 104px 20px 52px;
    overflow: hidden;
    isolation: isolate;
}

.marketing-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 250, 247, .99) 0%, rgba(255, 250, 247, .94) 42%, rgba(255, 250, 247, .16) 70%, rgba(255, 250, 247, .24) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(246, 251, 247, .48));
}

.marketing-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.hero-shot {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(217, 198, 188, .92);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(94, 69, 60, .18);
}

.hero-shot-desktop {
    top: 88px;
    right: 44px;
    width: min(720px, 50vw);
    opacity: .82;
    animation: heroShotFloat 8s ease-in-out infinite;
}

.hero-shot-plan {
    top: 382px;
    right: 326px;
    width: 290px;
    opacity: .94;
    animation: heroPlanFloat 9s ease-in-out infinite;
}

.hero-shot-inspiration {
    top: 145px;
    right: 596px;
    width: 260px;
    opacity: .84;
    animation: heroInspirationFloat 10s ease-in-out infinite;
}

.hero-shot-phone {
    right: clamp(84px, 7vw, 120px);
    bottom: 50px;
    width: 164px;
    opacity: .98;
    transform: none;
    animation: heroPhoneFloat 7s ease-in-out infinite;
}

.hero-floating-card {
    position: absolute;
    display: grid;
    gap: 3px;
    width: 142px;
    min-height: 76px;
    padding: 14px;
    background: rgba(255, 253, 251, .94);
    border: 1px solid rgba(234, 223, 218, .96);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(94, 69, 60, .13);
}

.hero-floating-card span {
    color: var(--rose-deep);
    font-family: var(--font-display);
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
}

.hero-floating-card strong {
    color: #4c3f3a;
    font-size: 12px;
    line-height: 1.2;
}

.hero-floating-card-one {
    top: 158px;
    right: 382px;
    animation: floatBadge 6s ease-in-out infinite;
}

.hero-floating-card-two {
    right: 36px;
    bottom: 98px;
    animation: floatBadge 6.5s ease-in-out infinite reverse;
}

.marketing-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 710px);
    margin-inline: auto;
    margin-left: max(20px, calc((100% - 1180px) / 2));
}

.marketing-hero h1 {
    margin-top: 0;
    color: #8f5d52;
    font-family: var(--font-logo);
    font-size: 108px;
    font-weight: 400;
    line-height: .72;
}

.marketing-hero .eyebrow {
    display: block;
    margin-bottom: 16px;
}

.marketing-hero-subtitle {
    max-width: 620px;
    margin-top: 22px;
    color: #3d332f;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.marketing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.marketing-button {
    min-height: 52px;
    padding: 0 18px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.marketing-button:hover {
    transform: translateY(-1px);
}

.marketing-button-primary {
    color: white;
    background: linear-gradient(180deg, #e48b96, #cf6f7b);
    box-shadow: 0 16px 36px rgba(207, 111, 123, .26);
}

.marketing-button-primary:hover {
    box-shadow: 0 20px 42px rgba(207, 111, 123, .32);
}

.marketing-button-secondary {
    color: #312824;
    background: rgba(255, 253, 251, .88);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(94, 69, 60, .08);
}

.marketing-button-secondary:hover {
    background: #fff;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    color: #51443f;
    background: rgba(255, 253, 251, .82);
    border: 1px solid rgba(234, 223, 218, .9);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.hero-proof span:nth-child(1) svg {
    color: var(--rose-deep);
}

.hero-proof span:nth-child(2) svg {
    color: #b88326;
}

.hero-proof span:nth-child(3) svg {
    color: #5e805f;
}

.marketing-band {
    scroll-margin-top: 96px;
    padding: 74px 20px;
}

.tools-band,
.product-band {
    background: #fffdfb;
}

.demo-band {
    background: #f4faf4;
}

.ai-band {
    background: #25342b;
}

.marketing-section-heading {
    max-width: 820px;
    margin: 0 auto 32px;
    text-align: center;
}

.marketing-section-heading h2,
.ai-copy h2,
.marketing-final h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.04;
}

.marketing-section-heading p:not(.eyebrow),
.ai-copy p:not(.eyebrow),
.marketing-final p:not(.eyebrow) {
    margin-top: 12px;
    color: var(--warm);
    font-size: 16px;
    line-height: 1.55;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.tool-card {
    --tool-accent: #cf6f7b;
    --tool-soft: #fff0f2;
    --tool-line: #efcccf;
    position: relative;
    display: grid;
    gap: 16px;
    min-height: 318px;
    padding: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 249, 246, .92)),
        #fffaf7;
    border: 1px solid color-mix(in srgb, var(--tool-accent) 20%, var(--line));
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(94, 69, 60, .07);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tool-card:hover {
    border-color: color-mix(in srgb, var(--tool-accent) 44%, var(--line));
    box-shadow: 0 18px 44px rgba(94, 69, 60, .10);
    transform: translateY(-2px);
}

.tool-card--planning {
    --tool-accent: #5d7d61;
    --tool-soft: #eff7ef;
    --tool-line: #cfe1cf;
}

.tool-card--budget {
    --tool-accent: #b88326;
    --tool-soft: #fff7e7;
    --tool-line: #ecd6a8;
}

.tool-card--guests {
    --tool-accent: #7370ad;
    --tool-soft: #f0effc;
    --tool-line: #d8d6f2;
}

.tool-card--table {
    --tool-accent: #bd7f59;
    --tool-soft: #fff2ea;
    --tool-line: #efd5c5;
}

.tool-card--inspiration {
    --tool-accent: #688a96;
    --tool-soft: #eef7f8;
    --tool-line: #c9dee3;
}

.tool-card-visual {
    position: relative;
    height: 150px;
    min-height: 150px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .9), transparent 34%),
        linear-gradient(135deg, var(--tool-soft), #fffdfb 72%);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
}

.tool-card-copy {
    min-width: 0;
}

.tool-card-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--tool-accent);
    background: var(--tool-soft);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
}

.tool-card-copy > span {
    display: block;
    margin-top: 18px;
    color: var(--tool-accent);
    font-size: 12px;
    font-weight: 800;
}

.tool-card-copy h3 {
    margin-top: 7px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.tool-card-copy p {
    margin-top: 10px;
    color: var(--warm);
    font-size: 14px;
    line-height: 1.5;
}

.tool-mini-kpi {
    position: absolute;
    top: 13px;
    left: 13px;
    display: grid;
    gap: 3px;
    width: 122px;
    padding: 12px;
    background: rgba(255, 253, 251, .92);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(94, 69, 60, .08);
    animation: toolFloat 3.8s ease-in-out infinite;
}

.tool-mini-kpi strong {
    color: var(--tool-accent);
    font-family: var(--font-display);
    font-size: 30px;
    line-height: .9;
}

.tool-mini-kpi span {
    color: #5e514c;
    font-size: 10px;
    font-weight: 800;
}

.tool-mini-grid {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    grid-template-columns: repeat(3, 42px);
    gap: 7px;
}

.tool-mini-grid i {
    display: grid;
    align-content: center;
    gap: 3px;
    height: 50px;
    padding: 6px 5px;
    background: rgba(255, 253, 251, .86);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    font-style: normal;
    text-align: center;
    animation: toolPulse 2.8s ease-in-out infinite;
}

.tool-mini-grid b,
.tool-mini-grid span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-mini-grid b {
    color: var(--tool-accent);
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.tool-mini-grid span {
    color: #6b5d57;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
}

.tool-mini-grid i:nth-child(2) {
    animation-delay: .25s;
}

.tool-mini-grid i:nth-child(3) {
    animation-delay: .5s;
}

.tool-mini-task {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    width: calc(100% - 24px);
    min-height: 28px;
    margin: 8px 12px;
    padding: 6px 9px;
    color: #4f433f;
    background: rgba(255, 253, 251, .9);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    animation: toolTaskSlide 4.2s ease-in-out infinite;
}

.tool-mini-task:nth-child(2) {
    animation-delay: .28s;
}

.tool-mini-task:nth-child(3) {
    animation-delay: .56s;
}

.tool-mini-task i {
    width: 13px;
    height: 13px;
    border: 2px solid var(--tool-accent);
    border-radius: 999px;
}

.tool-mini-task.is-done i {
    background: var(--tool-accent);
    box-shadow: inset 0 0 0 3px white;
}

.tool-mini-task.is-hot {
    color: #312824;
    box-shadow: 0 8px 20px rgba(94, 69, 60, .08);
}

.tool-mini-task span,
.tool-mini-task small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-mini-task span {
    font-size: 11px;
    font-weight: 800;
}

.tool-mini-task small {
    color: var(--tool-accent);
    font-size: 10px;
    font-weight: 950;
}

.tool-budget-line {
    display: grid;
    gap: 7px;
    margin: 7px 16px;
}

.tool-budget-line-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
}

.tool-budget-line-head span {
    overflow: hidden;
    color: #51443f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-budget-line-head b {
    color: #6f574d;
    font-size: 11px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.tool-budget-line i {
    position: relative;
    display: block;
    height: 9px;
    overflow: hidden;
    background: rgba(94, 69, 60, .10);
    border: 0;
    border-radius: 999px;
}

.tool-budget-line i::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--value);
    content: "";
    background: linear-gradient(90deg, var(--tool-accent), #e9ba6d);
    border-radius: inherit;
    transform-origin: left center;
    animation: toolBudgetFill 9s ease-in-out infinite;
}

.tool-guest-list {
    display: grid;
    gap: 5px;
    padding: 7px 12px;
}

.tool-guest-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 30px;
    gap: 9px;
    align-items: center;
    min-height: 34px;
    padding: 4px 8px;
    background: rgba(255, 253, 251, .9);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    animation: toolTaskSlide 4s ease-in-out infinite;
}

.tool-guest-row:nth-child(2) {
    animation-delay: .18s;
}

.tool-guest-row:nth-child(3) {
    animation-delay: .36s;
}

.tool-guest-row i {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: white;
    background: var(--tool-accent);
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.tool-guest-row span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.tool-guest-row span b,
.tool-guest-row span small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-guest-row span b {
    color: #403630;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.tool-guest-row span small {
    color: var(--warm);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.tool-guest-row strong {
    justify-self: end;
    width: 27px;
    color: var(--tool-accent);
    font-family: var(--font-display);
    font-size: 17px;
    line-height: .9;
    text-align: right;
}

.tool-room-plan {
    position: absolute;
    inset: 12px;
    background-image:
        linear-gradient(rgba(189, 127, 89, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 127, 89, .13) 1px, transparent 1px);
    background-size: 18px 18px;
    border: 1px dashed var(--tool-line);
    border-radius: 8px;
}

.tool-seat-group {
    position: absolute;
    width: 62px;
    height: 62px;
    animation: toolSeatDrift 4s ease-in-out infinite;
}

.tool-seat-group--round {
    top: 17px;
    left: 20px;
}

.tool-seat-group--long {
    top: 22px;
    right: 18px;
    width: 82px;
    height: 60px;
    animation-delay: .25s;
}

.tool-seat-group--small {
    left: 42%;
    bottom: 8px;
    width: 54px;
    height: 54px;
    animation-delay: .5s;
}

.tool-table-surface,
.tool-chair {
    position: absolute;
    display: block;
}

.tool-table-surface {
    inset: 11px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 42%),
        linear-gradient(180deg, #c98d6f, #b98264);
    border: 1px solid rgba(123, 81, 66, .24);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(94, 69, 60, .14);
}

.tool-seat-group--long .tool-table-surface {
    inset: 12px;
    border-radius: 8px;
}

.tool-seat-group--small .tool-table-surface {
    inset: 10px;
}

.tool-chair {
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid var(--tool-line);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(94, 69, 60, .12);
    animation: toolSeatPop 3s ease-in-out infinite;
}

.tool-chair--top,
.tool-chair--top-left,
.tool-chair--top-right {
    top: 0;
}

.tool-chair--right {
    top: calc(50% - 6px);
    right: 0;
    animation-delay: .15s;
}

.tool-chair--bottom,
.tool-chair--bottom-left,
.tool-chair--bottom-right {
    bottom: 0;
    animation-delay: .3s;
}

.tool-chair--left {
    top: calc(50% - 6px);
    left: 0;
    animation-delay: .45s;
}

.tool-chair--top,
.tool-chair--bottom {
    left: calc(50% - 6px);
}

.tool-chair--top-left,
.tool-chair--bottom-left {
    left: 18px;
}

.tool-chair--top-right,
.tool-chair--bottom-right {
    right: 18px;
}

.tool-seat-group--long .tool-chair--top-left,
.tool-seat-group--long .tool-chair--bottom-left {
    left: 16px;
}

.tool-seat-group--long .tool-chair--top-right,
.tool-seat-group--long .tool-chair--bottom-right {
    right: 16px;
}

.tool-pinterest-board {
    position: absolute;
    inset: 12px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 9px;
}

.tool-pinterest-source {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
    min-height: 34px;
    padding: 6px 8px;
    background: rgba(255, 253, 251, .92);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(94, 69, 60, .08);
}

.tool-pinterest-source i {
    display: grid;
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
    place-items: center;
    color: white;
    background: #e60023;
    border-radius: 999px;
    font-style: normal;
}

.tool-pinterest-logo svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tool-pinterest-source span,
.tool-pinterest-source small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-pinterest-source span {
    color: #403630;
    font-size: 11px;
    font-weight: 950;
}

.tool-pinterest-source small {
    color: var(--warm);
    font-size: 9px;
    font-weight: 800;
}

.tool-pin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
}

.tool-pin-card {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 0 54%, rgba(255, 253, 251, .92) 54%),
        linear-gradient(135deg, #efc0c6, #fffdfb);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(94, 69, 60, .08);
    animation: toolPalette 4.2s ease-in-out infinite;
}

.tool-pin-card--table {
    background:
        linear-gradient(180deg, transparent 0 54%, rgba(255, 253, 251, .92) 54%),
        linear-gradient(135deg, #d77762, #f3d8c8);
    animation-delay: .16s;
}

.tool-pin-card--dress {
    background:
        linear-gradient(180deg, transparent 0 54%, rgba(255, 253, 251, .92) 54%),
        linear-gradient(135deg, #8fa98e, #bdd0d8);
    animation-delay: .32s;
}

.tool-pin-card b,
.tool-pin-card i {
    position: absolute;
    left: 8px;
    right: 8px;
    display: block;
    height: 4px;
    content: "";
    background: rgba(94, 69, 60, .18);
    border-radius: 999px;
}

.tool-pin-card b {
    bottom: 17px;
}

.tool-pin-card i {
    bottom: 9px;
    right: 18px;
}

.demo-workbench {
    --demo-phone-height: 654px;
    --demo-side-card-height: 672px;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.demo-band .marketing-section-heading {
    margin-bottom: 24px;
}

.demo-band .marketing-section-heading h2 {
    max-width: 900px;
    margin-inline: auto;
    font-size: 38px;
}

.demo-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.demo-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 12px;
    color: #5b4c47;
    background: #fffdfb;
    border: 1px solid #dfe8dc;
    border-radius: 8px;
    text-align: left;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.demo-step svg {
    flex: 0 0 auto;
    color: #5d7d61;
}

.demo-step-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.demo-step-text strong,
.demo-step-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-step-text strong {
    font-size: 13px;
    font-weight: 900;
}

.demo-step-text small {
    color: var(--warm);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.demo-step:hover,
.demo-step.is-active {
    color: #2d3b30;
    background: #eaf5ea;
    border-color: #b9d2b9;
    transform: translateY(-1px);
}

.demo-step.is-active .demo-step-text small {
    color: #456047;
}

.demo-preview {
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(300px, 1fr);
    gap: 20px;
    align-items: stretch;
}

.demo-phone {
    min-height: 0;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .96), rgba(255, 249, 246, .92)),
        #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(94, 69, 60, .10);
}

.demo-panel {
    display: none;
    gap: 11px;
}

.demo-panel.is-active {
    display: grid;
    animation: demoIn .32s ease both;
}

.demo-panel-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 14px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.demo-panel-top h3 {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.02;
}

.demo-panel-top strong {
    min-width: 104px;
    padding: 13px 10px;
    color: white;
    background: #d7828c;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.demo-panel > p {
    color: var(--warm);
    font-size: 13px;
    line-height: 1.5;
}

.demo-list {
    display: grid;
    gap: 9px;
}

.demo-planning-focus {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 12px;
    color: #4c3f3a;
    background:
        linear-gradient(135deg, rgba(255, 242, 242, .98), rgba(255, 253, 251, .94)),
        #fff4f1;
    border: 1px solid #efcaca;
    border-radius: 8px;
}

.demo-planning-focus > svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    color: var(--rose-deep);
    background: #fffdfb;
    border: 1px solid #efcaca;
    border-radius: 8px;
}

.demo-planning-focus div {
    min-width: 0;
}

.demo-planning-focus span {
    display: block;
    color: var(--rose-deep);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.demo-planning-focus strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #312824;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-height: 66px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.demo-row-rank {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: #cf6f7b;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.demo-row-active .demo-row-rank {
    color: #fff;
    background: #cf6f7b;
}

.demo-row-calm .demo-row-rank {
    background: #cf6f7b;
}

.demo-row-copy {
    min-width: 0;
}

.demo-row-copy strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-row-copy span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--warm);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-row-moment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-width: 58px;
    min-height: 30px;
    padding: 0 9px;
    color: var(--rose-deep);
    background: #fff4f1;
    border: 1px solid #efd5ce;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
}

.demo-row-active .demo-row-moment {
    color: var(--rose-deep);
    background: #fff4f1;
    border-color: #efd5ce;
}

.demo-row-calm .demo-row-moment {
    background: #fff4f1;
    border-color: #efd5ce;
}

.demo-budget-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.demo-budget-summary div {
    min-height: 76px;
    padding: 13px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.demo-budget-summary span,
.demo-budget-row span {
    display: block;
    color: var(--warm);
    font-size: 12px;
    font-weight: 700;
}

.demo-budget-summary strong {
    display: block;
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
}

.demo-budget-list {
    display: grid;
    gap: 10px;
}

.demo-budget-row {
    display: grid;
    gap: 10px;
    padding: 13px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.demo-budget-row strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
}

.demo-budget-row i {
    position: relative;
    display: block;
    height: 10px;
    overflow: hidden;
    background: #f3ebe6;
    border-radius: 999px;
}

.demo-budget-row i::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--value);
    content: "";
    background: linear-gradient(90deg, #d7828c, #e5b85c);
    border-radius: inherit;
}

.demo-budget-row-active i::after {
    background: linear-gradient(90deg, #5d7d61, #9fbd82);
}

.demo-budget-row-urgent i::after {
    background: linear-gradient(90deg, #cf6f7b, #e5b85c);
}

.demo-seating-map {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(189, 127, 89, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 127, 89, .12) 1px, transparent 1px);
    background-size: 22px 22px;
    background-color: #fffdfb;
    border: 1px dashed #e5cfc4;
    border-radius: 8px;
}

.demo-table-demo {
    position: absolute;
    width: 160px;
    height: 142px;
}

.demo-table-demo:nth-child(1) {
    top: 30px;
    left: 34px;
}

.demo-table-demo:nth-child(2) {
    top: 62px;
    right: 34px;
    width: 186px;
    height: 136px;
}

.demo-table-demo:nth-child(3) {
    left: 42%;
    bottom: 20px;
    width: 160px;
    height: 142px;
}

.demo-table-surface {
    position: absolute;
    inset: 18px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 13px;
    color: white;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 42%),
        linear-gradient(180deg, #c98d6f, #b98264);
    border: 1px solid rgba(123, 81, 66, .24);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(94, 69, 60, .16);
}

.demo-table-demo--rect .demo-table-surface {
    inset: 18px;
    border-radius: 8px;
}

.demo-table-demo--round-small .demo-table-surface {
    inset: 17px;
}

.demo-chair {
    position: absolute;
    display: block;
    width: 18px;
    height: 18px;
    background: #fffdfb;
    border: 1px solid #e5cfc4;
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(94, 69, 60, .14);
}

.demo-chair--top {
    top: 0;
    left: calc(50% - 9px);
}

.demo-chair--right {
    top: calc(50% - 9px);
    right: 0;
}

.demo-chair--bottom {
    bottom: 0;
    left: calc(50% - 9px);
}

.demo-chair--left {
    top: calc(50% - 9px);
    left: 0;
}

.demo-table-demo--rect .demo-chair--top,
.demo-table-demo--rect .demo-chair--bottom {
    left: 32%;
    box-shadow:
        66px 0 0 #fffdfb,
        66px 0 0 1px #e5cfc4,
        0 5px 12px rgba(94, 69, 60, .14);
}

.demo-table-surface strong {
    font-size: 13px;
    font-weight: 950;
}

.demo-table-count {
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 800;
}

.demo-table-guests {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.demo-table-guests i {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    color: #4b3b35;
    background: rgba(255, 253, 251, .92);
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.demo-chat {
    display: grid;
    gap: 10px;
}

.demo-ai-control {
    display: grid;
    gap: 6px;
    padding: 11px;
    background: #f3f8ef;
    border: 1px solid #d5e5ca;
    border-radius: 8px;
}

.demo-ai-control-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.demo-ai-switch {
    display: flex;
    gap: 9px;
    align-items: center;
    cursor: pointer;
}

.demo-ai-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.demo-ai-switch > span {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 26px;
    background: #5d7d61;
    border-radius: 999px;
    transition: background .18s ease;
}

.demo-ai-switch > span::after {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    content: "";
    background: white;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(94, 69, 60, .18);
    transition: transform .18s ease;
}

.demo-ai-switch input:not(:checked) + span {
    background: #b8b6b3;
}

.demo-ai-switch input:not(:checked) + span::after {
    transform: translateX(-18px);
}

.demo-ai-switch strong {
    color: #27342c;
    font-size: 13px;
    font-weight: 900;
}

.demo-ai-toggle-button {
    min-height: 32px;
    padding: 0 10px;
    color: #4f7554;
    background: #fffdfb;
    border: 1px solid #c7dcc9;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.demo-ai-control small {
    color: var(--warm);
    font-size: 11px;
    line-height: 1.35;
}

.demo-message {
    max-width: 88%;
    padding: 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.demo-message--user {
    justify-self: end;
    color: #4a3c36;
    background: #fff4f1;
    border: 1px solid #f0d8cf;
}

.demo-message--bot {
    justify-self: start;
    color: #27342c;
    background: #f3f8ef;
    border: 1px solid #d5e5ca;
}

.demo-message p {
    margin: 0;
}

.demo-message ul {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.demo-message li {
    position: relative;
    padding-left: 16px;
}

.demo-message li::before {
    position: absolute;
    top: .55em;
    left: 0;
    width: 6px;
    height: 6px;
    content: "";
    background: #5d7d61;
    border-radius: 999px;
}

.demo-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.demo-ai-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    color: #4c3f3a;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.demo-ai-off {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 54px;
    padding: 12px;
    color: #6d6864;
    background: #f1f0ee;
    border: 1px solid #d8d5d1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.demo-ai-off[hidden],
.demo-side-off[hidden] {
    display: none;
}

.demo-ai-off svg {
    width: 17px;
    height: 17px;
    color: #7f7a76;
}

.demo-panel--assistant,
.demo-panel--assistant .demo-panel-top,
.demo-panel--assistant .demo-message,
.demo-panel--assistant .demo-ai-control,
.demo-side-card[data-demo-ai-aside],
.demo-side-card[data-demo-ai-aside] .demo-side-list em,
.demo-side-card[data-demo-ai-aside] .demo-side-result {
    transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, filter .18s ease;
}

.demo-panel--assistant.is-ai-off .demo-panel-top,
.demo-panel--assistant.is-ai-off .demo-message,
.demo-panel--assistant.is-ai-off .demo-ai-control {
    color: #615c58;
    background: #f4f3f1;
    border-color: #d8d5d1;
    box-shadow: none;
}

.marketing-body .demo-panel--assistant.is-ai-off .demo-panel-top .eyebrow {
    color: #8a8580 !important;
}

.demo-panel--assistant.is-ai-off .demo-panel-top strong {
    background: #9b9791;
}

.demo-panel--assistant.is-ai-off .demo-panel-copy,
.demo-panel--assistant.is-ai-off .demo-ai-control small {
    color: #8a8580;
}

.demo-panel--assistant.is-ai-off .demo-panel-copy {
    display: none;
}

.demo-panel--assistant.is-ai-off .demo-ai-switch strong {
    color: #5f5a55;
}

.demo-panel--assistant.is-ai-off .demo-ai-toggle-button {
    color: #5f5a55;
    border-color: #d8d5d1;
}

.demo-panel--assistant.is-ai-off .demo-message--user {
    background: #f7f6f4;
}

.demo-side-card.is-ai-off {
    align-content: start;
    color: #5f5a55;
    background: #f4f3f1;
    border-color: #d8d5d1;
}

.demo-side-card.is-ai-off .demo-side-head > span,
.demo-side-card.is-ai-off .demo-side-head > p {
    color: #817c77;
}

.demo-side-card.is-ai-off .demo-side-head > p {
    display: none;
}

.demo-side-card.is-ai-off .demo-side-list,
.demo-side-card.is-ai-off .demo-side-result,
.demo-side-card.is-ai-off .demo-side-preview--assistant {
    display: none;
}

.demo-side-off {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #ebe9e6;
    border: 1px solid #d8d5d1;
    border-radius: 8px;
}

.demo-side-off small {
    color: #77716c;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.demo-side-off b {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.05;
}

.demo-side {
    display: grid;
    align-content: start;
    gap: 14px;
}

.demo-side-card {
    display: none;
    align-content: start;
    gap: 16px;
    min-height: 0;
    padding: 20px;
    background: #fffdfb;
    border: 1px solid #dfe8dc;
    border-radius: 8px;
}

.demo-side-card.is-active {
    display: grid;
    animation: demoIn .32s ease both;
}

.demo-side-head > span {
    color: #5d7d61;
    font-size: 12px;
    font-weight: 800;
}

.demo-side-head > strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.05;
}

.demo-side-head > p {
    margin-top: 12px;
    color: var(--warm);
    font-size: 14px;
    line-height: 1.55;
}

.demo-side-preview {
    overflow: hidden;
    min-height: 132px;
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .96), rgba(255, 249, 246, .92)),
        #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.demo-side-preview--planning {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.demo-side-coach-card {
    display: grid;
    gap: 7px;
    padding: 14px;
    color: #3d332f;
    background:
        linear-gradient(135deg, rgba(255, 244, 241, .98), rgba(255, 253, 251, .94)),
        #fff4f1;
    border: 1px solid #efcaca;
    border-radius: 8px;
}

.demo-side-coach-card span,
.demo-side-coach-note strong {
    color: var(--rose-deep);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.demo-side-coach-card p {
    margin: 0;
    color: #312824;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.45;
}

.demo-side-coach-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo-side-coach-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 10px 11px;
    color: #463a35;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 820;
    line-height: 1.34;
}

.demo-side-coach-list svg {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--rose-deep);
}

.demo-side-coach-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 11px 12px;
    color: #2f3d32;
    background: #f3f8ef;
    border: 1px solid #d5e5ca;
    border-radius: 8px;
}

.demo-side-coach-note svg {
    width: 18px;
    height: 18px;
    color: #5d7d61;
}

.demo-side-coach-note strong {
    color: #2f3d32;
    line-height: 1.3;
    text-transform: none;
}

.demo-side-plan-focus {
    display: grid;
    gap: 5px;
    padding: 13px;
    color: #26342b;
    background:
        linear-gradient(135deg, rgba(93, 125, 97, .16), rgba(255, 253, 251, .96)),
        #f3f8ef;
    border: 1px solid #d5e5ca;
    border-radius: 8px;
}

.demo-side-plan-focus span {
    color: #5d7d61;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.demo-side-plan-focus strong {
    overflow: hidden;
    color: #2f3d32;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-side-plan-focus small {
    color: #675a54;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.demo-side-plan-timeline {
    display: grid;
    gap: 7px;
}

.demo-side-plan-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 10px;
    align-items: center;
    min-height: 47px;
    padding: 8px 10px;
    background: #fffdfb;
    border: 1px solid #dfe8dc;
    border-radius: 8px;
}

.demo-side-plan-row b {
    grid-row: 1 / 3;
    display: inline-grid;
    min-height: 28px;
    place-items: center;
    padding: 0 8px;
    color: #fff;
    background: #5d7d61;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
}

.demo-side-plan-row span,
.demo-side-plan-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-side-plan-row span {
    color: #463a35;
    font-size: 12px;
    font-weight: 900;
}

.demo-side-plan-row small {
    color: var(--warm);
    font-size: 10px;
    font-weight: 800;
}

.demo-side-simple-note {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px 11px;
    padding: 14px;
    color: #4c3f3a;
    background: #fff4f1;
    border: 1px solid #efcaca;
    border-radius: 8px;
}

.demo-side-simple-note > svg {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    padding: 9px;
    color: var(--rose-deep);
    background: #fffdfb;
    border: 1px solid #efcaca;
    border-radius: 8px;
}

.demo-side-simple-note div {
    min-width: 0;
}

.demo-side-simple-note span {
    display: block;
    color: var(--rose-deep);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.demo-side-simple-note p {
    margin: 3px 0 0;
    color: #3d332f;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.32;
}

.demo-side-next-list {
    display: grid;
    gap: 8px;
}

.demo-side-next-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 9px 11px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.demo-side-next-row.is-current {
    background: #fff4f1;
    border-color: #efcaca;
}

.demo-side-next-row b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--rose-deep);
    background: #fff2f2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.demo-side-next-row.is-current b {
    color: #fff;
    background: var(--rose-deep);
}

.demo-side-next-row div {
    min-width: 0;
}

.demo-side-next-row strong,
.demo-side-next-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-side-next-row strong {
    color: #312824;
    font-size: 13px;
    font-weight: 900;
}

.demo-side-next-row small {
    margin-top: 3px;
    color: var(--warm);
    font-size: 11px;
    font-weight: 750;
}

.demo-side-task {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 7px 9px;
    background: #fffdfb;
    border: 1px solid #dfe8dc;
    border-radius: 8px;
}

.demo-side-task b {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #fff;
    background: #5d7d61;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.demo-side-task--urgent b {
    background: var(--rose-deep);
}

.demo-side-task--calm b {
    color: #5f481e;
    background: #f5d684;
}

.demo-side-task span,
.demo-side-task small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-side-task span {
    color: #463a35;
    font-size: 12px;
    font-weight: 850;
}

.demo-side-task small {
    color: var(--warm);
    font-size: 10px;
    font-weight: 850;
}

.demo-side-preview--budget {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

.demo-side-budget-total,
.demo-side-budget-stat {
    display: grid;
    align-content: center;
    min-height: 50px;
    padding: 10px;
    background: #fffdfb;
    border: 1px solid #ecd6a8;
    border-radius: 8px;
}

.demo-side-budget-total {
    grid-column: 1 / -1;
    background: #fff7e7;
}

.demo-side-budget-total span,
.demo-side-budget-stat span {
    color: #76655d;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.demo-side-budget-total b,
.demo-side-budget-stat b {
    margin-top: 4px;
    color: #3f322d;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
}

.demo-side-budget-stat b {
    font-size: 20px;
}

.demo-side-budget-stat:last-child {
    grid-column: 1 / -1;
    background: #fff4f1;
    border-color: #efd5ce;
}

.demo-side-budget-stat:last-child b {
    color: var(--rose-deep);
    font-size: 26px;
}

.demo-side-preview--table {
    position: relative;
    min-height: 158px;
    background-image:
        linear-gradient(rgba(189, 127, 89, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 127, 89, .10) 1px, transparent 1px);
    background-size: 18px 18px;
}

.demo-side-preview--table-edit {
    display: grid;
    min-height: 214px;
    padding: 8px;
    background: #fffdfb;
}

.demo-real-table-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 158px;
    gap: 8px;
    align-items: stretch;
}

.demo-real-room {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(189, 127, 89, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 127, 89, .10) 1px, transparent 1px);
    background-size: 16px 16px;
    background-color: #fffaf7;
    border: 1px dashed #e5cfc4;
    border-radius: 8px;
}

.demo-real-table {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
}

.demo-real-table:nth-child(1) {
    top: 14px;
    left: 16px;
}

.demo-real-table:nth-child(2) {
    top: 24px;
    right: 12px;
    width: 96px;
    height: 48px;
}

.demo-real-table:nth-child(3) {
    left: 37%;
    bottom: 12px;
}

.demo-real-table i {
    position: absolute;
    inset: 6px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 42%),
        linear-gradient(180deg, #c98d6f, #b98264);
    border: 1px solid rgba(123, 81, 66, .24);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(94, 69, 60, .13);
}

.demo-real-table--rect i {
    border-radius: 8px;
}

.demo-real-table b {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
}

.demo-real-table.is-selected::after {
    position: absolute;
    inset: -5px;
    content: "";
    border: 2px solid var(--rose-deep);
    border-radius: 10px;
}

.demo-real-settings {
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 8px;
    background: #fff8f5;
    border: 1px solid #efd5ce;
    border-radius: 8px;
}

.demo-real-settings-head {
    display: grid;
    gap: 4px;
}

.demo-real-settings-head span,
.demo-real-field > span {
    color: #8a6b5d;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.demo-real-settings-head b {
    color: #3f322d;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1;
}

.demo-real-field {
    display: grid;
    gap: 5px;
    min-height: 38px;
    padding-top: 7px;
    border-top: 1px solid rgba(229, 207, 196, .78);
}

.demo-real-stepper,
.demo-real-shapes {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
}

.demo-real-stepper button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #8b5c4d;
    background: #fffdfb;
    border: 1px solid #e5cfc4;
    border-radius: 8px;
}

.demo-real-stepper button svg {
    width: 14px;
    height: 14px;
}

.demo-real-stepper strong {
    justify-self: center;
    color: #3f322d;
    font-size: 14px;
    font-weight: 950;
}

.demo-real-shapes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-real-shapes em {
    display: grid;
    min-height: 28px;
    place-items: center;
    color: #6d5c56;
    background: #fffdfb;
    border: 1px solid #e5cfc4;
    border-radius: 8px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.demo-real-shapes em.is-active {
    color: #fff;
    background: #bd7f59;
    border-color: #bd7f59;
}

.demo-real-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    color: #4f7654;
    background: #eef8ef;
    border: 1px solid #c7dcc9;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.demo-real-note svg {
    width: 15px;
    height: 15px;
}

.demo-side-table {
    position: absolute;
    width: 78px;
    height: 78px;
}

.demo-side-table--round {
    top: 18px;
    left: 20px;
}

.demo-side-table--rect {
    top: 28px;
    right: 22px;
    width: 100px;
    height: 74px;
}

.demo-side-table--small {
    left: calc(50% - 52px);
    bottom: 12px;
    width: 68px;
    height: 68px;
}

.demo-side-table span {
    position: absolute;
    inset: 14px;
    display: grid;
    place-items: center;
    color: white;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 42%),
        linear-gradient(180deg, #c98d6f, #b98264);
    border: 1px solid rgba(123, 81, 66, .24);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    text-align: center;
    box-shadow: 0 12px 24px rgba(94, 69, 60, .14);
}

.demo-side-table span b,
.demo-side-table span small {
    display: block;
    line-height: 1.05;
}

.demo-side-table span small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: 9px;
}

.demo-side-table--rect span {
    border-radius: 8px;
}

.demo-side-table em {
    position: absolute;
    display: block;
    width: 14px;
    height: 14px;
    background: #fffdfb;
    border: 1px solid #e5cfc4;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(94, 69, 60, .12);
}

.demo-side-table em:nth-child(1) {
    top: 0;
    left: calc(50% - 7px);
}

.demo-side-table em:nth-child(2) {
    top: calc(50% - 7px);
    right: 0;
}

.demo-side-table em:nth-child(3) {
    bottom: 0;
    left: calc(50% - 7px);
}

.demo-side-table em:nth-child(4) {
    top: calc(50% - 7px);
    left: 0;
}

.demo-side-preview--assistant {
    display: grid;
    gap: 9px;
    padding: 12px;
    background: #f8fbf5;
    border-color: #d5e5ca;
}

.demo-ai-status-card,
.demo-ai-mini-plan {
    display: grid;
    gap: 7px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid #d5e5ca;
    border-radius: 8px;
}

.demo-ai-status-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    background: #eef8ef;
}

.demo-ai-status-card span,
.demo-ai-mini-plan span {
    display: block;
    color: #5d7d61;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.demo-ai-status-card strong,
.demo-ai-mini-plan strong {
    display: block;
    margin-top: 3px;
    color: #27342c;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

.demo-ai-status-card svg {
    width: 28px;
    height: 28px;
    color: #5d7d61;
}

.demo-ai-status-list {
    display: grid;
    gap: 6px;
}

.demo-ai-status-list span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 9px;
    color: #3f4b3f;
    background: #fffdfb;
    border: 1px solid #dfe8dc;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 850;
}

.demo-ai-status-list svg {
    width: 14px;
    height: 14px;
    color: #5d7d61;
}

.demo-ai-mini-plan div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-ai-mini-plan small {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    color: #5d4f49;
    background: #f7efea;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.demo-side-chat {
    display: grid;
    gap: 9px;
}

.demo-side-chat-message {
    display: grid;
    gap: 5px;
    max-width: 92%;
    padding: 11px 12px;
    border: 1px solid #d5e5ca;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
}

.demo-side-chat-message span {
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.demo-side-chat-message p {
    margin: 0;
    color: #3f322d;
    font-weight: 850;
}

.demo-side-chat-message.is-user {
    justify-self: end;
    background: #fffdfb;
}

.demo-side-chat-message.is-user span {
    color: var(--rose-deep);
}

.demo-side-chat-message.is-ai {
    justify-self: start;
    color: #27342c;
    background: #eef8ef;
}

.demo-side-chat-message.is-ai span {
    color: #5d7d61;
}

.demo-side-chat-message ul {
    display: grid;
    gap: 5px;
    margin-top: 3px;
}

.demo-side-chat-message li {
    position: relative;
    padding-left: 14px;
    color: #3f4b3f;
    font-weight: 800;
}

.demo-side-chat-message li::before {
    position: absolute;
    top: .52em;
    left: 0;
    width: 6px;
    height: 6px;
    content: "";
    background: #5d7d61;
    border-radius: 999px;
}

.demo-side-chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.demo-side-chat-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    color: #4f7654;
    background: #fffdfb;
    border: 1px solid #c7dcc9;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.demo-side-message {
    justify-self: end;
    max-width: 88%;
    padding: 10px 12px;
    color: #4a3c36;
    background: #fffdfb;
    border: 1px solid #d5e5ca;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.demo-side-message.is-answer {
    justify-self: start;
    color: #27342c;
    background: white;
}

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

.demo-side-list em {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    color: #463a35;
    background: #f8fbf5;
    border: 1px solid #dfe8dc;
    border-radius: 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.demo-side-list svg {
    width: 15px;
    height: 15px;
    color: #5d7d61;
}

.demo-side-result {
    display: grid;
    gap: 4px;
    position: relative;
    overflow: hidden;
    padding: 13px;
    background:
        linear-gradient(135deg, rgba(255, 244, 241, .98), rgba(248, 251, 245, .96)),
        #fff4f1;
    border: 1px solid #eacbc2;
    border-radius: 8px;
}

.demo-side-result::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    content: "";
    background: linear-gradient(180deg, var(--rose-deep), #5d7d61);
}

.demo-side-result small {
    color: var(--rose-deep);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.demo-side-result b {
    padding-left: 3px;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.05;
}

.demo-side .marketing-button {
    justify-self: start;
}

.screen-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.screen-card {
    overflow: hidden;
    background: #fffaf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(94, 69, 60, .08);
}

.screen-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: center top;
}

.screen-card div {
    padding: 16px;
}

.screen-card h3 {
    font-size: 18px;
    font-weight: 800;
}

.screen-card p {
    margin-top: 6px;
    color: var(--warm);
    font-size: 13px;
    line-height: 1.45;
}

.ai-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 48px;
    align-items: center;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.ai-copy {
    color: white;
}

.ai-copy .eyebrow {
    color: #f0c9cf !important;
}

.ai-copy h2 {
    color: white;
}

.ai-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, .78);
}

.ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.ai-actions span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    color: white;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.ai-actions svg {
    color: #f3c66e;
}

.ai-widget {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #fffdfb;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
}

.ai-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    color: #2c3a30;
    background: #eef7ee;
    border: 1px solid #c9dfc9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.ai-toggle i {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
    background: #5d7d61;
    border-radius: 999px;
}

.ai-toggle i::after {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    content: "";
    background: white;
    border-radius: 999px;
}

.ai-message {
    min-height: 62px;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.ai-message-user {
    color: #4a3c36;
    background: #fff4f1;
    border: 1px solid #f0d8cf;
}

.ai-message-bot {
    color: #27342c;
    background: #f3f8ef;
    border: 1px solid #d5e5ca;
}

.marketing-final {
    display: grid;
    justify-items: center;
    padding: 78px 20px 62px;
    text-align: center;
    background:
        linear-gradient(180deg, #fffdfb 0%, #fff4f1 100%);
}

.marketing-final-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
    width: min(100%, 900px);
}

.marketing-final h2 {
    max-width: 780px;
}

.marketing-final p:not(.eyebrow) {
    max-width: 710px;
}

.marketing-final-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: 9px;
    width: min(100%, 720px);
}

.marketing-final-proof span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    color: #4f433f;
    background: rgba(255, 253, 251, .82);
    border: 1px solid rgba(234, 223, 218, .95);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.marketing-final-proof svg {
    width: 17px;
    height: 17px;
    color: var(--rose-deep);
}

.marketing-final .marketing-button {
    min-width: 236px;
}

.marketing-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 16px 20px 22px;
    color: #8a7b75;
    background: #fff4f1;
    border-top: 1px solid rgba(234, 223, 218, .72);
    font-size: 11px;
    font-weight: 750;
}

.marketing-footer a {
    color: #7a6760;
}

.marketing-footer a:hover {
    color: var(--rose-deep);
}

@keyframes heroShotFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes heroPhoneFloat {
    0%,
    100% {
        transform: translateY(0) rotate(1.5deg);
    }

    50% {
        transform: translateY(8px) rotate(1.5deg);
    }
}

@keyframes heroPlanFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-1.2deg);
    }

    50% {
        transform: translateY(12px) rotate(-1.2deg);
    }
}

@keyframes heroInspirationFloat {
    0%,
    100% {
        transform: translateY(0) rotate(1.4deg);
    }

    50% {
        transform: translateY(-9px) rotate(1.4deg);
    }
}

@keyframes floatBadge {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(9px);
    }
}

@keyframes demoIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toolFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes toolPulse {
    0%,
    100% {
        opacity: .72;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes toolTaskSlide {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes toolBudgetFill {
    0%,
    100% {
        transform: scaleX(.92);
    }

    50% {
        transform: scaleX(1);
    }
}

@keyframes toolSeatPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

@keyframes toolSeatDrift {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes toolSeatPop {
    0%,
    100% {
        opacity: .55;
        transform: scale(.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes toolPalette {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

@media (max-width: 1366px), (hover: none), (pointer: coarse) {
    .hero-shot-desktop,
    .hero-shot-plan,
    .hero-shot-inspiration,
    .hero-shot-phone,
    .hero-floating-card,
    .tool-mini-kpi,
    .tool-mini-grid i,
    .tool-mini-task,
    .tool-budget-line i::after,
    .tool-guest-row,
    .tool-seat-group,
    .tool-chair,
    .tool-pin-card,
    .demo-table-demo,
    .demo-panel.is-active,
    .demo-side-card.is-active {
        animation: none;
        will-change: auto;
    }

    .hero-shot-plan {
        transform: rotate(-1.2deg);
    }

    .hero-shot-inspiration {
        transform: rotate(1.4deg);
    }

    .hero-shot-phone {
        transform: none;
    }

    .hero-floating-card-one,
    .hero-floating-card-two {
        transform: none;
    }
}

@media (min-width: 721px) and (max-width: 1366px) {
    .marketing-hero {
        height: clamp(640px, 78svh, 720px);
    }

    .marketing-hero::before {
        background:
            linear-gradient(90deg, rgba(255, 250, 247, .99) 0%, rgba(255, 250, 247, .96) 48%, rgba(255, 250, 247, .46) 78%, rgba(255, 250, 247, .54) 100%),
            linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(246, 251, 247, .52));
    }

    .hero-shot-desktop {
        right: 24px;
        width: min(640px, 55vw);
        opacity: .48;
    }

    .hero-shot-plan {
        top: 344px;
        right: 190px;
        width: 260px;
        opacity: .5;
    }

    .hero-shot-inspiration {
        top: 140px;
        right: 430px;
        width: 230px;
        opacity: .42;
    }

    .hero-shot-phone {
        right: 42px;
        bottom: 48px;
        width: 150px;
        opacity: .72;
    }

    .hero-floating-card {
        display: none;
    }
}

@media (max-width: 1020px) {
    .hero-shot-desktop {
        right: 16px;
        width: min(560px, 72vw);
        opacity: .48;
    }

    .hero-shot-plan {
        top: 338px;
        right: 130px;
        width: 220px;
        opacity: .64;
    }

    .hero-shot-inspiration {
        top: 142px;
        right: 340px;
        width: 190px;
        opacity: .5;
    }

    .hero-shot-phone {
        right: 28px;
        width: 142px;
    }

    .hero-floating-card {
        display: none;
    }

    .tools-grid,
    .screen-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demo-workbench {
        --demo-phone-height: 528px;
        --demo-side-card-height: 672px;
    }

    .demo-preview,
    .ai-panel {
        grid-template-columns: 1fr;
    }

    .demo-phone {
        width: min(100%, 680px);
        margin-inline: auto;
    }

    .demo-side {
        display: none;
    }
}

@media (max-width: 720px) {
    .marketing-nav {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 58px;
        padding-left: 14px;
        padding-right: 8px;
    }

    .marketing-nav nav {
        display: none;
    }

    .marketing-nav .marketing-nav-auth {
        display: inline-flex;
    }

    .marketing-brand {
        font-size: 37px;
    }

    .marketing-nav-auth {
        gap: 5px;
    }

    .marketing-nav-auth a {
        min-height: 38px;
        padding: 0 8px;
        font-size: 11px;
    }

    .marketing-nav-login {
        background: transparent;
        border-color: transparent;
    }

    .marketing-hero {
        height: auto;
        min-height: 610px;
        align-items: start;
        padding: 150px 16px 46px;
    }

    .marketing-hero::before {
        background:
            linear-gradient(180deg, rgba(255, 250, 247, .98) 0%, rgba(255, 250, 247, .88) 54%, rgba(255, 250, 247, .54) 100%),
            linear-gradient(90deg, rgba(255, 250, 247, .98), rgba(255, 250, 247, .34));
    }

    .hero-shot-desktop {
        top: 190px;
        right: 16px;
        width: min(360px, 84vw);
        opacity: .22;
    }

    .hero-shot-plan,
    .hero-shot-inspiration {
        display: none;
    }

    .hero-shot-phone {
        right: 28px;
        bottom: 16px;
        width: 128px;
        opacity: .68;
    }

    .marketing-hero-inner {
        margin-left: 0;
    }

    .marketing-hero h1 {
        font-size: 78px;
    }

    .marketing-hero-subtitle {
        max-width: 520px;
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.42;
    }

    .marketing-actions {
        gap: 9px;
        margin-top: 20px;
    }

    .marketing-button {
        width: 100%;
        min-height: 50px;
    }

    .hero-proof {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 16px;
        max-width: 280px;
    }

    .marketing-band {
        padding: 54px 16px;
    }

    .marketing-section-heading {
        margin-bottom: 24px;
        text-align: left;
    }

    .marketing-section-heading h2,
    .ai-copy h2,
    .marketing-final h2 {
        font-size: 31px;
        line-height: 1.08;
    }

    .demo-band .marketing-section-heading h2 {
        font-size: 30px;
        line-height: 1.08;
    }

    .marketing-section-heading p:not(.eyebrow),
    .ai-copy p:not(.eyebrow),
    .marketing-final p:not(.eyebrow) {
        font-size: 14px;
    }

    .tools-grid,
    .screen-showcase {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 292px;
    }

    .tool-card-visual {
        height: 142px;
        min-height: 142px;
    }

    .demo-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demo-step {
        min-height: 68px;
    }

    .demo-step-text small {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .demo-workbench {
        --demo-phone-height: 840px;
        --demo-side-card-height: 792px;
    }

    .demo-phone {
        padding: 14px;
    }

    .demo-panel-top {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .demo-panel-top h3,
    .demo-side-card strong {
        font-size: 27px;
    }

    .demo-panel-top strong {
        width: max-content;
        min-width: 108px;
        padding: 12px;
        font-size: 22px;
    }

    .demo-planning-focus {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .demo-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .demo-row-copy strong {
        white-space: normal;
    }

    .demo-row-copy span {
        white-space: nowrap;
    }

    .demo-row-moment {
        grid-column: 2;
        justify-self: start;
    }

    .demo-budget-summary {
        grid-template-columns: 1fr;
    }

    .demo-seating-map {
        min-height: 320px;
    }

    .demo-table-demo {
        width: 138px;
        height: 126px;
    }

    .demo-table-demo:nth-child(1) {
        top: 16px;
        left: 2px;
    }

    .demo-table-demo:nth-child(2) {
        top: 24px;
        right: 0;
        width: 150px;
        height: 120px;
    }

    .demo-table-demo:nth-child(3) {
        left: 100px;
        bottom: 14px;
        width: 138px;
        height: 126px;
    }

    .demo-table-surface {
        inset: 16px;
        padding: 9px;
    }

    .demo-table-demo--rect .demo-table-surface {
        inset: 15px;
    }

    .demo-chair {
        width: 15px;
        height: 15px;
    }

    .demo-chair--top,
    .demo-chair--bottom {
        left: calc(50% - 7.5px);
    }

    .demo-chair--right,
    .demo-chair--left {
        top: calc(50% - 7.5px);
    }

    .demo-table-guests i {
        min-height: 18px;
        padding: 0 5px;
        font-size: 8px;
    }

    .demo-real-table-editor {
        grid-template-columns: 1fr;
    }

    .demo-message {
        max-width: 100%;
    }

    .demo-side-card {
        padding: 18px;
    }

    .demo-side-task {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .demo-side-task small {
        grid-column: 2;
    }

    .ai-panel {
        gap: 26px;
    }

    .ai-actions {
        display: grid;
    }

    .marketing-final {
        padding: 58px 16px 42px;
    }

    .marketing-final-inner {
        gap: 15px;
        justify-items: center;
        text-align: center;
    }

    .marketing-final-proof {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 340px);
        justify-content: center;
    }

    .marketing-footer {
        justify-content: flex-start;
        padding-inline: 16px;
    }
}

@media (max-width: 420px) {
    .marketing-nav {
        gap: 8px;
        padding-left: 12px;
    }

    .marketing-brand {
        font-size: 31px;
    }

    .marketing-nav-cta {
        min-height: 40px;
        padding: 0 9px;
        font-size: 11px;
    }

    .marketing-nav-cta svg {
        width: 16px;
        height: 16px;
    }

    .marketing-hero {
        min-height: 500px;
    }

    .marketing-hero h1 {
        font-size: 67px;
    }

    .marketing-hero-subtitle {
        font-size: 15px;
    }

    .demo-tabs {
        gap: 7px;
    }

    .demo-step {
        gap: 7px;
        min-height: 66px;
        padding: 9px 8px;
    }

    .demo-step-text strong {
        font-size: 12px;
    }

    .demo-step-text small {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-shot-desktop,
    .hero-shot-plan,
    .hero-shot-inspiration,
    .hero-shot-phone,
    .hero-floating-card,
    .tool-mini-kpi,
    .tool-mini-grid i,
    .tool-mini-task,
    .tool-budget-line i::after,
    .tool-guest-row,
    .tool-seat-group,
    .tool-chair,
    .tool-pin-card,
    .demo-table-demo,
    .demo-panel.is-active,
    .demo-side-card.is-active {
        animation: none;
    }

    .marketing-button,
    .tool-card,
    .demo-step {
        transition: none;
    }
}

.budget-folders-panel,
.budget-expenses-panel {
    background:
        linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 249, 246, .94)),
        #fffdfb;
}

.budget-command-panel {
    display: grid;
    gap: 14px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 253, 251, .98), rgba(246, 251, 248, .96)),
        #fffdfb;
}

.budget-command-copy {
    min-width: 0;
}

.budget-command-kicker {
    display: block;
    color: #2f7c69;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.budget-command-copy h2 {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.08;
}

.budget-command-copy p {
    max-width: 560px;
    margin-top: 6px;
    color: var(--warm);
    font-size: 13px;
    line-height: 1.42;
}

.budget-command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.budget-action-card {
    --budget-action-accent: var(--rose);
    --budget-action-bg: #fff5f3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 74px;
    padding: 12px;
    color: var(--ink);
    text-align: left;
    background: var(--budget-action-bg);
    border: 1px solid color-mix(in srgb, var(--budget-action-accent) 26%, #eadfda);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.budget-action-card--folder {
    --budget-action-accent: #2f8b72;
    --budget-action-bg: #f0faf6;
}

.budget-action-card:hover,
.budget-action-card:focus-visible {
    border-color: color-mix(in srgb, var(--budget-action-accent) 54%, #eadfda);
    box-shadow: 0 14px 30px rgba(63, 43, 36, .1);
    outline: none;
    transform: translateY(-1px);
}

.budget-action-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: color-mix(in srgb, var(--budget-action-accent) 86%, #1f1715);
    background: #fffdfb;
    border: 1px solid color-mix(in srgb, var(--budget-action-accent) 28%, #eadfda);
    border-radius: 8px;
}

.budget-action-card__icon svg {
    width: 19px;
    height: 19px;
}

.budget-action-card strong,
.budget-action-card small {
    display: block;
    min-width: 0;
}

.budget-action-card strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-action-card small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-mission-strip {
    display: grid;
    grid-template-columns: auto minmax(90px, 1fr);
    gap: 9px 12px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 253, 251, .82);
    border: 1px solid #eadfda;
    border-radius: 8px;
}

.budget-mission-score span,
.budget-mission-score strong {
    display: block;
}

.budget-mission-score span {
    color: var(--warm);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-mission-score strong {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 950;
}

.budget-mission-progress {
    height: 8px;
    overflow: hidden;
    background: #efe6e1;
    border-radius: 999px;
}

.budget-mission-progress span {
    display: block;
    width: var(--budget-command-progress);
    height: 100%;
    background: linear-gradient(90deg, #db7985, #2f8b72);
    border-radius: inherit;
}

.budget-mission-steps {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.budget-mission-steps span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    gap: 5px;
    padding: 0 8px;
    color: var(--warm);
    background: #fffdfb;
    border: 1px solid #eadfda;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.budget-mission-steps span.is-done {
    color: #2f7c69;
    background: #eff9f5;
    border-color: #cce5dc;
}

.budget-mission-steps svg {
    width: 13px;
    height: 13px;
}

.budget-section-title {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.budget-section-title > div:first-child {
    min-width: 0;
}

.budget-section-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.budget-section-actions .primary-button {
    min-height: 36px;
    padding-inline: 13px;
}

.budget-section-actions .secondary-button {
    min-height: 36px;
    padding-inline: 13px;
}

.budget-empty-state--plain {
    grid-template-columns: minmax(0, 1fr);
}

.budget-empty-state--plain > span {
    display: none;
}

.budget-folder-list,
.budget-expense-list--simple {
    display: grid;
    gap: 8px;
}

.budget-embedded-expenses {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.budget-folder-card {
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid #eadfd9;
    border-radius: 8px;
}

.budget-folder-card[open] {
    border-color: #dfcfc7;
    box-shadow: 0 12px 28px rgba(94, 69, 60, .08);
}

.budget-folder-summary {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(330px, 1.45fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 11px 12px;
    cursor: pointer;
    list-style: none;
}

.budget-folder-summary::-webkit-details-marker {
    display: none;
}

.budget-folder-name,
.budget-expense-row__title {
    min-width: 0;
}

.budget-folder-chevron {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--warm);
    background: #fbf6f2;
    border: 1px solid #efe2dc;
    border-radius: 999px;
    transition: transform .18s ease, color .18s ease, border-color .18s ease;
}

.budget-folder-chevron svg {
    width: 15px;
    height: 15px;
}

.budget-folder-card[open] .budget-folder-chevron {
    color: var(--rose-deep);
    border-color: #efcaca;
    transform: rotate(180deg);
}

.budget-folder-name strong,
.budget-expense-row__title strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-folder-name small,
.budget-expense-row__title small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--warm);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-folder-numbers,
.budget-expense-row__numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.budget-folder-numbers span,
.budget-expense-row__numbers span {
    min-width: 0;
    padding: 7px 8px;
    color: var(--warm);
    background: #fbf6f2;
    border: 1px solid #efe2dc;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.budget-folder-numbers strong,
.budget-expense-row__numbers strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
}

.budget-folder-detail {
    display: grid;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid #efe2dc;
}

.budget-folder-empty {
    margin: 0;
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
}

.budget-folder-expenses {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.budget-folder-expenses li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    background: #fbf7f4;
    border: 1px solid #efe2dc;
    border-radius: 8px;
}

.budget-folder-expenses span,
.budget-folder-expense-link {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-folder-expense-link {
    min-width: 0;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.budget-folder-expense-link:hover,
.budget-folder-expense-link:focus-visible {
    color: var(--rose-deep);
    outline: none;
}

.budget-folder-expenses strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.budget-folder-edit-open {
    justify-self: start;
    min-height: 34px;
}

.budget-folder-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.budget-expense-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) minmax(330px, 1.45fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    color: var(--ink);
    text-align: left;
    background: #fffdfb;
    border: 1px solid #eadfd9;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.budget-expense-row:hover,
.budget-expense-row:focus-visible {
    border-color: #dccac2;
    box-shadow: 0 12px 28px rgba(94, 69, 60, .09);
    outline: none;
    transform: translateY(-1px);
}

.budget-dialog {
    width: min(640px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(760px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.budget-dialog::backdrop {
    background: rgba(50, 40, 35, .42);
    backdrop-filter: blur(4px);
}

.budget-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(760px, calc(100dvh - 24px));
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid rgba(229, 216, 210, .95);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(63, 43, 36, .22);
}

.budget-dialog-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: #fff8f5;
    border-bottom: 1px solid rgba(229, 216, 210, .95);
}

.budget-dialog-header > div {
    min-width: 0;
}

.budget-dialog-header span {
    display: block;
    overflow: hidden;
    color: var(--warm);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.budget-dialog-header strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget-dialog-body,
.budget-dialog-shell > .budget-form {
    min-height: 0;
    overflow: auto;
    padding: 14px;
}

.budget-dialog-body {
    display: grid;
    gap: 14px;
}

.budget-form {
    display: grid;
    gap: 10px;
}

.budget-dialog .budget-expense-form--create,
.budget-dialog .budget-expense-form--edit,
.budget-dialog .budget-folder-form,
.budget-dialog .budget-family-edit-form {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    margin: 0;
    background: transparent;
    border: 0;
}

.budget-dialog-body .budget-form {
    padding: 0;
}

.budget-form label {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.budget-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.budget-field-heading {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.budget-form label span {
    color: #5c4b45;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-field-heading label {
    color: #5c4b45;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.budget-inline-action {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    color: #2f7c69;
    background: #eff9f5;
    border: 1px solid #cce5dc;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.budget-inline-action:hover,
.budget-inline-action:focus-visible {
    border-color: #91cab9;
    outline: none;
}

.budget-form input,
.budget-form select,
.budget-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(255, 253, 251, .98);
    border: 1px solid #e5d8d2;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.budget-form textarea {
    min-height: 82px;
    padding-block: 10px;
    resize: vertical;
}

.budget-form input[type="file"] {
    min-height: auto;
    padding: 10px;
    font-size: 12px;
}

.budget-form input:focus,
.budget-form select:focus,
.budget-form textarea:focus {
    background: #fff;
    border-color: rgba(219, 121, 133, .72);
    box-shadow: 0 0 0 4px rgba(219, 121, 133, .13);
}

.budget-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 4px;
}

.budget-dialog-accordion {
    padding: 10px;
    background: #fbf7f4;
    border: 1px solid #efe2dc;
    border-radius: 8px;
}

.budget-dialog-accordion summary {
    color: #5f514b;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.budget-dialog-accordion .budget-folder-expenses {
    margin-top: 8px;
}

.budget-dialog .budget-file-list {
    margin-top: 0;
}

.secondary-button.is-danger {
    color: #a23a44;
    background: #fff2f3;
    border-color: #efcaca;
}

.secondary-button.is-danger:hover,
.secondary-button.is-danger:focus-visible {
    border-color: #dc9ba3;
}

@media (max-width: 700px) {
    .budget-command-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .budget-section-title {
        display: grid;
    }

    .budget-section-actions {
        justify-content: flex-start;
    }

    .budget-folder-summary,
    .budget-expense-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .budget-folder-chevron {
        justify-self: start;
    }
}

@media (max-width: 460px) {
    .budget-command-panel {
        gap: 10px;
    }

    .budget-command-copy h2 {
        font-size: 22px;
    }

    .budget-command-copy p {
        display: none;
    }

    .budget-command-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .budget-action-card {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        min-height: 88px;
        gap: 8px;
        padding: 10px 8px;
        text-align: center;
    }

    .budget-action-card__icon {
        width: 36px;
        height: 36px;
    }

    .budget-action-card strong {
        font-size: 13px;
        line-height: 1.18;
        white-space: normal;
    }

    .budget-action-card small {
        display: none;
    }

    .budget-mission-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .budget-mission-score {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
    }

    .budget-mission-steps {
        gap: 5px;
    }

    .budget-mission-steps span {
        min-height: 24px;
        padding-inline: 7px;
        font-size: 10px;
    }

    .budget-field-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .budget-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
    }

    .budget-dialog-header,
    .budget-dialog-body,
    .budget-dialog-shell > .budget-form {
        padding: 12px;
    }

    .budget-dialog-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .budget-dialog-footer .secondary-button,
    .budget-dialog-footer .primary-button {
        width: 100%;
    }
}

@media (max-width: 340px) {
    .budget-folder-numbers,
    .budget-expense-row__numbers {
        grid-template-columns: minmax(0, 1fr);
    }
}
