:root {
    --bg: #0b1020;
    --bg-soft: #121933;
    --panel: rgba(20, 28, 55, 0.82);
    --panel-solid: #151d38;
    --panel-2: #1c2748;

    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --muted: #8fa0bd;

    --primary: #7c5cff;
    --primary-2: #5e8bff;
    --success: #2dd4bf;
    --danger: #fb7185;
    --warning: #fbbf24;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --shadow:
        0 18px 45px rgba(0, 0, 0, 0.25);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --sidebar-width: 290px;
    --topbar-height: 88px;

    --safe-bottom: env(safe-area-inset-bottom, 0px);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(124, 92, 255, 0.2),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(45, 212, 191, 0.12),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


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

/* Style both the native select and its OS/browser popup; keep native behavior. */
select {
    color-scheme: dark;
    color: var(--text);
    background-color: var(--panel-solid);
}

select option,
select optgroup {
    color: var(--text);
    background-color: var(--panel-solid);
}

select option:is(:checked, :hover) {
    color: HighlightText;
    background-color: Highlight;
}

select option:disabled,
select optgroup:disabled {
    color: var(--muted);
}


svg {
    display: block;
}


/* =========================================================
   APP SHELL
========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
}


.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;

    position: fixed;
    inset: 0 auto 0 0;

    display: flex;
    flex-direction: column;

    padding: 24px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(20, 28, 55, 0.98),
            rgba(12, 17, 34, 0.98)
        );

    border-right: 1px solid var(--border);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    z-index: 100;
}


.app-main {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);

    min-height: 100vh;
}


/* =========================================================
   BRAND
========================================================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 4px 8px 26px;
}


.brand-icon {
    width: 52px;
    height: 52px;

    border-radius: 18px;

    display: grid;
    place-items: center;

    font-weight: 800;
    letter-spacing: -0.04em;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    color: white;

    box-shadow:
        0 12px 28px rgba(124, 92, 255, 0.35);
}


.brand-icon.small {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 14px;
}


.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}


.brand-copy strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}


.brand-copy span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   SIDEBAR NAV
========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.nav-item {
    min-height: 58px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 0 16px;

    border-radius: 18px;

    color: var(--text-soft);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}


.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    transform: translateX(2px);
}


.nav-item.active {
    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.24),
            rgba(94, 139, 255, 0.14)
        );

    border: 1px solid rgba(124, 92, 255, 0.24);
}


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


.nav-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}


.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
}

/* Quiet account action; the mobile shell has its own compact control. */
.logout-form { margin: 0; }
.logout-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.logout-button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.logout-button:focus-visible { outline: 2px solid #b5a6ff; outline-offset: 2px; }
.sidebar-logout { margin-bottom: 12px; }
.sidebar-logout .logout-button { width: 100%; }
.mobile-logout { display: none; }
.mobile-logout .logout-button { width: 44px; padding: 11px; }
.mobile-logout svg { width: 22px; height: 22px; }
@media (max-width: 820px) {
    .mobile-logout { display: block; }
    .topbar-left { min-width: 0; }
    .topbar-title { min-width: 0; }
    .topbar-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}


.sidebar-status {
    display: flex;
    gap: 12px;
    align-items: flex-start;

    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);
}


.status-dot {
    width: 10px;
    height: 10px;

    margin-top: 5px;

    border-radius: 999px;

    background: var(--success);

    box-shadow:
        0 0 0 6px rgba(45, 212, 191, 0.1);
}


.sidebar-status div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.sidebar-status strong {
    font-size: 13px;
}


.sidebar-status span {
    font-size: 11px;
    color: var(--muted);
}


/* =========================================================
   TOPBAR
========================================================= */

.app-topbar {
    height: var(--topbar-height);

    position: sticky;
    top: 0;

    z-index: 80;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 34px;

    background: rgba(11, 16, 32, 0.72);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}


.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}


.mobile-brand {
    display: none;
}


.topbar-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.topbar-title .eyebrow {
    color: var(--muted);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.topbar-title strong {
    font-size: 22px;
    letter-spacing: -0.03em;
}


.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.topbar-add-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 17px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    color: white;

    font-weight: 700;

    box-shadow:
        0 10px 24px rgba(94, 139, 255, 0.22);
}


.topbar-add-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* =========================================================
   CONTENT
========================================================= */

.app-content {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding:
        34px
        34px
        70px;
}


/* =========================================================
   REUSABLE UI
========================================================= */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}


.page-header-copy {
    max-width: 760px;
}


.page-eyebrow {
    margin-bottom: 8px;

    color: var(--primary-2);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.page-title {
    margin: 0;

    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.98;

    letter-spacing: -0.055em;
}


.page-subtitle {
    margin: 14px 0 0;

    max-width: 720px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.6;
}


.card {
    position: relative;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.card-inner {
    padding: 24px;
}


.grid {
    display: grid;
    gap: 20px;
}


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


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


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


.section-title {
    margin: 0 0 16px;

    font-size: 20px;

    letter-spacing: -0.03em;
}


.muted {
    color: var(--muted);
}


.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 30px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}


.badge-primary {
    background: rgba(124, 92, 255, 0.14);
    color: #b9abff;
}


.badge-success {
    background: rgba(45, 212, 191, 0.12);
    color: #6ee7d4;
}


.badge-warning {
    background: rgba(251, 191, 36, 0.11);
    color: #fcd66e;
}


/* =========================================================
   FORM CONTROLS
========================================================= */

.form-card {
    max-width: 860px;
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


.form-group.full {
    grid-column: 1 / -1;
}


.form-label {
    color: var(--text-soft);

    font-size: 13px;
    font-weight: 700;
}


.form-control {
    width: 100%;
    min-height: 56px;

    padding: 0 16px;

    border: 1px solid var(--border-strong);

    border-radius: 16px;

    outline: none;

    color: var(--text);

    background: rgba(255, 255, 255, 0.045);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


textarea.form-control {
    min-height: 120px;
    padding-top: 14px;
    resize: vertical;
}


.form-control:focus {
    border-color: rgba(124, 92, 255, 0.65);

    background: rgba(255, 255, 255, 0.065);

    box-shadow:
        0 0 0 4px rgba(124, 92, 255, 0.10);
}


.form-hint {
    margin-top: -2px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.45;
}


.primary-button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 20px;

    border: 0;
    border-radius: 16px;

    cursor: pointer;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    font-weight: 800;

    box-shadow:
        0 12px 28px rgba(94, 139, 255, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.primary-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 32px rgba(94, 139, 255, 0.28);
}


.secondary-button {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 16px;

    border: 1px solid var(--border-strong);

    background: rgba(255, 255, 255, 0.04);

    color: var(--text);

    font-weight: 700;
}


/* =========================================================
   CHOICE CARDS
========================================================= */

.choice-stack {
    display: grid;
    gap: 12px;
}


.choice-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 62px;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 92, 255, 0.4);
}


.choice-card input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}


.choice-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.choice-copy strong {
    font-size: 15px;
}


.choice-copy span {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-bottom-nav,
.mobile-fab {
    display: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    :root {
        --sidebar-width: 240px;
    }


    .app-content {
        padding-left: 24px;
        padding-right: 24px;
    }


    .app-topbar {
        padding-left: 24px;
        padding-right: 24px;
    }


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

}


@media (max-width: 820px) {

    body {
        padding-bottom:
            calc(90px + var(--safe-bottom));
    }


    .app-sidebar {
        display: none;
    }


    .app-main {
        width: 100%;
        margin-left: 0;
    }


    .app-topbar {
        height: 76px;

        padding:
            0
            18px;

        border-bottom: 1px solid var(--border);
    }


    .mobile-brand {
        display: block;
    }


    .topbar-title .eyebrow {
        display: none;
    }


    .topbar-title strong {
        font-size: 18px;
    }


    .topbar-add-button {
        display: none;
    }


    .app-content {
        padding:
            22px
            16px
            calc(120px + var(--safe-bottom));
    }


    .page-header {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 22px;
    }


    .page-title {
        font-size: clamp(36px, 11vw, 52px);
    }


    .page-subtitle {
        font-size: 15px;
    }


    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid {
        grid-template-columns: 1fr;
    }


    .form-group.full {
        grid-column: auto;
    }


    .card {
        border-radius: 22px;
    }


    .card-inner {
        padding: 19px;
    }


    /* ------------------------------
       MOBILE BOTTOM NAV
    ------------------------------ */

    .mobile-bottom-nav {
        position: fixed;

        left: 12px;
        right: 12px;
        bottom:
            calc(10px + var(--safe-bottom));

        z-index: 150;

        min-height: 70px;

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        padding: 7px;

        border: 1px solid var(--border-strong);

        border-radius: 24px;

        background: rgba(20, 28, 55, 0.9);

        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.38);

        backdrop-filter: blur(26px);
        -webkit-backdrop-filter: blur(26px);
    }


    .mobile-nav-item {
        min-height: 56px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        border-radius: 18px;

        color: var(--muted);

        font-size: 11px;
        font-weight: 700;

        transition:
            background 0.2s ease,
            color 0.2s ease;
    }


    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }


    .mobile-nav-item.active {
        color: white;

        background:
            linear-gradient(
                135deg,
                rgba(124, 92, 255, 0.22),
                rgba(94, 139, 255, 0.13)
            );
    }


    /* ------------------------------
       FLOATING ADD BUTTON
    ------------------------------ */

    .mobile-fab {
        position: fixed;

        right: 22px;
        bottom:
            calc(96px + var(--safe-bottom));

        z-index: 155;

        width: 58px;
        height: 58px;

        display: grid;
        place-items: center;

        border-radius: 20px;

        background:
            linear-gradient(
                135deg,
                var(--primary),
                var(--primary-2)
            );

        color: white;

        box-shadow:
            0 16px 34px rgba(94, 139, 255, 0.35);
    }


    .mobile-fab svg {
        width: 27px;
        height: 27px;
        fill: currentColor;
    }

}


@media (max-width: 520px) {

    .app-topbar {
        padding-left: 14px;
        padding-right: 14px;
    }


    .app-content {
        padding-left: 13px;
        padding-right: 13px;
    }


    .page-title {
        font-size: 40px;
    }


    .form-control {
        min-height: 58px;
        border-radius: 15px;
    }


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


    .mobile-bottom-nav {
        left: 9px;
        right: 9px;
        bottom:
            calc(8px + var(--safe-bottom));
    }

}

/* =========================================================
   CONTACT FORM — APP EXPERIENCE
   ========================================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.form-card {
    width: 100%;
    max-width: 900px;
}


.form-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}


.form-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.20),
            rgba(94, 139, 255, 0.12)
        );

    border: 1px solid rgba(124, 92, 255, 0.20);

    font-size: 21px;
}


.form-section-heading .section-title {
    margin: 0;
}


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


.form-field label {
    color: var(--text-soft);

    font-size: 13px;
    font-weight: 700;
}


.optional {
    margin-left: 6px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 500;
}


.form-field input {
    width: 100%;
    min-height: 58px;

    padding: 0 16px;

    border: 1px solid var(--border-strong);
    border-radius: 16px;

    outline: none;

    background: rgba(255, 255, 255, 0.045);

    color: var(--text);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-field input::placeholder {
    color: rgba(143, 160, 189, 0.55);
}


.form-field input:focus {
    border-color: rgba(124, 92, 255, 0.65);

    background: rgba(255, 255, 255, 0.065);

    box-shadow:
        0 0 0 4px rgba(124, 92, 255, 0.10);
}


.form-field input[type="date"] {
    color-scheme: dark;

    cursor: pointer;
}


.form-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.8;
    cursor: pointer;
}


/* =========================================================
   DATE CARD
   ========================================================= */

.date-card {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        minmax(210px, 250px);

    align-items: center;

    gap: 16px;

    padding: 17px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.035);
}


.date-card-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 21px;
}


.date-card-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}


.date-card-content label {
    font-size: 15px;
    font-weight: 800;
}


.field-help {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   NAME DAY RESULT
   ========================================================= */

.name-day-result,
.name-day-live {
    margin-top: 18px;

    padding: 18px;

    border-radius: 22px;

    border: 1px solid rgba(124, 92, 255, 0.20);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.09),
            rgba(94, 139, 255, 0.035)
        );
}


.name-day-live[hidden] {
    display: none;
}


.name-day-live {
    overflow: hidden;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}


.name-day-live .result-header:last-child {
    margin-bottom: 0;
}


.name-day-live.is-empty {
    border-color: var(--border);

    background: rgba(255, 255, 255, 0.025);
}


.name-day-live.is-error {
    border-color: rgba(251, 113, 133, 0.24);

    background: rgba(251, 113, 133, 0.055);
}


.name-day-live.is-error .result-icon {
    background: rgba(251, 113, 133, 0.12);
}


.name-day-live .result-icon.is-loading {
    animation: name-day-pulse 1.1s ease-in-out infinite;
}


@keyframes name-day-pulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================
   COMMUNICATION ASSISTANT / WISHES
========================================================= */

.nav-emoji,
.mobile-nav-emoji {
    font-size: 20px;
    line-height: 1;
}

.today-celebrations {
    overflow: hidden;
}

.today-celebrations::before {
    content: "";

    position: absolute;
    inset: 0 auto 0 0;

    width: 4px;

    background: linear-gradient(
        180deg,
        var(--success),
        var(--primary)
    );
}

.today-celebrations-heading,
.communication-progress-copy,
.communication-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.today-celebrations-heading h2 {
    margin: 18px 0 0;

    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.05em;
}

.today-status-counts {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
}

.today-status-counts strong {
    color: #a99aff;
}

.today-status-counts span {
    color: #6ee7d4;
}

.dashboard-celebrant-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dashboard-celebrant-preview > a {
    min-width: 190px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.035);
}

.dashboard-celebrant-preview > a > span:last-child,
.dashboard-upcoming-item > span:nth-child(2) {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dashboard-celebrant-preview strong,
.dashboard-celebrant-preview small,
.dashboard-upcoming-item strong,
.dashboard-upcoming-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-celebrant-preview small,
.dashboard-upcoming-item small {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-more-celebrants {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.today-primary-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    margin-top: 22px;
}

.dashboard-no-celebrations {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;

    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dashboard-no-celebrations > span {
    font-size: 30px;
}

.dashboard-no-celebrations > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-no-celebrations small {
    color: var(--muted);
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin-top: 18px;
}

.dashboard-quick-card {
    min-width: 0;
    min-height: 86px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 21px;

    background: rgba(255, 255, 255, 0.035);
}

.dashboard-quick-card > span {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 15px;
    background: rgba(124, 92, 255, 0.13);

    font-size: 21px;
}

.dashboard-quick-card > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-quick-card small {
    color: var(--muted);
}

.dashboard-quick-card em {
    color: var(--muted);
    font-size: 20px;
    font-style: normal;
}

.dashboard-upcoming {
    margin-top: 32px;
    scroll-margin-top: 110px;
}

.communication-section-heading {
    margin-bottom: 15px;
}

.communication-section-heading h2 {
    margin: 0;

    font-size: 26px;
    letter-spacing: -0.035em;
}

.communication-section-heading > span {
    min-width: 42px;
    min-height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 14px;

    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);

    font-weight: 800;
}

.dashboard-upcoming-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-upcoming-item {
    min-width: 0;
    min-height: 74px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;

    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.03);
}

.dashboard-upcoming-item time {
    color: #b9abff;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-upcoming-empty strong,
.dashboard-upcoming-empty span {
    display: block;
}

.dashboard-upcoming-empty span {
    margin-top: 5px;
}

.celebration-avatar {
    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));

    font-size: 15px;
    font-weight: 850;
}

.wishes-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wishes-overview-card {
    min-height: 230px;

    display: flex;
    align-items: flex-start;
    flex-direction: column;

    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 25px;

    background: rgba(255, 255, 255, 0.035);
    box-shadow: var(--shadow);
}

.wishes-overview-card.today {
    border-color: rgba(45, 212, 191, 0.25);
    background: linear-gradient(
        145deg,
        rgba(45, 212, 191, 0.11),
        rgba(124, 92, 255, 0.09)
    );
}

.wishes-overview-card > span {
    color: var(--text-soft);
    font-weight: 750;
}

.wishes-overview-card strong {
    margin-top: 25px;

    font-size: 58px;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.wishes-overview-card small {
    margin-top: 7px;

    color: var(--muted);
}

.wishes-overview-card em {
    margin-top: auto;

    color: #b9abff;
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.wishes-guidance {
    margin-top: 18px;
}

.wishes-guidance h2 {
    margin: 18px 0 8px;
}

.wishes-guidance p {
    margin: 0;
    max-width: 760px;
}

.communication-progress {
    margin-bottom: 24px;
}

.communication-progress-copy strong,
.communication-progress-copy span {
    display: block;
}

.communication-progress-copy strong {
    font-size: 20px;
}

.communication-progress-copy > span {
    color: var(--muted);
    font-weight: 750;
}

.communication-progress-track {
    height: 10px;

    overflow: hidden;
    margin-top: 17px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.07);
}

.communication-progress-track span {
    width: 0;
    height: 100%;

    display: block;

    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--success));

    transition: width 0.35s ease;
}

.communication-progress.compact {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.all-complete-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(45, 212, 191, 0.30);
    border-radius: 20px;

    color: #a7f3e7;
    background: rgba(45, 212, 191, 0.10);
}

.all-complete-banner[hidden] {
    display: none;
}

.communication-section {
    margin-top: 30px;
}

.completed-section {
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.celebration-contact-list {
    display: grid;
    gap: 12px;
}

.celebration-contact-card {
    min-width: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;

    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.035);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        opacity 0.25s ease;
}

.celebration-contact-card.is-completed {
    border-color: rgba(45, 212, 191, 0.18);
    background: rgba(45, 212, 191, 0.045);
}

.celebration-contact-main {
    min-width: 0;

    display: grid;
    gap: 10px;
}

.celebration-contact-identity {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}

.celebration-contact-identity > span:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.celebration-contact-identity strong {
    overflow: hidden;

    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.celebration-contact-identity small {
    color: #f5cc76;
    font-size: 12px;
}

.celebration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    padding-left: 56px;
}

.celebration-tags span {
    padding: 4px 8px;
    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: 999px;

    color: #c7bcff;
    background: rgba(124, 92, 255, 0.09);

    font-size: 10px;
    font-weight: 750;
}

.communication-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    padding-left: 56px;

    color: #7ce9da;
    font-size: 12px;
}

.communication-status.is-completed {
    color: #d1fae5;
}

.communication-actions {
    width: min(100%, 390px);

    display: grid;
    gap: 10px;
}

.communication-launchers {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.communication-action-button,
.communication-confirm-button {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: 15px;

    color: var(--text);
    background: rgba(255, 255, 255, 0.045);

    font-weight: 800;
    cursor: pointer;
}

.communication-action-button.sms {
    color: #c7bcff;
    border-color: rgba(124, 92, 255, 0.32);
    background: rgba(124, 92, 255, 0.10);
}

.communication-action-button.call {
    color: #7ce9da;
    border-color: rgba(45, 212, 191, 0.30);
    background: rgba(45, 212, 191, 0.08);
}

.communication-action-button.email {
    color: #f5cc76;
    border-color: rgba(251, 191, 36, 0.26);
    background: rgba(251, 191, 36, 0.07);
}

.communication-confirm {
    display: grid;
    justify-items: end;
    gap: 8px;

    padding: 11px;
    border: 1px solid rgba(124, 92, 255, 0.24);
    border-radius: 16px;

    background: rgba(124, 92, 255, 0.08);
}

.communication-confirm[hidden] {
    display: none;
}

.communication-confirm > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: right;
}

.communication-confirm-button {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.communication-confirm-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.communication-confirm.is-error {
    border-color: rgba(251, 113, 133, 0.34);
    background: rgba(251, 113, 133, 0.07);
}

.communication-complete-note {
    justify-self: end;

    color: #7ce9da;
    font-size: 12px;
    font-weight: 750;
}

.communication-section-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--border-strong);
    border-radius: 18px;

    color: var(--muted);
    text-align: center;
}

.communication-section-empty[hidden] {
    display: none;
}

.wishes-empty-state .card-inner {
    display: grid;
    justify-items: center;
    gap: 10px;

    padding-block: 48px;
    text-align: center;
}

.wishes-empty-state h2,
.wishes-empty-state p {
    margin: 0;
}

.wishes-empty-state p {
    margin-bottom: 10px;
}

.wishes-empty-icon {
    font-size: 42px;
}

.assistant-shell {
    width: min(100%, 780px);
    margin-inline: auto;
}

.assistant-heading {
    margin-bottom: 20px;
    text-align: center;
}

.assistant-back {
    display: inline-flex;

    margin-bottom: 25px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.assistant-heading h1 {
    margin: 6px 0 0;

    font-size: clamp(30px, 6vw, 46px);
    letter-spacing: -0.05em;
}

.assistant-card-wrap .celebration-contact-card {
    grid-template-columns: 1fr;

    padding: 24px;
    border-radius: 27px;
    box-shadow: var(--shadow);
}

.assistant-card-wrap .celebration-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 21px;
}

.assistant-card-wrap .celebration-contact-identity strong {
    font-size: 24px;
}

.assistant-card-wrap .celebration-tags,
.assistant-card-wrap .communication-status {
    padding-left: 76px;
}

.assistant-card-wrap .communication-actions {
    width: 100%;
}

.assistant-card-wrap .communication-launchers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-card-wrap .communication-action-button.email:last-child {
    grid-column: 1 / -1;
}

.assistant-completed-message,
.assistant-finished {
    display: grid;
    justify-items: center;
    gap: 15px;

    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 22px;

    color: #a7f3e7;
    background: rgba(45, 212, 191, 0.08);
    text-align: center;
}

.assistant-completed-message[hidden] {
    display: none;
}

.assistant-finished {
    padding-block: 50px;
}

.assistant-finished > span {
    font-size: 48px;
}

.assistant-finished h1 {
    margin: 0;
}

.assistant-finished > strong {
    font-size: 26px;
}

@media (max-width: 920px) {
    .today-primary-actions,
    .wishes-overview-grid {
        grid-template-columns: 1fr;
    }

    .wishes-overview-card {
        min-height: 190px;
    }

    .celebration-contact-card {
        grid-template-columns: 1fr;
    }

    .communication-actions {
        width: 100%;
    }

    .communication-launchers {
        justify-content: flex-start;
    }

    .communication-complete-note {
        justify-self: start;
        padding-left: 56px;
    }
}

@media (max-width: 820px) {
    .mobile-bottom-nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .dashboard-upcoming-list,
    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .today-celebrations-heading,
    .communication-progress-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .today-status-counts {
        align-items: flex-start;
    }

    .dashboard-no-celebrations {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-no-celebrations .secondary-button {
        grid-column: 1 / -1;
    }

    .dashboard-celebrant-preview {
        display: grid;
    }

    .dashboard-celebrant-preview > a {
        min-width: 0;
    }

    .celebration-contact-card {
        padding: 14px;
        border-radius: 19px;
    }

    .celebration-contact-identity {
        align-items: flex-start;
    }

    .celebration-contact-identity small {
        white-space: normal;
    }

    .celebration-tags,
    .communication-status,
    .assistant-card-wrap .celebration-tags,
    .assistant-card-wrap .communication-status,
    .communication-complete-note {
        padding-left: 0;
    }

    .communication-launchers,
    .assistant-card-wrap .communication-launchers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
    }

    .communication-action-button {
        width: 100%;
        padding-inline: 10px;
    }

    .communication-confirm {
        justify-items: stretch;
    }

    .communication-confirm > span {
        text-align: left;
    }

    .communication-confirm-button {
        width: 100%;
    }

    .assistant-card-wrap .celebration-contact-card {
        padding: 17px;
        border-radius: 22px;
    }

    .assistant-card-wrap .celebration-avatar {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .assistant-card-wrap .celebration-contact-identity strong {
        font-size: 20px;
    }
}

/* =========================================================
   CONTACT BROWSER
========================================================= */

.contact-browser-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.contact-browser-add {
    flex: 0 0 auto;
}

.contact-browser-controls {
    position: relative;
    z-index: 2;

    display: grid;
    gap: 14px;

    margin-bottom: 18px;
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: rgba(18, 23, 40, 0.86);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.contact-search {
    min-width: 0;
    min-height: 58px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;

    padding: 0 10px 0 17px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.055);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.contact-search:focus-within {
    border-color: rgba(124, 92, 255, 0.72);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.contact-search-icon {
    font-size: 19px;
}

.contact-search input {
    width: 100%;
    min-width: 0;

    padding: 0;
    border: 0;
    outline: 0;

    color: var(--text);
    background: transparent;

    font: inherit;
    font-size: 16px;
}

.contact-search input::placeholder {
    color: var(--muted);
}

.contact-search-clear {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;
    border: 0;
    border-radius: 13px;

    color: var(--muted);
    background: rgba(255, 255, 255, 0.07);

    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.contact-search-clear[hidden] {
    display: none;
}

.contact-search-clear:hover,
.contact-search-clear:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
}

.contact-filter-chips {
    min-width: 0;

    display: flex;
    gap: 9px;

    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 1px 1px 5px;
    scrollbar-width: thin;
}

.contact-filter-chip {
    min-height: 44px;

    flex: 0 0 auto;

    padding: 0 17px;
    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);

    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.contact-filter-chip:hover,
.contact-filter-chip:focus-visible {
    color: var(--text);
    border-color: rgba(124, 92, 255, 0.42);
}

.contact-filter-chip.is-active {
    color: white;
    border-color: rgba(124, 92, 255, 0.62);
    background: linear-gradient(
        135deg,
        rgba(124, 92, 255, 0.84),
        rgba(83, 69, 218, 0.82)
    );
    box-shadow: 0 9px 22px rgba(124, 92, 255, 0.18);
}

.contact-browser-card .card-inner {
    min-width: 0;
}

.contact-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
}

.contact-results-heading .section-title {
    margin-bottom: 0;
}

.contact-results-status {
    max-width: 320px;

    color: var(--muted);

    font-size: 12px;
    text-align: right;
}

.contact-results {
    min-width: 0;

    transition: opacity 0.18s ease;
}

.contact-results.is-loading {
    opacity: 0.48;
    pointer-events: none;
}

.contact-card-grid {
    display: grid;
    gap: 12px;
}

.contact-list-main {
    min-height: 112px;
}

.contact-card-categories,
.contact-card-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;

    overflow: visible;

    white-space: normal;
}

.contact-list-copy .contact-card-category {
    display: inline-flex;
    align-items: center;

    overflow: visible;
    padding: 3px 8px;
    border: 1px solid rgba(124, 92, 255, 0.28);
    border-radius: 999px;

    color: #c7bcff;
    background: rgba(124, 92, 255, 0.10);

    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    white-space: normal;
}

.contact-list-copy .contact-card-details {
    color: var(--muted);
}

.contact-list-copy .contact-card-details > span {
    min-width: 0;
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-list-copy .contact-card-occasion {
    color: #f5cc76;
}

.contact-results-empty {
    display: grid;
    justify-items: center;
    gap: 10px;

    padding: 50px 12px;

    text-align: center;
}

.contact-results-empty h3,
.contact-results-empty p {
    margin: 0;
}

.contact-results-empty p {
    max-width: 560px;
    margin-bottom: 10px;
}

.contact-empty-icon {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    margin-bottom: 4px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.055);

    font-size: 24px;
}

@media (max-width: 720px) {
    .contact-browser-header {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-browser-add {
        align-self: flex-start;
    }

    .contact-browser-controls {
        padding: 13px;
        border-radius: 20px;
    }

    .contact-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .contact-results-status {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .contact-browser-controls {
        margin-inline: -2px;
    }

    .contact-search {
        min-height: 56px;
    }

    .contact-filter-chips {
        margin-inline: -3px;
        padding-inline: 3px;
    }

    .contact-filter-chip {
        min-height: 46px;
    }

    .contact-list-main {
        min-height: 106px;
        align-items: flex-start;
    }

    .contact-avatar {
        margin-top: 2px;
    }

    .contact-arrow {
        margin-top: 13px;
    }

    .contact-card-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


.result-header {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 16px;
}


.result-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: rgba(124, 92, 255, 0.16);

    font-size: 18px;
}


.result-header div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.result-header strong {
    font-size: 14px;
}


.result-header span {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.45;
}


.name-day-options {
    display: grid;

    gap: 10px;
}


.name-day-option {
    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 70px;

    padding: 12px 14px;

    border: 1px solid var(--border);

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.035);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.name-day-option:hover {
    transform: translateY(-1px);

    border-color: rgba(124, 92, 255, 0.40);

    background: rgba(255, 255, 255, 0.055);
}


.name-day-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.custom-radio {
    width: 22px;
    height: 22px;

    flex: 0 0 auto;

    border: 2px solid rgba(203, 213, 225, 0.30);

    border-radius: 50%;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.name-day-option input:checked + .custom-radio {
    border-color: var(--primary);

    box-shadow:
        inset 0 0 0 5px var(--bg),
        inset 0 0 0 9px var(--primary);
}


.name-day-option-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.name-day-option-content strong {
    font-size: 15px;
}


.name-day-option-content small {
    color: var(--muted);

    font-size: 11px;
}


.option-arrow {
    margin-left: auto;

    color: var(--muted);

    font-size: 19px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


.name-day-option:hover .option-arrow {
    transform: translateX(3px);

    color: var(--text);
}


.name-day-option:has(input:checked) {
    border-color: rgba(124, 92, 255, 0.60);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.16),
            rgba(94, 139, 255, 0.07)
        );

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.12);
}


.name-day-option:has(input:checked) .option-arrow {
    color: var(--primary-2);
}


/* =========================================================
   MANUAL DATE
   ========================================================= */

.manual-date {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.manual-date-toggle {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border: 1px solid transparent;
    border-radius: 16px;

    color: var(--text-soft);
    background: transparent;

    text-align: left;
    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.manual-date-toggle:hover,
.manual-date-toggle:focus-visible {
    color: var(--text);

    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);

    outline: none;
}


.manual-date-toggle-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.05);

    font-size: 15px;
}


.manual-date-toggle-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}


.manual-date-toggle-copy strong {
    font-size: 13px;
    font-weight: 700;
}


.manual-date-toggle-copy small {
    color: var(--muted);

    font-size: 12px;
}


.manual-date-toggle-arrow {
    margin-left: auto;

    color: var(--muted);

    transition: transform 0.2s ease;
}


.manual-date.is-open .manual-date-toggle-arrow {
    transform: rotate(180deg);
}


.manual-date-fields {
    padding: 14px 14px 0;
}


.manual-date-fields[hidden] {
    display: none;
}


.name-day-live.has-selection {
    border-color: rgba(45, 212, 191, 0.34);

    background:
        linear-gradient(
            135deg,
            rgba(45, 212, 191, 0.10),
            rgba(94, 139, 255, 0.035)
        );
}


.name-day-live.has-selection .result-icon {
    background: rgba(45, 212, 191, 0.14);
}


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

.form-actions {
    width: 100%;
    max-width: 900px;

    display: flex;

    justify-content: flex-end;

    gap: 12px;

    padding-top: 2px;
}


.save-contact-button {
    min-width: 220px;
}


.save-contact-button span {
    font-size: 18px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .contact-form {
        gap: 14px;
    }


    .form-card {
        max-width: none;
    }


    .form-section-heading {
        margin-bottom: 20px;
    }


    .form-icon {
        width: 44px;
        height: 44px;

        border-radius: 14px;
    }


    .date-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);

        gap: 12px;
    }


    .date-card input {
        grid-column: 1 / -1;
    }


    .name-day-result,
    .name-day-live {
        padding: 14px;
    }


    .form-actions {
        max-width: none;

        flex-direction: column-reverse;

        padding-bottom: 8px;
    }


    .save-contact-button {
        width: 100%;

        min-width: 0;
    }

}


@media (max-width: 520px) {

    .form-card .card-inner {
        padding: 17px;
    }


    .form-section-heading {
        gap: 11px;
    }


    .form-section-heading .section-title {
        font-size: 19px;
    }


    .form-field input {
        min-height: 58px;

        border-radius: 15px;

        font-size: 16px;
    }


    .date-card {
        padding: 13px;

        border-radius: 18px;
    }


    .date-card-icon {
        width: 43px;
        height: 43px;
    }


    .name-day-option {
        min-height: 66px;

        padding: 11px 12px;
    }


    .custom-radio {
        width: 21px;
        height: 21px;
    }


    .option-arrow {
        font-size: 17px;
    }

}

/* =========================================================
   CONTACT CATEGORIES
========================================================= */

.category-choices,
.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.category-choice {
    position: relative;

    min-height: 46px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 0 14px;

    border: 1px solid var(--border-strong);
    border-radius: 999px;

    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.035);

    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.category-choice:hover {
    transform: translateY(-1px);
    color: var(--text);
    border-color: rgba(124, 92, 255, 0.42);
}


.category-choice.is-locked {
    cursor: default;
}


.category-choice.is-locked:hover {
    transform: none;
}


.category-choice > span:last-child {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}


.category-choice small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}


.category-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.category-choice-check {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(203, 213, 225, 0.30);
    border-radius: 7px;

    color: transparent;

    font-size: 12px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.category-choice:has(input:checked) {
    color: white;
    border-color: rgba(124, 92, 255, 0.55);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.22),
            rgba(94, 139, 255, 0.11)
        );
}


.category-choice input:checked + .category-choice-check {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
}


.add-category-button {
    min-height: 42px;

    margin-top: 14px;
    padding: 0 4px;

    border: 0;

    color: #b9abff;
    background: transparent;

    font-weight: 750;

    cursor: pointer;
}


.add-category-button:hover,
.add-category-button:focus-visible {
    color: white;
    outline: none;
}


.category-creator {
    margin-top: 10px;
    padding: 16px;

    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: 18px;

    background: rgba(124, 92, 255, 0.06);
}


.category-creator[hidden] {
    display: none;
}


.category-creator > label {
    display: block;
    margin-bottom: 9px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 700;
}


.category-creator-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
}


.category-creator-row input {
    min-width: 0;
    min-height: 50px;

    padding: 0 15px;

    border: 1px solid var(--border-strong);
    border-radius: 14px;
    outline: none;

    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}


.category-creator-row input:focus {
    border-color: rgba(124, 92, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.10);
}


.category-save-button {
    min-height: 50px;
}


.category-save-button:disabled {
    opacity: 0.55;
    cursor: wait;
}


.category-cancel-button {
    min-height: 50px;

    padding: 0 14px;

    border: 0;

    color: var(--muted);
    background: transparent;

    cursor: pointer;
}


.category-creator-status {
    min-height: 18px;
    margin-top: 8px;

    color: var(--success);

    font-size: 12px;
}


.category-creator-status.is-error {
    color: var(--danger);
}


.category-chip {
    display: inline-flex;
    align-items: center;

    min-height: 32px;
    padding: 0 11px;

    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: 999px;

    color: #c8beff;
    background: rgba(124, 92, 255, 0.12);

    font-size: 12px;
    font-weight: 750;
}

/* =========================================================
   CONTACT PROFILE
========================================================= */

.contact-profile-hero .card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


.profile-main {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 20px;
}


.profile-avatar {
    width: 86px;
    height: 86px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 28px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    box-shadow: 0 16px 34px rgba(94, 139, 255, 0.26);

    font-size: 34px;
    font-weight: 850;
}


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


.profile-copy h1 {
    margin: 0 0 14px;

    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.05em;
    line-height: 1;
}


.profile-empty-inline {
    color: var(--muted);
    font-size: 13px;
}


.profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}


.profile-action-button {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 16px;

    color: #7ce9da;
    background: rgba(45, 212, 191, 0.075);

    font-weight: 750;
}


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

    margin-top: 20px;
}


.profile-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

    margin-top: 20px;
}


.profile-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;
}


.profile-card-heading > span {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: rgba(124, 92, 255, 0.13);
}


.profile-card-heading .page-eyebrow {
    margin-bottom: 3px;
}


.profile-card-heading .section-title {
    margin: 0;
}


.profile-data-list {
    display: grid;
    gap: 14px;
}


.profile-data-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);
}


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


.profile-data-row > span {
    color: var(--muted);
    font-size: 12px;
}


.profile-data-row > div {
    display: grid;
    gap: 5px;

    text-align: right;
    font-weight: 700;
}


.next-occasion-card .card-inner {
    height: 100%;

    display: flex;
    flex-direction: column;
}


.next-occasion-card .badge {
    align-self: flex-start;
}


.next-occasion-date {
    margin-top: 18px;

    font-size: 27px;
    letter-spacing: -0.035em;
}


.next-occasion-distance {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}


.profile-empty-state {
    padding: 18px;

    border: 1px dashed var(--border-strong);
    border-radius: 16px;

    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);

    font-size: 13px;
    line-height: 1.5;
}


.profile-timeline {
    display: grid;
    gap: 16px;
}


.profile-timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
}


.timeline-dot {
    width: 10px;
    height: 10px;

    margin-top: 5px;

    border-radius: 50%;

    background: var(--primary-2);
    box-shadow: 0 0 0 5px rgba(94, 139, 255, 0.10);
}


.profile-timeline-item > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}


.profile-timeline-item strong {
    font-size: 14px;
}


.profile-timeline-item span,
.profile-timeline-item p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}


@media (max-width: 1100px) {
    .contact-profile-hero .card-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-actions {
        justify-content: flex-start;
    }

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

    .next-occasion-card {
        grid-column: 1 / -1;
    }
}


@media (max-width: 820px) {
    .category-creator-row,
    .profile-grid,
    .profile-history-grid {
        grid-template-columns: 1fr;
    }

    .next-occasion-card {
        grid-column: auto;
    }

    .category-save-button,
    .category-cancel-button {
        width: 100%;
    }

    .profile-main {
        align-items: flex-start;
    }

    .profile-avatar {
        width: 68px;
        height: 68px;
        border-radius: 22px;
        font-size: 27px;
    }

    .profile-actions {
        width: 100%;
    }
}


@media (max-width: 520px) {
    .category-choice {
        min-height: 44px;
    }

    .category-creator {
        padding: 13px;
    }

    .profile-main {
        width: 100%;
        gap: 14px;
    }

    .profile-copy h1 {
        font-size: 30px;
    }

    .profile-actions > * {
        width: 100%;
    }

    .profile-data-row {
        flex-direction: column;
    }

    .profile-data-row > div {
        text-align: left;
    }
}

/* =========================================================
   APP DATE PICKER
========================================================= */

.app-date-control {
    position: relative;
    width: 100%;
}


.app-date-native {
    width: 100%;
    min-height: 58px;

    padding: 0 15px;

    border: 1px solid var(--border-strong);
    border-radius: 16px;

    color: var(--text);
    background: rgba(255, 255, 255, 0.045);

    color-scheme: dark;
}


.app-date-trigger {
    display: none;
}


.date-picker-ready .app-date-native {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;

    opacity: 0;
    pointer-events: none;
}


.date-picker-ready .app-date-trigger {
    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 0 15px;

    border: 1px solid var(--border-strong);
    border-radius: 16px;
    outline: none;

    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);

    text-align: left;
    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.date-picker-ready .app-date-trigger:hover,
.date-picker-ready .app-date-trigger:focus-visible {
    color: var(--text-soft);
    border-color: rgba(124, 92, 255, 0.58);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.10);
}


.date-picker-ready .app-date-trigger.has-value {
    color: var(--text);
}


.app-date-trigger-value {
    overflow: hidden;

    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.app-date-trigger-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: #b9abff;
    background: rgba(124, 92, 255, 0.12);

    font-size: 13px;
}


body.date-picker-open {
    overflow: hidden;
}


.app-date-picker[hidden],
.date-picker-calendar[hidden],
.date-picker-years[hidden] {
    display: none;
}


.app-date-picker {
    position: fixed;
    inset: 0;

    z-index: 400;

    display: grid;
    place-items: center;

    padding: 20px;
}


.date-picker-backdrop {
    position: absolute;
    inset: 0;

    border: 0;

    background: rgba(3, 7, 18, 0.74);

    cursor: default;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.date-picker-sheet {
    position: relative;

    width: min(100%, 480px);
    max-height: min(780px, calc(100vh - 40px));

    overflow: hidden;

    display: flex;
    flex-direction: column;

    padding: 22px;

    border: 1px solid var(--border-strong);
    border-radius: 28px;

    color: var(--text);
    background:
        linear-gradient(
            180deg,
            rgba(28, 39, 72, 0.99),
            rgba(15, 22, 43, 0.99)
        );

    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);

    animation: date-picker-enter 0.22s ease-out;
}


@keyframes date-picker-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

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


.date-picker-handle {
    display: none;
}


.date-picker-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}


.date-picker-eyebrow {
    color: var(--primary-2);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


.date-picker-topbar h2 {
    margin: 4px 0 0;

    font-size: 22px;
    letter-spacing: -0.035em;
}


.date-picker-close,
.date-picker-nav-button {
    border: 1px solid var(--border);

    display: grid;
    place-items: center;

    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);

    cursor: pointer;
}


.date-picker-close {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    border-radius: 14px;

    font-size: 25px;
}


.date-picker-navigation {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
}


.date-picker-nav-button {
    width: 48px;
    height: 48px;

    border-radius: 15px;

    font-size: 30px;
}


.date-picker-close:hover,
.date-picker-nav-button:hover {
    color: white;
    border-color: rgba(124, 92, 255, 0.38);
    background: rgba(124, 92, 255, 0.11);
}


.date-picker-period-button {
    min-width: 0;
    min-height: 52px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

    padding: 5px 12px;

    border: 0;
    border-radius: 15px;

    color: var(--text);
    background: transparent;

    cursor: pointer;
}


.date-picker-period-button:hover,
.date-picker-period-button[aria-expanded="true"] {
    background: rgba(124, 92, 255, 0.10);
}


.date-picker-period-button strong {
    font-size: 17px;
    letter-spacing: -0.025em;
}


.date-picker-period-button small {
    color: var(--muted);
    font-size: 10px;
}


.date-picker-calendar {
    margin-top: 14px;
}


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


.date-picker-weekdays {
    margin-bottom: 6px;
}


.date-picker-weekdays span {
    display: grid;
    place-items: center;

    min-height: 28px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}


.date-picker-day,
.date-picker-day-spacer {
    aspect-ratio: 1;
    min-height: 44px;
}


.date-picker-day {
    position: relative;

    border: 1px solid transparent;
    border-radius: 14px;

    color: var(--text-soft);
    background: transparent;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        transform 0.16s ease;
}


.date-picker-day:hover {
    transform: translateY(-1px);
    color: white;
    background: rgba(255, 255, 255, 0.055);
}


.date-picker-day.is-today {
    border-color: rgba(45, 212, 191, 0.48);
}


.date-picker-day.is-current-value::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 4px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--success);

    transform: translateX(-50%);
}


.date-picker-day.is-draft {
    color: white;
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    box-shadow: 0 8px 20px rgba(94, 139, 255, 0.25);
}


.date-picker-years {
    min-height: 270px;
    margin-top: 14px;

    overflow: hidden;
}


.date-picker-year-help {
    margin-bottom: 10px;

    color: var(--muted);

    font-size: 12px;
    text-align: center;
}


.date-picker-year-grid {
    max-height: 280px;

    overflow-y: auto;
    overscroll-behavior: contain;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;

    padding: 3px 4px 12px;

    scrollbar-width: thin;
    scrollbar-color: rgba(124, 92, 255, 0.45) transparent;
}


.date-picker-year {
    min-height: 46px;

    border: 1px solid var(--border);
    border-radius: 13px;

    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);

    font-size: 13px;
    font-weight: 750;

    cursor: pointer;
}


.date-picker-year:hover,
.date-picker-year.is-selected {
    color: white;
    border-color: rgba(124, 92, 255, 0.55);
    background: rgba(124, 92, 255, 0.17);
}


.date-picker-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 14px;
    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.03);
}


.date-picker-selection span {
    color: var(--muted);
    font-size: 11px;
}


.date-picker-selection strong {
    font-size: 13px;
    text-align: right;
}


.date-picker-actions {
    display: grid;
    grid-template-columns: auto auto minmax(130px, 1fr);
    gap: 8px;

    margin-top: 14px;
}


.date-picker-text-button {
    min-height: 50px;

    padding: 0 12px;

    border: 0;
    border-radius: 14px;

    color: var(--text-soft);
    background: transparent;

    font-size: 12px;
    font-weight: 750;

    cursor: pointer;
}


.date-picker-text-button:hover {
    background: rgba(255, 255, 255, 0.045);
}


.date-picker-text-button.is-danger {
    color: #fda4af;
}


.date-picker-confirm {
    min-height: 50px;
}


@media (max-width: 820px) {
    .date-card .app-date-control {
        grid-column: 1 / -1;
    }

    .app-date-picker {
        align-items: end;

        padding: 0;
    }

    .date-picker-sheet {
        width: 100%;
        max-height: min(92dvh, 820px);

        padding:
            10px
            17px
            calc(16px + var(--safe-bottom));

        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 28px 28px 0 0;

        animation: date-picker-sheet-enter 0.24s ease-out;
    }

    @keyframes date-picker-sheet-enter {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .date-picker-handle {
        width: 42px;
        height: 5px;

        display: block;

        margin: 0 auto 9px;

        border-radius: 999px;

        background: rgba(203, 213, 225, 0.25);
    }

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


@media (max-width: 520px) {
    .date-picker-sheet {
        padding-right: 13px;
        padding-left: 13px;
    }

    .date-picker-topbar h2 {
        font-size: 20px;
    }

    .date-picker-navigation {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        margin-top: 14px;
    }

    .date-picker-nav-button {
        width: 46px;
        height: 46px;
    }

    .date-picker-day,
    .date-picker-day-spacer {
        min-height: 41px;
    }

    .date-picker-day {
        border-radius: 13px;
    }

    .date-picker-selection {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .date-picker-selection strong {
        text-align: left;
    }

    .date-picker-actions {
        grid-template-columns: 1fr 1fr;
    }

    .date-picker-confirm {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

/* =========================================================
   CONTACT LIST ACTIONS
========================================================= */

.contact-list-card {
    min-width: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.03);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.contact-list-card:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 92, 255, 0.28);
    background: rgba(255, 255, 255, 0.045);
}


.contact-list-main {
    min-width: 0;
    min-height: 82px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 12px 14px;

    border-radius: 19px;
    outline: none;
}


.contact-list-main:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(124, 92, 255, 0.60);
}


.contact-avatar {
    width: 52px;
    height: 52px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    font-size: 18px;
    font-weight: 850;
}


.contact-list-copy {
    min-width: 0;

    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}


.contact-list-copy strong {
    overflow: hidden;

    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.contact-list-copy span {
    overflow: hidden;

    color: var(--muted);

    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.contact-arrow {
    flex: 0 0 auto;

    color: var(--muted);

    font-size: 20px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.contact-list-main:hover .contact-arrow {
    color: var(--text);
    transform: translateX(3px);
}


.contact-call-action {
    min-width: 104px;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-right: 14px;
    padding: 0 15px;

    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 16px;
    outline: none;

    color: #7ce9da;
    background: rgba(45, 212, 191, 0.08);

    font-size: 13px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.contact-call-action:hover,
.contact-call-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(45, 212, 191, 0.58);
    background: rgba(45, 212, 191, 0.14);
    box-shadow: 0 10px 24px rgba(45, 212, 191, 0.10);
}


@media (max-width: 520px) {
    .contact-list-card {
        grid-template-columns: 1fr;
    }

    .contact-list-main {
        min-height: 76px;
        padding: 11px 12px;
    }

    .contact-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .contact-call-action {
        width: auto;
        min-height: 50px;

        margin: 0 12px 12px;
    }
}

/* =========================================================
   MESSAGE TEMPLATES
========================================================= */

.template-page-header,
.template-form-header {
    align-items: flex-end;
}

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

.message-template-card {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.025)
    );
    box-shadow: var(--shadow);
}

.message-template-card.is-default {
    border-color: rgba(124, 92, 255, 0.22);
}

.message-template-heading {
    min-width: 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.message-template-heading > div {
    min-width: 0;
}

.message-template-heading h2 {
    margin: 8px 0 0;

    overflow-wrap: anywhere;

    font-size: 22px;
    letter-spacing: -0.035em;
}

.message-template-type {
    color: var(--muted);

    font-size: 12px;
    font-weight: 750;
}

.system-template-badge,
.custom-template-badge {
    min-height: 30px;

    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    padding: 0 10px;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.system-template-badge {
    color: #c7bcff;
    background: rgba(124, 92, 255, 0.12);
}

.custom-template-badge {
    color: #7ce9da;
    background: rgba(45, 212, 191, 0.09);
}

.message-template-card blockquote {
    flex: 1;

    margin: 0;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 18px;

    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);

    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.message-template-actions,
.message-template-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.message-template-actions form {
    margin: 0;
}

.template-delete-button {
    min-height: 52px;

    padding: 0 17px;
    border: 1px solid rgba(251, 113, 133, 0.28);
    border-radius: 16px;

    color: #fda4af;
    background: rgba(251, 113, 133, 0.07);

    font-weight: 750;
    cursor: pointer;
}

.template-alert,
.template-form-errors {
    display: grid;
    gap: 4px;

    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(251, 113, 133, 0.28);
    border-radius: 16px;

    color: #fecdd3;
    background: rgba(251, 113, 133, 0.07);

    font-size: 13px;
}

.message-template-form-card {
    max-width: 820px;
}

.message-template-form {
    display: grid;
    gap: 20px;
}

.template-message-input {
    min-height: 190px;
    padding-block: 15px;

    line-height: 1.6;
}

.template-type-readonly {
    min-height: 56px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;

    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.035);

    font-weight: 750;
}

.template-type-readonly small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.wish-message-preview {
    display: grid;
    gap: 8px;

    margin-left: 56px;
    padding: 13px 14px;
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: 17px;

    background: rgba(124, 92, 255, 0.07);
}

.wish-message-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wish-message-preview-heading > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wish-message-preview-heading button {
    min-height: 38px;

    padding: 0 10px;
    border: 0;
    border-radius: 11px;

    color: #c7bcff;
    background: rgba(124, 92, 255, 0.11);

    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.wish-message-preview > strong {
    font-size: 13px;
}

.wish-message-preview > p {
    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.wish-template-picker {
    display: grid;
    gap: 9px;

    margin-top: 3px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
}

.wish-template-picker[hidden] {
    display: none;
}

.wish-template-picker label {
    display: grid;
    gap: 6px;
}

.wish-template-picker label > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.wish-template-picker select {
    width: 100%;
    min-height: 48px;

    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;

    color: var(--text);
    background: var(--panel-solid);
}

.wish-template-picker > a {
    justify-self: start;

    min-height: 38px;
    display: inline-flex;
    align-items: center;

    color: #b9abff;
    font-size: 11px;
    font-weight: 750;
}

@media (max-width: 900px) {
    .template-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .mobile-bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mobile-nav-item {
        min-width: 0;
        font-size: 10px;
    }
}

@media (max-width: 620px) {
    .template-page-header,
    .template-form-header {
        align-items: stretch;
    }

    .message-template-card {
        padding: 17px;
        border-radius: 21px;
    }

    .message-template-heading {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .message-template-actions {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .message-template-actions .secondary-button,
    .message-template-actions form,
    .template-delete-button {
        width: 100%;
    }

    .message-template-form-actions {
        display: grid;
    }

    .wish-message-preview,
    .assistant-card-wrap .wish-message-preview {
        margin-left: 0;
    }
}

@media (max-width: 390px) {
    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        padding-inline: 4px;
    }

    .mobile-nav-item {
        font-size: 9px;
    }
}

/* Dashboard and Wishes only: preserve the layout of unrelated pages. */
.wishes-workflow .mobile-fab { display: none; }
.wishes-workflow [hidden] { display: none !important; }
.wishes-workflow .app-content { min-width: 0; }
.wishes-workflow .assistant-back { min-height: 44px; align-items: center; }
.wishes-workflow .workflow-list-link { display: flex; margin-top: 14px; }
.wishes-workflow .dashboard-group-label { margin: 20px 0 0; font-size: 16px; }
.wishes-workflow .dashboard-celebrant-preview { margin-top: 8px; padding-top: 0; border-top: 0; }
.wishes-workflow .communication-progress { margin-top: 18px; }
.wishes-workflow .today-celebrations .communication-progress-copy > span { display: none; }
.wishes-workflow .communication-section-heading h2 { font-size: 21px; }
.wishes-workflow .wish-template-picker { padding-top: 0; border-top: 0; }
.wishes-workflow .wish-template-picker select { min-width: 0; max-width: 100%; font-size: 16px; }
.wishes-workflow .wish-template-picker label > span { font-size: 13px; }
.wishes-workflow .celebration-contact-identity strong { white-space: normal; overflow-wrap: anywhere; }
.wishes-workflow .communication-action-button.is-preferred { order: -1; border-width: 2px; background: rgba(124, 92, 255, 0.22); }
.wishes-workflow .assistant-completed-message .primary-button { width: 100%; white-space: normal; text-align: center; }
.wishes-workflow .communication-confirm { max-width: 100%; }
.wishes-workflow :is(.communication-confirm, .mass-delivery-options) .secondary-button { min-height: 48px; }
.wishes-workflow :is(.primary-button, .secondary-button, .communication-confirm-button) { white-space: normal; text-align: center; }
.wishes-workflow :is(.primary-button, .secondary-button)[aria-disabled="true"],
.wishes-workflow button:disabled { opacity: 0.55; cursor: not-allowed; }
.wishes-workflow :is(a, button, select, input):focus-visible { outline: 2px solid #c7bcff; outline-offset: 3px; }
.mass-wish-shell { overflow-wrap: anywhere; }
.mass-wish-shell .wish-message-preview { margin-left: 0; }
.mass-occasion-groups, .mass-delivery-options { display: grid; gap: 12px; }
.mass-occasion-groups [aria-current="page"] { border-color: #c7bcff; }
.mass-delivery-options { margin-top: 24px; }
.mass-delivery-options :is(h2, p) { margin: 0; }
.mass-warning { padding: 14px; border: 1px solid rgba(245, 204, 118, 0.3); border-radius: 14px; color: #f5cc76; font-size: 13px; line-height: 1.6; }
.mass-recipient { grid-template-columns: minmax(0, 1fr); }
.mass-recipient-choice { min-height: 48px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.mass-recipient-choice input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--primary); }
.mass-recipient-choice span { min-width: 0; display: grid; gap: 4px; }
.mass-recipient-choice small { color: var(--muted); }
.mass-recipient .communication-status { padding-left: 0; }
@media (max-width: 620px) {
    .wishes-workflow .dashboard-header .page-title { font-size: 28px; }
    .wishes-workflow .dashboard-header .page-subtitle { font-size: 13px; margin-top: 8px; }
    .wishes-workflow .today-celebrations .communication-progress { padding: 14px; }
    .wishes-workflow .today-primary-actions { grid-template-columns: minmax(0, 1fr); }
    .wishes-workflow .today-primary-actions a { min-height: 52px; }
    .wishes-workflow .assistant-card-wrap .communication-action-button.is-preferred { grid-column: 1 / -1; min-height: 56px; }
    .wishes-workflow .communication-confirm { justify-items: stretch; }
    .wishes-workflow .communication-confirm button { width: 100%; }
    .wishes-workflow .all-complete-banner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Celebrations center: compact navigation, scoped away from the Dashboard. */
.wishes-center .center-header { margin-bottom: 18px; }
.wishes-center .center-header h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.wishes-center .center-header p { margin: 0; font-size: 14px; line-height: 1.5; }
.wishes-center .wishes-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wishes-center .wishes-overview-card { min-width: 0; min-height: 100px; gap: 12px; padding: 16px; border-radius: 18px; }
.wishes-center .wishes-overview-card[aria-current="page"] { border-color: #c7bcff; }
.wishes-center .wishes-overview-card > span { font-size: 14px; }
.wishes-center .center-overview-count { display: flex; align-items: baseline; gap: 6px; }
.wishes-center .wishes-overview-card strong { margin: 0; font-size: 26px; line-height: 1; }
.wishes-center .wishes-overview-card small { margin: 0; font-size: 12px; }
.wishes-center .center-controls { margin: 18px 0; }
.wishes-center .center-controls h2 { margin: 0 0 16px; font-size: 18px; }
.wishes-center .center-day-navigation { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: end; gap: 8px; }
.wishes-center .center-day-navigation > a { min-height: 48px; padding: 0; font-size: 20px; }
.wishes-center .center-date-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.wishes-center .center-controls label { min-width: 0; display: grid; gap: 7px; }
.wishes-center .center-controls label > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.wishes-center .center-controls :is(input[type="date"], select) { min-width: 0; width: 100%; max-width: 100%; min-height: 48px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text); background: var(--panel-solid); font: inherit; font-size: 16px; color-scheme: dark; }
.wishes-center .center-controls input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.wishes-center .center-controls button { min-height: 48px; padding-inline: 12px; }
.wishes-center .center-filter-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 16px; }
.wishes-center .center-results { scroll-margin-top: 90px; }
.wishes-center .center-today { margin-bottom: 22px; }
.wishes-center .center-today h2 { margin: 0 0 12px; font-size: 20px; }
.wishes-center .center-today-counts { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
.wishes-center .center-today .communication-progress { padding: 0; border: 0; margin: 14px 0; background: none; }
.wishes-center .center-today .communication-progress-copy { display: none; }
.wishes-center .center-today .communication-progress-track { margin: 0; }
.wishes-center .center-action-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; }
.wishes-center .center-results-heading { margin-bottom: 16px; }
.wishes-center .center-results-heading h2 { margin: 0 0 6px; font-size: 21px; }
.wishes-center .center-results-heading p { margin: 0; font-size: 13px; }
.wishes-center .center-date-groups { display: grid; gap: 12px; }
.wishes-center .center-date-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; }
.wishes-center .center-date-group > div { min-width: 0; display: grid; gap: 8px; }
.wishes-center .center-date-group time { font-size: 17px; font-weight: 750; }
.wishes-center .center-date-group strong { font-size: 14px; }
.wishes-center .center-date-group :is(small, .center-occasion-types) { font-size: 12px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.wishes-center .center-date-group .center-occasion-types { color: #f5cc76; }
.wishes-center .center-availability { margin: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.wishes-center .communication-section { margin-top: 20px; }
@media (max-width: 1100px) {
    .wishes-center .wishes-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .wishes-center .wishes-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .wishes-center .wishes-overview-card { min-height: 64px; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 10px; }
    .wishes-center .center-overview-count { flex: 0 0 auto; }
    .wishes-center .center-controls .card-inner { padding: 14px; }
    .wishes-center .center-day-navigation { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: start; }
    .wishes-center .center-day-navigation > a { margin-top: 24px; }
    .wishes-center .center-date-form { grid-template-columns: minmax(0, 1fr); }
    .wishes-center .center-filter-form { grid-template-columns: minmax(0, 1fr); }
    .wishes-center .center-today h2 { font-size: 19px; }
    .wishes-center .center-date-group { padding: 15px; }
}
