/* Life OS – Manuel AG */
.los-board {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 20px;
    padding: 24px 26px;
    margin-bottom: 28px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .28);
    position: relative;
    overflow: hidden;
}
.los-board::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #0ea5e9, #8b5cf6, #34d399);
}
.los-board-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
}
.los-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7dd3fc;
}
.los-kicker i { margin-right: 6px; }
.los-board h2 {
    margin: 6px 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
}
.los-vision {
    margin: 0;
    max-width: 62ch;
    color: #94a3b8;
    line-height: 1.55;
    font-size: 14.5px;
}
.los-health {
    text-align: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 12px 18px;
    min-width: 110px;
}
.los-health.compact { padding: 10px 14px; }
.los-health-num {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #f8fafc;
}
.los-health-lbl {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.los-health-status {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}
.los-health-status.ok, .los-badge.ok { background: #064e3b; color: #6ee7b7; }
.los-health-status.mid, .los-badge.mid { background: #1e3a5f; color: #7dd3fc; }
.los-health-status.warn, .los-badge.warn { background: #78350f; color: #fcd34d; }
.los-health-status.bad, .los-badge.bad { background: #7f1d1d; color: #fca5a5; }

.los-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.los-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-top: 3px solid var(--los-accent, #0ea5e9);
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform .15s, background .15s, border-color .15s;
}
.los-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .07);
    border-color: var(--los-accent, #0ea5e9);
}
.los-card.focus {
    box-shadow: 0 0 0 1px var(--los-accent, #0ea5e9);
}
.los-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.los-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--los-accent) 22%, transparent);
    color: var(--los-accent);
}
.los-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.los-card h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}
.los-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.los-score {
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
    min-width: 36px;
}
.los-bar {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    overflow: hidden;
}
.los-bar-fill {
    height: 100%;
    background: var(--los-accent, #0ea5e9);
    border-radius: 999px;
    transition: width .35s ease;
}
.los-next {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.45;
}
.los-next strong { color: #cbd5e1; font-weight: 600; }

.los-live {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--los-accent, #7dd3fc);
    letter-spacing: .02em;
}
.los-live i { margin-right: 5px; opacity: .8; }
.los-prog-card .los-live { color: var(--los-accent, #6366f1); margin: -4px 0 10px; }

.los-notes { margin-top: 16px; }
.los-note {
    background: rgba(255, 255, 255, .05);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.los-note-meta {
    font-size: 11px;
    color: #7dd3fc;
    font-weight: 700;
}
.los-note p { margin: 4px 0 0; font-size: 13.5px; color: #cbd5e1; line-height: 1.45; }

.los-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.los-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}
.los-btn:hover { filter: brightness(1.05); }
.los-btn-ghost {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, .2);
}

/* Progress tab */
.los-progress-wrap { margin-bottom: 28px; }
.los-progress-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.los-progress-hero h3 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #111827;
}
.los-progress-hero p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
.los-progress-hero .los-health {
    background: #0f172a;
    color: #f8fafc;
}
.los-prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.los-prog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--los-accent, #6366f1);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
}
.los-prog-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.los-prog-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--los-accent) 16%, #fff);
    color: var(--los-accent);
    flex-shrink: 0;
}
.los-prog-head h4 { margin: 0 0 2px; font-size: 16px; color: #111827; }
.los-prog-kpi { margin: 0; font-size: 12px; color: #6b7280; }
.los-prog-score {
    margin-left: auto;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}
.los-prog-score.ok { color: #059669; }
.los-prog-score.mid { color: #0284c7; }
.los-prog-score.warn { color: #d97706; }
.los-prog-score.bad { color: #dc2626; }
.los-prog-card .los-bar {
    background: #f1f5f9;
    margin-bottom: 12px;
}
.los-prog-card p {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.45;
}
.los-muted { color: #6b7280 !important; font-size: 12.5px !important; }
.los-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--los-accent, #6366f1);
    text-decoration: none;
}
/* Apple Health Strip */
.los-health-strip {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.los-health-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.los-health-strip h4 { margin: 0; font-size: 16px; color: #111827; }
.los-health-strip h4 i { margin-right: 8px; }
.los-health-strip.empty p { margin: 8px 0 14px; color: #6b7280; font-size: 13.5px; line-height: 1.5; max-width: 60ch; }
.los-health-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.los-health-metrics .m {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 10px 12px;
}
.los-health-metrics .n { display: block; font-size: 20px; font-weight: 800; color: #0f172a; }
.los-health-metrics .l { font-size: 11.5px; color: #64748b; }

.los-intake {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
}
.los-intake h4 { margin: 0 0 8px; color: #0f172a; }
.los-intake h5 { margin: 14px 0 6px; color: #334155; font-size: 13px; }
.los-intake p, .los-intake li { color: #475569; font-size: 13.5px; line-height: 1.5; }
.los-intake ul { margin: 0; padding-left: 18px; }

/* Admin Life OS */
.life-os-section .los-admin-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.life-os-section .los-admin-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
}
.life-os-section .los-admin-kpi .n {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}
.life-os-section .los-admin-kpi .l {
    font-size: 12px;
    color: #6b7280;
}
.los-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.los-admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    border-top: 4px solid var(--los-accent, #6366f1);
}
.los-admin-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.los-admin-card label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin: 10px 0 4px;
}
.los-admin-card input[type="range"] { width: 100%; }
.los-admin-card textarea,
.los-admin-card input[type="text"],
.los-admin-card select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 13.5px;
    box-sizing: border-box;
}
.los-admin-card textarea { min-height: 64px; resize: vertical; }
.los-admin-score-label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.los-admin-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.los-save-status {
    font-size: 13px;
    color: #64748b;
}
.los-save-status.ok { color: #059669; }
.los-admin-notes {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
}
.los-admin-notes-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.los-admin-notes-form textarea { flex: 1; min-width: 220px; min-height: 70px; }
.los-admin-note-item {
    border-top: 1px solid #f1f5f9;
    padding: 10px 0;
}
.los-admin-note-item .meta { font-size: 11px; color: #64748b; font-weight: 700; }
.los-admin-vision {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

/* Coach-Panel im Profil */
.los-coach {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.los-coach-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.los-coach-head h4 { margin: 0 0 4px; font-size: 18px; color: #111827; }
.los-coach-head p { margin: 0; font-size: 13.5px; color: #6b7280; }
.los-coach h5 {
    margin: 18px 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
}
.los-btn-dark { background: #0f172a; color: #f8fafc; }
.los-recs { display: grid; gap: 10px; }
.los-rec {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--los-accent, #6366f1);
    border-radius: 12px;
    padding: 12px 14px;
    transition: transform .14s, border-color .14s;
}
.los-rec:hover { transform: translateX(2px); border-color: var(--los-accent); }
.los-rec-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--los-accent) 15%, #fff);
    color: var(--los-accent);
    flex-shrink: 0;
}
.los-rec-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.los-rec-title { font-weight: 700; font-size: 14px; }
.los-rec-task { font-size: 12.5px; color: #6b7280; line-height: 1.4; }
.los-rec > .fa-arrow-right { color: var(--los-accent); font-size: 13px; }
.los-coach-note-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.los-coach-note-form textarea {
    flex: 1;
    min-width: 220px;
    min-height: 60px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 13.5px;
}
.los-coach .los-note { background: #f8fafc; border: 1px solid #eef2f7; }
.los-coach .los-note-meta { color: #6366f1; }
.los-coach .los-note p { color: #374151; }

@media (max-width: 640px) {
    .los-board { padding: 18px 16px; }
    .los-board h2 { font-size: 18px; }
    .los-health-num { font-size: 28px; }
}
