/* Steady — Warm, calm design system */

:root {
    /* Warm, calming palette */
    --sage: #87a878;
    --sage-light: #b8d4a8;
    --sage-dark: #5c7a50;

    --warm-white: #faf8f5;
    --warm-cream: #f5f0e8;
    --warm-gray: #e8e4dc;

    --text-primary: #3d3d3d;
    --text-secondary: #6b6b6b;
    --text-gentle: #8a8a8a;

    --amber-notice: #e8c868;
    --amber-soft: #f5e6b8;

    /* No red — ever */

    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lift: 0 4px 16px rgba(0, 0, 0, 0.08);

    --radius: 12px;
    --radius-sm: 8px;

    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--warm-white);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--sage-dark);
    letter-spacing: 0.05em;
}

.tagline {
    color: var(--text-gentle);
    font-size: 1rem;
    margin-top: 5px;
}

/* Navigation */
.nav-wrapper {
    position: relative;
}

.nav-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, var(--warm-white));
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.nav-wrapper.scrolled-end::after {
    opacity: 0;
}

.nav {
    display: flex;
    gap: 6px;
    padding: 10px 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    flex-shrink: 0;
    padding: 10px 12px;
    border: none;
    background: var(--warm-cream);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--warm-gray);
}

.nav-btn.active {
    background: var(--sage);
    color: white;
}

/* Main content */
.main {
    flex: 1;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

.section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-gentle);
    margin-bottom: 24px;
}

/* Check-in scale */
.checkin-scale {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.scale-btn {
    flex: 1;
    padding: 20px 10px;
    border: 2px solid var(--warm-gray);
    background: var(--warm-cream);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.scale-btn span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-gentle);
}

.scale-btn:hover {
    border-color: var(--sage-light);
    background: white;
}

.scale-btn.selected {
    border-color: var(--sage);
    background: var(--sage-light);
    color: var(--sage-dark);
}

.scale-btn.selected span {
    color: var(--sage-dark);
}

/* Form elements */
label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--warm-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--text-primary);
    transition: var(--transition);
    resize: vertical;
}

textarea {
    min-height: 100px;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--sage);
}

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

.checkin-reflection {
    margin-bottom: 24px;
}

/* Primary button */
.primary-btn {
    width: 100%;
    padding: 16px;
    border: none;
    background: var(--sage);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Feedback messages */
.feedback {
    text-align: center;
    padding: 24px;
    margin-top: 20px;
    border-radius: var(--radius);
    display: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.feedback.show {
    display: block;
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.feedback.success {
    background: var(--sage);
    color: white;
    box-shadow: var(--shadow-lift);
}

.feedback.success::before {
    content: "✓ ";
    font-size: 1.2rem;
}

/* Reframe section */
.reframe-input {
    margin-bottom: 20px;
}

.reframe-output {
    margin-top: 20px;
    padding: 20px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    display: none;
}

.reframe-output.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.reframe-output p {
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
}

.reframe-history {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--warm-gray);
}

.reframe-history h3, .wins-history h3, .enough-history h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    padding: 12px;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sage-light);
}

.history-item .thought {
    font-size: 0.85rem;
    color: var(--text-gentle);
    margin-bottom: 6px;
}

.history-item .reframe {
    color: var(--text-primary);
    font-style: italic;
}

.history-item .date {
    font-size: 0.75rem;
    color: var(--text-gentle);
    margin-top: 8px;
}

/* Wins section */
.win-input {
    margin-bottom: 20px;
}

.wins-history {
    margin-top: 30px;
}

.wins-list, .enough-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wins-list li, .enough-list li {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.wins-list .win-text, .enough-list .enough-text {
    color: var(--text-primary);
}

.wins-list .win-date, .enough-list .enough-date {
    font-size: 0.8rem;
    color: var(--text-gentle);
}

/* Good enough section */
.enough-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mode-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--warm-gray);
    background: var(--warm-cream);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.mode-btn:hover {
    border-color: var(--sage-light);
}

.mode-btn.active {
    border-color: var(--sage);
    background: var(--sage-light);
    color: var(--sage-dark);
}

.done-prompt {
    text-align: center;
    padding: 24px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.enough-input {
    margin-bottom: 20px;
}

.enough-result {
    margin-top: 20px;
    padding: 24px;
    background: var(--sage-light);
    border-radius: var(--radius);
    text-align: center;
    display: none;
}

.enough-result.show {
    display: block;
    animation: celebrate 0.5s ease;
}

@keyframes celebrate {
    0% { opacity: 0; transform: scale(0.9); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.enough-result p {
    color: var(--sage-dark);
    font-size: 1.1rem;
}

.enough-result .checkmark {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.enough-history {
    margin-top: 30px;
}

.enough-list li.done-entry {
    background: var(--sage-light);
    border-left: 3px solid var(--sage);
}

/* Progress section */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: var(--sage-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gentle);
}

.checkin-chart {
    margin-bottom: 30px;
}

.checkin-chart h3, .recent-activity h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.chart {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    height: 140px;
    padding: 10px 10px 30px 10px;
    background: white;
    border-radius: var(--radius-sm);
}

.chart-bar {
    width: 50px;
    flex-shrink: 0;
    background: var(--sage-light);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
    position: relative;
    min-height: 10px;
}

.chart-bar:hover {
    background: var(--sage);
}

.chart-bar .bar-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-gentle);
    white-space: nowrap;
}

.chart-bar {
    cursor: pointer;
}

.chart-bar.selected {
    background: var(--sage);
}

.checkin-detail {
    margin-top: 16px;
    padding: 16px;
    background: var(--warm-cream);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sage);
    display: none;
}

.checkin-detail.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.checkin-detail .detail-level {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sage-dark);
}

.checkin-detail .detail-date {
    font-size: 0.85rem;
    color: var(--text-gentle);
}

.checkin-detail .detail-reflection {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.checkin-detail .no-reflection {
    color: var(--text-gentle);
    font-style: italic;
}

.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-list li {
    padding: 12px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.activity-list .activity-type {
    color: var(--sage-dark);
    font-weight: 500;
}

.activity-list .activity-date {
    font-size: 0.8rem;
    color: var(--text-gentle);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0 20px;
    color: var(--text-gentle);
    font-size: 0.9rem;
}

.feedback-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--sage);
    text-decoration: none;
    font-size: 0.85rem;
}

.feedback-link:hover {
    text-decoration: underline;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-gentle);
    font-style: italic;
}

/* Breathwork section */
.breathe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.breathe-box {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--warm-cream);
    border: 3px solid var(--sage-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 4s ease-in-out, background 4s ease-in-out, border-color 4s ease-in-out;
}

.breathe-box.inhale {
    transform: scale(1.2);
    background: var(--sage-light);
    border-color: var(--sage);
}

.breathe-box.hold-in {
    transform: scale(1.2);
    background: var(--sage-light);
    border-color: var(--sage);
}

.breathe-box.exhale {
    transform: scale(1);
    background: var(--warm-cream);
    border-color: var(--sage-light);
}

.breathe-box.hold-out {
    transform: scale(1);
    background: var(--warm-cream);
    border-color: var(--sage-light);
}

.breathe-circle {
    width: 20px;
    height: 20px;
    background: var(--sage);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.breathe-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--sage-dark);
    z-index: 1;
}

.breathe-count {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--sage-dark);
    margin-top: 4px;
    min-height: 40px;
}

.breathe-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.breathe-controls .primary-btn,
.breathe-controls .secondary-btn {
    width: auto;
    padding: 14px 40px;
}

.secondary-btn {
    padding: 16px;
    border: 2px solid var(--sage);
    background: transparent;
    color: var(--sage-dark);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: var(--sage-light);
}

.breathe-rounds {
    text-align: center;
    margin-top: 24px;
    color: var(--text-gentle);
    font-size: 0.95rem;
}

.breathe-rounds span {
    color: var(--sage-dark);
    font-weight: 500;
}

/* Welcome Affirmation Overlay */
.affirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(135, 168, 120, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 24px;
    animation: affirmationFadeIn 0.6s ease;
}

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

@keyframes affirmationFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.affirmation-card {
    max-width: 400px;
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: affirmationSlideUp 0.5s ease 0.2s both;
}

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

.affirmation-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-weight: 400;
}

.affirmation-dismiss {
    padding: 14px 48px;
    border: none;
    background: var(--sage);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.affirmation-dismiss:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
}

/* End of Day Reflection */
.reflect-hint {
    font-size: 0.85rem;
    color: var(--text-gentle);
    margin-bottom: 16px;
    font-style: italic;
}

.reflect-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.reflect-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sage-light);
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.3s ease;
}

.reflect-entry-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.reflect-entry-remove {
    background: none;
    border: none;
    color: var(--text-gentle);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: var(--transition);
}

.reflect-entry-remove:hover {
    color: var(--text-secondary);
}

.reflect-add {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.reflect-add input {
    flex: 1;
}

.reflect-add-btn {
    flex-shrink: 0;
    padding: 14px 20px;
}

.reflect-summary {
    background: var(--warm-cream);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    animation: fadeIn 0.4s ease;
}

.reflect-count {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.reflect-count strong {
    color: var(--sage-dark);
}

.reflect-summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.reflect-summary-list li {
    padding: 10px 14px;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sage);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.reflect-affirmation {
    text-align: center;
    color: var(--sage-dark);
    font-weight: 500;
    font-size: 1.05rem;
    padding-top: 8px;
}

.reflect-traps {
    margin-bottom: 24px;
}

.reflect-traps h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.trap-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.trap-btn {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--warm-gray);
    background: var(--warm-cream);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: var(--transition);
}

.trap-btn:hover {
    border-color: var(--sage-light);
    background: white;
}

.trap-btn.active {
    border-color: var(--sage);
    background: var(--sage-light);
    color: var(--sage-dark);
}

.trap-response {
    padding: 20px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    display: none;
    border-left: 3px solid var(--sage);
}

.trap-response.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.trap-response p {
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
}

.reflect-close-btn {
    margin-top: 8px;
}

.reflect-closed {
    text-align: center;
    padding: 40px 24px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: none;
}

.reflect-closed.show {
    display: block;
    animation: celebrate 0.5s ease;
}

.reflect-closed-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    color: var(--sage-dark);
}

.reflect-closed-message {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.reflect-history {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--warm-gray);
}

.reflect-history h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.reflect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reflect-list li {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.reflect-history-text {
    color: var(--text-primary);
}

.reflect-history-date {
    font-size: 0.8rem;
    color: var(--text-gentle);
}

/* Self-Compassion */
.compassion-modes, .mattering-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.compassion-prompt-card, .mattering-prompt-card {
    padding: 24px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 3px solid var(--sage-light);
}

.compassion-scenario, .mattering-prompt-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.compassion-input, .compare-input {
    margin-bottom: 20px;
}

.compassion-response {
    margin-top: 20px;
    padding: 24px;
    background: var(--sage-light);
    border-radius: var(--radius);
    display: none;
}

.compassion-response.show {
    display: block;
    animation: celebrate 0.5s ease;
}

.compassion-response-text {
    color: var(--sage-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
}

.compassion-history, .compare-history, .mattering-history, .winddown-history {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--warm-gray);
}

.compassion-history h3, .compare-history h3, .mattering-history h3, .winddown-history h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Comparison Detox */
.compare-response {
    margin-top: 20px;
    padding: 20px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    border-left: 3px solid var(--sage);
    display: none;
}

.compare-response.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.compare-response p {
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
}

.compare-redirect {
    margin-top: 24px;
    padding: 24px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    animation: fadeIn 0.4s ease;
}

.compare-redirect h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--sage-dark);
    margin-bottom: 8px;
}

.compare-redirect-prompt {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.compare-redirect-input {
    display: flex;
    gap: 8px;
}

.compare-redirect-input input {
    flex: 1;
}

.compare-redirect-input .secondary-btn {
    flex-shrink: 0;
    padding: 14px 20px;
}

.compare-reclaim {
    margin-top: 16px;
    display: none;
}

.compare-reclaim.show {
    display: block;
    animation: popIn 0.4s ease;
}

.compare-reclaim-text {
    color: var(--sage-dark);
    font-weight: 500;
    font-size: 1.05rem;
    text-align: center;
}

.compare-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-list li {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.compare-list .compare-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.compare-list .compare-date {
    font-size: 0.8rem;
    color: var(--text-gentle);
    flex-shrink: 0;
    margin-left: 12px;
}

/* Mattering */
.mattering-input {
    margin-bottom: 20px;
}

.mattering-skip {
    width: 100%;
    margin-top: 10px;
}

.mattering-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mattering-list li {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.mattering-list .mattering-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.mattering-list .mattering-date {
    font-size: 0.8rem;
    color: var(--text-gentle);
    flex-shrink: 0;
    margin-left: 12px;
}

/* Wind Down */
.winddown-prompt-card {
    padding: 24px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: center;
}

.winddown-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: var(--sage-dark);
}

.winddown-prompt-card p {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.winddown-input {
    margin-bottom: 20px;
}

.winddown-pile {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.winddown-pile-item {
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sage-light);
    animation: fadeIn 0.3s ease;
}

.winddown-pile-thought {
    display: block;
    color: var(--text-gentle);
    font-size: 0.9rem;
    margin-bottom: 6px;
    text-decoration: line-through;
    opacity: 0.7;
}

.winddown-pile-msg {
    display: block;
    color: var(--sage-dark);
    font-style: italic;
    font-size: 0.95rem;
}

#winddown-next-btn {
    margin-top: 24px;
}

.winddown-closing {
    text-align: center;
    padding: 40px 24px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: none;
}

.winddown-closing.show {
    display: block;
    animation: celebrate 0.5s ease;
}

.winddown-closing-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    color: var(--sage-dark);
}

.winddown-closing-count {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.winddown-closing-count strong {
    color: var(--sage-dark);
}

.winddown-closing-message {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
}

.winddown-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.winddown-list li {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.winddown-history-text {
    color: var(--text-primary);
}

.winddown-history-date {
    font-size: 0.8rem;
    color: var(--text-gentle);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .checkin-scale {
        flex-wrap: wrap;
    }

    .scale-btn {
        flex: 1 1 calc(33% - 10px);
        min-width: 80px;
    }

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

/* Reminder nudge */
.reminder-nudge {
    margin-top: 28px;
    padding: 16px 18px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    text-align: center;
}

.reminder-nudge p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Check-in trend insight */
.checkin-insight {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 12px 4px 0;
}

.checkin-insight:empty {
    display: none;
}

/* Your data card */
.data-card {
    margin-top: 30px;
    padding: 20px;
    background: var(--warm-cream);
    border-radius: var(--radius);
}

.data-card h3 {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--sage-dark);
}

.data-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.data-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Footer links + crisis note */
.footer-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 6px;
}

.crisis-note {
    margin: 18px auto 0;
    max-width: 480px;
    padding: 14px 18px;
    background: var(--warm-cream);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.crisis-note p + p {
    margin-top: 6px;
}

.crisis-note a {
    color: var(--sage-dark);
    font-weight: 500;
}
