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

.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,
.desktop-nav-item svg,
.shortcut-card svg,
.task-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.avatar-dot {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: white;
    font-weight: 700;
    background: linear-gradient(145deg, #ac6b4c, #e1b792);
    border: 2px solid white;
    border-radius: 999px;
}

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

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

.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: 12px;
    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 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px;
    background: linear-gradient(180deg, #fffdfb, #fffaf7);
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

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

.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: 12px;
}

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

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

.mariage-form label {
    display: grid;
    gap: 7px;
}

.mariage-form label span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.mariage-form input,
.mariage-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    color: var(--ink);
    background: rgba(255, 253, 251, .95);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mariage-form input:focus,
.mariage-form select:focus {
    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;
}

.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: 12px;
}

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

.module-form label span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.module-form input,
.module-form select,
.module-form textarea,
.amount-form input,
.assign-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(255, 253, 251, .96);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

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

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

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

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

.module-task.is-done strong {
    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;
}

.budget-metrics {
    margin-top: 0;
}

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

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

.budget-row strong,
.guest-row strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

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

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

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

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

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

.idea-card,
.moodboard-card {
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.idea-card img,
.moodboard-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / .78;
    object-fit: cover;
}

.idea-card div,
.moodboard-card div {
    padding: 10px;
}

.idea-card span,
.moodboard-card span {
    color: var(--rose-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.idea-card strong,
.moodboard-card strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.idea-card p,
.moodboard-card p {
    margin-top: 5px;
    color: var(--warm);
    font-size: 11px;
    line-height: 1.35;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 18px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(180deg, #e28b95, var(--rose));
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(219, 121, 133, .28);
}

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

.mobile-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: 76px;
    max-width: 430px;
    margin-inline: auto;
    padding: 8px 10px;
    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;
    place-items: center;
    gap: 5px;
    color: #3f3632;
    font-size: 10px;
}

.nav-item.is-active {
    color: var(--rose-deep);
    font-weight: 700;
}

.nav-add {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    justify-self: center;
    color: white;
    background: linear-gradient(180deg, #e18a94, var(--rose));
    border-radius: 999px;
    box-shadow: 0 15px 28px rgba(219, 121, 133, .28);
}

.nav-add svg {
    width: 28px;
    height: 28px;
}

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

.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 {
    padding: 18px;
    color: white;
    background: linear-gradient(135deg, #c86f7b, #e6a0a7);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(200, 111, 123, .24);
}

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

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

.repere-hero p {
    margin-top: 6px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

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

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

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

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

@media (max-width: 370px) {
    .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,
    .idea-grid,
    .moodboard-grid {
        grid-template-columns: 1fr;
    }

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

@media (min-width: 940px) {
    .app-shell {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 34px;
        padding: 24px 34px;
    }

    .app-main {
        grid-template-columns: minmax(430px, 480px) minmax(390px, 560px);
        align-content: start;
        justify-content: start;
        padding-top: 0;
    }

    .phone-frame {
        width: min(100%, 480px);
        min-height: calc(100vh - 48px);
        margin-inline: 0;
        padding-bottom: 24px;
    }

    .mobile-shortcuts {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .desktop-sidebar {
        position: sticky;
        top: 24px;
        display: block;
        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: grid;
        gap: 8px;
        margin-top: 34px;
    }

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

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