:root {

    --background: #fff9f7;

    --surface: #ffffff;

    --text: #332b3d;

    --muted: #756b7d;

    --border: #eee5f1;

    --pink: #ef6f9f;

    --pink-light: #ffe6ef;

    --purple: #9b6ee8;

    --purple-light: #f0e8ff;

    --mint: #4cae96;

    --mint-light: #ddf6ef;

    --blue: #5e8fd6;

    --blue-light: #e4efff;

    --shadow: 0 14px 35px rgba(80, 52, 95, 0.10);

    --radius-large: 24px;

    --radius-medium: 18px;

}

* {

    box-sizing: border-box;

}

html {

    background: #f5eef6;

}

body {

    min-height: 100vh;

    margin: 0;

    color: var(--text);

    background: var(--background);

    font-family: Arial, Helvetica, sans-serif;

}

a {

    color: inherit;

    text-decoration: none;

}

.app-shell {

    width: 100%;

    min-height: 100vh;

    max-width: 480px;

    margin: 0 auto;

    padding-bottom: 105px;

    background: var(--background);

}

.app-header {

    position: sticky;

    top: 0;

    z-index: 20;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 20px;

    background: rgba(255, 249, 247, 0.96);

    border-bottom: 1px solid rgba(238, 229, 241, 0.8);

    backdrop-filter: blur(12px);

}

.app-logo {

    font-size: 1.15rem;

    font-weight: 800;

    letter-spacing: -0.03em;

}

.app-logo span {

    color: var(--pink);

}

.privacy-badge {

    padding: 6px 10px;

    color: #725568;

    background: var(--pink-light);

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;

}

.app-content {

    padding: 24px 18px 30px;

}

.welcome-section {

    margin-bottom: 22px;

}

.eyebrow,

.card-label {

    margin: 0 0 7px;

    color: var(--pink);

    font-size: 0.76rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.09em;

}

.welcome-section h1 {

    margin: 0;

    font-size: clamp(1.8rem, 8vw, 2.4rem);

    line-height: 1.1;

    letter-spacing: -0.045em;

}

.welcome-message {

    margin: 10px 0 0;

    color: var(--muted);

    font-size: 0.98rem;

    line-height: 1.55;

}

.challenge-card,

.future-card {

    padding: 21px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow);

}

.challenge-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;

}

.challenge-heading h2 {

    margin: 0;

    font-size: 1.4rem;

}

.progress-number {

    display: grid;

    width: 48px;

    height: 48px;

    place-items: center;

    color: #7149aa;

    background: var(--purple-light);

    border-radius: 50%;

    font-size: 0.9rem;

    font-weight: 800;

}

.progress-track {

    height: 11px;

    margin-top: 20px;

    overflow: hidden;

    background: #f1ebf4;

    border-radius: 999px;

}

.progress-fill {

    min-width: 11px;

    height: 100%;

    background: linear-gradient(90deg, var(--pink), var(--purple));

    border-radius: inherit;

}

.progress-caption {

    margin: 12px 0 0;

    color: var(--muted);

    font-size: 0.84rem;

}

.stats-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin: 16px 0;

}

.stat-card {

    min-height: 132px;

    padding: 17px;

    display: flex;

    flex-direction: column;

    border-radius: var(--radius-medium);

}

.stat-pink {

    background: var(--pink-light);

}

.stat-purple {

    background: var(--purple-light);

}

.stat-mint {

    background: var(--mint-light);

}

.stat-blue {

    background: var(--blue-light);

}

.stat-label {

    color: var(--muted);

    font-size: 0.78rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;

}

.stat-card strong {

    margin: auto 0 6px;

    font-size: 1.5rem;

    line-height: 1;

}

.stat-note {

    color: var(--muted);

    font-size: 0.76rem;

    line-height: 1.35;

}

.action-stack {

    display: grid;

    gap: 12px;

    margin-bottom: 16px;

}

.primary-action,

.sos-action {

    min-height: 84px;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color: #ffffff;

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow);

}

.primary-action {

    background: linear-gradient(135deg, #e76f9d, #a36ee8);

}

.sos-action {

    color: #4b3442;

    background: linear-gradient(135deg, #ffe6eb, #ffe9cf);

    border: 1px solid #f5dadd;

}

.primary-action strong,

.sos-action strong {

    display: block;

    margin-bottom: 5px;

    font-size: 1rem;

}

.primary-action small,

.sos-action small {

    display: block;

    opacity: 0.82;

    font-size: 0.78rem;

    line-height: 1.35;

}

.action-arrow {

    flex: 0 0 auto;

    font-size: 1.5rem;

}

.future-card {

    background: linear-gradient(145deg, #ffffff, #faf5ff);

}

.future-card blockquote {

    margin: 12px 0 17px;

    font-size: 1.08rem;

    font-weight: 700;

    line-height: 1.55;

}

.future-card a {

    color: var(--purple);

    font-size: 0.87rem;

    font-weight: 800;

}

.bottom-nav {

    position: fixed;

    right: 0;

    bottom: 0;

    left: 0;

    z-index: 30;

    width: 100%;

    max-width: 480px;

    min-height: 78px;

    margin: 0 auto;

    padding: 10px 8px max(10px, env(safe-area-inset-bottom));

    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    background: rgba(255, 255, 255, 0.97);

    border-top: 1px solid var(--border);

    box-shadow: 0 -10px 30px rgba(70, 45, 80, 0.08);

    backdrop-filter: blur(14px);

}

.nav-item {

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    color: #8a808f;

    font-size: 0.62rem;

    font-weight: 700;

    text-align: center;

}

.nav-icon {

    display: grid;

    width: 27px;

    height: 27px;

    place-items: center;

    border-radius: 9px;

    font-size: 1rem;

    font-weight: 800;

}

.nav-item.active {

    color: var(--purple);

}

.nav-item.active .nav-icon {

    color: #ffffff;

    background: linear-gradient(135deg, var(--pink), var(--purple));

}

@media (min-width: 481px) {

    body {

        padding: 24px 0;

    }

    .app-shell {

        min-height: calc(100vh - 48px);

        overflow: hidden;

        border: 1px solid var(--border);

        border-radius: 30px;

        box-shadow: 0 20px 60px rgba(70, 45, 80, 0.15);

    }

    .bottom-nav {

        bottom: 24px;

        border-right: 1px solid var(--border);

        border-left: 1px solid var(--border);

        border-radius: 0 0 30px 30px;

    }

}

/* Daily Check-In */

.page-heading {

    margin-bottom: 22px;

}

.page-heading h1 {

    margin: 0;

    font-size: clamp(1.8rem, 8vw, 2.35rem);

    line-height: 1.1;

    letter-spacing: -0.045em;

}

.page-heading > p:last-child {

    margin: 10px 0 0;

    color: var(--muted);

    font-size: 0.95rem;

    line-height: 1.55;

}

.check-in-form {

    display: grid;

    gap: 16px;

}

.form-card {

    padding: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow);

}

.field-group {

    display: grid;

    gap: 8px;

}

.field-group + .field-group {

    margin-top: 18px;

}

.field-group label {

    color: var(--text);

    font-size: 0.85rem;

    font-weight: 800;

}

.field-group label small {

    color: var(--muted);

    font-size: 0.72rem;

    font-weight: 500;

}

.field-group input,

.field-group textarea {

    width: 100%;

    padding: 14px 15px;

    color: var(--text);

    background: #fcf9fd;

    border: 1px solid #ded3e3;

    border-radius: 14px;

    outline: none;

    font: inherit;

}

.field-group input:focus,

.field-group textarea:focus {

    border-color: var(--purple);

    box-shadow: 0 0 0 4px rgba(155, 110, 232, 0.12);

}

.field-group textarea {

    resize: vertical;

    line-height: 1.5;

}

.measurement-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;

}

.input-with-unit {

    position: relative;

}

.input-with-unit input {

    padding-right: 46px;

}

.input-with-unit span {

    position: absolute;

    top: 50%;

    right: 15px;

    color: var(--muted);

    font-size: 0.8rem;

    font-weight: 800;

    transform: translateY(-50%);

}

.section-heading {

    margin-bottom: 16px;

}

.section-heading h2 {

    margin: 0;

    font-size: 1.15rem;

}

.activity-options {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

}

.choice-chip {

    position: relative;

    cursor: pointer;

}

.choice-chip input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}

.choice-chip span {

    min-height: 42px;

    padding: 11px 14px;

    display: inline-flex;

    align-items: center;

    color: #695d70;

    background: #faf6fb;

    border: 1px solid #e5dce8;

    border-radius: 999px;

    font-size: 0.82rem;

    font-weight: 700;

    transition: 160ms ease;

}

.choice-chip input:checked + span {

    color: #ffffff;

    background: linear-gradient(135deg, var(--pink), var(--purple));

    border-color: transparent;

    box-shadow: 0 8px 18px rgba(155, 110, 232, 0.22);

}

.choice-chip input:focus-visible + span {

    outline: 3px solid rgba(155, 110, 232, 0.25);

    outline-offset: 2px;

}

.mood-options {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 8px;

}

.mood-choice {

    position: relative;

    min-width: 0;

    cursor: pointer;

}

.mood-choice input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}

.mood-choice > span:not(.mood-face) {

    display: block;

    overflow: hidden;

    font-size: 0.66rem;

    font-weight: 700;

    text-overflow: ellipsis;

}

.mood-choice {

    min-height: 82px;

    padding: 11px 5px;

    color: var(--muted);

    background: #faf7fb;

    border: 1px solid #e7dfea;

    border-radius: 16px;

    text-align: center;

    transition: 160ms ease;

}

.mood-choice:has(input:checked) {

    color: #68469a;

    background: var(--purple-light);

    border-color: #bca0ed;

    box-shadow: 0 8px 18px rgba(155, 110, 232, 0.15);

}

.mood-choice:has(input:focus-visible) {

    outline: 3px solid rgba(155, 110, 232, 0.25);

    outline-offset: 2px;

}

.mood-face {

    display: block;

    margin-bottom: 7px;

    font-size: 1.55rem;

}

.notes-field {

    margin-top: 20px;

}

.save-button {

    width: 100%;

    min-height: 56px;

    padding: 15px 20px;

    color: #ffffff;

    background: linear-gradient(135deg, var(--pink), var(--purple));

    border: 0;

    border-radius: 17px;

    box-shadow: 0 12px 25px rgba(155, 110, 232, 0.25);

    cursor: pointer;

    font: inherit;

    font-size: 0.95rem;

    font-weight: 800;

}

.save-button:active {

    transform: translateY(1px);

}

.status-message {

    margin: 0 0 1rem;

    padding: 1rem;

    border-radius: 16px;

    font-weight: 700;

    line-height: 1.5;

}

.status-message ul {

    margin: 0.5rem 0 0;

    padding-left: 1.25rem;

}

.status-success {

    color: #285943;

    background: #e5f8ee;

    border: 1px solid #bce9cf;

}

.status-error {

    color: #842f45;

    background: #fff0f3;

    border: 1px solid #f4c4cf;

}

.cycle-section {

    margin-top: 1.5rem;

}

.progress-panel {

    margin-top: 1rem;

    padding: 1.25rem;

    background: #ffffff;

    border: 1px solid rgba(104, 78, 112, 0.1);

    border-radius: 24px;

    box-shadow: 0 14px 35px rgba(78, 57, 86, 0.08);

}

.weight-chart {

    margin-top: 1rem;

    padding: 1rem;

    color: #c65d86;

    background: linear-gradient(

        180deg,

        rgba(248, 219, 230, 0.45),

        rgba(255, 255, 255, 0.8)

    );

    border-radius: 18px;

    overflow: hidden;

}

.weight-chart svg {

    display: block;

    width: 100%;

    height: auto;

    min-height: 180px;

}

.chart-summary {

    display: flex;

    justify-content: space-between;

    gap: 1rem;

    margin-top: 0.75rem;

    color: #665a68;

    font-size: 0.9rem;

}

.chart-summary span {

    display: flex;

    flex-direction: column;

    gap: 0.2rem;

}

.chart-summary span:last-child {

    text-align: right;

}

.chart-summary strong {

    color: #2e2830;

    font-size: 1rem;

}

.empty-state {

    margin: 1rem 0 0;

    padding: 1rem;

    color: #6d626f;

    background: #faf7fb;

    border-radius: 16px;

    line-height: 1.5;

}

.check-in-history {

    display: grid;

    gap: 0.75rem;

    margin-top: 1rem;

}

.history-entry {

    display: flex;

    justify-content: space-between;

    gap: 1rem;

    padding: 1rem;

    background: #faf7fb;

    border-radius: 18px;

}

.history-entry > div:first-child {

    display: flex;

    flex-direction: column;

    gap: 0.25rem;

}

.history-entry > div:first-child span {

    color: #8a7c8c;

    font-size: 0.85rem;

    text-transform: capitalize;

}

.history-measurements {

    display: grid;

    gap: 0.35rem;

    text-align: right;

    color: #6d626f;

    font-size: 0.85rem;

}

.history-measurements strong {

    color: #2e2830;

}

@media (max-width: 420px) {

    .history-entry {

        flex-direction: column;

    }

    .history-measurements {

        grid-template-columns: 1fr 1fr;

        text-align: left;

    }

}

/* SOS PAGE */

.sos-heading {

    margin-bottom: 24px;

}

.sos-back-link {

    display: inline-block;

    margin-bottom: 24px;

    color: #6f6470;

    font-size: 0.9rem;

    font-weight: 700;

    text-decoration: none;

}

.sos-heading h1 {

    margin: 6px 0 10px;

}

.sos-introduction {

    margin: 0;

    color: #6f6470;

    font-size: 1rem;

}

.sos-choice-list {

    display: grid;

    gap: 14px;

}

.sos-choice {

    width: 100%;

    min-height: 88px;

    display: grid;

    grid-template-columns: 48px 1fr auto;

    gap: 14px;

    align-items: center;

    padding: 16px;

    border: 1px solid rgba(79, 63, 78, 0.08);

    border-radius: 22px;

    color: #302830;

    font: inherit;

    text-align: left;

    box-shadow: 0 10px 24px rgba(72, 52, 68, 0.07);

    cursor: pointer;

    transition:

        transform 0.2s ease,

        box-shadow 0.2s ease;

}

.sos-choice:hover {

    transform: translateY(-2px);

    box-shadow: 0 14px 28px rgba(72, 52, 68, 0.11);

}

.sos-choice:focus-visible {

    outline: 3px solid rgba(176, 111, 151, 0.35);

    outline-offset: 3px;

}

.sos-choice-icon {

    display: grid;

    width: 48px;

    height: 48px;

    place-items: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.65);

    font-size: 1.7rem;

}

.sos-choice-text {

    display: grid;

    gap: 5px;

}

.sos-choice-text strong {

    font-size: 1rem;

    line-height: 1.25;

}

.sos-choice-text small {

    color: #756a75;

    font-size: 0.8rem;

    line-height: 1.3;

}

.sos-choice-arrow {

    font-size: 1.3rem;

    font-weight: 800;

}

.sos-choice-pink {

    background: #fce4ef;

}

.sos-choice-purple {

    background: #eee5fb;

}

.sos-choice-blue {

    background: #e3effb;

}

.sos-choice-mint {

    background: #e2f4ec;

}

.sos-choice-peach {

    background: #fceddf;

}

.sos-choice-rose {

    background: #f9e1e2;

}

.sos-reassurance {

    padding: 24px 10px 14px;

    color: #806f7d;

    font-weight: 700;

    text-align: center;

}

.sos-reassurance p {

    margin: 0;

}

.sos-reminder-card {

    margin-top: 8px;

    padding: 22px;

    border: 1px solid rgba(165, 112, 143, 0.12);

    border-radius: 22px;

    background: linear-gradient(135deg, #fff7fa, #f4edfb);

    color: #64515f;

    font-weight: 700;

    line-height: 1.6;

    text-align: center;

}

.sos-reminder-card p {

    margin: 0;

}

@media (min-width: 700px) {

    .sos-choice-list {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}

/* SOS FOLLOW-UP CHOICES */

.sos-follow-up-list {

    display: grid;

    gap: 14px;

}

.sos-follow-up-choice {

    width: 100%;

    min-height: 70px;

    display: grid;

    grid-template-columns: 42px 1fr;

    gap: 12px;

    align-items: center;

    padding: 15px 18px;

    border: 1px solid rgba(143, 91, 124, 0.12);

    border-radius: 20px;

    background: #fff7fa;

    color: #302830;

    font: inherit;

    text-align: left;

    box-shadow: 0 8px 20px rgba(72, 52, 68, 0.06);

    cursor: pointer;

    transition:

        transform 0.2s ease,

        box-shadow 0.2s ease;

}

.sos-follow-up-choice:hover {

    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(72, 52, 68, 0.1);

}

.sos-follow-up-choice:focus-visible {

    outline: 3px solid rgba(176, 111, 151, 0.35);

    outline-offset: 3px;

}

.sos-follow-up-choice span {

    display: grid;

    width: 42px;

    height: 42px;

    place-items: center;

    border-radius: 14px;

    background: #f6e4ed;

    font-size: 1.45rem;

}

.sos-follow-up-choice strong {

    font-size: 0.95rem;

    line-height: 1.35;

}

.sos-detail-field {

    display: grid;

    gap: 8px;

    margin-top: 8px;

    padding: 18px;

    border-radius: 20px;

    background: #f1eafb;

}

.sos-detail-field label {

    color: #413741;

    font-weight: 800;

}

.sos-detail-field label small {

    margin-left: 5px;

    color: #7d7080;

    font-weight: 500;

}

.sos-detail-field input {

    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    border: 1px solid rgba(93, 71, 91, 0.18);

    border-radius: 14px;

    background: #ffffff;

    color: #302830;

    font: inherit;

}

.sos-detail-field input:focus {

    border-color: #b16f97;

    outline: 3px solid rgba(177, 111, 151, 0.14);

}



/* SOS INTERVENTION RESULT */

.sos-selected-detail {

    margin-top: 16px;

    padding: 12px 15px;

    border-radius: 14px;

    background: #f5edf5;

    color: #645764;

}

.sos-intervention-card {

    margin-bottom: 14px;

    padding: 20px;

    border: 1px solid rgba(77, 57, 73, 0.08);

    border-radius: 22px;

    box-shadow: 0 9px 22px rgba(72, 52, 68, 0.06);

}

.sos-ai-card {

    background: #fce4ef;

}

.sos-action-card {

    background: #fff0d9;

}

.sos-why-card {

    background: #eee5fb;

}

.sos-fact-card {

    background: #e2f4ec;

}

.sos-intervention-text {

    margin: 8px 0 0;

    color: #3e343d;

    font-size: 1rem;

    font-weight: 650;

    line-height: 1.55;

}

.sos-intervention-actions {

    display: grid;

    gap: 12px;

    margin-top: 20px;

}

.sos-intervention-actions form {

    display: grid;

    gap: 12px;

}

.sos-secondary-button,

.sos-good-button {

    width: 100%;

    min-height: 52px;

    display: grid;

    place-items: center;

    padding: 13px 16px;

    border-radius: 16px;

    font: inherit;

    font-weight: 800;

    text-align: center;

    text-decoration: none;

    cursor: pointer;

}

.sos-secondary-button {

    border: 1px solid rgba(113, 82, 105, 0.15);

    background: #ffffff;

    color: #5e4357;

}

.sos-good-button {

    border: 0;

    background: #7b5270;

    color: #ffffff;

}

.sos-secondary-button:hover,

.sos-good-button:hover {

    transform: translateY(-1px);

}

.sos-secondary-button:focus-visible,

.sos-good-button:focus-visible {

    outline: 3px solid rgba(176, 111, 151, 0.35);

    outline-offset: 3px;

}

/* SOS LAZY FLOW AND TIMER */

.sos-big-instruction {

    margin: 10px 0;

    color: #332a32;

    font-size: 1.55rem;

    font-weight: 900;

    line-height: 1.25;

}

.sos-timer-card {

    padding: 28px 20px;

    border: 1px solid rgba(113, 82, 105, 0.1);

    border-radius: 24px;

    background: linear-gradient(145deg, #eee5fb, #fce8f1);

    box-shadow: 0 12px 28px rgba(72, 52, 68, 0.08);

    text-align: center;

}

.sos-countdown {

    margin: 20px 0 14px;

    color: #6e4562;

    font-size: clamp(3.5rem, 18vw, 5.5rem);

    font-weight: 900;

    letter-spacing: -0.05em;

    line-height: 1;

}

.sos-timer-message {

    max-width: 320px;

    margin: 0 auto;

    color: #5f515d;

    font-weight: 700;

    line-height: 1.5;

}

.sos-timer-outcomes {

    display: grid;

    gap: 12px;

    margin-top: 20px;

}

.sos-timer-outcomes[hidden] {

    display: none;

}



/* SOS MINIMUM VIABLE DAY */

.sos-mission-list {

    display: grid;

    gap: 12px;

    margin: 16px 0 0;

    padding: 0;

    list-style: none;

}

.sos-mission-list li {

    position: relative;

    padding: 13px 14px 13px 44px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.7);

    color: #433942;

    font-weight: 700;

    line-height: 1.4;

}

.sos-mission-list li::before {

    content: "✓";

    position: absolute;

    top: 50%;

    left: 14px;

    display: grid;

    width: 22px;

    height: 22px;

    place-items: center;

    border-radius: 50%;

    background: #8b6680;

    color: #ffffff;

    font-size: 0.75rem;

    transform: translateY(-50%);

}

/* SOS SCALE INTERVENTION */

.sos-scale-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 14px;

}

.sos-scale-stat {

    display: grid;

    gap: 8px;

    padding: 18px 14px;

    border-radius: 20px;

    box-shadow: 0 8px 20px rgba(72, 52, 68, 0.06);

}

.sos-scale-latest {

    background: #fce4ef;

}

.sos-scale-trend {

    background: #e2f4ec;

}

.sos-scale-stat span {

    color: #6f5d6b;

    font-size: 0.78rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}

.sos-scale-stat strong {

    color: #332a32;

    font-size: 1.55rem;

    line-height: 1.1;

}

.sos-scale-stat small {

    color: #716570;

    font-size: 0.72rem;

    line-height: 1.35;

}

.sos-cycle-note {

    margin: 14px 0 0;

    padding: 13px 14px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.7);

    color: #664e60;

    font-size: 0.88rem;

    font-weight: 700;

    line-height: 1.45;

}



/* SOS RESULTS INTERVENTION */

.sos-results-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 14px;

}

.sos-result-stat {

    display: grid;

    gap: 8px;

    min-height: 132px;

    padding: 17px 14px;

    border-radius: 20px;

    box-shadow: 0 8px 20px rgba(72, 52, 68, 0.06);

}

.sos-result-day {

    background: #eee5fb;

}

.sos-result-weight {

    background: #fce4ef;

}

.sos-result-waist {

    background: #e3effb;

}

.sos-result-strength {

    background: #e2f4ec;

}

.sos-result-checkins {

    grid-column: 1 / -1;

    min-height: auto;

    background: #fceddf;

}

.sos-result-stat span {

    color: #6f5d6b;

    font-size: 0.75rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.04em;

}

.sos-result-stat strong {

    color: #332a32;

    font-size: 1.45rem;

    line-height: 1.15;

}

.sos-result-stat small {

    color: #716570;

    font-size: 0.72rem;

    line-height: 1.35;

}

/* Future Me page */

.future-me-hero {

    padding: 28px 22px;

    margin-bottom: 20px;

    overflow: hidden;

    position: relative;

    border: 1px solid rgba(159, 92, 143, 0.12);

    border-radius: 28px;

    background:

        radial-gradient(

            circle at top right,

            rgba(222, 197, 255, 0.72),

            transparent 42%

        ),

        linear-gradient(

            145deg,

            #fff8fc 0%,

            #f8efff 52%,

            #eef9f6 100%

        );

    box-shadow: 0 16px 36px rgba(85, 56, 82, 0.08);

}

.future-me-hero::after {

    content: "✨";

    position: absolute;

    top: 18px;

    right: 22px;

    font-size: 30px;

    opacity: 0.75;

}

.future-me-hero h1 {

    max-width: 290px;

    margin: 8px 0 12px;

    color: #2f2730;

    font-size: clamp(2rem, 8vw, 2.75rem);

    line-height: 1.05;

}

.future-me-introduction {

    max-width: 340px;

    margin: 0;

    color: #675b66;

    font-size: 1rem;

    line-height: 1.6;

}

.future-me-purpose {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 22px;

}

.future-me-purpose a {

    display: inline-flex;

    align-items: center;

    min-height: 38px;

    padding: 8px 12px;

    border: 1px solid rgba(159, 92, 143, 0.16);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.82);

    color: #514650;

    font-size: 0.82rem;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(85, 56, 82, 0.05);

    transition:

        transform 160ms ease,

        *background* 160ms ease,

        box-shadow 160ms ease;

}

.future-me-purpose a:hover {

    background: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 8px 20px rgba(85, 56, 82, 0.1);

}

.future-me-purpose a:active {

    transform: translateY(1px);

}

\#future-learn,

\#future-do,

\#future-why {

    scroll-margin-top: 20px;

}



/* Future Me learning card */

.future-learning-card {

    padding: 24px 20px;

    margin-bottom: 20px;

    border: 1px solid rgba(107, 155, 139, 0.18);

    border-radius: 24px;

    background: linear-gradient(

        145deg,

        #f7fffc 0%,

        #eefaf5 100%

    );

    box-shadow: 0 12px 28px rgba(66, 102, 91, 0.08);

}

.future-card-heading {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

}

.future-card-icon {

    display: grid;

    flex: 0 0 48px;

    width: 48px;

    height: 48px;

    place-items: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.85);

    font-size: 24px;

    box-shadow: 0 7px 18px rgba(66, 102, 91, 0.08);

}

.future-card-heading .card-label {

    margin: 0 0 3px;

}

.future-card-category {

    color: #65756f;

    font-size: 0.82rem;

    font-weight: 700;

}

.future-learning-card h2 {

    margin: 0 0 12px;

    color: #302a30;

    font-size: 1.45rem;

    line-height: 1.2;

}

.future-main-fact {

    margin: 0;

    color: #504850;

    font-size: 0.97rem;

    line-height: 1.65;

}

.future-translation {

    padding: 15px 16px;

    margin-top: 18px;

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.76);

    color: #514850;

}

.future-translation strong {

    color: #875575;

    font-size: 0.82rem;

    letter-spacing: 0.04em;

    text-transform: uppercase;

}

.future-translation p {

    margin: 7px 0 0;

    line-height: 1.55;

}

.future-more-details {

    margin-top: 16px;

    border-top: 1px solid rgba(107, 155, 139, 0.17);

}

.future-more-details summary {

    padding: 16px 2px 4px;

    color: #714b69;

    font-size: 0.88rem;

    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    cursor: pointer;

}

.future-more-details p {

    margin: 12px 0 8px;

    color: #5e565d;

    line-height: 1.6;

}

.future-more-details small {

    display: block;

    color: #7d747b;

    font-size: 0.72rem;

    line-height: 1.45;

}

/* Future Me mini challenge */

.future-challenge-card {

    padding: 24px 20px;

    margin-bottom: 20px;

    border: 1px solid rgba(175, 132, 208, 0.17);

    border-radius: 24px;

    background: linear-gradient(

        145deg,

        #fff9fd 0%,

        #f5efff 100%

    );

    box-shadow: 0 12px 28px rgba(99, 67, 121, 0.08);

}

.future-challenge-card h2 {

    margin: 0 0 10px;

    color: #302a30;

    font-size: 1.45rem;

    line-height: 1.2;

}

.future-challenge-introduction {

    margin: 0;

    color: #625862;

    line-height: 1.6;

}

.future-workout-list {

    display: grid;

    gap: 10px;

    padding: 0;

    margin: 20px 0 14px;

    list-style: none;

    counter-reset: future-workout;

}

.future-workout-list li {

    display: flex;

    align-items: center;

    min-height: 52px;

    padding: 12px 14px;

    border: 1px solid rgba(175, 132, 208, 0.13);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.8);

    color: #504750;

    line-height: 1.4;

}

.future-workout-list li strong {

    display: inline-grid;

    flex: 0 0 38px;

    width: 38px;

    height: 38px;

    margin-right: 11px;

    place-items: center;

    border-radius: 12px;

    background: #eee0fa;

    color: #764f88;

    font-size: 0.95rem;

}

.future-workout-rounds {

    padding: 12px 14px;

    border-radius: 14px;

    background: #eadcf5;

    color: #654a72;

    font-size: 0.88rem;

    font-weight: 800;

    text-align: center;

}

.future-safety-details {

    margin: 14px 0 18px;

}

.future-safety-details summary {

    color: #776a75;

    font-size: 0.8rem;

    font-weight: 700;

    cursor: pointer;

}

.future-safety-details p {

    padding: 12px 14px;

    margin: 9px 0 0;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.72);

    color: #6d636b;

    font-size: 0.82rem;

    line-height: 1.55;

}

.future-action-button {

    width: 100%;

    min-height: 52px;

    padding: 12px 18px;

    border: 0;

    border-radius: 17px;

    background: linear-gradient(

        135deg,

        #9f5c8f,

        #79529b

    );

    color: #ffffff;

    font: inherit;

    font-size: 0.9rem;

    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow: 0 10px 22px rgba(121, 82, 155, 0.22);

}

.future-action-button:hover {

    transform: translateY(-1px);

}

.future-action-button:active {

    transform: translateY(1px);

}

.future-challenge-confirmation {

    padding: 16px;

    margin-top: 14px;

    border: 1px solid rgba(107, 155, 139, 0.19);

    border-radius: 17px;

    background: #effaf5;

    color: #455e55;

    text-align: center;

}

.future-challenge-confirmation p {

    margin: 6px 0 0;

    font-size: 0.85rem;

    line-height: 1.5;

}

/* Message From Future You */

.future-message-card {

    position: relative;

    padding: 25px 20px;

    margin-bottom: 20px;

    overflow: hidden;

    border: 1px solid rgba(218, 151, 164, 0.18);

    border-radius: 24px;

    background: linear-gradient(

        145deg,

        #fff8f8 0%,

        #fff0f5 100%

    );

    box-shadow: 0 12px 28px rgba(121, 76, 88, 0.08);

}

.future-message-card::after {

    content: "";

    position: absolute;

    top: -42px;

    right: -42px;

    width: 125px;

    height: 125px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.38);

}

.future-message-label {

    display: flex;

    align-items: center;

    gap: 9px;

    position: relative;

    z-index: 1;

}

.future-message-label span {

    font-size: 23px;

}

.future-message-label p {

    margin: 0;

    color: #9a516d;

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;

}

.future-message-card blockquote {

    position: relative;

    z-index: 1;

    padding: 0;

    margin: 20px 0 8px;

    border: 0;

    color: #382f36;

    font-size: 1.28rem;

    font-weight: 750;

    line-height: 1.48;

}

.future-message-emoji {

    position: relative;

    z-index: 1;

    margin: 6px 0 18px;

    font-size: 26px;

}

.future-message-takeaway {

    position: relative;

    z-index: 1;

    padding: 15px 16px;

    border: 1px solid rgba(218, 151, 164, 0.14);

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.7);

}

.future-message-takeaway strong {

    color: #97516b;

    font-size: 0.78rem;

    letter-spacing: 0.05em;

    text-transform: uppercase;

}

.future-message-takeaway p {

    margin: 7px 0 0;

    color: #5f535a;

    font-size: 0.9rem;

    line-height: 1.55;

}

/* Future Me surprise section */

.future-surprise-card {

    padding: 24px 20px;

    margin-bottom: 20px;

    border: 1px solid rgba(105, 143, 184, 0.17);

    border-radius: 24px;

    background: linear-gradient(

        145deg,

        #f8fbff 0%,

        #eef5ff 100%

    );

    box-shadow: 0 12px 28px rgba(69, 91, 124, 0.08);

}

.future-surprise-heading {

    display: flex;

    align-items: center;

    gap: 12px;

}

.future-surprise-heading > span {

    display: grid;

    flex: 0 0 48px;

    width: 48px;

    height: 48px;

    place-items: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.85);

    font-size: 24px;

    box-shadow: 0 7px 18px rgba(69, 91, 124, 0.08);

}

.future-surprise-heading .card-label {

    margin: 0 0 3px;

}

.future-surprise-heading h2 {

    margin: 0;

    color: #302a30;

    font-size: 1.4rem;

    line-height: 1.2;

}

.future-surprise-introduction {

    margin: 17px 0;

    color: #5e606a;

    font-size: 0.92rem;

    line-height: 1.6;

}

.future-surprise-button {

    width: 100%;

    min-height: 52px;

    padding: 12px 18px;

    border: 0;

    border-radius: 17px;

    background: linear-gradient(

        135deg,

        #668fb9,

        #7864a8

    );

    color: #ffffff;

    font: inherit;

    font-size: 0.9rem;

    font-weight: 800;

    letter-spacing: 0.03em;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow: 0 10px 22px rgba(82, 102, 150, 0.22);

}

.future-surprise-button:hover {

    transform: translateY(-1px);

}

.future-surprise-button:active {

    transform: translateY(1px);

}

.future-surprise-result {

    padding: 18px;

    margin-top: 18px;

    border: 1px solid rgba(105, 143, 184, 0.17);

    border-radius: 19px;

    background: rgba(255, 255, 255, 0.82);

    animation: future-surprise-appear 240ms ease-out;

}

.future-surprise-category {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #5b6e91;

    font-size: 0.77rem;

    letter-spacing: 0.06em;

    text-transform: uppercase;

}

.future-surprise-category span {

    font-size: 20px;

}

.future-surprise-result h3 {

    margin: 13px 0 8px;

    color: #37313a;

    font-size: 1.17rem;

    line-height: 1.3;

}

.future-surprise-result > p {

    margin: 0;

    color: #5c5660;

    font-size: 0.9rem;

    line-height: 1.6;

}

.future-surprise-action {

    padding: 13px 14px;

    margin-top: 15px;

    border-radius: 14px;

    background: #eef2fb;

    color: #53627f;

}

.future-surprise-action strong {

    font-size: 0.75rem;

    letter-spacing: 0.05em;

    text-transform: uppercase;

}

.future-surprise-action p {

    margin: 6px 0 0;

    font-size: 0.87rem;

    line-height: 1.5;

}

@keyframes future-surprise-appear {

    from {

        opacity: 0;

        transform: translateY(7px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

html {

    scroll-behavior: smooth;

}

/* SOS Teach Me Something modal */
.sos-learning-modal[hidden] {
    display: none;
}

.sos-learning-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sos-learning-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37, 25, 45, 0.64);
    backdrop-filter: blur(4px);
}

.sos-learning-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px 22px 22px;
    border: 1px solid rgba(133, 76, 125, 0.14);
    border-radius: 28px;
    background: linear-gradient(155deg, #fffafd 0%, #f9f0ff 100%);
    box-shadow: 0 24px 70px rgba(24, 13, 31, 0.34);
    animation: sos-learning-arrive 180ms ease-out;
}

@keyframes sos-learning-arrive {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sos-learning-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: #382c3c;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.sos-learning-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 48px);
    padding: 8px 12px;
    border-radius: 999px;
    background: #f2dced;
    color: #6f3565;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sos-learning-kicker {
    margin: 24px 0 8px;
    color: #9a3f78;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sos-learning-dialog h2 {
    margin: 0 0 12px;
    color: #241e27;
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.12;
}

.sos-learning-dialog > p:not(.sos-learning-kicker):not(.sos-learning-status) {
    margin: 0;
    color: #4c414f;
    line-height: 1.55;
}

.sos-learning-why,
.sos-learning-translation {
    margin-top: 16px;
    padding: 15px;
    border-radius: 18px;
}

.sos-learning-why {
    background: #eaf5f3;
}

.sos-learning-translation {
    background: #fff0e8;
}

.sos-learning-why strong,
.sos-learning-translation strong {
    display: block;
    margin-bottom: 5px;
    color: #332936;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sos-learning-why p,
.sos-learning-translation p {
    margin: 0;
    line-height: 1.48;
}

.sos-learning-status {
    min-height: 1.4em;
    margin: 14px 0 0;
    color: #7b5875;
    font-size: 0.9rem;
    text-align: center;
}

.sos-learning-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sos-learning-actions .sos-secondary-button,
.sos-learning-actions .sos-good-button {
    width: 100%;
    justify-content: center;
}

.sos-learning-modal.is-loading .sos-learning-dialog {
    cursor: progress;
}

.sos-learning-open {
    overflow: hidden;
}

@media (max-width: 420px) {
    .sos-learning-modal {
        padding: 12px;
    }

    .sos-learning-dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 18px 18px;
        border-radius: 24px;
    }
}


/* ---------------------------------------------------------
   Magic-link login
--------------------------------------------------------- */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(247, 190, 218, 0.55),
            transparent 42%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(198, 190, 245, 0.55),
            transparent 44%
        ),
        #fffaf7;
    color: #28232d;
}

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(108, 77, 116, 0.12);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(73, 51, 78, 0.14);
    text-align: center;
}

.login-brand {
    margin-bottom: 30px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.login-brand span {
    color: #c74278;
}

.login-status-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #f9d6e6, #e5dcff);
    border-radius: 24px;
    font-size: 34px;
    box-shadow: 0 10px 24px rgba(109, 69, 118, 0.13);
}

.login-card .eyebrow {
    margin-bottom: 8px;
    color: #9e3768;
}

.login-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.08;
}

.login-description {
    margin: 0 auto 26px;
    max-width: 330px;
    color: #5d5661;
    font-size: 17px;
    line-height: 1.55;
}

.magic-login-form {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    text-align: left;
}

.magic-login-form .field-group {
    display: grid;
    gap: 8px;
}

.magic-login-form label {
    font-weight: 800;
    color: #3f3744;
}

.magic-login-form input[type="email"] {
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid #eadfea;
    border-radius: 16px;
    background: #ffffff;
    color: #28232d;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.magic-login-form input[type="email"]:focus {
    border-color: #b55a8b;
    box-shadow: 0 0 0 4px rgba(181, 90, 139, 0.13);
}

.login-submit-button {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px 20px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #a8467d, #73458f);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(126, 64, 120, 0.24);
}

.login-submit-button:hover,
.login-submit-button:focus-visible {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.login-link-button {
    margin-top: 10px;
}

.login-help {
    margin: 0 auto 24px;
    max-width: 340px;
    color: #746c78;
    font-size: 14px;
    line-height: 1.6;
}

.login-secondary-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 2px solid #eadfea;
    border-radius: 16px;
    color: #704366;
    font-weight: 800;
    text-decoration: none;
}

.login-privacy-note {
    margin: 24px 0 0;
    color: #817784;
    font-size: 13px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Header logout
--------------------------------------------------------- */

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 7px 10px;
    border: 1px solid rgba(116, 68, 104, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #754664;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.logout-button:hover,
.logout-button:focus-visible {
    background: #fbeaf2;
}

@media (max-width: 380px) {
    .login-shell {
        padding: 16px;
    }

    .login-card {
        padding: 28px 18px;
    }

    .app-header-actions {
        gap: 5px;
    }

    .logout-button {
        padding-inline: 8px;
    }
}

/* ---------------------------------------------------------
   Check-In: repeatable entries, summary, and timeline
--------------------------------------------------------- */

.check-in-form + .check-in-form,
.form-card + .check-in-form {
    margin-top: 16px;
}

.check-in-form .field-group select {
    width: 100%;
    min-height: 50px;
    padding: 14px 42px 14px 15px;
    color: var(--text);
    background: #fcf9fd;
    border: 1px solid #ded3e3;
    border-radius: 14px;
    outline: none;
    font: inherit;
    cursor: pointer;
}

.check-in-form .field-group select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(155, 110, 232, 0.12);
}

.check-in-form .mood-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-in-form .mood-choice {
    min-height: 92px;
    padding: 12px 8px;
}

.check-in-form .mood-choice > span:not(.mood-face) {
    overflow: visible;
    font-size: 0.72rem;
    line-height: 1.25;
    text-overflow: unset;
    white-space: normal;
}

.form-card > .save-button {
    margin-top: 20px;
}

.form-card .stats-grid {
    margin-bottom: 0;
}

.form-card .stat-card {
    min-height: 108px;
}

.timeline-card {
    margin-top: 16px;
}

.timeline-empty {
    margin: 0;
    padding: 18px;
    color: var(--muted);
    background: #faf7fb;
    border: 1px dashed #dfd4e4;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.today-timeline {
    display: grid;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 70px 42px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 14px 0;
}

.timeline-item + .timeline-item {
    border-top: 1px solid var(--border);
}

.timeline-time {
    padding-top: 9px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.timeline-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: var(--purple-light);
    border: 1px solid #e1d4f6;
    border-radius: 14px;
    font-size: 1.15rem;
}

.timeline-content {
    min-width: 0;
    padding-top: 7px;
}

.timeline-content strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
}

.timeline-content > span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.timeline-content p {
    margin: 8px 0 0;
    padding: 10px 12px;
    color: #5f5267;
    background: #faf7fb;
    border-radius: 12px;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 380px) {
    .timeline-item {
        grid-template-columns: 60px 38px minmax(0, 1fr);
        gap: 8px;
    }

    .timeline-icon {
        width: 36px;
        height: 36px;
    }

    .timeline-time {
        font-size: 0.64rem;
    }
}
/* Challenge recap story cards */

.challenge-recap {
    margin: 24px 0;
}

.recap-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--purple-light);
    color: var(--text);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.recap-card[hidden] {
    display: none;
}

.recap-card--pink {
    background: var(--pink-light);
}

.recap-card--purple {
    background: var(--purple-light);
}

.recap-card--mint {
    background: var(--mint-light);
}

.recap-card--blue {
    background: var(--blue-light);
}

.recap-eyebrow {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.recap-card h2 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    line-height: 1.15;
}

.recap-number {
    display: block;
    margin: 0 0 16px;
    font-size: clamp(3rem, 14vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
}

.recap-description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
}

.recap-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.recap-button,
.recap-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--text);
    color: var(--surface);
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.recap-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.recap-button:focus-visible,
.recap-launch:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 4px;
}

.recap-counter {
    color: var(--text);
    font-size: 0.9rem;
    text-align: center;
}

.recap-summary {
    display: grid;
    gap: 12px;
    margin: 12px 0 0;
}

.recap-summary div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--muted);
}

.recap-summary dt {
    font-size: 0.95rem;
}

.recap-summary dd {
    margin: 4px 0 0;
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 380px) {
    .recap-card {
        min-height: 320px;
        padding: 24px 18px;
    }

    .recap-controls {
        gap: 8px;
    }

    .recap-button {
        padding: 12px 16px;
    }
}