/* Buttons */
.home-main-btn {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-calm), var(--accent-soft));
    color: var(--bg-deep);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 50px;
    padding: 20px;
}

.home-main-btn:active {
    transform: scale(0.95);
}

.garden-pause-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 10;
}

.garden-pause-btn:hover {
    transform: scale(1.1);
    background: white;
}

.garden-pause-btn:active {
    transform: scale(0.95);
}

.garden-emoji {
    font-size: 3rem;
    line-height: 1;
}

.garden-level {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.garden-points {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.main-btn-text {
    font-size: 1rem;
    margin-top: 4px;
}

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    margin-bottom: 40px;
}

.home-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    width: 100%;
}

.home-action-btn:active {
    background: var(--bg-elevated);
    transform: scale(0.98);
}

.home-secondary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 350px;
}

.home-sec-btn {
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.back-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.primary-btn {
    padding: 12px 24px;
    background: var(--accent-calm);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.primary-btn:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: scale(0.98);
}

.secondary-btn {
    padding: 12px 24px;
    background: rgba(160, 160, 184, 0.1);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(160, 160, 184, 0.15);
}

.secondary-btn:active {
    transform: scale(0.98);
}

/* CTA Button */
.cta-button {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
}

.cta-button:active {
    transform: scale(0.98);
    background: var(--bg-elevated);
}

.cta-button .arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    padding: 0 10px;
}

.quick-action-card {
    flex: 1;
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    transition: transform 0.2s;
}

.quick-action-card:active .quick-action-icon {
    transform: scale(0.95);
}

.quick-action-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Cards */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
}

.option-card:active {
    transform: scale(0.97);
}

.option-card.selected {
    border-color: var(--accent-calm);
    background: rgba(126, 184, 218, 0.1);
}

.option-card .emoji {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.option-card .label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Triggers */
.triggers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 24px;
}

.trigger-category {
    margin-bottom: 8px;
}

.trigger-category-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding: 0 4px;
    letter-spacing: 0.02em;
}

.trigger-category-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trigger-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
}

.trigger-card:active {
    transform: scale(0.98);
}

.trigger-card.selected {
    border-color: var(--accent-warm);
    background: rgba(232, 168, 124, 0.1);
}

.trigger-card .emoji {
    font-size: 1.5rem;
}

.trigger-card .label {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Intensity Section */
.intensity-section {
    margin-top: 24px;
}

.intensity-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.intensity-value {
    font-weight: 700;
    color: var(--text-primary);
}

.intensity-bar {
    display: flex;
    gap: 8px;
}

.intensity-dot {
    flex: 1;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-elevated);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
}

.intensity-dot.selected {
    border-color: var(--accent-warm);
    background: rgba(232, 168, 124, 0.15);
    color: var(--accent-warm);
}

/* Understanding Card */
.understanding-card {
    background: linear-gradient(135deg, rgba(123, 211, 255, 0.10), rgba(184, 166, 255, 0.05));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.understanding-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-soft);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.understanding-tldr {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border-left: 4px solid var(--accent-calm);
}

.understanding-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 12px;
}

.understanding-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.understanding-text br {
    display: block;
    content: "";
    margin-top: 8px;
}

.understanding-details {
    margin-top: 16px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.understanding-details.collapsed {
    max-height: 0;
}

.understanding-details.expanded {
    max-height: 2000px;
}

.understanding-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-calm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(126, 184, 218, 0.1);
    border-radius: 8px;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}

.understanding-toggle:hover {
    background: rgba(126, 184, 218, 0.2);
    transform: translateX(2px);
}

.understanding-toggle:active {
    transform: scale(0.98);
}

/* Guided Actions */
.guided-actions {
    margin-bottom: 24px;
}

.guided-actions-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.guided-action-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
}

.guided-action-card:active {
    border-color: var(--accent-calm);
}

.guided-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(126, 184, 218, 0.15);
}

.guided-action-info {
    flex: 1;
}

.guided-action-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.guided-action-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.guided-action-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Strategies */
.strategies-section {
    margin-bottom: 24px;
}

.strategies-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.strategy-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-green);
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
}

.strategy-card:hover {
    background: var(--bg-elevated);
    transform: translateX(4px);
}

.strategy-card:active {
    transform: scale(0.98);
}

.strategy-card.secondary {
    border-left-color: var(--accent-calm);
}

.strategy-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.strategy-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Feedback */
.feedback-section {
    text-align: center;
    padding: 16px 0;
}

.feedback-question {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.feedback-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feedback-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bg-elevated);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-btn.selected {
    border-color: var(--accent-calm);
    color: var(--accent-calm);
    box-shadow: 0 0 0 2px rgba(126, 184, 218, 0.2);
}

.feedback-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-btn.selected.positive {
    background: rgba(125, 211, 168, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.feedback-btn.selected.negative {
    background: rgba(224, 122, 122, 0.15);
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

/* Home shortcut button on tool screens */
.tool-home-shortcut {
    text-align: center;
    padding: 16px 0 8px;
}

.tool-home-btn {
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tool-home-btn.highlight {
    background: var(--accent-calm);
    color: white;
    border-color: var(--accent-calm);
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(126, 184, 218, 0.3);
}

/* Timer Circle */
.timer-circle {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 40px;
}

.timer-circle svg {
    transform: rotate(-90deg);
}

.timer-circle circle {
    fill: none;
    stroke-width: 8;
}

.timer-circle .bg {
    stroke: var(--bg-elevated);
}

.timer-circle .progress {
    stroke: var(--accent-calm);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
}

.timer-controls,
.breathe-controls {
    display: flex;
    gap: 16px;
}

.timer-btn {
    padding: 16px 32px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.timer-btn.primary {
    background: linear-gradient(135deg, var(--accent-calm), var(--accent-soft));
    color: var(--bg-deep);
}

.timer-btn.secondary.primary {
    background: linear-gradient(135deg, var(--accent-calm), var(--accent-soft));
    color: var(--bg-deep);
}

.timer-btn.secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.timer-done {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.timer-done.show {
    display: flex;
}

.timer-done-emoji {
    font-size: 4rem;
}

.timer-done-text {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Breathe Circle */
.breathe-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-calm));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 0 60px rgba(195, 174, 214, 0.3);
}

.breathe-circle.breathing {
    animation: breathePulse 8s ease-in-out infinite;
}

@keyframes breathePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.breathe-instruction {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-deep);
}

.breathe-counter {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Dump Textarea */
.dump-textarea {
    width: 100%;
    min-height: 250px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: none;
}

.dump-textarea:focus {
    outline: none;
    border-color: var(--accent-warm);
}

.dump-tip {
    margin-top: 16px;
    padding: 14px;
    background: rgba(232, 168, 124, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--accent-warm);
}

.dump-actions {
    position: fixed;
    bottom: calc(var(--safe-bottom) + 20px);
    left: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
}

.dump-actions .btn {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.dump-actions .btn.primary {
    background: var(--accent-warm);
    color: var(--bg-deep);
}

.dump-actions .btn.secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* Grounding */
.ground-step {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 2px solid transparent;
}

.ground-step.active {
    border-color: var(--accent-green);
    background: rgba(125, 211, 168, 0.08);
}

.ground-step.done {
    opacity: 0.5;
}

.ground-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.ground-step.active .ground-step-num {
    background: var(--accent-green);
    color: var(--bg-deep);
}

.ground-step-content {
    flex: 1;
}

.ground-step-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.ground-step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ground-step-input {
    margin-top: 12px;
    display: none;
}

.ground-step.active .ground-step-input {
    display: block;
}

.ground-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ground-input-item {
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
}

.ground-input-item:focus {
    outline: none;
    border-color: var(--accent-green);
}

.ground-next-btn {
    margin-top: 12px;
    padding: 12px 24px;
    background: var(--accent-green);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

/* Diary */
.diary-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-coral));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.diary-entries-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.diary-entry {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
}

.diary-entry-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.diary-entry-emoji {
    font-size: 1.5rem;
}

.diary-entry-meta {
    flex: 1;
}

.diary-entry-date {
    font-weight: 600;
    font-size: 0.9rem;
}

.diary-entry-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.diary-entry-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diary-entry-intensity {
    display: flex;
    gap: 3px;
}

.diary-intensity-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--bg-elevated);
}

.diary-intensity-dot.filled {
    background: var(--accent-warm);
}

.diary-mood-grid {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.diary-mood-btn {
    flex: 1;
    padding: 14px 8px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
}

.diary-mood-btn.selected {
    border-color: var(--accent-calm);
    background: rgba(126, 184, 218, 0.1);
}

.diary-mood-btn .emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.diary-mood-btn .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.diary-text-section {
    margin-bottom: 20px;
}

.diary-text-input {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--bg-elevated);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: none;
}

.diary-text-input:focus {
    outline: none;
    border-color: var(--accent-calm);
}

.diary-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.diary-prompt {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.diary-save-btn {
    position: fixed;
    bottom: calc(var(--safe-bottom) + 20px);
    left: 20px;
    right: 20px;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-calm), var(--accent-soft));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.diary-delete-btn {
    width: 100%;
    padding: 14px;
    background: rgba(224, 122, 122, 0.1);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--accent-coral);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

/* Insight Card */
.insight-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
}

.insight-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.insight-card-emoji {
    font-size: 1.4rem;
}

.insight-card-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.insight-card-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.insight-highlight {
    color: var(--accent-calm);
    font-weight: 600;
}

.continue-btn {
    position: fixed;
    bottom: calc(var(--safe-bottom) + 20px);
    left: 20px;
    right: 20px;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-calm), var(--accent-soft));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: none;
    z-index: 100;
}

.continue-btn.show {
    display: block;
}

.close-btn {
    position: fixed;
    top: calc(var(--safe-top) + 16px);
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.notes-section {
    margin-top: 20px;
}

.notes-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.notes-input {
    width: 100%;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    min-height: 80px;
}

.notes-input:focus {
    outline: none;
    border-color: var(--accent-calm);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state .emoji {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 16px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s;
    z-index: 200;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Update Banner */
.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 0;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.update-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-calm), var(--accent-soft));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.update-banner-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.update-banner-text {
    flex: 1;
}

.update-banner-btn {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.update-banner-btn:hover {
    background: rgba(255,255,255,0.4);
}

.update-banner-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.update-banner-close:hover {
    color: #fff;
}

/* Report */
.report-option {
    margin-bottom: 20px;
}

.report-option-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.report-screen .insights-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(126, 184, 218, 0.16), rgba(195, 174, 214, 0.16));
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.report-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(126, 184, 218, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.report-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

.report-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.report-checkbox:active {
    transform: scale(0.98);
}

.report-checkbox.checked {
    border-color: var(--accent-calm);
    background: rgba(126, 184, 218, 0.1);
}

.report-checkbox input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--accent-calm);
}

.report-checkbox-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
}

.report-period {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.report-period-btn {
    flex: 1;
    padding: 14px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.report-period-btn:active {
    transform: scale(0.97);
}

.report-period-btn.selected {
    border-color: var(--accent-calm);
    background: rgba(126, 184, 218, 0.1);
    color: var(--text-primary);
}

.report-period-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.report-last-print {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.report-download-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-calm));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.report-download-btn:active {
    transform: scale(0.98);
}

.report-actions .report-download-btn {
    margin-top: 0;
}

.report-download-secondary {
    margin-top: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.generate-report-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-calm));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.filter-chip {
    padding: 8px 14px;
    background: rgba(160, 160, 184, 0.1);
    border: 1px solid rgba(160, 160, 184, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-chip:hover {
    background: rgba(160, 160, 184, 0.15);
    border-color: rgba(160, 160, 184, 0.3);
}

.filter-chip.selected {
    background: var(--accent-calm);
    color: white;
    border-color: var(--accent-calm);
}

.history-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
}

.history-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.history-card-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.history-card-main {
    flex: 1;
}

.history-card-feeling {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.history-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-card-trigger {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.history-card-task {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(126, 184, 218, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
}

.history-card-strategy {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(126, 200, 126, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--accent-green);
}

.history-card-rating {
    color: #f5a623;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-left: 4px;
}

.history-card-strategy.incomplete {
    background: rgba(160, 160, 184, 0.1);
    color: var(--text-muted);
}

.history-card-actions {
    position: absolute;
    top: 48px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 5;
}

.edit-btn,
.delete-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn {
    background: rgba(126, 184, 218, 0.15);
    color: var(--accent-calm);
}

.edit-btn:hover {
    background: var(--accent-calm);
    color: white;
    transform: scale(1.05);
}

.edit-btn:active {
    transform: scale(0.95);
}

.delete-btn {
    background: rgba(224, 122, 122, 0.15);
    color: var(--accent-coral);
}

.delete-btn:hover {
    background: var(--accent-coral);
    color: white;
    transform: scale(1.05);
}

.delete-btn:active {
    transform: scale(0.95);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(160, 160, 184, 0.15);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(160, 160, 184, 0.1);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(160, 160, 184, 0.2);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(160, 160, 184, 0.15);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid rgba(160, 160, 184, 0.15);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-calm);
    background: var(--bg-elevated);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Task Card */
.task-card {
    background: var(--bg-card);
    border: 1px solid rgba(160, 160, 184, 0.15);
    border-left: 4px solid var(--accent-calm);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.task-card.overdue {
    border-left-color: var(--accent-coral);
}

.task-card.near-deadline {
    border-left-color: var(--accent-warm);
}

.task-card.completed {
    opacity: 0.6;
    border-left-color: var(--accent-green);
}

.task-card.paused {
    opacity: 0.7;
    border-left-color: var(--text-muted);
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.task-card-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-calm);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent-calm);
}

.task-card-main {
    flex: 1;
}

.task-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.task-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.task-card-deadline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-card-deadline.urgent {
    color: var(--accent-coral);
    font-weight: 600;
}

.task-card-deadline.soon {
    color: var(--accent-warm);
    font-weight: 600;
}

.task-card-category {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-card-notes {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.task-card-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
}

.task-card-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(160, 160, 184, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-card-action-btn:hover {
    background: rgba(160, 160, 184, 0.2);
    transform: scale(1.05);
}

.task-card-action-btn:active {
    transform: scale(0.95);
}

.task-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.task-empty-state-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
}

.task-empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.task-empty-state-hint {
    font-size: 0.9rem;
}

.day-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 2px solid rgba(160, 160, 184, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.day-checkbox:hover {
    background: rgba(126, 184, 218, 0.1);
    border-color: var(--accent-calm);
}

.day-checkbox input {
    display: none;
}

.day-checkbox input:checked+span {
    color: var(--accent-calm);
    font-weight: 700;
}

.day-checkbox:has(input:checked) {
    background: rgba(126, 184, 218, 0.15);
    border-color: var(--accent-calm);
}

.day-checkbox span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.home-more-sheet {
    max-width: 420px;
}

.home-more-btn {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.home-more-btn:active {
    transform: scale(0.98);
}

.trigger-suggested {
    border: 1px solid rgba(125, 211, 168, 0.35) !important;
    background: rgba(125, 211, 168, 0.06) !important;
}

/* ==============================
   INSIGHTS V2 - Rich Analytics
   ============================== */

.insights-screen-v2 {
    padding-bottom: 100px;
}

.insights-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(123, 211, 255, 0.15), rgba(184, 166, 255, 0.15));
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.insights-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(123, 211, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.insights-hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.insights-hero-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Summary strip */
.insights-summary-strip {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.insights-summary-strip::-webkit-scrollbar {
    display: none;
}

.summary-stat {
    flex: 1;
    min-width: 72px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.summary-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Insight card v2 */
.insight-card-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
}

.insight-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(123, 211, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.insight-card-body {
    flex: 1;
    min-width: 0;
}

.insight-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.insight-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.insight-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.insight-trend .insight-card-icon {
    background: rgba(125, 211, 168, 0.15);
}

.insight-diary-summary .insight-card-icon {
    background: rgba(184, 166, 255, 0.15);
}

/* Insight sections */
.insight-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
}

.insight-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

/* Bar charts */
.insight-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-bar-emoji {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.insight-bar-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    width: 90px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insight-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(160, 160, 184, 0.12);
    border-radius: 5px;
    overflow: hidden;
}

.insight-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-bar-feeling {
    background: linear-gradient(90deg, var(--accent-soft), var(--accent-calm));
}

.insight-bar-trigger {
    background: linear-gradient(90deg, var(--accent-calm), var(--accent-green));
}

.insight-bar-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

/* Strategy list */
.insight-strategy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-strategy-item {
    padding: 12px;
    background: rgba(160, 160, 184, 0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(160, 160, 184, 0.1);
}

.insight-strategy-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.insight-strategy-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insight-strategy-uses {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.insight-strategy-rating {
    font-size: 0.82rem;
    color: var(--accent-warm);
}

.insight-strategy-rating .star-value {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.insight-strategy-rating .no-rating {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Correlations */
.insight-correlations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-correlation-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(160, 160, 184, 0.06);
    border-radius: var(--radius-md);
}

.corr-feeling {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-soft);
}

.corr-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.corr-trigger {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.corr-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(123, 211, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Time patterns */
.insight-time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.insight-time-card {
    text-align: center;
    padding: 12px 6px;
    border-radius: var(--radius-md);
    background: rgba(160, 160, 184, 0.06);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.insight-time-card.active {
    border-color: var(--accent-calm);
    background: rgba(123, 211, 255, 0.1);
}

.time-icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.time-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.time-count {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 2px;
}

.insight-time-summary {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
}

.insight-time-summary strong {
    color: var(--accent-calm);
}

/* ==============================
   REPORT V2 - Config Screen
   ============================== */

.report-screen-v2 {
    padding-bottom: 100px;
}

.report-hero-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(123, 211, 255, 0.15), rgba(184, 166, 255, 0.15));
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.report-hero-icon-v2 {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(184, 166, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.report-hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.report-hero-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Report preview card */
.report-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
}

.report-preview-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.report-preview-stats {
    display: flex;
    gap: 10px;
}

.report-preview-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: rgba(160, 160, 184, 0.06);
    border-radius: var(--radius-md);
}

.rps-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rps-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-top: 2px;
}

/* Report card v2 */
.report-card-v2 {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

/* Report period chips */
.report-period-v2 {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.report-period-chip {
    flex: 1;
    min-width: 70px;
    padding: 12px 8px;
    background: rgba(160, 160, 184, 0.08);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.report-period-chip:active {
    transform: scale(0.97);
}

.report-period-chip.selected {
    border-color: var(--accent-calm);
    background: rgba(123, 211, 255, 0.1);
    color: var(--text-primary);
}

.report-period-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Report toggle switch */
.report-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(160, 160, 184, 0.08);
}

.report-toggle:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.report-toggle input {
    display: none;
}

.report-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(160, 160, 184, 0.2);
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}

.report-toggle.checked .report-toggle-track {
    background: var(--accent-calm);
}

.report-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s;
}

.report-toggle.checked .report-toggle-thumb {
    transform: translateX(20px);
}

.report-toggle-label {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Report download buttons v2 */
.report-actions-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.report-download-btn-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-calm));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    text-align: left;
    transition: all 0.2s;
}

.report-download-btn-v2:active {
    transform: scale(0.98);
}

.report-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.report-btn-icon {
    font-size: 1.4rem;
}

.report-btn-text {
    display: flex;
    flex-direction: column;
}

.report-btn-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.report-btn-desc {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 2px;
}

.report-btn-secondary .report-btn-desc {
    color: var(--text-muted);
}

/* ==============================
   PHASE 1 — V2 Screen Components
   ============================== */

/* Settings v2 */
.settings-screen-v2 {
    padding-bottom: 60px;
}

.settings-cards-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.4;
}

.settings-theme-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-notify-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-notify-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.settings-notify-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.settings-input-group {
    flex: 1;
    min-width: 140px;
}

.settings-input-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.settings-danger-card {
    background: rgba(224, 122, 122, 0.06);
    border-color: var(--accent-coral) !important;
}

.settings-danger-label {
    color: var(--accent-coral) !important;
}

/* Settings buttons v2 */
.settings-btn-v2 {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.settings-btn-v2:active {
    transform: scale(0.97);
}

.settings-btn-v2.primary {
    background: linear-gradient(135deg, var(--accent-calm), var(--accent-soft));
    color: var(--bg-deep);
    box-shadow: 0 4px 16px rgba(123, 211, 255, 0.2);
}

.settings-btn-v2.secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.settings-btn-v2.accent {
    background: var(--accent-calm);
    color: white;
    box-shadow: 0 4px 16px rgba(123, 211, 255, 0.2);
}

.settings-btn-v2.danger {
    background: var(--accent-coral);
    color: white;
    box-shadow: 0 4px 16px rgba(224, 122, 122, 0.2);
}

/* Shared v2 screen actions */
.screen-actions-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* Filter sections v2 */
.filter-section-v2 {
    margin-bottom: 4px;
}

.filter-section-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.filter-chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
