* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --sky-light: #e0f2fe;
    --sky-mid: #bae6fd;
    --sky-deep: #0284c7;
    --sky-ink: #0c4a6e;
    --cream: #fffbeb;
    --card: #ffffff;
    --mint: #6ee7b7;
    --mint-dark: #047857;
    --shadow: rgba(2, 132, 199, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --font: "Nunito", "Segoe UI", Arial, sans-serif;
    --capsule-pill-tilt: -2deg;
    --bp-phone: 699px;
    --bp-desktop: 700px;
    --bp-narrow: 440px;
}

body {
    margin: 0;
    font-family: var(--font);
    background: linear-gradient(180deg, var(--sky-light) 0%, #f0f9ff 45%, var(--cream) 100%);
    color: #374151;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.sky-bg {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.85) 0 3rem, transparent 3.2rem),
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.7) 0 2.2rem, transparent 2.4rem),
        radial-gradient(circle at 70% 4%, rgba(255, 255, 255, 0.55) 0 1.5rem, transparent 1.7rem);
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 2.5rem;
    overflow-x: clip;
}

.topbar {
    margin-bottom: 0.75rem;
}

.hero-header {
    margin-bottom: 1.25rem;
}

.today-section-banner {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.25rem;
}

.today-section-banner--status {
    margin-top: 2.5rem;
}

.today-section-banner--actions {
    margin-top: 4rem;
}

.today-section-banner-pill {
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    background: linear-gradient(90deg, #e0f2fe 0%, #fef9c3 100%);
    border: 2px solid #7dd3fc;
    color: #0c4a6e;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.today-section-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.today-section-banner-icon {
    flex: 0 0 auto;
    display: block;
    height: 1.15em;
    width: auto;
    object-fit: contain;
}

.today-section-banner-text {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.hero-cloud {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid #fff;
    border-radius: 28px;
    padding: 0.85rem calc(0.85rem + 61px + 0.35rem) 1rem 1rem;
    box-shadow: 0 8px 24px var(--shadow);
    margin-bottom: 0.75rem;
    min-height: 61px;
}

.hero-cloud-text {
    min-width: 0;
}

.hero-cloud-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: calc(0.88rem * 1.25) auto;
    column-gap: 0.75rem;
    row-gap: 0.1rem;
    align-items: start;
    margin: 0 0 0.1rem;
}

.hero-cloud-lede {
    display: contents;
}


.hero-tim-tady-icon-wrap {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    width: 61px;
    height: 61px;
}

.hero-tim-tady-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #94CADD;
    overflow: hidden;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.18);
    box-sizing: border-box;
    /* 2px gap from mid-blue border inner edge to GIF left/right */
    padding: 2px;
    text-decoration: none;
    color: inherit;
}

.hero-tim-tady-icon:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

.hero-tim-tady-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-tim-tady-icon .hero-tim-tady-icon-sleep,
.hero-tim-tady-icon .hero-tim-tady-icon-sleep.hidden {
    display: none;
}

.hero-tim-tady-icon-wrap--sleeping .hero-tim-tady-icon-awake {
    display: none;
}

.hero-tim-tady-icon-wrap--sleeping .hero-tim-tady-icon .hero-tim-tady-icon-sleep {
    display: block;
    width: 85%;
    height: 85%;
    transform: translateY(7px);
}

.hero-tim-tady-sleep-zzz {
    display: none;
    font-size: 0.62rem;
}

.hero-tim-tady-icon-wrap--sleeping .hero-tim-tady-sleep-zzz {
    display: flex;
}

.greeting {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--sky-deep);
    font-weight: 800;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.tim-tady-daily-quote {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--sky-deep);
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: start;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
}

.tim-tady-daily-quote.typewriter-reserved {
    display: grid;
    width: max-content;
}

.typewriter-reserved::before,
.tim-tady-daily-text {
    grid-area: 1 / 1;
}

.typewriter-reserved::before {
    content: attr(data-final-text);
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1.25;
    font-family: inherit;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
    visibility: hidden;
}

.tim-tady-daily-text {
    min-width: 0;
}

.greeting-wave {
    display: inline-block;
    animation: wave-hand 1.8s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.topbar h1 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--sky-ink);
    font-weight: 700;
}

.today-page .hero-cloud-text h1,
.today-page .today-date,
.review-page .hero-cloud-text h1 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 600;
    min-width: 0;
    grid-column: 1;
    grid-row: 2;
    white-space: nowrap;
}

.section-emoji {
    font-size: 1.1em;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.page-tabs {
    margin-bottom: 0.75rem;
}

.page-tabs .tab {
    padding: 0.15rem 0.95rem;
    min-height: 0;
}

.page-nav-compact {
    display: flex;
    justify-content: flex-end;
    margin: 0.75rem 0 0;
}

.tab-compact {
    padding: 0.15rem 0.75rem;
    min-height: 36px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.06);
}

.tab {
    text-decoration: none;
    border: 2px solid var(--sky-mid);
    background: rgba(255, 255, 255, 0.92);
    color: #0369a1;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.08);
    transition: transform 0.15s ease, background 0.15s ease;
}

.tab:active {
    transform: scale(0.97);
}

.tab-active {
    border-color: var(--sky-deep);
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--sky-ink);
}

.save-status {
    min-height: 0;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mint-dark);
}

.save-status-error {
    color: #b91c1c;
}

.card {
    background: var(--card);
    border: 2px solid #dbeafe;
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px var(--shadow);
}

.task-card {
    position: relative;
    --task-card-footer-min-height: 3.15rem;
    --task-card-messages-gap: 0.36rem;
    --pill-check-block-min-height: calc(3.25rem + 0.5rem + 1.35rem);
    --mood-submit-block-min-height: calc((3rem + 0.75rem + 2.85rem) * 0.8);
    --mood-submit-row-gap: 0;
    padding-bottom: 0.99rem;
}

.today-page .task-card {
    margin-bottom: 2rem;
}

.card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--sky-ink);
}

.pill-card {
    position: relative;
    padding-top: 1.75rem;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.reminder-banner {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

.reminder-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.reminder-banner-icon--task,
.reminder-banner-icon--tim-tady {
    flex: 0 0 auto;
    width: 1.15em;
    height: 1.15em;
    line-height: 1;
}

.reminder-banner-icon--task {
    font-size: 1.15em;
    text-align: center;
}

.reminder-banner-icon--tim-tady {
    object-fit: contain;
}

.reminder-banner-text {
    flex: 1 1 auto;
    min-width: 0;
}

.reminder-banner-during {
    background: linear-gradient(90deg, #e0f2fe 0%, #fef9c3 100%);
    border: 2px solid #7dd3fc;
    color: #0c4a6e;
}

.reminder-banner-after {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    color: #475569;
    font-weight: 700;
}

.pill-card-reminder {
    border-color: #7dd3fc;
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.16);
}

.pill-card-still-todo {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.time-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.pill-card-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pill-visual {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.pill-visual-white {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.pill-visual-evening {
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
}

.pill-mascot {
    position: relative;
    width: 52px;
    height: 44px;
}

.capsule-pill {
    display: block;
    width: 44px;
    height: 22px;
    margin: 14px auto 0;
    border-radius: 999px;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.08);
    transform: rotate(var(--capsule-pill-tilt));
    transition: transform 0.25s ease;
}

.capsule-pill--white {
    background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
}

.capsule-pill--blue-yellow {
    background: linear-gradient(90deg, #60a5fa 0%, #60a5fa 50%, #facc15 50%, #fde047 100%);
    border: 1px solid #93c5fd;
}

.mascot-face {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mascot-eye {
    position: absolute;
    top: 2px;
    width: 7px;
    height: 9px;
    border-radius: 50%;
    background: #334155;
    transition: transform 0.2s ease, height 0.2s ease, top 0.2s ease;
}

.mascot-eye-left {
    left: 12px;
}

.mascot-eye-right {
    right: 12px;
}

.mascot-blush {
    position: absolute;
    top: 14px;
    width: 9px;
    height: 5px;
    border-radius: 50%;
    background: #fda4af;
    opacity: 0.45;
}

.mascot-blush-left {
    left: 6px;
}

.mascot-blush-right {
    right: 6px;
}

.mascot-mouth {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 12px;
    height: 6px;
    margin-left: -6px;
    border-bottom: 2px solid #64748b;
    border-radius: 0 0 12px 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pill-sparkle {
    position: absolute;
    color: #fbbf24;
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease;
}

.pill-sparkle-a {
    top: -2px;
    right: 2px;
}

.pill-sparkle-b {
    bottom: 0;
    left: 0;
}

.pill-sparkle-c {
    top: 2px;
    left: 50%;
    margin-left: -0.45rem;
    font-size: 0.72rem;
}

.pill-card[data-pill-state="waiting"] .mascot-mouth {
    width: 12px;
    margin-left: -6px;
    border-bottom: 2px solid #94a3b8;
    border-radius: 0 0 12px 12px;
    border-top: none;
    top: 18px;
}

.task-card-locked.pill-card[data-pill-state="waiting"] .mascot-eye,
.task-card.pill-card[data-card-state="sleeping"][data-pill-state="waiting"] .mascot-eye {
    height: 3px;
    top: 6px;
    border-radius: 2px;
}

.task-card-locked.pill-card[data-pill-state="waiting"] .mascot-mouth,
.task-card.pill-card[data-card-state="sleeping"][data-pill-state="waiting"] .mascot-mouth {
    display: none;
}

.task-card-locked.pill-card[data-pill-state="waiting"] .mascot-blush,
.task-card.pill-card[data-card-state="sleeping"][data-pill-state="waiting"] .mascot-blush {
    opacity: 0;
}

.pill-card-done {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.pill-card-done .pill-visual {
    border-color: var(--mint);
    background: #ecfdf5;
    transform: scale(1.04);
}

.pill-card-done .capsule-pill {
    transform: translateY(-2px) rotate(-4deg);
}

.pill-card-done .mascot-mouth {
    border-bottom-color: #059669;
    transform: scale(1.15);
}

.pill-card-done .pill-sparkle,
.pill-card[data-pill-state="happy"] .pill-sparkle {
    opacity: 1;
}

.pill-card-done .pill-check-text {
    color: var(--mint-dark);
    font-weight: 800;
}

.pill-card-locked {
    pointer-events: none;
    opacity: 0.96;
}

.pill-card-locked .pill-check-label {
    cursor: default;
}

.pill-card-locked.pill-card-done {
    border-color: #6ee7b7;
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}

.pill-check-wrap {
    position: relative;
    min-height: var(--pill-check-block-min-height);
}

.pill-success-msg {
    margin: 0;
    padding: 0.45rem 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #047857;
    background: linear-gradient(90deg, #ecfdf5 0%, #fef9c3 100%);
    border: 2px solid #6ee7b7;
    border-radius: 999px;
    display: inline-block;
    opacity: 0;
    transform: translateY(4px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.pill-success-msg:not(.hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pill-success-msg.pill-success-msg-fresh {
    animation: success-msg-pop 0.55s ease, success-msg-glow 2.5s ease;
}

.pill-check-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
}

.pill-check-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2.5px solid #7dd3fc;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(2, 132, 199, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-check-box input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pill-check-label.is-checked .pill-check-box {
    background: #059669;
    border-color: #047857;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.pill-check-label.is-checked .pill-check-box::after {
    content: "✓";
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.pill-time {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    min-height: 1.35rem;
}

.pill-time.hidden {
    display: block;
    visibility: hidden;
}

@keyframes success-msg-pop {
    0% { opacity: 0; transform: translateY(8px) scale(0.88); }
    60% { opacity: 1; transform: translateY(-2px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes success-msg-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    35% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22); }
    70% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12); }
}

@keyframes tim-tady-awaiting-msg-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(217, 119, 6, 0); }
    35% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.42); }
    70% { box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.22); }
}

.pill-label {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.pill-label--wake-message {
    font-size: 0.92rem;
    font-weight: 800;
    color: #334155;
}

.hidden {
    display: none;
}

.fade-out {
    opacity: 0 !important;
}

.fadeable,
.reminder-banner,
.streak-nudge,
.card-opens-at,
.save-status,
.pill-success-msg,
.pill-time {
    transition: opacity 300ms ease;
}

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

.mood-visual {
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    border-color: #ddd6fe;
}

.mood-header-face {
    font-size: 2.35rem;
    line-height: 1;
}

.mood-header-face--sleep {
    display: none;
}

.task-card-locked .mood-visual .mood-header-face--awake {
    display: none;
}

.task-card-locked .mood-visual .mood-header-face--sleep {
    display: block;
}

.task-card-locked .mood-visual .card-sleep-zzz {
    display: flex;
}

.mood-card-header {
    margin-bottom: 0.75rem;
}

.mood-card-heading {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.15rem;
}

.mood-note-hint {
    margin-bottom: 0;
}

.mood-note-field {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed #bae6fd;
}

.mood-note-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--sky-ink);
    margin-bottom: 0.45rem;
}

.mood-note-label-text {
    min-width: 0;
}

.mood-note-label .reminder-banner-icon--tim-tady {
    width: calc(0.92rem * 1.15 + 0.03rem);
    height: calc(0.92rem * 1.15 + 0.03rem);
}

.mood-note-field textarea {
    width: 100%;
    border: 2px solid #dbeafe;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    resize: vertical;
    min-height: 88px;
    background: #fafcff;
}

.mood-note-field textarea:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.35);
}

.mood-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

.mood-btn-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.mood-btn-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: #64748b;
    text-align: center;
    line-height: 1.15;
}

.mood-btn {
    width: 100%;
    flex: none;
    min-width: 0;
    min-height: 58px;
    border: 2px solid #dbeafe;
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 1.85rem;
    line-height: 1;
    padding: 0.35rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mood-btn:hover {
    transform: translateY(-2px);
}

.mood-btn-active {
    border-color: var(--sky-deep);
    background: linear-gradient(180deg, #e0f2fe 0%, #fff 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18);
}

.note-card label {
    display: block;
}

.note-card textarea {
    width: 100%;
    margin-top: 0.55rem;
    border: 2px solid #dbeafe;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    resize: vertical;
    min-height: 96px;
    background: #fafcff;
}

.note-card textarea:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.35);
}

.placeholder-msg {
    margin: 0;
    color: #64748b;
}

/* Review page */
.review-page .hero-cloud h1 {
    margin: 0;
}

.review-card {
    padding-top: 1.1rem;
}

.review-card h2 {
    margin: 0;
}

/* Mood trend graph card (Phase 11) */
.review-graph-card {
    padding-top: 1.1rem;
    overflow-x: clip;
    max-width: 100%;
}

.review-graph-card h2 {
    margin: 0 0 0.35rem;
}

.graph-hint {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
}

.graph-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    max-width: 100%;
}

.graph-range-presets {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Desktop: rows flatten so chips share one wrapping strip */
.graph-range-row {
    display: contents;
}

.graph-chip {
    flex-shrink: 0;
    border: 2px solid var(--sky-mid);
    background: #fff;
    color: var(--sky-ink);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    min-height: 2.5rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.graph-chip:hover {
    border-color: var(--sky-deep);
}

.graph-chip-active {
    border-color: var(--sky-deep);
    background: var(--sky-light);
    color: var(--sky-ink);
}

.graph-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    height: min(42vh, 360px);
}

.graph-canvas-wrap.hidden {
    display: none;
}

.graph-tooltip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    min-width: 9.5rem;
    max-width: min(16rem, 85%);
    padding: 0.55rem 0.7rem;
    border: 2px solid var(--sky-mid);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 8px 20px rgba(12, 74, 110, 0.14);
    color: var(--sky-ink);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.graph-tooltip.hidden {
    display: none;
}

.graph-tooltip-title {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #64748b;
}

.graph-tooltip-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.graph-tooltip-row + .graph-tooltip-row {
    margin-top: 0.28rem;
}

.graph-tooltip-icon {
    flex: 0 0 auto;
    width: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
}

.graph-tooltip-pill {
    width: 1.35rem;
    height: 0.68rem;
    object-fit: contain;
    display: block;
}

.graph-tooltip-text {
    flex: 1 1 auto;
    min-width: 0;
}

.graph-empty {
    padding: 1.35rem 0.5rem 1.1rem;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

.graph-empty.hidden {
    display: none;
}

.graph-empty p {
    margin: 0.35rem 0;
}

.graph-empty a {
    color: var(--sky-deep);
    font-weight: 800;
}

.graph-message {
    margin: 0.5rem 0 0;
    min-height: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

@media (max-width: 699px) {
    .review-graph-card {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .graph-hint {
        font-size: 0.85rem;
        margin-bottom: 0.65rem;
    }

    .graph-controls {
        margin-bottom: 0.55rem;
    }

    .graph-range-presets {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.35rem;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .graph-range-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.35rem;
    }

    .graph-chip {
        /* Was 0.32rem 0.6rem — vertical 40%, horizontal 30% */
        padding: 0.128rem 0.18rem;
        font-size: 0.8rem;
        min-height: 0;
    }

    .graph-canvas-wrap {
        min-height: 200px;
        height: min(38vh, 300px);
    }

    .graph-empty {
        padding: 1rem 0.25rem 0.85rem;
        font-size: 0.92rem;
    }
}

@media (min-width: 700px) {
    .graph-range-presets {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .graph-canvas-wrap {
        min-height: 280px;
        height: min(46vh, 420px);
    }
}

.review-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

.review-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.review-sort-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review-sort-btn {
    min-height: 30px;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #f0f9ff;
}

.review-message {
    min-height: 1.25rem;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.review-message-error {
    color: #b91c1c;
}

.review-record .parent-edit-record-row {
    display: grid;
    grid-template-columns: minmax(8.5rem, max-content) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem 1rem;
}

.review-record .parent-edit-record-row-date,
.review-record .review-record-row-date {
    grid-template-columns: max-content minmax(0, 1fr);
    justify-content: initial;
}

.review-record-row-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.review-record .review-record-row-date .review-record-row-label,
.review-record .review-record-row-date .parent-edit-row-label {
    min-width: 0;
}

.review-row-pill-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.review-row-mood-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.review-record-date-display {
    display: block;
    background: #fff;
    color: #334155;
    padding: 0.45rem 0.5rem;
    min-width: 0;
    white-space: nowrap;
}

@media (max-width: 699px) {
    .review-record .parent-edit-record-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    .review-record .parent-edit-record-row-date,
    .review-record .review-record-row-date {
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: start;
    }

    .review-record .parent-edit-record-row-pill {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    .review-record .parent-edit-record-row-pill .review-record-check {
        width: 100%;
    }

    .review-record .parent-edit-row-label,
    .review-record .review-record-row-label {
        min-width: 0;
    }

    .review-record-date-display {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .parent-edit-record-mood-details .review-record-mood-rating,
    .parent-edit-record-mood-details .parent-row-mood,
    .parent-edit-field-mood .parent-row-mood {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .parent-edit-record,
    .review-record,
    .card {
        max-width: 100%;
        min-width: 0;
    }

    .review-page .hero-cloud-text h1 {
        white-space: normal;
    }
}

.review-record-field-spacer {
    min-height: 32px;
}

.review-record-mood-rating,
.review-record-note {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #334155;
}

.review-record-note {
    display: block;
    align-items: flex-start;
    width: 100%;
    white-space: pre-wrap;
    line-height: 1.35;
}

.parent-edit-record-mood-details .review-record-mood-rating {
    box-sizing: border-box;
    min-height: var(--parent-mood-field-height, 2.35rem);
    min-width: 13rem;
}

.parent-edit-record-mood-details .review-record-note {
    box-sizing: border-box;
    min-height: calc(var(--parent-mood-field-height, 2.35rem) * 2);
}

.review-record-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    cursor: default;
    min-width: 0;
}

.review-record-check-text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    line-height: 1.35;
}

.review-record-check .pill-check-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2.5px solid #7dd3fc;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(2, 132, 199, 0.08);
}

.review-record-check .pill-check-box.review-pill-check-box--checked {
    background: #34d399;
    border-color: #6ee7b7;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.review-record-check .pill-check-box.review-pill-check-box--checked::after {
    content: "✓";
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 699px) {
    .review-page .review-record-check .pill-check-box {
        width: 18px;
        height: 18px;
        border-width: 1.5px;
        border-radius: 5px;
    }

    .review-page .review-record-check .pill-check-box.review-pill-check-box--checked::after {
        font-size: 0.72rem;
    }
}

.review-tim-tady-yes-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.review-tim-tady-yes-line--stacked {
    display: none;
}

@media (max-width: 699px) {
    .review-tim-tady-yes-line--wide {
        display: none;
    }

    .review-tim-tady-yes-line--stacked {
        display: inline;
    }
}

.review-tim-tady-badge {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    object-fit: contain;
}

.review-record-negative,
.review-record-empty {
    color: #94a3b8;
    font-weight: 600;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 800;
    color: inherit;
    padding: 0;
    cursor: pointer;
}

.sort-icons {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    margin-left: 0.15rem;
}

.tri {
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.25;
}

.tri-up {
    border-bottom: 5px solid var(--sky-deep);
}

.tri-down {
    border-top: 5px solid var(--sky-deep);
}

.sort-btn[data-sort="asc"] .tri-up,
.sort-btn[data-sort="desc"] .tri-down {
    opacity: 1;
}

@media (min-width: 700px) {
    .review-page .container {
        max-width: 880px;
    }
}

@keyframes wave-hand {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(16deg); }
    75% { transform: rotate(-8deg); }
}

@keyframes joshua-bit-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes daily-progress-subtitle-fade-up {
    0% {
        opacity: 1;
        transform: translateY(0.35rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes joshua-awaiting-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes joshua-reveal-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes sparkle-pop {
    0% { transform: scale(0.4) rotate(0deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(20deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .greeting-wave,
    .daily-progress-joshua-bit-pulse::before,
    .daily-progress-joshua-bit-pulse .daily-progress-status-awaiting,
    .daily-progress-joshua-reveal-fade,
    .daily-progress-tim-tady-bit-pulse::before,
    .daily-progress-tim-tady-bit-pulse .daily-progress-status-too-soon,
    .daily-progress-tim-tady-bit-pulse .daily-progress-status-awaiting,
    .daily-progress-tim-tady-reveal-fade,
    .daily-progress-arrow-reveal-fade,
    .daily-progress-arrow-points-reveal-fade,
    .daily-progress-unbanked-traveller,
    .daily-progress-travel-trail-crumb,
    .daily-progress-banked-sparkle,
    .daily-progress-trophy-plinth-sparkle,
    .daily-progress-arrow-banked-celebrate,
    .daily-progress-arrow-banked-celebrate .daily-progress-row-arrow-banked,
    .daily-progress-trophy-plinth-celebrate,
    .daily-progress-trophy-plinth-celebrate-halo,
    .daily-progress-streak-hero-letter,
    .daily-progress-streak-hero-word--settling,
    .daily-progress-streak-hero-word,
    .daily-progress-subtitle-fade-out,
    .daily-progress-subtitle-reveal-fade,
    .daily-progress-subtitle-fade-out--half,
    .daily-progress-subtitle-reveal-fade--half,
    .daily-progress-subtitle-fade-up--half,
    .daily-progress-trophy-image.is-dissolve-settling,
    .daily-progress-trophy-image--dissolve.is-dissolve-settling,
    .daily-progress-trophy-image.is-dissolving-out,
    .daily-progress-trophy-image--dissolve.is-dissolving-in,
    .pill-card-done .pill-sparkle,
    .mood-btn:hover,
    .mood-btn-active,
    .tim-tady-awaiting-msg.tim-tady-awaiting-msg-fresh,
    .pill-success-msg.pill-success-msg-fresh,
    .hero-flap-celebration-burst {
        animation: none;
        transform: none;
    }

    .hero-flap-celebration {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .tab:active {
        transform: none;
    }

    .daily-progress-check-btn--inactive:active {
        transform: none;
    }

    .daily-progress-trophy-image,
    .daily-progress-trophy-image--dissolve {
        transition: none;
    }
}

/* Parent area */
.parent-page {
    min-height: 100vh;
}

.parent-login-card {
    margin-top: 2rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.parent-login-card h1 {
    margin-top: 0;
    color: var(--sky-ink);
}

.parent-login-hint,
.parent-subtitle {
    margin: 0 0 1rem;
    color: #64748b;
    font-weight: 600;
}

.parent-login-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.parent-login-form input[type="password"] {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem;
    border: 2px solid #dbeafe;
    border-radius: 14px;
    font: inherit;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
}

.parent-login-footer {
    margin: 1rem 0 0;
    font-size: 0.92rem;
}

.parent-login-footer a {
    color: var(--sky-deep);
    font-weight: 700;
}

.parent-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.parent-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.parent-toolbar-joshua,
.parent-toolbar-guide,
.parent-toolbar-settings {
    display: inline-flex;
}

.parent-toolbar-actions #parent-logout-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    background: #f0f9ff;
    color: #0369a1;
    border: 2px solid #bae6fd;
    cursor: pointer;
}

.parent-toolbar-actions #parent-logout-btn:hover {
    background: #e0f2fe;
}

@media (min-width: 700px) {
    .parent-toolbar {
        flex-wrap: nowrap;
    }

    .parent-nav {
        flex: 1 1 auto;
    }
}

.parent-message {
    min-height: 1.2rem;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mint-dark);
}

.parent-message-error {
    color: #b91c1c;
}

.parent-settings-timing-errors {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.parent-settings-timing-errors.hidden {
    display: none;
}

.parent-settings-timing-error {
    font-size: 0.9rem;
    font-weight: 700;
    color: #b91c1c;
}

.btn-primary,
.btn-secondary {
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    color: #fff;
    border-color: #0284c7;
}

.btn-secondary {
    background: #fff;
    color: #0369a1;
    border-color: #7dd3fc;
}

.btn-danger-soft {
    color: #b45309;
    border-color: #fcd34d;
    background: #fffbeb;
}

.btn-small {
    min-height: 36px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

.parent-add-form {
    display: block;
}

.parent-add-card .parent-add-record {
    border: none;
    padding: 0;
    background: transparent;
}

.parent-add-form input[type="date"],
.parent-add-form select,
.parent-add-form textarea,
.parent-input {
    font: inherit;
    padding: 0.45rem 0.5rem;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    font-weight: 600;
}

.parent-add-date-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.parent-add-date-warning {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.parent-add-date-warning a {
    color: #0284c7;
    font-weight: 800;
}

.parent-add-date-warning.hidden {
    display: none;
}

.parent-edit-date-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.parent-date-today-btn {
    min-height: 36px;
    flex: 0 0 auto;
}

.parent-add-form .parent-add-save-btn {
    width: auto;
    min-width: calc(var(--parent-save-btn-width) * 1.5);
}

.parent-add-form .parent-add-save-btn:disabled {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #f8fafc;
    cursor: not-allowed;
}

.parent-check,
.parent-check-cell {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}

.parent-check input,
.parent-check-cell input {
    width: 22px;
    height: 22px;
    accent-color: var(--sky-deep);
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.section-title-row h2 {
    margin: 0;
}

@media (min-width: 700px) {
    .parent-edit-page .container,
    .parent-add-page .container,
    .parent-tim-tady-page .container,
    .parent-settings-page .container {
        max-width: 880px;
    }

    .parent-settings-form input[type="time"],
    .parent-settings-form input[type="number"] {
        width: auto;
        min-width: 10.5rem;
        max-width: 100%;
        align-self: flex-start;
    }
}

.parent-edit-records {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-records.parent-edit-records {
    gap: 2rem;
}

.parent-edit-empty {
    margin: 0;
    padding: 1rem 0;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

.parent-edit-record {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: #f8fafc;
}

.parent-edit-record-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.4rem 0;
}

.parent-edit-record-row + .parent-edit-record-row {
    border-top: 1px solid #e2e8f0;
}

.parent-edit-record-row-date {
    justify-content: space-between;
    gap: 0.75rem;
}

.parent-edit-record-delete {
    margin-left: auto;
}

.parent-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.92rem;
    min-width: 0;
}

.parent-edit-field-label,
.parent-edit-row-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
}

.parent-edit-row-label {
    min-width: 8.5rem;
}

.parent-edit-record-row-mood + .parent-edit-record-mood-details {
    margin-top: 0;
    padding-top: 0.75rem;
}

.parent-edit-record-mood-details {
    --parent-mood-field-height: 2.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-bottom: 0.4rem;
}

.parent-edit-record-mood-details .parent-edit-field-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: #64748b;
}

.parent-edit-record-mood-details .parent-edit-field-mood {
    width: auto;
}

.parent-edit-record-mood-details .parent-edit-field-note {
    width: 100%;
    flex: none;
}

.parent-edit-record-mood-details .parent-row-mood {
    box-sizing: border-box;
    min-height: var(--parent-mood-field-height);
    height: var(--parent-mood-field-height);
    line-height: 1.35;
    min-width: 13rem;
}

.parent-edit-record-mood-details .parent-input-note {
    box-sizing: border-box;
    width: 100%;
    min-height: calc(var(--parent-mood-field-height) * 2);
    height: calc(var(--parent-mood-field-height) * 2);
    line-height: 1.35;
    padding-top: 0.45rem;
    resize: vertical;
    vertical-align: top;
}

.parent-edit-field-date .parent-input-date,
.parent-add-date-field .parent-input-date {
    width: auto;
    min-width: 10.5rem;
}

.parent-add-date-field .parent-input-date {
    align-self: flex-start;
}

.parent-edit-field-mood .parent-row-mood {
    min-width: 13rem;
}

.mood-option-display {
    display: inline-flex;
    align-items: center;
    column-gap: 1.25rem;
    max-width: 100%;
}

.mood-option-number {
    flex: 0 0 auto;
}

.mood-option-text {
    min-width: 0;
}

.parent-edit-record-row-mood .parent-row-mood-include-wrap {
    flex: 0 0 auto;
}

.parent-mood-approval-placeholder {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.parent-mood-approval-placeholder input {
    cursor: not-allowed;
}

.parent-edit-approval-na {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    align-self: center;
}

.parent-row-mood-approved-wrap.hidden,
.parent-row-mood-approval-na.hidden {
    display: none;
}

.parent-pill-approval-check--disabled {
    opacity: 0.45;
}

.parent-pill-approval-check--disabled input {
    cursor: not-allowed;
}

.parent-edit-record--mood-pending-clear .parent-edit-record-mood-details {
    opacity: 0.55;
}

@media (min-width: 700px) {
    .parent-edit-record-row-pill,
    .parent-edit-record-row-mood {
        flex-wrap: nowrap;
    }
}

.parent-del-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.parent-del-check {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
}

.parent-edit-hint {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.parent-mood-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.parent-mood-hint.hidden {
    display: none;
}

.parent-mood-hint--error {
    color: #b91c1c;
}

.parent-mood-hint--recommend {
    color: #64748b;
}

.parent-edit-record-row-save {
    justify-content: flex-start;
    padding-top: 0.65rem;
    padding-bottom: 0.15rem;
}

.parent-save-row {
    --parent-save-btn-width: 5.5rem;
    min-width: calc(var(--parent-save-btn-width) * 1.5);
    width: calc(var(--parent-save-btn-width) * 1.5);
    min-height: 36px;
    padding: 0.49rem 1.5rem;
    font-size: 1rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.parent-save-row:active:not(:disabled),
.parent-save-row.parent-save-clicked:not(:disabled) {
    background: #047857;
    border-color: #065f46;
    color: #fff;
    transform: scale(0.96);
}

.parent-save-row:disabled {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #f8fafc;
    cursor: not-allowed;
    transform: none;
}

.parent-message-visible {
    min-height: 1.2rem;
}

.parent-input-date {
    max-width: none;
}

.parent-input-note {
    min-width: 6rem;
}

.parent-delete-col {
    width: 2.5rem;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem;
    max-width: 360px;
    width: 100%;
    border: 2px solid #e0f2fe;
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.2);
}

.modal-card h2 {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* --- Phase 7: card unlock, mood submit, points animation --- */

.card-sleep-zzz {
    display: none;
    position: absolute;
    top: -0.22rem;
    left: 50%;
    width: max-content;
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.04em;
    z-index: 3;
    transform: translateX(-50%);
    animation: sleep-zzz 2.4s ease-in-out infinite;
    pointer-events: none;
}

/* After .card-sleep-zzz so hero header top is not overridden */
.hero-tim-tady-icon-wrap .card-sleep-zzz.hero-tim-tady-sleep-zzz {
    top: calc(-0.22rem + 10px);
}

.task-card-locked .pill-visual .card-sleep-zzz {
    display: flex;
    top: calc(-0.22rem + 8px);
}

.task-card-locked {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-color: #e2e8f0;
}

/* Schedule-locked: controls feel inert — no pointer, no press feedback */
.task-card-locked .pill-check-label,
.task-card-locked .pill-check-box input[type="checkbox"],
.task-card-locked .mood-btn,
.task-card-locked .mood-submit-btn,
.task-card-locked .mood-note-field {
    cursor: default;
}

.task-card-locked .mood-btn:hover {
    transform: none;
}

.task-card-locked .mood-submit-btn--ack,
.task-card-locked .mood-submit-btn:active {
    transform: none;
}

.task-card-locked .pill-visual,
.task-card-locked .mood-visual {
    overflow: visible;
}

.task-card-locked .pill-card-body > h2,
.task-card-locked .pill-card-body > .pill-check-wrap,
.task-card-locked .mood-row,
.task-card-locked .mood-note-field,
.task-card-locked .mood-submit-row {
    opacity: 0.58;
}

.task-card-locked .card-opens-at {
    opacity: 1;
    color: #334155;
}

.task-card-messages {
    position: relative;
    min-height: var(--task-card-footer-min-height);
    margin-top: var(--task-card-messages-gap);
    width: 100%;
    flex-shrink: 0;
}

.task-card-messages > .reminder-banner,
.task-card-messages > .streak-nudge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: auto;
}

.task-card-messages > .pill-success-msg,
.task-card-messages > .card-opens-at {
    position: absolute;
    left: 0;
    right: auto;
    top: auto;
    bottom: 0;
    margin: 0;
    width: max-content;
    max-width: 100%;
}

.task-card-messages > .tim-tady-yes-msg,
.task-card-messages > .tim-tady-awaiting-msg {
    position: absolute;
    left: auto;
    right: 0;
    top: auto;
    bottom: 0;
    margin: 0;
    width: max-content;
    max-width: calc(100% - 0.5rem);
}

.task-card-messages > .hidden,
.task-card-messages > .msg-dismissed {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.task-card-messages > .pill-success-msg:not(.hidden):not(.msg-dismissed) {
    display: inline-block;
    width: max-content;
    white-space: nowrap;
}

.tim-tady-yes-msg {
    margin: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0369a1;
    background: linear-gradient(90deg, #f0f9ff 0%, #fef9c3 100%);
    border: 2px solid #fcd34d;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.tim-tady-yes-icon {
    display: block;
    height: 1.15em;
    width: auto;
    flex-shrink: 0;
}

.tim-tady-awaiting-msg {
    margin: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #7dd3fc;
    background: transparent;
    border: 2px solid #fcd34d;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tim-tady-awaiting-msg--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tim-tady-awaiting-msg.tim-tady-awaiting-msg-fresh {
    animation: success-msg-pop 0.55s ease, tim-tady-awaiting-msg-glow 2.5s ease;
}

.tim-tady-awaiting-text.typewriter-reserved {
    display: grid;
    width: max-content;
    min-width: 0;
}

.tim-tady-awaiting-text.typewriter-reserved::before,
.tim-tady-awaiting-visible {
    grid-area: 1 / 1;
}

.tim-tady-awaiting-text.typewriter-reserved::before {
    content: attr(data-final-text);
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.25;
    font-family: inherit;
    white-space: nowrap;
    visibility: hidden;
}

.tim-tady-awaiting-visible {
    display: block;
    text-align: left;
    min-width: 0;
}

.card-opens-at {
    font-size: 0.92rem;
    font-weight: 800;
    color: #64748b;
    text-align: left;
}

.reminder-banner-bottom {
    margin: 0;
}

.streak-nudge {
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0369a1;
    text-align: center;
    background: #f0f9ff;
    border-radius: 12px;
    border: 1px dashed #7dd3fc;
}

.time-badge-mood {
    color: #7c3aed;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.time-badge-mood .time-badge-emoji {
    font-size: 0.92em;
}

.time-badge-evening .time-badge-emoji {
    position: relative;
    z-index: 0;
    font-size: 1.2em;
}

.reminder-banner--dinner .reminder-banner-icon--task {
    position: relative;
    z-index: 0;
    font-size: calc(1.15em * 1.2);
}

.time-badge-evening .time-badge-emoji::before,
.reminder-banner--dinner .reminder-banner-icon--task::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.35em;
    height: 1.35em;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(3, 105, 161, 0.14);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    z-index: -1;
}

.mood-submit-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: var(--mood-submit-row-gap);
    min-height: var(--mood-submit-block-min-height);
    width: 100%;
}

.mood-submit-slot {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 8.5rem;
    min-height: 48px;
}

.mood-submit-row--feedback {
    display: block;
    min-height: var(--task-card-footer-min-height);
}

.mood-submit-row--feedback .mood-submit-slot {
    position: static;
    display: block;
    min-width: 0;
    min-height: 0;
    height: 0;
    overflow: visible;
}

.mood-submit-row--feedback .mood-submit-slot > .pill-success-msg:not(.hidden):not(.msg-dismissed) {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    width: max-content;
    max-width: calc(100% - 0.5rem);
    white-space: nowrap;
}

.mood-submit-row--feedback > .tim-tady-awaiting-msg:not(.hidden):not(.msg-dismissed) {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    margin: 0;
    width: max-content;
    max-width: calc(100% - 0.5rem);
}

.mood-submit-slot > .mood-submit-btn,
.mood-submit-slot > .pill-success-msg {
    grid-area: 1 / 1;
}

.mood-submit-slot > .pill-success-msg.hidden,
.mood-submit-slot > .pill-success-msg.msg-dismissed {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.mood-submit-slot > .pill-success-msg:not(.hidden):not(.msg-dismissed) {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
}

.mood-submit-hint {
    flex: 1 1 8rem;
    min-width: 0;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #64748b;
}

.mood-submit-btn {
    min-width: 8.5rem;
    min-height: 48px;
    position: relative;
    transform-origin: center center;
    transition:
        transform 120ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.mood-submit-btn--inactive {
    background: linear-gradient(180deg, #bae6fd 0%, #7dd3fc 100%);
    border-color: #bae6fd;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

.mood-submit-btn--ack,
.mood-submit-btn:active {
    transform: scale(0.96);
}

.mood-card-locked .mood-submit-slot .mood-submit-btn {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.mood-note-card.pill-card {
    display: flex;
    flex-direction: column;
}

.mood-card-done {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.12);
}

.mood-card-locked .mood-btn-active {
    transform: none;
}

.points-animation-anchor {
    position: relative;
}

.points-animation-anchor-click .plus-score-popup {
    left: calc(50% + 45px);
    top: calc(50% - 6px);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.points-animation-anchor-click .plus-score-sparkle-container {
    left: calc(50% + 45px);
    top: calc(50% - 6px);
    right: auto;
    bottom: auto;
}

.plus-score-popup {
    position: absolute;
    right: -65px;
    bottom: 5px;
    transform: translate(50%, 50%);
    font-size: 2rem;
    font-weight: 700;
    color: #facc15;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

.score-sparkle {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    transform: scale(0);
}

.score-sparkle path {
    fill: #f6fa15;
}

@keyframes sparkle {
    50% {
        transform: translate(-50%, -50%) scale(var(--s, 1));
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
    }
}

.plus-score-sparkle-container {
    position: absolute;
    right: -70px;
    bottom: 20px;
    width: 1px;
    height: 1px;
    z-index: 11;
    pointer-events: none;
}

.plus-score-sparkle-container.animate .score-sparkle {
    animation: sparkle 1.2s ease-out both;
}

.plus-score-sparkle-container .score-sparkle:nth-of-type(1) {
    top: -45px;
    left: -45px;
    --s: 0.8;
    animation-delay: 0.15s;
}

.plus-score-sparkle-container .score-sparkle:nth-of-type(2) {
    top: -60px;
    left: -35px;
    --s: 1.2;
    animation-delay: 0.3s;
}

.plus-score-sparkle-container .score-sparkle:nth-of-type(3) {
    top: -70px;
    left: -15px;
    --s: 1.3;
    animation-delay: 0.6s;
}

@keyframes sleep-zzz {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-2px); }
}

.parent-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.parent-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    color: #0369a1;
    background: #f0f9ff;
    border: 2px solid #bae6fd;
}

.parent-nav-link:hover {
    background: #e0f2fe;
}

.parent-nav-link-active:hover,
.parent-nav-link-active:focus-visible {
    color: #fff;
    background: var(--sky-deep);
    border-color: var(--sky-deep);
}

.parent-nav-link-active {
    color: #fff;
    background: var(--sky-deep);
    border-color: var(--sky-deep);
}

.parent-nav-link-badge {
    margin-left: 0.3rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
    color: #fff;
    background: #ea580c;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.parent-nav-link-active .parent-nav-link-badge {
    border-color: var(--sky-deep);
}

.parent-check-updates-btn {
    min-height: 32px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.parent-confirm-title-row {
    margin-bottom: 0.35rem;
}

.parent-confirm-title-row h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--sky-ink);
}

.parent-edit-title-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.parent-settings-form {
    display: grid;
    gap: 1.5rem;
}

.parent-settings-section h3 {
    margin: 0 0 0.65rem;
    font-size: 0.98rem;
    color: var(--sky-ink);
}

.parent-settings-coming-soon-content {
    opacity: 0.48;
    color: #64748b;
}

.parent-settings-coming-soon-content textarea {
    cursor: not-allowed;
    background: #f1f5f9;
    color: #64748b;
}

.parent-settings-stack {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
}

.parent-settings-task-groups {
    display: grid;
    gap: 1rem;
}

.parent-settings-task-group {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.75rem;
    background: #f8fafc;
}

.parent-settings-task-group h4 {
    margin: 0 0 0.6rem;
    font-size: 0.93rem;
    color: #1e293b;
}

.parent-settings-grid {
    display: grid;
    gap: 0.75rem;
}

.parent-settings-divider {
    border: 0;
    border-top: 2px dashed #cbd5e1;
    margin: 0.25rem 0;
}

@media (min-width: 700px) {
    .parent-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.parent-settings-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.parent-settings-time-field--warnable .parent-field-warning-slot {
    display: block;
    min-height: 2.75em;
    line-height: 1.35;
}

.parent-field-warning {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #92400e;
    visibility: hidden;
}

.parent-field-warning.parent-field-warning--visible {
    visibility: visible;
}

.parent-settings-form input[type="time"],
.parent-settings-form input[type="number"],
.parent-settings-form textarea {
    font: inherit;
    padding: 0.45rem 0.5rem;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    font-weight: 600;
}

.parent-settings-form textarea {
    resize: vertical;
    min-height: 180px;
}

.parent-settings-hint {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.parent-unlock-field {
    display: grid;
    gap: 0.35rem;
}

.parent-settings-submitted-hint {
    margin: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px dashed #7dd3fc;
    border-radius: 12px;
}

.parent-settings-submitted-hint a {
    color: #0284c7;
    font-weight: 800;
}

.parent-settings-submitted-hint.hidden {
    display: none;
}

.parent-settings-approval-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.parent-settings-approval-toggle {
    align-items: flex-start;
    line-height: 1.4;
}

.parent-settings-form-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.parent-unlock-advisory-list {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.25rem;
    font-weight: 700;
    color: #334155;
}

.parent-unlock-advisory-list li {
    margin-bottom: 0.25rem;
}

#unlock-change-text p {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: #334155;
}

#unlock-change-text a {
    color: #0284c7;
    font-weight: 800;
}

/* --- Phase 8: Tady points, achievement bar, Tim Tady --- */

.achievement-bar {
    position: relative;
    padding-top: 1.25rem;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    border: 2px solid #fde68a;
    margin-bottom: 2rem;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.15);
}

.achievement-bar:has(+ #standby-points-bar:not(.hidden):not(.v2-retained-ui)) {
    margin-bottom: 0.75rem;
}

.achievement-bar-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.points-visual {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    border: 3px solid #fde68a;
    position: relative;
    overflow: hidden;
}

.points-mascot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.points-star {
    display: block;
    flex-shrink: 0;
    font-size: 2.45rem;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 1px 1px rgba(180, 83, 9, 0.2));
    z-index: 1;
}

.achievement-bar .pill-sparkle {
    opacity: 1;
}

.achievement-bar-body {
    flex: 1;
    min-width: 0;
    padding-right: 2.85rem;
}

.achievement-tim-tady {
    position: absolute;
    bottom: 0;
    right: -0.15rem;
    display: block;
    width: auto;
    height: calc(2.7rem - 6px);
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}

.achievement-bar-body h2 {
    margin-bottom: 0.5rem;
}

.achievement-bar-line {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sky-ink);
    line-height: 1.45;
}

.achievement-bar-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    min-width: 0;
}

.achievement-bar-today-metric {
    flex: 0 1 auto;
}

.achievement-bar-streak-row {
    margin-top: 0;
}

.achievement-bar-streak-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-weight: 700;
    color: #0369a1;
}

.streak-row-trophy {
    font-size: 0.9em;
    line-height: 1;
    flex-shrink: 0;
}

.streak-row-trophy.hidden {
    display: none;
}

/* --- v2.1: Today's progress card --- */

html.pill-post-submit-scroll {
    overflow-anchor: none;
}

html.hero-flap-celebration-open {
    overflow: hidden;
}

html.hero-flap-celebration-open body {
    overflow: hidden;
}

.daily-progress-card {
    position: relative;
    margin-bottom: 2rem;
    padding-top: 1.25rem;
    scroll-margin-top: 16px;
    scroll-margin-bottom: 16px;
    overflow-anchor: none;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(148, 163, 184, 0.12);
}

.daily-progress-card.daily-progress-card--day-complete {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fde68a;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.15);
}

.daily-progress-card-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sky-ink);
    align-self: start;
}

.daily-progress-card-title-icon {
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
}

.daily-progress-card-footer {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.daily-progress-card-footer-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
}

.daily-progress-card-actions {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.daily-progress-check-btn {
    min-height: 28px;
    padding: 0.1rem 0.62rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.06);
    cursor: pointer;
}

.daily-progress-check-btn:not(:disabled):not(.daily-progress-check-btn--inactive) {
    cursor: pointer;
}

.daily-progress-check-btn--inactive,
.daily-progress-check-btn--inactive:disabled {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: default;
    box-shadow: none;
    opacity: 1;
}

.daily-progress-check-btn--inactive:active {
    transform: none;
}

.daily-progress-check-btn:disabled:not(.daily-progress-check-btn--inactive) {
    opacity: 0.65;
    cursor: wait;
}

@media (min-width: 700px) {
    .daily-progress-card-footer {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem 0.75rem;
    }

    .daily-progress-subtitle {
        flex: 1 1 auto;
        min-width: 0;
    }

    .daily-progress-card-footer-aside {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        width: auto;
        margin-left: auto;
    }

    .daily-progress-card-actions {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }
}

.daily-progress-card-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    grid-template-rows: auto auto auto auto;
    row-gap: 0.55rem;
    column-gap: 1rem;
}

.daily-progress-card-grid > .daily-progress-card-title {
    grid-column: 1;
    grid-row: 1;
}

.daily-progress-card-grid > .daily-progress-row:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.daily-progress-card-grid > .daily-progress-row:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
}

.daily-progress-card-grid > .daily-progress-row:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
}

.daily-progress-row {
    position: relative;
    min-height: 3.35rem;
}

.daily-progress-row-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.daily-progress-row-arrow.is-visible {
    opacity: 1;
    visibility: visible;
}

.daily-progress-row-arrow.is-visible.daily-progress-arrow-landed-instant {
    transition: none;
}

.daily-progress-row-arrow.daily-progress-arrow-reveal-fade {
    visibility: visible;
    opacity: 0;
    transition: none;
    animation: joshua-reveal-fade-in 0.5s ease forwards;
}

.daily-progress-row-arrow-points {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ca8a04;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
}

.daily-progress-row-arrow-points.is-travel-target-hidden,
.daily-progress-row-arrow-line.is-travel-target-hidden,
.daily-progress-row-arrow-banked.is-travel-target-hidden {
    opacity: 0;
    visibility: hidden;
}

.daily-progress-arrow-points-reveal-fade {
    animation: joshua-reveal-fade-in 0.5s ease forwards;
}

.daily-progress-unbanked-traveller {
    position: fixed;
    z-index: 30;
    margin: 0;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ca8a04;
    letter-spacing: -0.02em;
    white-space: nowrap;
    pointer-events: none;
    transform-origin: center center;
}

.daily-progress-travel-trail-crumb {
    position: fixed;
    z-index: 29;
    width: 13px;
    height: 13px;
    margin: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: daily-progress-trail-crumb-fade 0.8s ease-out forwards;
}

.daily-progress-travel-trail-crumb svg {
    display: block;
    width: 100%;
    height: 100%;
}

.daily-progress-travel-trail-crumb path {
    fill: #eab308;
    stroke: #ca8a04;
    stroke-width: 2.5;
    paint-order: stroke fill;
}

@keyframes daily-progress-trail-crumb-fade {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.daily-progress-row-arrow-banked {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ca8a04;
    text-align: center;
    white-space: nowrap;
}

.daily-progress-arrow-banked-celebrate {
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.32));
    animation: banked-arrow-halo 1.2s ease-out forwards;
}

.daily-progress-arrow-banked-celebrate .daily-progress-row-arrow-banked {
    animation: banked-label-pop 0.4s ease-out forwards;
}

.daily-progress-banked-sparkle {
    position: fixed;
    z-index: 28;
    width: 12px;
    height: 12px;
    margin: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: banked-arrow-sparkle-burst 1.4s ease-out forwards;
}

.daily-progress-banked-sparkle svg {
    display: block;
    width: 100%;
    height: 100%;
}

.daily-progress-banked-sparkle path {
    fill: #fde047;
    stroke: #facc15;
    stroke-width: 2;
    paint-order: stroke fill;
}

.daily-progress-trophy-plinth-sparkle {
    position: fixed;
    z-index: 28;
    width: 12px;
    height: 12px;
    margin: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: trophy-plinth-sparkle-burst 2.1s ease-out forwards;
}

.daily-progress-trophy-plinth-sparkle svg {
    display: block;
    width: 100%;
    height: 100%;
}

.daily-progress-trophy-plinth-sparkle path {
    fill: #fde047;
    stroke: #facc15;
    stroke-width: 2;
    paint-order: stroke fill;
}

@keyframes trophy-plinth-sparkle-burst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }
    25% {
        opacity: 1;
        transform: translate(
                calc(-50% + var(--banked-sparkle-dx, 0px) * 0.35),
                calc(-50% + var(--banked-sparkle-dy, 0px) * 0.35)
            )
            scale(1);
    }
    75% {
        opacity: 1;
        transform: translate(
                calc(-50% + var(--banked-sparkle-dx, 0px)),
                calc(-50% + var(--banked-sparkle-dy, 0px))
            )
            scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(
                calc(-50% + var(--banked-sparkle-dx, 0px)),
                calc(-50% + var(--banked-sparkle-dy, 0px))
            )
            scale(0.55);
    }
}

@keyframes banked-label-pop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes banked-arrow-halo {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 252, 150, 0.82))
            drop-shadow(0 0 16px rgba(255, 248, 110, 0.62));
    }
    35% {
        filter: drop-shadow(0 0 16px rgba(255, 255, 200, 1))
            drop-shadow(0 0 32px rgba(255, 252, 140, 1))
            drop-shadow(0 0 48px rgba(255, 248, 100, 1))
            drop-shadow(0 0 64px rgba(255, 242, 80, 0.92))
            drop-shadow(0 0 80px rgba(255, 238, 60, 0.78));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.32))
            drop-shadow(0 0 18px rgba(250, 204, 21, 0.2));
    }
}

@keyframes banked-arrow-sparkle-burst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }
    25% {
        opacity: 1;
        transform: translate(
                calc(-50% + var(--banked-sparkle-dx, 0px) * 0.35),
                calc(-50% + var(--banked-sparkle-dy, 0px) * 0.35)
            )
            scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(
                calc(-50% + var(--banked-sparkle-dx, 0px)),
                calc(-50% + var(--banked-sparkle-dy, 0px))
            )
            scale(0.55);
    }
}

.daily-progress-row-arrow-line {
    position: relative;
    width: 100%;
    height: 0.75rem;
}

.daily-progress-row-arrow-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.35), #eab308);
    border-radius: 2px;
}

.daily-progress-row-arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 8px solid #eab308;
    filter: drop-shadow(0 0 1px rgba(180, 83, 9, 0.35));
}

.daily-progress-row-cells {
    min-width: 0;
    display: grid;
    grid-template-columns: 3.35rem minmax(0, 0.4152fr) minmax(0, 0.4152fr);
    --daily-progress-cell-gap: 0.4rem;
    --daily-progress-status-inset: calc(var(--daily-progress-cell-gap) * 0.2);
    gap: var(--daily-progress-cell-gap);
    align-items: stretch;
}

.daily-progress-row-joshua.daily-progress-row-box {
    margin-left: var(--daily-progress-status-inset);
}

.daily-progress-row--pill .daily-progress-row-joshua.daily-progress-row-box {
    margin-right: var(--daily-progress-status-inset);
}

.daily-progress-row--mood .daily-progress-row-joshua.daily-progress-row-box {
    margin-right: var(--daily-progress-status-inset);
}

.daily-progress-row--joshua-only .daily-progress-row-tim-tady {
    display: none;
}

.daily-progress-row--joshua-only .daily-progress-row-joshua.daily-progress-row-box {
    grid-column: 2 / 4;
}

.daily-progress-row-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.85rem;
    padding: 0.35rem 0.4rem 0.4rem;
    border: 2px solid #93c5fd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(148, 163, 184, 0.08);
    gap: 0.2rem;
}

.daily-progress-row-task.daily-progress-row-box {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.12rem;
    padding: 0.3rem 0.2rem 0.35rem;
}

#daily-progress-row-breakfast:not(.daily-progress-row-complete) .daily-progress-row-task.daily-progress-row-box {
    background:
        linear-gradient(180deg, rgba(186, 230, 253, 0.3) 0%, rgba(186, 230, 253, 0) 75%),
        #fff;
}

.daily-progress-row-joshua.daily-progress-row-box {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0;
    min-height: 2.85rem;
}

.daily-progress-joshua-bit-surface {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 1;
    align-self: stretch;
    min-width: 0;
    min-height: 2.85rem;
    padding: 0.35rem 0.4rem 0.4rem;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0.2rem;
    box-sizing: border-box;
    isolation: isolate;
}

.daily-progress-joshua-bit-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid #93c5fd;
    background: #fff;
    box-shadow: 0 1px 3px rgba(148, 163, 184, 0.08);
    transform-origin: center center;
    pointer-events: none;
    z-index: 0;
}

.daily-progress-joshua-bit-surface > * {
    position: relative;
    z-index: 1;
}

.daily-progress-joshua-bit-surface.daily-progress-joshua-bit-pulse::before {
    animation: joshua-bit-pop 0.9s ease;
}

.daily-progress-joshua-bit-surface.daily-progress-joshua-bit-pulse .daily-progress-status-awaiting {
    animation: joshua-awaiting-fade-out 0.9s ease forwards;
}

.daily-progress-row-joshua .daily-progress-box-body.daily-progress-joshua-reveal-fade {
    animation: joshua-reveal-fade-in 0.5s ease forwards;
}

.daily-progress-row-tim-tady.daily-progress-row-box {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0;
    min-height: 2.85rem;
}

.daily-progress-tim-tady-bit-surface {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 1;
    align-self: stretch;
    min-width: 0;
    min-height: 2.85rem;
    padding: 0.35rem 0.4rem 0.4rem;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0.2rem;
    box-sizing: border-box;
    isolation: isolate;
}

.daily-progress-tim-tady-bit-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid #93c5fd;
    background: #fff;
    box-shadow: 0 1px 3px rgba(148, 163, 184, 0.08);
    transform-origin: center center;
    pointer-events: none;
    z-index: 0;
}

.daily-progress-tim-tady-bit-surface > * {
    position: relative;
    z-index: 1;
}

.daily-progress-tim-tady-bit-surface.daily-progress-tim-tady-bit-pulse::before {
    animation: joshua-bit-pop 0.9s ease;
}

.daily-progress-tim-tady-bit-surface.daily-progress-tim-tady-bit-pulse .daily-progress-status-too-soon {
    animation: joshua-awaiting-fade-out 0.9s ease forwards;
}

.daily-progress-tim-tady-bit-surface.daily-progress-tim-tady-bit-pulse .daily-progress-status-awaiting {
    animation: joshua-awaiting-fade-out 0.9s ease forwards;
}

.daily-progress-row-tim-tady .daily-progress-box-body.daily-progress-tim-tady-reveal-fade {
    animation: joshua-reveal-fade-in 0.5s ease forwards;
}

.daily-progress-row-joshua {
    text-align: center;
}

.daily-progress-row-joshua .daily-progress-box-label,
.daily-progress-row-joshua .daily-progress-box-body {
    justify-content: center;
    text-align: center;
}

.daily-progress-row-tim-tady {
    text-align: center;
}

.daily-progress-row-tim-tady .daily-progress-box-label,
.daily-progress-row-tim-tady .daily-progress-box-body {
    justify-content: center;
    text-align: center;
}

.daily-progress-row-tim-tady .daily-progress-box-body {
    min-height: 1.65rem;
    height: 1.65rem;
    box-sizing: border-box;
}

.daily-progress-row-task {
    min-width: 0;
}

.daily-progress-row-title {
    display: block;
    width: 100%;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    color: var(--sky-ink);
    letter-spacing: 0.01em;
}

.daily-progress-box-label {
    display: block;
    width: 100%;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: #64748b;
    letter-spacing: 0.01em;
}

.daily-progress-row-task .daily-progress-box-label {
    display: none;
}

.daily-progress-box-body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.65rem;
}

.daily-progress-row-locked .daily-progress-row-box:not(.daily-progress-row-joshua) {
    opacity: 0.62;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-color: #cbd5e1;
    box-shadow: none;
}

.daily-progress-row-locked .daily-progress-joshua-bit-surface {
    opacity: 0.62;
}

.daily-progress-row-locked .daily-progress-joshua-bit-surface::before {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-color: #cbd5e1;
    box-shadow: none;
}

.daily-progress-row-locked .daily-progress-tim-tady-bit-surface {
    opacity: 0.62;
}

.daily-progress-row-locked .daily-progress-tim-tady-bit-surface::before {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-color: #cbd5e1;
    box-shadow: none;
}

.daily-progress-row-pill-visual {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.68rem;
    height: 1.68rem;
    overflow: visible;
}

.daily-progress-row-pill-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(var(--capsule-pill-tilt));
}

.daily-progress-row-pill-icon--sleep {
    display: none;
}

.daily-progress-row-locked.daily-progress-row--pill .daily-progress-row-pill-icon--awake {
    display: none;
}

.daily-progress-row-locked.daily-progress-row--pill .daily-progress-row-pill-icon--sleep {
    display: block;
}

.daily-progress-row-locked.daily-progress-row--pill .daily-progress-row-task {
    opacity: 1;
}

.daily-progress-row-locked.daily-progress-row--pill .daily-progress-row-title {
    opacity: 0.62;
}

.daily-progress-row-locked.daily-progress-row--pill .daily-progress-row-pill-visual .card-sleep-zzz {
    display: flex;
    font-size: 0.48rem;
    top: -0.1rem;
}

.daily-progress-row-mood-icon {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.68rem;
    height: 1.68rem;
    overflow: visible;
    font-size: 1.15rem;
    line-height: 1;
}

.daily-progress-row-mood-icon-face--sleep {
    display: none;
}

.daily-progress-row-locked.daily-progress-row--mood .daily-progress-row-task {
    opacity: 1;
}

.daily-progress-row-locked.daily-progress-row--mood .daily-progress-row-title {
    opacity: 0.62;
}

.daily-progress-row-locked.daily-progress-row--mood .daily-progress-row-mood-icon-face--awake {
    display: none;
}

.daily-progress-row-locked.daily-progress-row--mood .daily-progress-row-mood-icon-face--sleep {
    display: inline;
}

.daily-progress-row-locked.daily-progress-row--mood .daily-progress-row-mood-icon .card-sleep-zzz {
    display: flex;
    font-size: 0.48rem;
    top: -0.1rem;
}

.daily-progress-status-ring {
    width: 1.485rem;
    height: 1.485rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    pointer-events: none;
}

.daily-progress-status-ring.is-compact {
    width: 1.05rem;
    height: 1.05rem;
    min-width: 1.05rem;
    min-height: 1.05rem;
    flex-shrink: 0;
    border-width: 1.5px;
}

.daily-progress-status-ring.is-compact .daily-progress-status-points {
    font-size: 0.46rem;
}

.daily-progress-joshua-preapproved {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    width: 100%;
    max-width: 100%;
    padding: 0.05rem 0 0;
    text-align: center;
}

.daily-progress-joshua-preapproved-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    min-width: 0;
}

.daily-progress-joshua-preapproved-main {
    gap: 0.15rem;
    flex-shrink: 0;
}

.daily-progress-joshua-preapproved-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(0.58rem * 1.1);
    flex-shrink: 0;
}

.daily-progress-joshua-preapproved .daily-progress-joshua-tick {
    font-size: 0.855rem;
    line-height: 1;
}

.daily-progress-joshua-preapproved-done {
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
    color: #059669;
    white-space: nowrap;
}

.daily-progress-joshua-preapproved-unbanked {
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ca8a04;
    letter-spacing: -0.02em;
    /* Desktop: one line. Phone: may wrap after +N (before "(") — see §16.1 */
    white-space: nowrap;
}

.daily-progress-joshua-preapproved-unbanked.daily-progress-joshua-unbanked-fade-out {
    animation: joshua-awaiting-fade-out 0.5s ease forwards;
}

.daily-progress-joshua-tick {
    color: #059669;
    font-size: calc(0.58rem - 1px);
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
}

.daily-progress-status-stack .daily-progress-joshua-tick {
    font-size: 0.855rem;
    line-height: 1;
}

.daily-progress-row-joshua.daily-progress-row-box:has(.daily-progress-joshua-preapproved) {
    align-items: stretch;
}

.daily-progress-row-joshua .daily-progress-box-body:has(.daily-progress-joshua-preapproved) {
    align-items: stretch;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-top: 0.05rem;
}

.daily-progress-row-preapproved .daily-progress-joshua-bit-surface::before {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 1px 3px rgba(251, 191, 36, 0.12);
}

/* Gold completion — mood submit (label + Joshua's bit); pill approve (bits first, label on unbanked fade) */
.daily-progress-row-complete .daily-progress-row-task.daily-progress-row-box {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 1px 3px rgba(251, 191, 36, 0.12);
}

.daily-progress-row-complete-bits .daily-progress-joshua-bit-surface::before,
.daily-progress-row-complete-bits .daily-progress-tim-tady-bit-surface::before,
.daily-progress-row-complete .daily-progress-joshua-bit-surface::before,
.daily-progress-row-complete .daily-progress-tim-tady-bit-surface::before {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 1px 3px rgba(251, 191, 36, 0.12);
}

.daily-progress-status-awaiting {
    display: block;
    width: 100%;
    font-size: calc(0.72rem - 2px);
    font-weight: 800;
    line-height: 1.2;
    color: #94a3b8;
    text-align: center;
    cursor: default;
    pointer-events: none;
}

.daily-progress-status-too-soon {
    display: block;
    width: 100%;
    font-size: calc(0.72rem - 2px);
    font-weight: 800;
    line-height: 1.2;
    color: #cbd5e1;
    text-align: center;
    cursor: default;
    pointer-events: none;
}

.daily-progress-status-ring.is-done {
    border-color: #6ee7b7;
    background: #ecfdf5;
}

.daily-progress-status-ring.is-points-pending {
    border-color: #eab308;
    background: #fefce8;
}

.daily-progress-status-check {
    font-size: 0.855rem;
    font-weight: 800;
    line-height: 1;
    color: #059669;
}

.daily-progress-status-points {
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1;
    color: #ca8a04;
    letter-spacing: -0.02em;
}

.daily-progress-status-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
}

.daily-progress-status-caption {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
    color: #059669;
    text-align: center;
}

.daily-progress-status-caption--yes {
    color: #0369a1;
}

.daily-progress-row-tim-tady .daily-progress-status-stack {
    gap: 0.08rem;
}

.daily-progress-row-tim-tady .daily-progress-status-caption--yes {
    font-size: 0.52rem;
    line-height: 1;
}

.daily-progress-tim-tady-badge {
    display: block;
    width: calc(1.485rem * 0.9 * 0.9);
    height: calc(1.485rem * 0.9 * 0.9);
    flex-shrink: 0;
    object-fit: contain;
    transform: scaleX(-1);
}

.daily-progress-row-tim-tady .daily-progress-tim-tady-badge {
    width: 1.05rem;
    height: 1.05rem;
    object-fit: contain;
}

.daily-progress-trophy {
    grid-column: 2;
    grid-row: 1 / 5;
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    align-self: start;
}

.daily-progress-trophy-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 3.25rem;
}

.daily-progress-trophy-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 3.25rem;
    object-fit: fill;
    object-position: top center;
    transition: opacity 0.8s ease;
}

.daily-progress-trophy-image--dissolve {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.daily-progress-trophy-image.is-dissolving-out {
    opacity: 0;
}

.daily-progress-trophy-image--dissolve.is-dissolving-in {
    opacity: 1;
}

.daily-progress-trophy-image.is-dissolve-settling,
.daily-progress-trophy-image--dissolve.is-dissolve-settling {
    transition: none;
}

.daily-progress-trophy.daily-progress-trophy-plinth-celebrate {
    overflow: visible;
    z-index: 3;
}

.daily-progress-trophy-plinth-celebrate-halo {
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.32));
    animation: trophy-plinth-halo 2.1s ease-out forwards;
}

@keyframes trophy-plinth-halo {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 252, 150, 0.82))
            drop-shadow(0 0 20px rgba(255, 248, 110, 0.62));
    }
    25% {
        filter: drop-shadow(0 0 18px rgba(255, 255, 200, 1))
            drop-shadow(0 0 36px rgba(255, 252, 140, 1))
            drop-shadow(0 0 54px rgba(255, 248, 100, 1))
            drop-shadow(0 0 72px rgba(255, 242, 80, 0.92))
            drop-shadow(0 0 90px rgba(255, 238, 60, 0.78));
    }
    45% {
        filter: drop-shadow(0 0 15px rgba(255, 252, 170, 0.82))
            drop-shadow(0 0 30px rgba(255, 248, 125, 0.62))
            drop-shadow(0 0 45px rgba(255, 242, 95, 0.45))
            drop-shadow(0 0 58px rgba(255, 238, 75, 0.32));
    }
    70% {
        filter: drop-shadow(0 0 13px rgba(253, 224, 71, 0.5))
            drop-shadow(0 0 24px rgba(250, 204, 21, 0.32));
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(253, 224, 71, 0.32))
            drop-shadow(0 0 22px rgba(250, 204, 21, 0.2));
    }
}

.daily-progress-streak-hero {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0.75rem 3.25rem;
    pointer-events: none;
}

.daily-progress-streak-hero-stage {
    position: absolute;
    inset: 0;
}

.daily-progress-streak-hero--desktop {
    overflow: visible;
}

.daily-progress-streak-hero--desktop .daily-progress-streak-hero-stage {
    overflow: visible;
}

.daily-progress-streak-hero--desktop .daily-progress-streak-hero-word {
    left: 50%;
    transform: translate(-50%, -50%) translateX(var(--streak-scroll-x, 0));
}

.daily-progress-streak-hero--mobile .daily-progress-streak-hero-stage {
    overflow: hidden;
}

.daily-progress-card--streak-hero-desktop {
    overflow: visible;
    z-index: 4;
}

.daily-progress-card--streak-hero-mobile {
    overflow: hidden;
}

.daily-progress-streak-hero-word {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0;
    width: max-content;
    max-width: none;
    text-align: left;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(-50%) translateX(var(--streak-scroll-x, 0));
    will-change: transform;
}

.daily-progress-streak-hero-letter {
    display: inline-block;
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff7a8 0%, #fde047 42%, #ca8a04 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #a16207) drop-shadow(0 0 10px rgba(250, 204, 21, 0.35));
    opacity: 0;
    transform: scale(0.2);
    animation: streak-hero-letter-slam 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--streak-letter-i, 0) * 0.04s);
}

.daily-progress-streak-hero-letter--bang {
    animation-name: streak-hero-letter-slam-bang;
}

.daily-progress-streak-hero-word--settling {
    animation: streak-hero-settle 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform;
}

.daily-progress-streak-hero-word--settling .daily-progress-streak-hero-letter {
    animation: none;
    opacity: 1;
    transform: scale(1);
}

.daily-progress-card--streak-hero .daily-progress-card-grid {
    opacity: 0.72;
    transition: opacity 0.2s ease;
}

.daily-progress-subtitle--streak-pending {
    visibility: hidden;
}

.daily-progress-subtitle-status--measure {
    visibility: hidden;
    display: block;
}

@keyframes streak-hero-letter-slam {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    70% {
        opacity: 1;
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes streak-hero-letter-slam-bang {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    55% {
        opacity: 1;
        transform: scale(1.35);
    }
    78% {
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes streak-hero-settle {
    to {
        transform: translate(var(--streak-settle-dx, 0), var(--streak-settle-dy, 0))
            scale(var(--streak-settle-scale, 1));
        opacity: 0.9;
    }
}

.hero-flap-celebration {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
}

.hero-flap-celebration--visible {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    animation: hero-flap-celebration-fade-in 0.5s ease forwards;
}

.hero-flap-celebration--fade-out {
    opacity: 0;
    pointer-events: none;
    animation: none;
    transition: opacity 0.4s ease-out;
}

.hero-flap-celebration-stack {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(92vw, 440px);
    max-height: 88vh;
    --celebration-stack-gif-height: min(40vh, 260px);
    --celebration-stack-hero-height: calc(var(--streak-combined-strip-height, 7.5rem) * 2);
    min-height: calc(var(--celebration-stack-gif-height) + var(--celebration-stack-hero-height));
}

.hero-flap-celebration-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: min(70vw, 280px);
    height: var(--celebration-stack-gif-height);
    max-height: var(--celebration-stack-gif-height);
    aspect-ratio: 735 / 801;
}

.hero-flap-celebration-burst {
    position: absolute;
    width: 135%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(253, 224, 71, 0.55) 0deg 11deg,
        rgba(234, 179, 8, 0.12) 11deg 22deg
    );
    animation: hero-flap-burst-spin 10s linear infinite;
    z-index: 0;
}

.hero-flap-celebration-gif {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 735 / 801;
    object-fit: contain;
    /*filter: drop-shadow(0 10px 28px rgba(120, 53, 15, 0.4));*/
}

.daily-progress-streak-hero--combined.daily-progress-streak-hero--stack-reserved {
    visibility: hidden;
}

.daily-progress-streak-hero--combined {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    --streak-combined-strip-height: 7.5rem;
    min-height: var(--streak-combined-strip-height);
    margin-top: var(--streak-combined-strip-height);
    padding: 0.25rem 0 0;
    z-index: 1;
}

.daily-progress-streak-hero--combined .daily-progress-streak-hero-stage {
    position: relative;
    width: 100%;
    min-height: var(--streak-combined-strip-height);
}

.daily-progress-streak-hero--combined.daily-progress-streak-hero--desktop {
    overflow: visible;
}

.daily-progress-streak-hero--combined.daily-progress-streak-hero--desktop .daily-progress-streak-hero-stage {
    overflow: visible;
}

.daily-progress-streak-hero--combined.daily-progress-streak-hero--mobile .daily-progress-streak-hero-stage {
    overflow: hidden;
}

@media (min-width: 441px) {
    .hero-flap-celebration-stack {
        --celebration-stack-gif-height: min(62.5vh, 406px);
    }

    .hero-flap-celebration-inner {
        width: min(92vw, 438px);
        transform: translateY(30px);
        overflow: visible;
    }

    .hero-flap-celebration-gif {
        width: 120%;
    }

    .daily-progress-streak-hero--combined {
        margin-top: calc(var(--streak-combined-strip-height) * 0.9);
        transform: translateY(5px);
    }
}

@media (max-height: 700px) {
    .hero-flap-celebration-stack {
        --celebration-stack-gif-height: min(34vh, 220px);
    }

    .hero-flap-celebration-inner {
        width: min(62vw, 240px);
    }

    .daily-progress-streak-hero--combined {
        --streak-combined-strip-height: 6.5rem;
    }
}

@media (min-width: 441px) and (max-height: 700px) {
    .hero-flap-celebration-stack {
        --celebration-stack-gif-height: min(53.125vh, 344px);
    }

    .hero-flap-celebration-inner {
        width: min(92vw, 375px);
    }

    .hero-flap-celebration-gif {
        width: 120%;
    }
}

@keyframes hero-flap-burst-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hero-flap-celebration-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.daily-progress-subtitle {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: #64748b;
}

.daily-progress-subtitle--streak {
    line-height: 1.15;
    min-height: 1.15em;
    overflow: hidden;
}

.daily-progress-subtitle-status--streak {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    max-width: 100%;
    line-height: 1;
}

.daily-progress-subtitle-streak-letter {
    display: inline-block;
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff7a8 0%, #fde047 42%, #ca8a04 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(161, 98, 7, 0.55));
    line-height: 1;
    vertical-align: baseline;
}

.daily-progress-subtitle-status {
    display: block;
}

.daily-progress-subtitle-no-news {
    margin: 0;
    width: auto;
    max-width: 100%;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0369a1;
    text-align: right;
    white-space: nowrap;
}

.daily-progress-subtitle-fade-out--half {
    animation: joshua-awaiting-fade-out 0.5s ease forwards;
}

.daily-progress-subtitle-fade-up--half {
    animation: daily-progress-subtitle-fade-up 0.5s ease forwards;
}

.daily-progress-subtitle-reveal-fade--half {
    animation: joshua-reveal-fade-in 0.5s ease forwards;
}

.daily-progress-subtitle-fade-out {
    animation: joshua-awaiting-fade-out 0.5s ease forwards;
}

.daily-progress-subtitle-reveal-fade {
    animation: joshua-reveal-fade-in 0.5s ease forwards;
}

.total-count-pop {
    display: inline-block;
    animation: streak-count-pop 1.1s ease;
}

.total-count-pop--scale-only {
    display: inline-block;
    animation: streak-count-pop-scale 1.1s ease;
}

.tady-points-metric-pop-handoff {
    display: inline-block;
    animation: tady-points-metric-pop-handoff 1.3s ease;
}

.tady-points-metric-pop-handoff--scale-only {
    display: inline-block;
    animation: tady-points-metric-pop-handoff-scale 1.3s ease;
}

.tady-points-metric-pop-handoff.tady-points-metric-handoff-swap,
.tady-points-metric-pop-handoff--scale-only.tady-points-metric-handoff-swap {
    display: inline-grid;
    vertical-align: baseline;
}

.tady-points-metric-handoff-layer {
    grid-area: 1 / 1;
    will-change: opacity, transform;
}

.v2-retained-ui {
    display: none !important;
}

.achievement-bar-heading-spacer {
    margin: 0;
    height: calc(0.95rem * 1.45);
}

.achievement-bar-today-group {
    margin-bottom: 0;
}

.achievement-bar-total-group {
    margin-bottom: 0;
}

.achievement-bar-streak-group {
    margin-bottom: 0;
}

.achievement-bar-total-group .achievement-bar-total-hint {
    margin: 0;
    padding-left: 0.35rem;
    font-size: 0.74em;
    font-weight: 500;
    line-height: 1.25;
}

.achievement-bar-total-group .achievement-bar-total-row + .achievement-bar-total-hint {
    margin-top: 0.05rem;
}

.achievement-bar-today-group .achievement-bar-today-heading-row {
    margin: 0;
}

.achievement-bar-today-group .achievement-bar-today-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 0.2rem 0 0;
    padding-left: 0.35rem;
}

.achievement-bar-subline {
    font-size: 0.88em;
    font-weight: 600;
    color: #64748b;
}

.achievement-bar-subline .achievement-bar-label,
.achievement-bar-subline strong {
    font-weight: 600;
    color: inherit;
}

.achievement-bar-today-split {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    min-width: 0;
}

.achievement-bar-label {
    font-weight: 700;
}

.achievement-points-star {
    font-size: 0.9em;
    line-height: 1;
    flex-shrink: 0;
}

.achievement-icon-fade-in {
    animation: achievement-icon-fade-in 0.5s ease;
}

.achievement-bar-line + .achievement-bar-line {
    margin-top: 0.65rem;
}

.streak-count-display {
    display: inline-block;
    min-width: 1.25rem;
    text-align: center;
}

.streak-count-pop {
    animation: streak-count-pop 1.1s ease;
}

.streak-celebration-msg {
    margin: 0.55rem 0 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #92400e;
    background: linear-gradient(90deg, #fef9c3 0%, #fde68a 100%);
    border: 2px solid #fcd34d;
    border-radius: 14px;
    text-align: center;
}

.standby-points-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 2rem;
    box-shadow: 0 6px 18px var(--shadow);
    overflow: hidden;
}

.standby-points-bar.hidden {
    display: none;
}

.standby-points-details {
    margin: 0;
}

.standby-points-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
}

.standby-points-summary::-webkit-details-marker {
    display: none;
}

.standby-points-summary-label strong {
    color: #475569;
    font-weight: 700;
}

.standby-points-chevron::before {
    content: '▸';
    display: block;
    font-size: 0.95rem;
    line-height: 1;
    color: #64748b;
    transition: transform 150ms ease;
}

.standby-points-details[open] .standby-points-chevron::before {
    transform: rotate(90deg);
}

.standby-points-panel {
    padding: 0 0.75rem 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.standby-points-today-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0.4rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
}

.standby-points-label {
    font-weight: 600;
}

.standby-points-today-row strong {
    color: #475569;
    font-weight: 700;
}

.standby-points-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.standby-points-item {
    margin: 0;
    padding: 0.2rem 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}

@keyframes streak-count-pop {
    0% { transform: scale(1); }
    35% { transform: scale(2.5); color: #ca8a04; }
    100% { transform: scale(1); }
}

@keyframes streak-count-pop-scale {
    0% { transform: scale(1); }
    35% { transform: scale(2.5); }
    100% { transform: scale(1); }
}

@keyframes tady-points-metric-pop-handoff {
    0% { transform: scale(1); }
    29.62% { transform: scale(2.5); color: #ca8a04; }
    45% { transform: scale(2.5); color: #ca8a04; }
    64.23% { transform: scale(2.5); color: #ca8a04; }
    79.62% { transform: scale(2.5); color: #ca8a04; }
    100% { transform: scale(1); color: inherit; }
}

@keyframes tady-points-metric-pop-handoff-scale {
    0% { transform: scale(1); }
    29.62% { transform: scale(2.5); }
    45% { transform: scale(2.5); }
    64.23% { transform: scale(2.5); }
    79.62% { transform: scale(2.5); }
    100% { transform: scale(1); }
}

@keyframes achievement-icon-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.parent-page .hero-cloud h1 {
    margin: 0;
}

.parent-page .hero-cloud .parent-subtitle {
    margin: 0.35rem 0 0;
}

.parent-tim-tady-page .hero-cloud .today-date {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--sky-ink);
    white-space: nowrap;
}

.parent-tim-tady-card .tim-tady-date {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--sky-ink);
}

.tim-tady-task {
    padding: 0.85rem 0;
    border-top: 1px solid #e2e8f0;
}

.tim-tady-task:first-of-type {
    border-top: none;
    padding-top: 0;
}

.tim-tady-task h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--sky-ink);
}

.tim-tady-status {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
}

.tim-tady-status-times {
    margin: 0 0 0.65rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
}

.tim-tady-approve-btn {
    min-height: 44px;
}

.tim-tady-approve-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tim-tady-approved-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    border: 2px solid #6ee7b7;
    border-radius: 999px;
}

.tim-tady-no-confirm-note {
    margin: 0.35rem 0 0;
    max-width: 36rem;
}

.tim-tady-task-mood {
    padding-bottom: 0;
}

.tim-tady-mood-description {
    margin: 0.35rem 0 0;
    max-width: 36rem;
    white-space: pre-wrap;
}

/* Joshua Today — narrow viewport (≤440px) — card/points density only [§16.2]
   Hero icon + hamburger half-size applies to all Joshua pages at ≤699px. */

@media (max-width: 440px) {
    .today-page .greeting {
        min-height: 30.5px;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .today-page .points-visual {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }

    .today-page .points-star {
        font-size: 1.225rem;
    }

    .today-page .achievement-bar .pill-sparkle {
        font-size: 0.425rem;
    }

    .today-page .pill-card.task-card .pill-visual {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }

    .today-page .pill-card.task-card .pill-visual .pill-mascot {
        transform: scale(0.5);
        margin: -11px -13px;
    }

    .today-page .pill-card.task-card .pill-visual .card-sleep-zzz {
        font-size: 0.34rem;
    }

    .today-page .task-card-locked.pill-card.task-card .pill-visual .card-sleep-zzz {
        top: calc(-0.22rem + 4px);
    }

    .today-page .mood-note-card .mood-header-face {
        font-size: 1.175rem;
    }

    .today-page .mood-note-card .pill-visual .card-sleep-zzz {
        font-size: 0.34rem;
    }

    .today-page .mood-note-card .mood-submit-row--feedback {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 0.32rem;
    }

    .today-page .mood-note-card .mood-submit-row--feedback .mood-submit-slot {
        height: auto;
        overflow: visible;
    }

    .today-page .mood-note-card .mood-submit-row--feedback .mood-submit-slot > .pill-success-msg:not(.hidden):not(.msg-dismissed) {
        position: static;
        max-width: 100%;
    }

    .today-page .mood-note-card .mood-submit-row--feedback > .tim-tady-awaiting-msg:not(.hidden):not(.msg-dismissed) {
        position: static;
        max-width: 100%;
    }

    .achievement-bar-body h2 {
        display: none;
    }

    .achievement-bar-today-breakdown-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.12rem;
    }

    .achievement-bar-today-split {
        width: 100%;
    }

    .pill-card.task-card .pill-card-inner {
        margin-top: 0.15rem;
    }

    .pill-card.task-card:not(.mood-note-card) {
        --task-card-footer-min-height: 4.35rem;
    }

    .pill-card.task-card:not(.mood-note-card) .task-card-messages {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 0.32rem;
    }

    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .pill-success-msg,
    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .tim-tady-awaiting-msg,
    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .tim-tady-yes-msg,
    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .card-opens-at {
        position: static;
        order: 0;
        width: max-content;
        max-width: 100%;
    }

    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .pill-success-msg:not(.hidden):not(.msg-dismissed) {
        order: 1;
    }

    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .tim-tady-awaiting-msg:not(.hidden):not(.msg-dismissed) {
        order: 2;
    }

    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .tim-tady-yes-msg:not(.hidden):not(.msg-dismissed) {
        order: 3;
    }

    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .reminder-banner,
    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .streak-nudge {
        position: static;
        order: 10;
        width: 100%;
        margin-top: 0.15rem;
    }

    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .hidden,
    .pill-card.task-card:not(.mood-note-card) .task-card-messages > .msg-dismissed {
        display: none !important;
    }

    .daily-progress-joshua-preapproved {
        align-items: flex-start;
        text-align: left;
    }

    .daily-progress-joshua-preapproved-row,
    .daily-progress-joshua-preapproved-slot {
        justify-content: flex-start;
    }

    /* Joshua's bit: multi-word status may wrap; +N (unbanked) may break after +N */
    .daily-progress-joshua-preapproved-unbanked {
        white-space: normal;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

/* —— Joshua area menu + settings / about —— */

.hero-tim-tady-stack {
    display: contents;
}

/* Desktop (≥700px): fixed top-left hamburger */
.joshua-menu-open {
    position: fixed;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 60;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 2px solid #7dd3fc;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*
 * Phone layout (≤699px) — single shared edge with Review card stacking
 * and desktop containers (700px+). Hamburger sits in the hero pillbox.
 */
@media (max-width: 699px) {
    .hero-cloud {
        min-height: calc(0.85rem + 30.5px + 0.35rem + 30.5px + 1rem);
        padding-right: calc(0.85rem + 30.5px + 0.35rem);
    }

    .hero-tim-tady-stack {
        position: absolute;
        top: 0.85rem;
        right: 0.85rem;
        bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 30.5px;
    }

    .hero-tim-tady-stack .hero-tim-tady-icon-wrap {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        flex: 0 0 auto;
        width: 30.5px;
        height: 30.5px;
    }

    .hero-tim-tady-stack .hero-tim-tady-icon {
        border-width: 1.2px;
        padding: 2px;
    }

    .hero-tim-tady-stack .hero-tim-tady-icon-wrap .card-sleep-zzz.hero-tim-tady-sleep-zzz {
        top: calc(-0.22rem + 10px);
        font-size: 0.5rem;
    }

    .joshua-menu-open {
        position: static;
        top: auto;
        left: auto;
        z-index: 2;
        width: 30.5px;
        height: 30.5px;
        border-radius: 10px;
        border-width: 1.2px;
    }

    .joshua-menu-open .joshua-menu-open-bars {
        width: 0.85rem;
        gap: 0.2rem;
    }

    .joshua-menu-open .joshua-menu-open-bars span {
        height: 2px;
    }

    .today-page .hero-cloud-row,
    .review-page .hero-cloud-row {
        display: block;
    }

    .today-page .hero-cloud-lede,
    .review-page .hero-cloud-lede {
        display: block;
    }

    .today-page .greeting,
    .today-page .hero-cloud-text h1,
    .today-page .today-date,
    .review-page .greeting,
    .review-page .hero-cloud-text h1 {
        grid-column: unset;
        grid-row: unset;
    }

    .today-page .today-date {
        margin-top: 0.15rem;
    }

    .today-page .tim-tady-daily-quote,
    .review-page .tim-tady-daily-quote {
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
        width: 100%;
        max-width: 100%;
        margin-top: 0.35rem;
    }

    .today-page .tim-tady-daily-quote.typewriter-reserved,
    .review-page .tim-tady-daily-quote.typewriter-reserved {
        width: 100%;
        max-width: 100%;
    }
}

/* Very narrow (≤440px): Today card/points density only — hero icon+menu already half-size at ≤699 */

.joshua-menu-open:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

.joshua-menu-open-bars {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    width: 1.15rem;
}

.joshua-menu-open-bars span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: var(--sky-ink);
}

.joshua-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.joshua-menu-backdrop--visible {
    opacity: 1;
}

.joshua-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: min(20rem, calc(100vw - 2rem));
    height: 100%;
    max-height: 100dvh;
    background: #ffffff;
    box-shadow: 8px 0 28px rgba(2, 132, 199, 0.18);
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

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

.joshua-menu-panel-inner {
    padding: 1rem 1.1rem 1.5rem;
}

.joshua-menu-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.joshua-menu-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--sky-ink);
}

.joshua-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 12px;
    background: #f0f9ff;
    color: var(--sky-ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.joshua-menu-close:hover {
    background: #e0f2fe;
}

.joshua-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.joshua-menu-link {
    display: block;
    text-decoration: none;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0369a1;
    background: transparent;
}

.joshua-menu-link:hover {
    background: #f0f9ff;
}

.joshua-menu-link-active {
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--sky-ink);
}

body.joshua-menu-open-active {
    overflow: hidden;
}

.joshua-settings-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.joshua-settings-card-title {
    margin: 0 0 0.65rem;
    font-size: 0.98rem;
    color: var(--sky-ink);
}

.joshua-settings-rows {
    display: grid;
    gap: 0.85rem;
}

.joshua-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid #dbeafe;
    border-radius: 14px;
    background: #f8fafc;
}

.joshua-settings-row.parent-check {
    justify-content: flex-start;
    font-weight: 700;
}

.joshua-settings-row-label {
    font-weight: 800;
    color: #1e293b;
}

.joshua-settings-row--sound {
    flex-wrap: wrap;
}

.joshua-sound-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.joshua-sound-icon {
    display: inline-flex;
    color: #0284c7;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.joshua-sound-icon--off {
    color: #94a3b8;
}

.joshua-sound-switch-wrap:not(.joshua-sound-switch-wrap--off) .joshua-sound-icon--on {
    color: #0284c7;
    opacity: 1;
}

.joshua-sound-switch-wrap:not(.joshua-sound-switch-wrap--off) .joshua-sound-icon--off {
    opacity: 0.4;
}

.joshua-sound-switch-wrap--off .joshua-sound-icon--on {
    opacity: 0.4;
}

.joshua-sound-switch-wrap--off .joshua-sound-icon--off {
    color: #64748b;
    opacity: 1;
}

.joshua-sound-switch {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.joshua-sound-switch:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
    border-radius: 999px;
}

.joshua-sound-switch-track {
    position: relative;
    display: block;
    width: 3.4rem;
    height: 1.9rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%);
    border: 2px solid #0284c7;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.joshua-sound-switch-thumb {
    position: absolute;
    top: 50%;
    left: 0.18rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
    transform: translateY(-50%);
    transition: left 0.2s ease;
}

/* Sound on = thumb toward left speaker; sound off = thumb toward right speaker */
.joshua-sound-switch--off .joshua-sound-switch-track,
.joshua-sound-switch[aria-checked="false"] .joshua-sound-switch-track {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #94a3b8;
}

.joshua-sound-switch--off .joshua-sound-switch-thumb,
.joshua-sound-switch[aria-checked="false"] .joshua-sound-switch-thumb {
    left: calc(100% - 1.35rem - 0.18rem);
}

@media (prefers-reduced-motion: reduce) {
    .joshua-sound-switch-thumb,
    .joshua-sound-icon {
        transition: none;
    }
}

.joshua-settings-row--locked {
    opacity: 0.85;
}

.joshua-settings-coming-soon {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.joshua-about-placeholder {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #334155;
}

.joshua-about-card h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
}

.joshua-about-inline-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    vertical-align: middle;
}

.joshua-about-pill-icon {
    display: inline-block;
    width: 1.35em;
    height: 1.35em;
    object-fit: contain;
    vertical-align: -0.25em;
}

.joshua-about-mood-faces,
.joshua-about-graph-icon {
    font-weight: 400;
    letter-spacing: 0.05em;
}

.joshua-about-graph-icon {
    margin-left: 0.15em;
}

.parent-guide-card h2,
.parent-guide-card h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
}

.parent-guide-card h2 {
    margin-top: 1.35rem;
}

.parent-guide-card h2:first-child {
    margin-top: 0;
}

.parent-guide-card h3 {
    margin-top: 1rem;
    font-size: 1.05rem;
}

.parent-guide-card p,
.parent-guide-card li {
    line-height: 1.55;
    color: #334155;
}

.parent-guide-inline-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    vertical-align: middle;
}

.parent-guide-pill-icon,
.parent-guide-hero-icon {
    display: inline-block;
    width: 1.35em;
    height: 1.35em;
    object-fit: contain;
    vertical-align: -0.25em;
}

.parent-guide-mood-faces,
.parent-guide-section-emoji {
    font-weight: 400;
    letter-spacing: 0.05em;
}

@media (min-width: 700px) {
    .parent-guide-page .container {
        max-width: 880px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .joshua-menu-backdrop,
    .joshua-menu-panel {
        transition: none;
    }
}

@media (min-width: 700px) {
    .joshua-settings-page .container,
    .joshua-about-page .container {
        max-width: 880px;
    }
}
