/**
 * Balance Analysis Window – Styles
 * Teri Life-Balance Coaching mit 3D-Matrix.
 */

/* ── Window Body ─────────────────────────────────────────────────────────── */
#balance-analysis-window .unified-content.balance-analysis-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    gap: 0;
    position: relative;
}

/* ── Lade-Overlay ────────────────────────────────────────────────────────── */
.ba-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 20;
    border-radius: 0 0 12px 12px;
}

.ba-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 220, 255, 0.15);
    border-top-color: #00dcff;
    border-radius: 50%;
    animation: ba-spin 0.9s linear infinite;
}

@keyframes ba-spin { to { transform: rotate(360deg); } }

.ba-loading-text {
    color: rgba(200, 230, 255, 0.85);
    font-size: 14px;
    font-style: italic;
}

/* ── Fehler-Banner ───────────────────────────────────────────────────────── */
.ba-error-banner {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
}

/* ── Haupt-Layout ────────────────────────────────────────────────────────── */
.ba-main {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0;
    border-bottom: 1px solid rgba(0, 220, 255, 0.12);
}

/* ── 3D Matrix Panel (links) ─────────────────────────────────────────────── */
.ba-matrix-panel {
    flex: 0 0 62%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 220, 255, 0.12);
    padding: 10px 0 6px 0;
}

.ba-matrix-title {
    text-align: center;
    font-size: 11px;
    color: rgba(150, 200, 255, 0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 12px 6px;
    flex-shrink: 0;
}

.ba-matrix-3d-container {
    flex: 1;
    min-height: 0;
    position: relative;
    background: transparent;
}

.ba-matrix-legend {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 11px;
    color: rgba(180, 210, 255, 0.7);
}

.ba-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Teri Panel (rechts) ─────────────────────────────────────────────────── */
.ba-teri-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px;
    gap: 10px;
}

/* Score-Karte */
.ba-score-card {
    background: rgba(0, 220, 255, 0.05);
    border: 1px solid rgba(0, 220, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ba-score-label {
    font-size: 11px;
    color: rgba(150, 200, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ba-score-ring-wrap {
    position: relative;
    width: 110px;
    height: 110px;
}

#ba-score-ring {
    position: absolute;
    top: 0; left: 0;
}

.ba-score-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 220, 255, 0.6);
}

.ba-score-desc {
    font-size: 12px;
    color: rgba(180, 210, 255, 0.75);
    text-align: center;
    min-height: 18px;
}

/* Teri-Karte */
.ba-teri-card {
    background: rgba(20, 30, 50, 0.5);
    border: 1px solid rgba(0, 220, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.ba-teri-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ba-teri-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 220, 255, 0.4);
}

.ba-teri-name {
    font-size: 14px;
    font-weight: 600;
    color: #00dcff;
    flex: 1;
}

.ba-audio-btn {
    background: rgba(0, 220, 255, 0.1);
    border: 1px solid rgba(0, 220, 255, 0.3);
    border-radius: 8px;
    padding: 4px 10px;
    color: #00dcff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.ba-audio-btn:hover { background: rgba(0, 220, 255, 0.2); }
.ba-audio-btn.playing { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }

.ba-teri-empty {
    color: rgba(140, 170, 210, 0.55);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.ba-teri-intro {
    font-size: 13px;
    color: rgba(200, 230, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.ba-teri-assessment {
    font-size: 12px;
    color: rgba(170, 200, 240, 0.8);
    line-height: 1.5;
    margin: 0;
    padding: 8px;
    background: rgba(0, 100, 200, 0.1);
    border-left: 3px solid rgba(0, 220, 255, 0.4);
    border-radius: 0 6px 6px 0;
}

.ba-actions-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(150, 200, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.ba-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ba-action-item {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
}

.ba-action-item.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.ba-action-topic {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.ba-action-insight {
    font-size: 11px;
    color: rgba(200, 220, 255, 0.75);
    margin-bottom: 4px;
    line-height: 1.4;
}

.ba-action-suggestion {
    font-size: 12px;
    color: rgba(220, 240, 255, 0.9);
    line-height: 1.4;
}

.ba-action-microstep {
    font-size: 11px;
    color: rgba(0, 220, 255, 0.8);
    margin-top: 4px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.ba-teri-strengths {
    font-size: 12px;
    color: rgba(34, 197, 94, 0.85);
    line-height: 1.4;
    margin: 0;
}

.ba-teri-encouragement {
    font-size: 13px;
    color: rgba(200, 230, 255, 0.9);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    padding: 8px;
    background: rgba(34, 197, 94, 0.07);
    border-radius: 6px;
    text-align: center;
}

/* ── Gap-Tabelle ─────────────────────────────────────────────────────────── */
.ba-gap-table-wrap {
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid rgba(0, 220, 255, 0.12);
    padding: 8px 12px;
}

.ba-gap-table-title {
    font-size: 11px;
    color: rgba(150, 200, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ba-gap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ba-gap-table th {
    text-align: left;
    padding: 4px 8px;
    color: rgba(0, 220, 255, 0.7);
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 220, 255, 0.15);
    white-space: nowrap;
}

.ba-gap-table td {
    padding: 4px 8px;
    color: rgba(200, 220, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ba-gap-table tr:hover td { background: rgba(0, 220, 255, 0.04); }

/* ── Gap-Table Aktions-Buttons ─────────────────────────────────────────── */
.ba-gap-action-btn {
    background: rgba(0, 220, 255, 0.1);
    border: 1px solid rgba(0, 220, 255, 0.35);
    border-radius: 6px;
    color: #00dcff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.ba-gap-action-btn:hover {
    background: rgba(0, 220, 255, 0.22);
    box-shadow: 0 0 8px rgba(0, 220, 255, 0.25);
}
.ba-gap-no-action {
    color: rgba(148, 163, 184, 0.3);
    font-size: 13px;
}

.ba-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ba-status-critical  { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.ba-status-warning   { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.ba-status-balanced  { background: rgba(34, 197, 94, 0.2);  color: #86efac; }
.ba-status-comfort   { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }

/* Urgency-Balken */
.ba-urgency-bar {
    display: inline-block;
    height: 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Analyse-Button im Color Wheel */
#ba-analyse-trigger-btn {
    background: rgba(0, 220, 255, 0.12);
    border: 1px solid rgba(0, 220, 255, 0.4);
    border-radius: 8px;
    padding: 4px 12px;
    color: #00dcff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

#ba-analyse-trigger-btn:hover {
    background: rgba(0, 220, 255, 0.22);
    box-shadow: 0 0 10px rgba(0, 220, 255, 0.2);
}

/* ── Action-Card Header & Buttons ─────────────────────────────────────── */
.ba-action-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ba-action-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.ba-action-audio-btn,
.ba-action-chat-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1.4;
    color: #cce;
}

.ba-action-audio-btn:hover { background: rgba(0,220,255,0.18); border-color: rgba(0,220,255,0.4); }
.ba-action-chat-btn:hover  { background: rgba(130,100,255,0.2); border-color: rgba(130,100,255,0.4); }

/* ── Teri Chat Panel ──────────────────────────────────────────────────── */
.ba-chat-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 480px;
    background: rgba(5, 12, 30, 0.96);
    border: 1px solid rgba(130, 100, 255, 0.35);
    border-radius: 14px 14px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 200;
    box-shadow: -4px -4px 30px rgba(130, 100, 255, 0.15);
    backdrop-filter: blur(12px);
}

.ba-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(130, 100, 255, 0.2);
}

#ba-chat-title {
    font-size: 13px;
    font-weight: 600;
    color: #c4b5fd;
}

.ba-chat-close-btn {
    background: none;
    border: none;
    color: rgba(200, 200, 255, 0.6);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}
.ba-chat-close-btn:hover { background: rgba(255,255,255,0.08); }

.ba-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ba-chat-msg {
    max-width: 88%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.ba-chat-teri {
    background: rgba(130, 100, 255, 0.15);
    border: 1px solid rgba(130, 100, 255, 0.25);
    color: rgba(220, 210, 255, 0.95);
    align-self: flex-start;
    border-radius: 4px 12px 12px 12px;
}

.ba-chat-user {
    background: rgba(0, 160, 220, 0.15);
    border: 1px solid rgba(0, 160, 220, 0.25);
    color: rgba(210, 230, 255, 0.9);
    align-self: flex-end;
    border-radius: 12px 4px 12px 12px;
}

.ba-chat-typing {
    opacity: 0.5;
    font-style: italic;
    animation: ba-pulse 1.2s ease-in-out infinite;
}

@keyframes ba-pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 0.9; }
}

.ba-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(130, 100, 255, 0.15);
}

.ba-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(130, 100, 255, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 12px;
    padding: 6px 10px;
    resize: none;
    outline: none;
    font-family: inherit;
}
.ba-chat-input:focus { border-color: rgba(130, 100, 255, 0.5); }

.ba-chat-send-btn {
    background: rgba(130, 100, 255, 0.25);
    border: 1px solid rgba(130, 100, 255, 0.4);
    border-radius: 8px;
    color: #c4b5fd;
    font-size: 16px;
    cursor: pointer;
    padding: 0 12px;
    transition: background 0.2s;
}
.ba-chat-send-btn:hover    { background: rgba(130, 100, 255, 0.4); }
.ba-chat-send-btn:disabled { opacity: 0.4; cursor: default; }

.ba-chat-mic-btn {
    background: rgba(0, 220, 160, 0.15);
    border: 1px solid rgba(0, 220, 160, 0.35);
    border-radius: 8px;
    color: #6ee7b7;
    font-size: 16px;
    cursor: pointer;
    padding: 0 10px;
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.ba-chat-mic-btn:hover { background: rgba(0, 220, 160, 0.28); }
.ba-chat-mic-btn.listening {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    animation: ba-mic-pulse 1s ease-in-out infinite;
}
@keyframes ba-mic-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
    50%       { box-shadow: 0 0 18px rgba(239, 68, 68, 0.7); }
}

/* Hint-Satz nach Intro-Summary */
.ba-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: rgba(0,220,255,0.6);
    font-style: italic;
    line-height: 1.5;
}

/* Relativpositionierung für absolutes Chat-Panel */
.unified-content.balance-analysis-body { position: relative; overflow: hidden; }

/* ── Ausklappbare Action-Cards (<details>) ────────────────────────────────── */
details.ba-action-item {
    border: 1px solid rgba(0,220,255,0.18);
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(0,220,255,0.04);
    transition: background 0.2s;
    overflow: hidden;
}
details.ba-action-item.ba-status-critical { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.05); }
details.ba-action-item.ba-status-warning  { border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.05); }
details.ba-action-item.ba-status-balanced { border-color: rgba(34,197,94,0.25); }
details.ba-action-item[open]              { background: rgba(0,220,255,0.08); }

.ba-action-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 8px;
}
.ba-action-summary::-webkit-details-marker { display: none; }
.ba-action-summary:hover { background: rgba(0,220,255,0.06); }

.ba-action-chevron {
    color: rgba(0,220,255,0.5);
    font-size: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}
details.ba-action-item[open] .ba-action-chevron { transform: rotate(90deg); }

.ba-action-body {
    padding: 0 12px 10px;
    border-top: 1px solid rgba(0,220,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ba-action-btns-footer {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.ba-action-btns-footer button {
    background: rgba(0,220,255,0.1);
    border: 1px solid rgba(0,220,255,0.25);
    border-radius: 6px;
    color: #a5f3fc;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.ba-action-btns-footer button:hover { background: rgba(0,220,255,0.22); }

/* ── Gesamteinschätzung ausklappbar ─────────────────────────────────────────── */
.ba-assess-details {
    margin: 6px 0 10px;
    border: 1px solid rgba(0,220,255,0.12);
    border-radius: 8px;
    overflow: hidden;
}
.ba-assess-details summary {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    color: rgba(0,220,255,0.7);
    list-style: none;
    user-select: none;
}
.ba-assess-details summary::-webkit-details-marker { display: none; }
.ba-assess-details summary:hover { background: rgba(0,220,255,0.06); }
.ba-assess-details p { padding: 6px 10px 8px; font-size: 12px; color: #cbd5e1; margin: 0; }
.ba-teri-strengths-inline { color: #86efac !important; }

/* ── Weitere Empfehlungen Section ────────────────────────────────────────────── */
.ba-more-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,220,255,0.12);
}
.ba-more-title {
    font-size: 11px;
    color: rgba(0,220,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 8px;
}
.ba-area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.ba-area-chip {
    background: rgba(0,220,255,0.08);
    border: 1px solid rgba(0,220,255,0.2);
    border-radius: 20px;
    color: #a5f3fc;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.ba-area-chip:hover           { background: rgba(0,220,255,0.18); border-color: rgba(0,220,255,0.45); }
.ba-area-chip.active          { background: rgba(0,220,255,0.25); border-color: rgba(0,220,255,0.6); color: #fff; font-weight: 600; }
.ba-area-chip.ba-area-critical { border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.ba-area-chip.ba-area-warning  { border-color: rgba(245,158,11,0.4); color: #fcd34d; }
.ba-more-loading {
    font-size: 12px;
    color: rgba(0,220,255,0.6);
    padding: 4px 0;
    font-style: italic;
}
.ba-more-actions-result { display: flex; flex-direction: column; gap: 0; }
.ba-more-action { border-left: 2px solid rgba(130,100,255,0.4); }
.ba-more-empty  { color: rgba(203,213,225,0.5); font-size: 12px; font-style: italic; padding: 6px 0; }
.ba-more-action .ba-action-save-btn,
.ba-action-save-btn { display: none; } /* wird durch .ba-more-save-btn geregelt */
.ba-more-save-btn { display: none; }

/* ── Avatar speaking pulse (Quick Win) ────────────────────────────────────── */
.ba-teri-avatar.speaking {
    box-shadow:
        0 0 0 3px rgba(0,220,255,0.75),
        0 0 0 7px rgba(0,220,255,0.25);
    animation: ba-avatar-pulse 1.2s ease-in-out infinite;
}
@keyframes ba-avatar-pulse {
    0%,100% {
        box-shadow:
            0 0 0 3px rgba(0,220,255,0.75),
            0 0 0 8px rgba(0,220,255,0.18);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(0,220,255,0.95),
            0 0 0 13px rgba(0,220,255,0.10);
    }
}

/* ── Ziel speichern Buttons ───────────────────────────────────────────────── */
.ba-action-btns-footer .ba-action-save-btn,
.ba-action-btns-footer .ba-more-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.35);
    border-radius: 6px;
    color: #86efac;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
}
.ba-action-btns-footer .ba-action-save-btn:hover,
.ba-action-btns-footer .ba-more-save-btn:hover {
    background: rgba(34,197,94,0.22);
    transform: scale(1.04);
}
.ba-action-btns-footer .ba-action-save-btn:disabled,
.ba-action-btns-footer .ba-more-save-btn:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

/* ── Meine Ziele Panel (Phase 3) ─────────────────────────────────────────── */
.ba-goals-details {
    margin: 10px 0 4px;
    border: 1px solid rgba(0,220,255,0.15);
    border-radius: 10px;
    background: rgba(0,220,255,0.03);
    overflow: hidden;
}
.ba-goals-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #a5f3fc;
    user-select: none;
    list-style: none;
}
.ba-goals-summary::-webkit-details-marker { display: none; }
.ba-goals-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(34,197,94,0.25);
    border-radius: 10px;
    color: #86efac;
}
.ba-goals-panel {
    padding: 8px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ba-goals-empty {
    font-size: 12px;
    color: rgba(203,213,225,0.55);
    font-style: italic;
    margin: 0;
    padding: 4px 0;
}
.ba-goals-section { display: flex; flex-direction: column; gap: 6px; }
.ba-goals-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0,220,255,0.55);
    font-weight: 600;
    margin-bottom: 4px;
}
.ba-goals-done-section {
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 6px;
}
.ba-goals-done-section summary {
    font-size: 11px;
    color: rgba(203,213,225,0.5);
    cursor: pointer;
    padding: 2px 0;
    list-style: none;
}
.ba-goals-done-section summary::-webkit-details-marker { display: none; }
.ba-goal-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ba-goal-card.ba-goal-done {
    opacity: 0.55;
    border-color: rgba(34,197,94,0.2);
}
.ba-goal-card.ba-goal-snoozed {
    border-color: rgba(245,158,11,0.25);
}
.ba-goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.ba-goal-topic {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}
.ba-goal-area {
    font-size: 10px;
    color: rgba(0,220,255,0.6);
    white-space: nowrap;
}
.ba-goal-suggestion {
    font-size: 12px;
    color: rgba(203,213,225,0.8);
    line-height: 1.45;
}
.ba-goal-microstep {
    font-size: 11px;
    color: #fbbf24;
}
.ba-goal-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}
.ba-goal-overdue  { font-size: 11px; font-weight: 600; color: #f87171; }
.ba-goal-due-today{ font-size: 11px; font-weight: 600; color: #fb923c; }
.ba-goal-due      { font-size: 11px; color: rgba(203,213,225,0.65); }
.ba-goal-date-input {
    font-size: 11px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    color: #cbd5e1;
    padding: 2px 6px;
    cursor: pointer;
}
.ba-goal-status-select {
    font-size: 11px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    color: #cbd5e1;
    padding: 2px 4px;
    cursor: pointer;
}
.ba-goal-delete-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    opacity: 0.45;
    transition: opacity 0.15s;
    padding: 0 2px;
}
.ba-goal-delete-btn:hover { opacity: 0.85; }
