.learning-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.learning-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 14% 20%, rgba(0,212,255,0.12), transparent 30%),
        radial-gradient(circle at 78% 30%, rgba(0,255,136,0.08), transparent 32%),
        var(--bg-elevated);
}

.learning-eyebrow {
    color: var(--secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.learning-hero h1 {
    margin: 5px 0 0;
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1.2;
}

.learning-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    gap: 8px;
    min-width: min(460px, 100%);
}

.learning-kpis div,
.learning-score-row span {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.24);
}

.learning-kpis span,
.learning-score-row span,
.learning-packet-head,
.learning-empty {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.learning-kpis strong {
    display: block;
    margin-top: 3px;
    color: var(--text-main);
    font-size: 1rem;
}

.learning-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 16px;
}

.learning-graph {
    height: 360px;
    margin-bottom: 16px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        var(--bg-elevated);
    background-size: 34px 34px;
}

#learning-graph-svg {
    width: 100%;
    height: 100%;
}

.learning-packets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.learning-packet,
.learning-drawer {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}

.learning-packet {
    padding: 12px;
    cursor: pointer;
}

.learning-packet:hover {
    border-color: rgba(0,212,255,0.32);
}

.learning-packet h3,
.learning-drawer h2 {
    margin: 8px 0;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.35;
}

.learning-packet p,
.learning-drawer p {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.learning-packet-head,
.learning-feedback,
.learning-evidence,
.learning-score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.learning-action {
    color: var(--accent);
}

.learning-good { box-shadow: inset 3px 0 0 rgba(0,255,136,0.72); }
.learning-info { box-shadow: inset 3px 0 0 rgba(0,212,255,0.72); }
.learning-warn { box-shadow: inset 3px 0 0 rgba(255,209,77,0.72); }
.learning-bad  { box-shadow: inset 3px 0 0 rgba(255,95,87,0.72); }

.learning-chip,
.learning-mini-btn,
.learning-feedback button {
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-panel);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    cursor: pointer;
}

.learning-chip:hover,
.learning-mini-btn:hover,
.learning-feedback button:hover {
    color: var(--text-main);
    border-color: rgba(0,212,255,0.32);
}

.learning-drawer {
    position: sticky;
    top: 14px;
    align-self: start;
    padding: 14px;
}

.learning-score-row {
    margin: 10px 0;
}

.learning-evidence-large {
    margin-top: 8px;
}

.learning-empty-panel {
    padding: 16px;
    color: var(--text-dim);
}

@media (max-width: 980px) {
    .learning-hero,
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .learning-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .learning-kpis {
        grid-template-columns: repeat(2, 1fr);
        min-width: 0;
    }

    .learning-drawer {
        position: static;
    }
}
