/* ============================================================
   WAK Life — shared FLAT page header (matches the Budget page).
   Each page sets --wak-accent on .wak-head for its identity color.
   ============================================================ */
.wak-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 2px 2px 0;
    margin-bottom: 18px;
}
.wak-head__text { min-width: 0; }
.wak-head__eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wak-accent, #4A6CF7);
    margin-bottom: 6px;
}
.wak-head__title {
    margin: 0;
    font-size: clamp(1.55rem, 2.1vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--text, #0F172A);
}
.wak-head__sub {
    margin: 6px 0 0;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted, #64748B);
    max-width: 580px;
}
.wak-head__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.wak-head__meta {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text, #0F172A);
}
.wak-head__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 14px;
    padding: 10px 18px;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: var(--wak-accent, #4A6CF7);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--wak-accent, #4A6CF7) 38%, transparent);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.wak-head__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.wak-head__btn:active { transform: translateY(0); }
.wak-head__btn--ghost {
    background: #fff;
    color: var(--wak-accent, #4A6CF7);
    border: 1px solid var(--border, #E2E8F0);
    box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.wak-head__btn .btn-icon { font-size: 1rem; line-height: 1; }

/* Period selector: active mode uses the page accent (matches Budget) */
.wak-head .wak-period-mode.is-active { background: var(--wak-accent, #4A6CF7); color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--wak-accent, #4A6CF7) 40%, transparent); }

@media (max-width: 680px) {
    .wak-head { flex-direction: column; }
    .wak-head__actions { width: 100%; justify-content: flex-start; }
    .wak-head__btn { flex: 1; justify-content: center; }
}
[data-theme="dark"] .wak-head__btn--ghost { background: var(--surface, #1E1E1E); }
