/* ============================================================
   Dadapp — styles.css
   Design: Option C — dark navy / premium (Whoop-inspired)
   Updated: 2026-07-10
   ============================================================ */

/* --- Palette ----------------------------------------------- */
/* Light is the default appearance for new visitors. Dark applies
   automatically when the OS is set to dark AND the dad hasn't made
   an explicit choice with the Me-tab toggle (which sets data-theme
   and always wins over the system preference). */
:root {
    --navy-page:          #eef1f7;
    --navy-card:          #ffffff;
    --navy-border:        #e2e8f2;
    --navy-border-strong: #cdd8ea;
    --blue-accent:        #185fa5;
    --blue-accent-hover:  #1a70c0;
    --blue-badge-bg:      rgba(24, 95, 165, 0.10);
    --blue-badge-text:    #12579f;
    --text-primary:       #0d1b2e;
    --text-secondary:     #52678a;
    --text-muted:         #93a3bd;
    --radius-card:        12px;
    --radius-btn:         8px;
    --radius-input:       8px;
    color-scheme: light;
}

/* --- Dark theme ---------------------------------------------
   Applies when the OS prefers dark and no explicit choice is stored. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --navy-page:          #0d1b2e;
        --navy-card:          #152338;
        --navy-border:        #1e3352;
        --navy-border-strong: #2a4a70;
        --blue-badge-bg:      rgba(24, 95, 165, 0.18);
        --blue-badge-text:    #6ab0f5;
        --text-primary:       #ffffff;
        --text-secondary:     #8aa4cc;
        --text-muted:         #4a6685;
        color-scheme: dark;
    }
}

/* --- Explicit theme overrides (Me-tab toggle) ---------------
   Variable NAMES stay the same so every existing var(--navy-*)
   reference flips automatically. */
:root[data-theme="dark"] {
    --navy-page:          #0d1b2e;
    --navy-card:          #152338;
    --navy-border:        #1e3352;
    --navy-border-strong: #2a4a70;
    --blue-badge-bg:      rgba(24, 95, 165, 0.18);
    --blue-badge-text:    #6ab0f5;
    --text-primary:       #ffffff;
    --text-secondary:     #8aa4cc;
    --text-muted:         #4a6685;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --navy-page:          #eef1f7;
    --navy-card:          #ffffff;
    --navy-border:        #e2e8f2;
    --navy-border-strong: #cdd8ea;
    --blue-badge-bg:      rgba(24, 95, 165, 0.10);
    --blue-badge-text:    #12579f;
    --text-primary:       #0d1b2e;
    --text-secondary:     #52678a;
    --text-muted:         #93a3bd;
    color-scheme: light;
}

/* --- Theme toggle (Me section) ----------------------------- */
.theme-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.theme-toggle-box .theme-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.theme-toggle-box .theme-toggle-icon {
    font-size: 20px;
}
#theme-toggle.theme-switch {
    display: block;
    position: relative;
    width: 52px;
    height: 30px;
    min-height: 0;
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    background: var(--navy-border-strong);
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background 0.2s ease;
}
.theme-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}
.theme-switch[aria-checked="true"] {
    background: var(--blue-accent);
}
.theme-switch[aria-checked="true"]::after {
    transform: translateX(22px);
}

/* --- Reset ------------------------------------------------- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    background: var(--navy-page);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- App header -------------------------------------------- */
.app-header {
    background: var(--navy-card);
    border-bottom: 1px solid var(--navy-border);
    padding: 28px 20px 22px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.header-sub {
    color: var(--blue-badge-text);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.04em;
}

/* --- Content padding --------------------------------------- */
#logged-out-view,
#logged-in-view {
    padding: 20px 16px 48px;
}

/* --- Typography -------------------------------------------- */
h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-primary);
}

h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px;
}

h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 12px;
}

/* --- Cards ------------------------------------------------- */
.auth-box {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 14px;
}

/* --- Labels ----------------------------------------------- */
label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    margin-top: 4px;
}

/* --- Inputs ----------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="file"],
input[type="tel"],
textarea,
select {
    width: 100%;
    background: var(--navy-page);
    border: 1px solid var(--navy-border-strong);
    border-radius: var(--radius-input);
    padding: 12px 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue-accent);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input[type="file"] {
    color: var(--text-secondary);
    padding: 10px 14px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--blue-accent);
}

/* --- Buttons ----------------------------------------------- */
button {
    display: inline-block;
    background: var(--blue-accent);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-btn);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    min-height: 48px;
    transition: background 0.15s, transform 0.1s;
}

button:hover {
    background: var(--blue-accent-hover);
}

button:active {
    transform: scale(0.97);
}

.auth-box > button,
.auth-box button[id],
.add-form > button {
    width: 100%;
    margin-top: 4px;
}

#logout-button {
    width: auto;
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    font-size: 13px;
    min-height: 38px;
    padding: 8px 16px;
    margin-bottom: 16px;
}

#logout-button:hover {
    border-color: var(--blue-accent);
    color: var(--text-primary);
    background: transparent;
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    font-size: 13px;
    min-height: 38px;
    padding: 8px 16px;
    margin-bottom: 12px;
    width: auto;
}

.toggle-btn:hover {
    border-color: var(--blue-accent);
    color: var(--text-primary);
    background: transparent;
}

/* --- Status ----------------------------------------------- */
.status {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    min-height: 16px;
}

/* --- This week banner -------------------------------------- */
#this-week > div {
    background: var(--blue-accent) !important;
    border-radius: var(--radius-card) !important;
    margin-bottom: 14px !important;
}

/* --- Weekly content ---------------------------------------- */
#weekly-content {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

#weekly-content strong {
    color: var(--text-primary);
}

#weekly-content div {
    color: var(--text-secondary);
}

/* --- Milestones -------------------------------------------- */
.milestone {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    margin-bottom: 10px;
}

.milestone h2 {
    font-size: 16px;
    margin: 6px 0 6px;
    color: var(--text-primary);
}

.milestone p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.milestone.current {
    border: 1px solid var(--blue-accent);
    background: rgba(24, 95, 165, 0.1);
}

.week-badge {
    display: inline-block;
    background: var(--blue-badge-bg);
    color: var(--blue-badge-text);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.current-tag {
    display: inline-block;
    background: var(--blue-accent);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    margin-left: 6px;
}

/* --- Add milestone form ------------------------------------ */
.add-form {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 14px;
    display: none;
}

.add-form h2 {
    font-size: 16px;
    margin: 0 0 12px;
}

/* --- Notes ------------------------------------------------- */
#notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#notes-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--navy-border);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#notes-list li:last-child {
    border-bottom: none;
}

#notes-list button {
    width: auto;
    min-width: auto;
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-muted);
    padding: 4px 10px;
    font-size: 12px;
    min-height: 30px;
    flex-shrink: 0;
}

/* --- Photos ----------------------------------------------- */
#photos-display img,
#journey-display img {
    border-radius: 8px;
    border: 1px solid var(--navy-border);
}

/* --- Journey ---------------------------------------------- */
#journey-display h3 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--navy-border);
}

#journey-display p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Name ideas ------------------------------------------- */
#name-ideas-list h4 {
    color: var(--text-secondary);
    font-size: 13px;
}

#name-ideas-list div {
    color: var(--text-primary);
    font-size: 14px;
}

/* --- Landing page ----------------------------------------- */
.landing-hero {
    text-align: center;
    padding: 8px 0 24px;
}

.landing-tagline {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 14px;
    line-height: 1.4;
}

.landing-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 420px;
}

.landing-features {
    text-align: left;
    max-width: 420px;
    margin: 0 auto 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(24, 95, 165, 0.1);
    border: 1px solid rgba(24, 95, 165, 0.3);
    border-left: 3px solid var(--blue-accent);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
}

.feature-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.landing-video-placeholder {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    height: 180px;
    max-width: 420px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s;
}

.landing-video-placeholder:hover {
    border-color: var(--blue-accent);
}

.video-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.video-icon {
    font-size: 28px;
    color: var(--blue-accent);
}

.video-label {
    font-size: 13px;
    color: var(--text-muted);
}

.landing-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.landing-divider::before,
.landing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--navy-border);
}

/* --- Mobile ----------------------------------------------- */
@media (max-width: 480px) {
    .app-header {
        padding: 22px 16px 18px;
    }

    .app-header h1 {
        font-size: 36px;
    }

    #logged-out-view,
    #logged-in-view {
        padding: 16px 12px 60px;
    }

    .auth-box {
        padding: 16px;
        margin-bottom: 12px;
    }

    button {
        min-height: 50px;
    }

    .milestone {
        padding: 14px 16px;
    }

    .landing-tagline {
        font-size: 18px;
    }
}

/* --- Bottom navigation ------------------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    display: flex;
    background: var(--navy-card);
    border-top: 1px solid var(--navy-border);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 50;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    min-height: auto;
    color: var(--text-muted);
    transition: color 0.15s;
    border-radius: 0;
}

.nav-item:hover {
    background: none;
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--blue-accent);
}

.nav-item:active {
    transform: none;
}

.nav-icon {
    font-size: 20px;
    line-height: 1;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* App sections — only active one shows */
.app-section {
    display: none;
}

/* Extra bottom padding so nav doesn't cover content */
#logged-in-view {
    padding-bottom: 90px;
}

/* Logout button in Me section */
#section-me #logout-button {
    width: 100%;
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    margin-top: 4px;
}

#section-me #logout-button:hover {
    border-color: var(--blue-accent);
    color: var(--text-primary);
    background: transparent;
}

/* Terms link + "Delete my account" — both deliberately quiet, no border,
   so the destructive action never reads as a primary action */
.account-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}

.account-footer-links a,
.account-footer-links button#delete-account-link {
    display: inline-block;
    width: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    min-height: auto;
    padding: 4px;
    margin: 0;
    cursor: pointer;
}

.account-footer-links a:hover,
.account-footer-links button#delete-account-link:hover {
    color: var(--text-secondary);
    background: none;
}

/* Post-deletion confirmation banner on the logged-out landing page */
.account-deleted-banner {
    background: var(--blue-badge-bg);
    color: var(--blue-badge-text);
    border: 1px solid var(--blue-accent);
    border-radius: var(--radius-card);
    padding: 14px 16px;
    margin: 12px;
    font-size: 14px;
    text-align: center;
}

/* --- Delete-account confirmation modal ---------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 300;
}

.modal-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 22px;
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.modal-card h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.modal-card .warning-box {
    background: rgba(198, 40, 40, 0.08);
    border-left: 3px solid #c62828;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 10px 0;
}

.modal-card .warning-box p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.modal-actions button {
    flex: 1;
    width: auto;
    margin-top: 0;
}

.modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
}

.modal-btn-secondary:hover {
    border-color: var(--blue-accent);
    color: var(--text-primary);
    background: transparent;
}

.modal-btn-danger {
    background: #c62828;
    color: white;
}

.modal-btn-danger:hover {
    background: #b71c1c;
}

.modal-btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* --- Sticky CTA bar (landing page) ------------------------ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--navy-page) 70%, transparent);
    z-index: 100;
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius-btn);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    transition: opacity 0.15s;
}

.sticky-login {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
}

.sticky-signup {
    background: var(--blue-accent);
    color: white;
}

#logged-out-view {
    padding-bottom: 100px;
}
/* Fix anchor scroll offset for sticky header */
#login-form,
#signup-form {
    scroll-margin-top: 100px;
}
/* --- Hero card v2 (Home) — side-by-side Dad + Baby cards ----- */
.hero-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    align-items: stretch;
}

.hero-card-half {
    background: var(--navy-card);
    border: 1px solid var(--navy-border-strong);
    border-radius: var(--radius-card);
    padding: 14px;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-card-half:hover {
    border-color: var(--blue-accent);
}

.hero-half-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-half-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--blue-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.hero-half-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-half-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-half-week {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-badge-text);
}

.hero-half-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.hero-stats-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(24, 95, 165, 0.1);
    border: 1px solid var(--blue-accent);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--blue-badge-text);
    cursor: pointer;
}

.hero-next-nudge {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.hero-next-nudge:hover {
    color: var(--text-secondary);
}

/* --- Activity pill (full width) ---------------------------- */
#week-activity {
    width: 100%;
    background: rgba(24, 95, 165, 0.08);
    border: 1px solid var(--blue-accent);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0 16px;
    box-sizing: border-box;
}

.week-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.week-activity-label,
.week-activity-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-badge-text);
}

.week-activity-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.week-activity-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.week-activity-day-letter {
    font-size: 9px;
    font-weight: 600;
    color: var(--blue-badge-text);
}

.week-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy-border-strong);
    transition: background 0.2s;
}

.week-activity-dot.active {
    background: var(--blue-accent);
}

.week-activity-dot.future {
    background: var(--navy-border);
    opacity: 0.4;
}

.week-activity-dot.today {
    outline: 2px solid var(--blue-accent);
    outline-offset: 2px;
}

.week-activity-icons {
    font-size: 11px;
    min-height: 14px;
    line-height: 1;
}

/* --- Home dashboard cards --------------------------------- */
.dashboard-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border-strong);
    border-radius: var(--radius-card);
    padding: 16px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.dashboard-card:hover {
    border-color: var(--blue-accent);
}

.dashboard-card:active {
    border-color: var(--blue-accent);
}

.dash-card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.dash-card-main {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.dash-card-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dash-card-arrow {
    display: block;
    text-align: right;
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
}

/* --- Sprint 6: Home Feed mode ------------------------------------------
   Deliberately NOT a smaller clone of .dashboard-card — no box border, no
   card background. A continuous scroll separated by a divider line (like a
   real feed/timeline), generous vertical spacing, and always a big visual
   up top (real photo, or a large emoji placeholder if there's no photo yet)
   so it reads as image-forward even for items without a real photo. */
#home-feed-container {
    padding-top: 4px;
}

/* Quick-add row pinned above the timeline — same icon-over-label shape as the
   bottom nav, so it reads as "the app's other row of tabs" rather than a new
   pattern. Inline expand (max-height), not a modal — matches the accordion
   pattern used everywhere else in this app. */
.home-feed-composer {
    border-bottom: 1px solid var(--navy-border);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.home-feed-composer-buttons {
    display: flex;
    gap: 2px;
}

.home-feed-composer-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    padding: 10px 2px;
    min-height: auto;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.home-feed-composer-btn:hover {
    background: var(--navy-card);
}

.home-feed-composer-btn.active {
    color: var(--blue-accent);
    background: var(--navy-card);
}

.home-feed-composer-btn-icon {
    font-size: 20px;
    line-height: 1;
}

.home-feed-composer-form-slot {
    overflow: hidden;
    max-height: 0px;
    transition: max-height 0.3s ease;
}

.home-feed-composer-form {
    padding: 14px 2px 4px;
}

.home-feed-composer-btn-row {
    display: flex;
    gap: 8px;
}

.home-feed-composer-btn-row button {
    flex: 1;
    min-height: 44px;
    font-size: 14px;
}

.home-feed-composer-cancel {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-muted);
}

.home-feed-composer-cancel:hover {
    background: var(--navy-card);
}

.home-feed-composer-status {
    font-size: 13px;
    color: var(--text-secondary);
    margin: -4px 0 8px;
    min-height: 16px;
}

.home-feed-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--navy-border);
    border-radius: 0;
    padding: 20px 20px 24px;
    margin-bottom: 0;
    cursor: pointer;
    transition: background 0.15s;
}

.home-feed-item:last-child {
    border-bottom: none;
}

.home-feed-item:hover {
    background: var(--navy-card);
}

/* height:auto (not a fixed height) so photos display at their own aspect ratio —
   a fixed height + object-fit:cover was cropping portrait phone photos into a
   landscape box. max-height only guards against an extreme panorama; object-fit:
   contain there letterboxes instead of stretching or cropping further. */
.home-feed-item-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    background: var(--navy-card);
    border-radius: 12px;
    margin-bottom: 14px;
    display: block;
}

.home-feed-item-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    margin-bottom: 14px;
}

.home-feed-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.home-feed-item-date {
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    flex-shrink: 0;
}

/* week-badge (shared with Journey/Milestones) sits between the header and the
   content — give it the same bottom gap those already use. */
.home-feed-item .week-badge {
    margin-bottom: 10px;
}

/* Short bold headline — an event or milestone NAME. Not used for note/letter
   body text (see .home-feed-item-sub) — a whole paragraph at 22px bold read as
   oversized once notes started showing their full content instead of a snippet. */
.home-feed-item-main {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.35;
}

/* The actual content to read — a full note, a letter preview, an event's date
   and details. pre-wrap preserves line breaks a dad actually typed. */
.home-feed-item-sub {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Community feed card — holds its own tappable links, not one big card-tap */
.home-community-card {
    cursor: default;
}

.home-community-card:hover {
    border-color: var(--navy-border-strong);
}

.letter-cue {
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius-card);
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #c9a84c;
    cursor: pointer;
    line-height: 1.4;
}

.dash-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--navy-border);
    font-size: 13px;
}

.dash-list-row:last-of-type {
    border-bottom: none;
}

.dash-list-name {
    color: var(--text-secondary);
}

.dash-list-count {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.dash-list-done {
    color: var(--blue-badge-text);
}
#weekly-content:empty {
    display: none;
}
/* --- Landmark milestones ---------------------------------- */
.milestone.landmark {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.06);
}

.milestone.landmark .week-badge {
    background: rgba(201, 168, 76, 0.15) !important;
    color: #c9a84c !important;
}
/* --- Checklists ------------------------------------------- */
.checklist-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border-strong);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.checklist-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.checklist-delete-list-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    min-height: auto;
    padding: 4px 8px;
    cursor: pointer;
}

.checklist-delete-list-btn:hover {
    color: #e05555;
    background: transparent;
}

.checklist-progress {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.checklist-bar-wrap {
    height: 3px;
    background: var(--navy-border-strong);
    border-radius: 2px;
    margin-bottom: 14px;
    overflow: hidden;
}

.checklist-bar-fill {
    height: 100%;
    background: var(--blue-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.checklist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--navy-border);
}

.checklist-row:last-of-type {
    border-bottom: none;
}

.checklist-row-done {
    opacity: 0.5;
}

.checklist-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--blue-accent);
}

.checklist-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.checklist-label-done {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-item-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    min-height: auto;
    padding: 4px 6px;
    opacity: 0;
    transition: opacity 0.15s;
    cursor: pointer;
}

.checklist-row:hover .checklist-item-delete {
    opacity: 1;
}

.checklist-item-delete:hover {
    color: #e05555;
    background: transparent;
}

.checklist-divider {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 0 6px;
}

.checklist-add-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--navy-border);
    align-items: center;
}

.checklist-add-input {
    flex: 1;
    margin-bottom: 0 !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.checklist-add-btn {
    background: var(--blue-accent);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 500;
    min-height: auto;
    white-space: nowrap;
}

.checklist-reset-btn {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    min-height: auto;
    white-space: nowrap;
}

.checklist-reset-btn:hover {
    border-color: var(--blue-accent);
    color: var(--text-secondary);
    background: transparent;
}

.checklist-new-list {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 18px 20px;
}
.dash-card-arrow {
    pointer-events: none;
}
.dash-list-row {
    transition: background 0.15s, padding 0.15s;
}

.dash-list-row:hover {
    background: rgba(24, 95, 165, 0.12);
    border-radius: 6px;
    padding: 5px 6px;
    margin: 0 -6px;
}
/* --- Journey carousel ------------------------------------ */
.journey-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 8px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.journey-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    cursor: pointer;
    width: 90px;
}
.carousel-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--navy-border);
    display: block;
    transition: border-color 0.15s;
}

.carousel-item:hover .carousel-photo {
    border-color: var(--blue-accent);
}

.carousel-meta {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.carousel-week {
    font-size: 11px;
    color: var(--blue-badge-text);
    font-weight: 500;
}

.carousel-caption {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.dashboard-card {
    overflow: hidden;
}
/* --- Paternity leave ------------------------------------ */
.paternity-banner {
    background: rgba(24, 95, 165, 0.1);
    border: 1px solid var(--blue-accent);
    border-left: 3px solid var(--blue-accent);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.paternity-banner-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.paternity-banner-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.paternity-banner-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.paternity-checklist-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.paternity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--navy-border);
    font-size: 14px;
}

.paternity-row:last-of-type {
    border-bottom: none;
}

.paternity-row-done {
    opacity: 0.5;
}

.paternity-link {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--blue-badge-text);
    text-decoration: none;
    padding-top: 14px;
    border-top: 1px solid var(--navy-border);
}

.paternity-link:hover {
    color: var(--text-primary);
}
/* --- Diary / Notes --------------------------------------- */
.note-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.15s;
}

.note-card:hover {
    border-color: var(--navy-border-strong);
}

.note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.note-date {
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
}

.note-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    min-height: auto;
    padding: 2px 6px;
    opacity: 0;
    transition: opacity 0.15s;
    cursor: pointer;
}

.note-card:hover .note-delete-btn {
    opacity: 1;
}

.note-delete-btn:hover {
    color: #e05555;
    background: transparent;
}

.note-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}
/* --- Appointments --------------------------------------- */
.apt-card {
    border-radius: var(--radius-card);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.apt-guidance {
    background: var(--navy-card);
    border: 1px dashed var(--navy-border-strong);
}

.apt-guidance:hover {
    border-color: var(--blue-accent);
}

.apt-confirmed {
    background: var(--navy-card);
    border: 1px solid var(--blue-accent);
}

/* BUG FIX (30 July regression pass): opacity:0.5 on the whole card dimmed the
   Remove button and its already-subtle text (transparent bg, muted colour,
   12px underline by design) to near-invisibility along with the content —
   "hard to read, no visible Remove option" was this compounding. Mute the
   content colours directly instead, so the past styling still reads as
   de-emphasised but Remove stays at its own normal, legible contrast. */
.apt-past {
    background: var(--navy-page);
    border-color: var(--navy-border);
}

.apt-past .apt-title,
.apt-past .apt-date,
.apt-past .apt-time {
    color: var(--text-muted);
}

.apt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.apt-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.apt-date {
    font-size: 14px;
    color: var(--blue-badge-text);
    margin-bottom: 4px;
}

.apt-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.apt-guidance-label {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 6px;
}

.apt-notes {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--navy-border);
}

.apt-confirm-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--navy-border);
    align-items: center;
    flex-wrap: wrap;
}

.apt-date-input,
.apt-time-input {
    flex: 1;
    margin-bottom: 0 !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    min-width: 120px;
    -webkit-appearance: none;
    appearance: none;
    color: var(--text-primary) !important;
    background: var(--navy-page) !important;
    border: 1px solid var(--navy-border-strong) !important;
    border-radius: var(--radius-input) !important;
    min-height: 44px;
}
.apt-save-btn {
    background: var(--blue-accent);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    min-height: auto;
    white-space: nowrap;
}
.apt-guidance {
    background: var(--navy-page);
    border: 1px dashed var(--navy-border-strong);
}

.apt-confirmed {
    background: var(--navy-page);
    border: 1px solid var(--blue-accent);
}
/* --- Calendar ------------------------------------------- */
#calendar-display {
    margin-bottom: 16px;
}.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cal-month-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.cal-nav-btn {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    min-height: auto;
    padding: 4px 12px;
    font-size: 18px;
    border-radius: var(--radius-btn);
}

.cal-nav-btn:hover {
    border-color: var(--blue-accent);
    color: var(--text-primary);
    background: transparent;
}

.cal-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cal-day-name {
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 2px 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}
.cal-cell {
    height: 36px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: default;
    position: relative;

}
.cal-empty {
    background: transparent;
}

.cal-today {
    background: var(--blue-badge-bg);
    color: var(--blue-badge-text);
    font-weight: 700;
}

.cal-has-apt {
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
}

.cal-has-apt:hover {
    background: rgba(24, 95, 165, 0.2);
}

.cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-accent);
    position: absolute;
    bottom: 4px;
}
.apt-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    min-height: auto;
    padding: 4px 0;
    margin-top: 8px;
    cursor: pointer;
    text-decoration: underline;
}

.apt-delete-btn:hover {
    color: #e05555;
    background: transparent;
}
/* --- Milestone accordion --------------------------------- */
.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
}

.milestone-chevron {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 4px;
}

.milestone-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--navy-border);
}

.milestone-body p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.milestone {
    cursor: pointer;
    overflow: hidden;
}
.milestone-body-hidden {
    display: none !important;
}
/* --- Journey timeline ------------------------------------ */
.journey-timeline {
    position: relative;
    padding-left: 24px;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--navy-border-strong);
}

.journey-week {
    position: relative;
    margin-bottom: 28px;
}

.journey-week-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.journey-dot {
    position: absolute;
    left: -20px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue-accent);
    border: 2px solid var(--navy-page);
    flex-shrink: 0;
}

.journey-dot-landmark {
    background: #c9a84c;
    width: 14px;
    height: 14px;
    left: -21px;
}

.journey-week-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.journey-week-label-landmark {
    color: #c9a84c;
}

/* Milestone card in journey */
.journey-milestone-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-left: 3px solid var(--blue-accent);
    border-radius: var(--radius-card);
    padding: 12px 14px;
    margin-bottom: 10px;
}

.journey-milestone-landmark {
    border-left-color: #c9a84c;
    background: rgba(201, 168, 76, 0.05);
}

.journey-milestone-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.journey-milestone-advice {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Notes */
.journey-note {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 12px 14px;
    margin-bottom: 8px;
}

.journey-note-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.journey-note-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Photos */
.journey-photo-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.journey-photo-row::-webkit-scrollbar {
    display: none;
}

.journey-photo-wrap {
    flex-shrink: 0;
    width: 100px;
    position: relative;
}
.journey-photo-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--navy-border);
    display: block;
}

.journey-photo-caption {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* --- Notes memories filter --------------------------------- */
.notes-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.notes-filter-btn {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    min-height: auto;
    width: auto;
    cursor: pointer;
}

/* --- Photo grid ------------------------------------------ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 8px;
}

.photo-cell {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.photo-cell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}

.photo-cell:hover .photo-cell-img {
    opacity: 0.8;
}

.photo-cell-overlay {
    /* SPRINT 7 FIX (4.20): this was opacity:0 by default, only shown on
       .photo-cell:hover — meaning the star/delete buttons inside it were
       effectively invisible and untappable on touch devices, which don't
       have a real hover state. This is a phone-first app, so the star
       toggle here needs to always be reachable, not hover-gated. */
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px;
    opacity: 1;
    transition: opacity 0.15s;
}

.photo-cell-week {
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 4px;
}

.photo-cell-delete {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 12px;
    min-height: auto;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

.photo-cell-delete:hover {
    background: #e05555;
}
/* --- Journey swiper ------------------------------------- */
.journey-swiper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    margin: 0 -20px;
    padding: 0;
    /* Must match .journey-card's max-width. Without this cap the swiper is ~598px
       on a desktop-width window while a card stops at 568px, so a card scrolled
       flush to the left edge still leaves a 30px sliver of the next one showing,
       and the final card can never reach the left edge at all (scrollLeft clamps
       at scrollWidth - clientWidth). Equal widths = exactly one card per view.
       NB: this is a tidiness fix, not the arrow-navigation fix — that was a
       coordinate-space bug in app.js, see swiperCardOffset(). Below ~600px the
       card falls back to calc(100vw - 32px) and the same ~30px mismatch returns;
       harmless (navigation is measured, not assumed) but worth revisiting. */
    max-width: 568px;
}
.journey-swiper::-webkit-scrollbar {
    display: none;
}

.journey-card {
    flex-shrink: 0;
    width: calc(100vw - 32px);
    max-width: 568px;
    scroll-snap-align: start;
    padding: 16px 20px;
    box-sizing: border-box;
    min-height: 60vh;
}
.journey-card-landmark {
    background: rgba(201, 168, 76, 0.04);
}

.journey-card-current {
    border: 1px solid var(--blue-accent);
    background: rgba(24, 95, 165, 0.1);
}

.journey-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.journey-card-label-landmark {
    color: #c9a84c;
}

.journey-current-tag {
    display: inline-block;
    background: var(--blue-accent);
    color: white;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Dot indicators */
.journey-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 4px;
}

.journey-dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--navy-border-strong);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.journey-dot-indicator.active {
    background: var(--blue-accent);
    transform: scale(1.3);
}

/* --- Contraction timer -------------------------------------- */
.contraction-start-btn {
    width: 100%;
    background: var(--blue-accent);
    color: white;
    font-size: 17px;
    font-weight: 600;
    padding: 20px;
    border-radius: var(--radius-card);
    margin-bottom: 14px;
}

.contraction-start-btn.active {
    background: #e05555;
}

.contraction-live-timer {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    margin: -6px 0 14px;
}

.contraction-summary {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 14px;
}

.contraction-summary strong {
    color: var(--text-primary);
}

.contraction-call-banner {
    background: rgba(224, 85, 85, 0.12);
    border: 1px solid rgba(224, 85, 85, 0.4);
    border-left: 3px solid #e05555;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #e05555;
    margin-bottom: 14px;
}

.contraction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--navy-border);
    font-size: 13px;
}

.contraction-row:last-of-type {
    border-bottom: none;
}

.contraction-row-time {
    color: var(--text-secondary);
    flex: 1;
}

.contraction-row-duration {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.contraction-row-gap {
    color: var(--text-muted);
    flex: 1;
    text-align: right;
}

.contraction-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 6px 0 14px;
}

.contraction-reset-btn {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-muted);
    font-size: 13px;
    min-height: auto;
    padding: 8px 16px;
    width: auto;
    margin-top: 14px;
}

.contraction-reset-btn:hover {
    border-color: #e05555;
    color: #e05555;
    background: transparent;
}

/* --- Hospital bag tracker ------------------------------------ */
.hbag-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.hbag-ring-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.hbag-ring-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.hbag-urgency {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hbag-urgency strong {
    color: var(--text-primary);
}

.hbag-celebration {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-left: 3px solid #c9a84c;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #c9a84c;
    margin-bottom: 16px;
}

.hbag-category-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 16px 0 4px;
}

.hbag-category-title:first-of-type {
    margin-top: 0;
}

.hbag-done-summary {
    text-align: center;
    padding: 20px 16px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: var(--radius-card);
    background: rgba(201, 168, 76, 0.06);
}

.hbag-done-emoji {
    font-size: 28px;
    margin-bottom: 6px;
}

.hbag-done-title {
    font-size: 15px;
    font-weight: 600;
    color: #c9a84c;
    margin-bottom: 4px;
}

.hbag-done-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Sprint 6 — dismiss/condense once the hospital bag hits 100% */
.hbag-dismiss-btn {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-btn);
    font-size: 12px;
    min-height: auto;
    width: auto;
    cursor: pointer;
    margin-top: -8px;
    margin-bottom: 16px;
}

.hbag-condensed-summary {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hbag-condensed-text {
    font-size: 13px;
    color: var(--text-primary);
}

.hbag-condensed-undo {
    background: transparent;
    border: none;
    color: var(--blue-accent);
    font-size: 12px;
    min-height: auto;
    width: auto;
    padding: 0;
    cursor: pointer;
}

/* --- Home nudge banner ---------------------------------------- */
.home-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-left: 3px solid var(--blue-accent);
    border-radius: 10px;
    padding: 12px 14px;
    margin: -4px 0 14px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.home-nudge-text {
    flex: 1;
}

.home-nudge-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    min-height: auto;
    padding: 4px 6px;
    width: auto;
    cursor: pointer;
}

.home-nudge-dismiss:hover {
    color: var(--text-primary);
    background: transparent;
}

/* --- Appointment calendar export ------------------------------ */
.apt-ics-btn {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    font-size: 12px;
    min-height: auto;
    padding: 6px 12px;
    width: auto;
    margin-top: 6px;
    border-radius: var(--radius-btn);
}

.apt-ics-btn:hover {
    border-color: var(--blue-accent);
    color: var(--text-primary);
    background: transparent;
}

/* --- Journey: landmark placeholder prompt ---------------------- */
.journey-add-memory-prompt {
    font-size: 13px;
    color: #c9a84c;
    cursor: pointer;
    padding: 4px 0 12px;
}

.journey-add-memory-prompt:hover {
    text-decoration: underline;
}

/* --- Journey: weekly reflection prompt card --------------------- */
.journey-prompt-card {
    background: rgba(24, 95, 165, 0.05);
    border-left: 3px solid var(--blue-accent);
}

.journey-prompt-question {
    font-size: 21px;
    font-style: italic;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-top: 10px;
}

.journey-prompt-write-btn {
    background: var(--blue-accent);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    min-height: auto;
    width: auto;
    cursor: pointer;
}

.journey-prompt-skip {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}

/* --- Sprint 6: ambient slot fade-in ------------------------------ */
/* SPRINT 6 ANIMATION — remove this rule (and the .ambient-slot class
   references in renderWeatherCard/renderPartnerShoutout/renderHardMomentsAmbientCard)
   if it feels distracting rather than nice. Uses transform/opacity only — no box-shadow. */
.ambient-slot {
    animation: ambientFadeIn 0.6s ease;
}

@keyframes ambientFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Partner shoutout card (Home) ------------------------------- */
.partner-shoutout {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-left: 3px solid var(--blue-accent);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 14px;
}

.partner-shoutout-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-badge-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.partner-shoutout-question {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.partner-shoutout-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.partner-shoutout-share {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-badge-text);
    text-decoration: none;
}

.partner-shoutout-share:hover {
    text-decoration: underline;
}

.partner-shoutout-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    min-height: auto;
    padding: 4px 6px;
    width: auto;
    cursor: pointer;
}

.partner-shoutout-dismiss:hover {
    color: var(--text-primary);
    background: transparent;
}

.hard-moments-home-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
    padding: 10px 14px;
    margin: 4px 0 8px;
    border-left: 3px solid #5b8dee;
    background: rgba(91, 141, 238, 0.06);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.hard-moments-home-link strong {
    color: var(--blue-accent);
    font-weight: 600;
}

/* --- Emergency numbers (Me tab) --------------------------------- */
.emergency-row {
    margin-bottom: 12px;
}

.emergency-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.emergency-input-row {
    display: flex;
    gap: 8px;
}

.emergency-input {
    flex: 1;
}

.emergency-call-btn {
    background: var(--blue-accent);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 20px;
    width: 52px;
    min-height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
}

.emergency-save-btn {
    width: 100%;
    margin-top: 4px;
}

.emergency-save-status {
    text-align: center;
    font-size: 13px;
    color: var(--blue-badge-text);
    margin-top: 8px;
    min-height: 16px;
}

/* --- Hard moments ------------------------------------------ */
.hard-moment-mood-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hard-moment-mood-chip {
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    font-size: 13px;
    min-height: 36px;
    padding: 6px 12px;
    width: auto;
    border-radius: 999px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.hard-moment-mood-chip.selected {
    border-color: var(--blue-accent);
    color: var(--blue-badge-text);
    background: var(--blue-badge-bg);
}

.hard-moment-entry {
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    margin-top: 8px;
    overflow: hidden;
}

.hard-moment-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.hard-moment-chevron {
    color: var(--text-muted);
    font-size: 12px;
}

.hard-moment-entry-inner {
    padding: 0 14px 14px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
}

/* --- Shared calendar subscription --------------------------- */
.calendar-share-box {
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-card);
    padding: 14px;
    margin-top: 16px;
}

.calendar-share-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.calendar-share-input {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.calendar-share-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ID selectors here deliberately outrank ".auth-box button[id]" (which
   forces width:100% on any button with an id inside an auth-box) —
   without this these buttons render full width. */
#calendar-share-copy.calendar-share-btn,
#calendar-share-open.calendar-share-btn {
    width: auto;
    min-height: auto;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    margin-top: 0;
}

#calendar-share-copy.calendar-share-btn {
    background: var(--blue-accent);
    color: #ffffff;
    border: none;
}

#calendar-share-open.calendar-share-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--navy-border-strong);
    color: var(--text-secondary);
    text-decoration: none;
}