/* NauczAI – motyw bazowy na podstawie mockupu (lawenda, białe karty z obrysem, mięta/pomarańcz).
   Kolor akcentu ucznia nadpisuje --accent (ustawiany z profilu). Zob. docs/DESIGN.md */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

:root {
    --bg: #e6dafa;
    --bg-deep: #d6c4f5;
    --card: #ffffff;
    --ink: #2b2240;
    --muted: #6f6488;
    --line: #2b2240;
    --accent: #7c4dff;
    --mint: #3cc5a6;
    --orange: #f7a440;
    --green: #5cc97b;
    --danger: #e0475b;
    --radius: 22px;
    --shadow: 0 4px 0 rgba(43, 34, 64, .18);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); font-weight: 700; }
h1, h2, h3 { font-weight: 900; margin: 0 0 .5rem; }
h1:focus { outline: none; }

.topbar {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem; background: var(--card); border-bottom: 3px solid var(--line);
}
.home-link { margin-right: auto; text-decoration: none; display: flex; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 900; color: var(--ink); }
.logo span { color: var(--accent); }
.logo.large { font-size: 2.4rem; }
.logo-img { height: 3.6rem; display: block; border-radius: 10px; }
.logo-img.large { height: auto; width: 100%; max-width: 400px; border-radius: 14px; }
.login-logo { display: flex; justify-content: center; margin-bottom: .75rem; }
.who { font-weight: 700; }
.user-menu { position: relative; }
.user-menu-btn { gap: .35rem; }
.user-menu-list[hidden] { display: none; }
.user-menu-backdrop { position: fixed; inset: 0; z-index: 900; }
.user-menu-list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 901; min-width: 12rem; background: var(--card); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: .35rem; display: flex; flex-direction: column; }
.user-menu-list a, .user-menu-list button { font: inherit; font-weight: 800; color: var(--ink); text-decoration: none; text-align: left; background: none; border: none; padding: .6rem .8rem; border-radius: 10px; cursor: pointer; width: 100%; }
.user-menu-list a:hover, .user-menu-list button:hover, .user-menu-list a:focus-visible, .user-menu-list button:focus-visible { background: var(--bg); }
.fake-banner { background: var(--orange); color: var(--ink); text-align: center; padding: .35rem 1rem; font-size: .85rem; font-weight: 700; }

.page { max-width: 960px; margin: 0 auto; padding: 1rem; }
.card {
    background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1rem;
}
.narrow { max-width: 440px; margin: 2rem auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); font-weight: 700; }
.success { color: var(--mint); font-weight: 700; }
.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }

label { display: flex; flex-direction: column; gap: .25rem; font-weight: 700; }
input, textarea, select {
    font: inherit; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 14px; background: #fff;
}
textarea { resize: vertical; min-height: 3rem; }

.btn {
    font: inherit; font-weight: 900; cursor: pointer; border: 3px solid var(--line); border-radius: 999px;
    padding: .6rem 1.2rem; background: var(--mint); color: var(--ink); box-shadow: var(--shadow);
    text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; justify-content: center;
}
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-big { font-size: 1.2rem; padding: .9rem 1.4rem; }
.btn-hint { background: var(--orange); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border-width: 2px; padding: .35rem .9rem; }

.tile {
    font: inherit; cursor: pointer; background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
    padding: 1rem .5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: .4rem;
    font-weight: 900; color: var(--ink);
}
.tile .icon { font-size: 2.6rem; }
.tile.selected { background: var(--accent); color: #fff; }

.app-icon { display: inline-block; line-height: 1; }

/* Postęp: rosnące rzeczy (mózg i przedmioty) */
.growth .growing { position: relative; display: inline-block; }
.growth .accent { position: absolute; top: -.15em; right: -.5em; font-size: .45em; }
.growth { display: inline-flex; align-items: flex-end; gap: .15rem; line-height: 1; white-space: nowrap; }
.growth .trophy { font-size: 1.1rem; }
.growth .trophy-more { font-weight: 900; color: var(--muted); }
.growth .growing { font-size: 1.5rem; transition: font-size .3s; }
.growth .growing.stage-1 { font-size: 1.8rem; }
.growth .growing.stage-2 { font-size: 2.1rem; }
.growth .growing.stage-3 { font-size: 2.4rem; }
.growth .growing.large { font-size: 3rem; }
.growth .growing.large.stage-1 { font-size: 3.6rem; }
.growth .growing.large.stage-2 { font-size: 4.2rem; }
.growth .growing.large.stage-3 { font-size: 4.8rem; }
.subject-info { display: flex; flex-direction: column; flex: 1; gap: .15rem; min-width: 0; }
.small-bar { height: 8px; border-width: 1.5px; }
.stats-row { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 860px) { .stats-row { grid-template-columns: minmax(0, 1fr); } }

/* Moje postępy (D-025): całość u góry, niżej przedmioty z kolekcją odznak */
.my-progress { display: flex; flex-direction: column; gap: .75rem; }
.my-progress h2 { margin: 0; }
.my-progress .overall { display: flex; gap: 1rem; align-items: center; padding-bottom: .75rem; border-bottom: 2px dashed var(--bg-deep); }
.my-progress .brain-visual { height: 6rem; min-width: 6rem; display: flex; align-items: flex-end; justify-content: center; }
.my-progress .brain-name { font-size: 1.15rem; }
.overall-info { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 0; }
.overall-info .bar { max-width: 16rem; }
.subject-list { display: flex; flex-direction: column; gap: .55rem; }
.subject-row { display: grid; grid-template-columns: 4.5rem minmax(7rem, 9.5rem) minmax(0, 1fr); align-items: center; gap: .75rem; }
.subject-row .growth { justify-content: center; }
.subject-info { display: flex; flex-direction: column; min-width: 0; }
.badge-shelf { display: flex; flex-wrap: wrap; gap: .15rem .4rem; align-items: center; }
.badge-slot { font-size: 1.35rem; line-height: 1.2; cursor: default; white-space: nowrap; }
.badge-slot.locked { filter: grayscale(1); opacity: .28; }
.badge-count { font-size: .7rem; font-weight: 900; margin-left: .05rem; }
.history-link { align-self: flex-end; }
.hello-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.hello-row .hello { margin-bottom: 0; }

/* Powitanie nowego dziecka, gotowe postacie, tło, samouczek */
.welcome { text-align: center; }
.welcome-face { font-size: 5rem; line-height: 1; margin: .5rem auto 1rem; }
.welcome-face img { width: 9rem; height: 9rem; border-radius: 50%; border: 3px solid var(--line); object-fit: cover; }
.welcome { max-width: 36rem; }
.welcome-text { font-size: 1.15rem; line-height: 1.5; }
.welcome-text p { margin: 0 0 .7rem; }
.nowrap { white-space: nowrap; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; margin: 1rem 0; }
.preset { font: inherit; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: .9rem .6rem; background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; color: var(--ink); }
.preset.selected { outline: 4px solid var(--accent); outline-offset: 2px; }
.preset-face { font-size: 3rem; line-height: 1; height: 4rem; display: grid; place-items: center; }
.preset-face img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.preset small { color: var(--muted); font-weight: 600; }
.customize { margin: 1rem 0; }
.customize summary { cursor: pointer; font-weight: 800; padding: .5rem 0; }
.onboarding-actions { margin-top: 1rem; }
.background-choices { gap: .5rem; }
.background-choice { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid var(--line); cursor: pointer; font-weight: 900; color: var(--ink); }
.background-choice.selected { outline: 3px solid var(--accent); outline-offset: 2px; }
.help-btn { margin-right: .4rem; }
.tour-overlay { position: fixed; inset: 0; z-index: 2000; cursor: pointer; }
.tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(20, 14, 35, .65); border: 3px solid #fff; transition: all .25s; pointer-events: none; }
.tour-card { position: fixed; max-width: min(24rem, calc(100vw - 24px)); background: var(--card); border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: .9rem 1rem; color: var(--ink); cursor: default; }
.tour-text { margin: 0 0 .7rem; font-weight: 700; line-height: 1.4; }
.tour-footer { display: flex; align-items: center; gap: .5rem; }
.tour-count { color: var(--muted); font-weight: 800; margin-right: auto; }
.tour-close { padding: .2rem .6rem; }

/* Rejestracja z zaproszenia, zasady, administrator (D-027) */
.register fieldset { border: 2px dashed var(--bg-deep); border-radius: 16px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
.register legend { font-weight: 900; padding: 0 .4rem; }
.register label small { font-weight: 600; }
input.invalid, .subject-choices.invalid, .consent.invalid { border-color: var(--danger) !important; background: #fff4f4; }
.subject-choices.invalid, .consent.invalid { border: 2px solid var(--danger); border-radius: 12px; padding: .4rem; }
.field-error { color: var(--danger); font-weight: 700; font-size: .9rem; margin: -.4rem 0 .2rem; }
.form-summary { margin-bottom: .6rem; }
.code-input { text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.subject-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.subject-choice { flex-direction: row; align-items: center; gap: .5rem; font-weight: 700; padding: .4rem .6rem; border: 2px solid var(--bg-deep); border-radius: 12px; cursor: pointer; }
.subject-choice input { width: 1.2rem; height: 1.2rem; }
.consent { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 600; margin: .5rem 0 1rem; }
.consent input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; flex: none; }
.success { color: #1f8a5b; font-weight: 700; }
.child-login { border-top: 2px dashed var(--bg-deep); padding-top: .6rem; margin-top: .6rem; }
.terms h2 { font-size: 1.1rem; margin-top: 1.2rem; }
.terms li { margin-bottom: .3rem; }
.invite-note { flex: 1; min-width: 12rem; }
.new-invite { background: #fff8e8; border: 2px solid var(--line); border-radius: 16px; padding: .7rem 1rem; }
.new-invite textarea { width: 100%; }
.table-scroll { overflow-x: auto; }
.usage-table td, .invite-list td { font-size: .92rem; }
.unfinished-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding: .5rem 0; border-top: 2px dashed var(--bg-deep); }
.unfinished-row:first-of-type { border-top: none; }
.unfinished-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.unfinished-preview { color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.unfinished-actions { gap: .5rem; flex-wrap: nowrap; }
.improvement-actions { gap: .5rem; }
.history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.history-list li { display: flex; gap: .75rem; align-items: flex-start; }
.history-emoji { font-size: 1.6rem; line-height: 1; min-width: 2.4rem; text-align: center; }
.history-text { display: flex; flex-direction: column; }
.stats-row > .card { margin-bottom: 1rem; min-width: 0; }

/* Co wymaga poprawy */
.improvement { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem .75rem; padding: .5rem 0; border-top: 1px dashed var(--bg-deep); }
.practice-btn { padding: .4rem 1rem; white-space: nowrap; }

/* Stopka */
.credits { text-align: center; color: var(--muted); font-weight: 700; font-size: .9rem; padding: 1.5rem 1rem 2rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-weight: 700; font-size: .9rem; }
.bar { height: 14px; background: var(--bg); border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--green); }

/* Twarz korepetytora (obrazek albo emoji) */
.tutor-face { border-radius: 50%; border: 3px solid var(--line); object-fit: cover; background: #fff; vertical-align: middle; }
.tutor-face.small { width: 3rem; height: 3rem; }
.tutor-face.large { width: 9rem; height: 9rem; }
.tutor-emoji.small { font-size: 2.5rem; vertical-align: middle; }
.tutor-emoji.large { font-size: 6rem; }
.hello { display: flex; align-items: center; gap: .6rem; }
.farewell { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; }

/* Ekran startowy: ciekawostka i tydzień */
.fun-fact { display: flex; gap: 1rem; align-items: flex-start; background: #fff8e8; }
.fun-fact-icon { font-size: 2.6rem; line-height: 1; }
.fun-fact .stack { gap: .4rem; flex: 1; }
.fact-text { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.fun-fact .btn { align-self: flex-start; }
.two-col { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.two-col > .card { margin-bottom: 1rem; }
.week-head { display: flex; align-items: center; gap: .5rem; }
.week-head h2 { flex: 1; text-align: center; margin: 0; font-size: 1.2rem; }
.week-head .btn { padding: .1rem .75rem; font-size: 1.4rem; line-height: 1.2; }
.week { display: flex; gap: .35rem; justify-content: space-between; margin: .5rem 0 .75rem; }
.day-dot {
    display: flex; flex-direction: column; align-items: center; gap: .2rem; flex: 1;
    background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
}
.day-dot.selected small { color: var(--accent); }
.day-dot.selected span { transform: scale(1.12); border-color: var(--accent); }
.day-preview { background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: .6rem .8rem; margin-bottom: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.day-session { display: flex; flex-direction: column; gap: .1rem; background: #fff; border-radius: 12px; padding: .45rem .6rem; }
.day-dot { min-width: 0; }
.day-dot span {
    width: 100%; max-width: 2.2rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: var(--bg);
    display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.day-dot.active span { background: var(--green); color: #fff; }
.day-dot.today span { box-shadow: 0 0 0 3px var(--orange); }
.day-dot small { font-weight: 700; color: var(--muted); }
.stats { display: flex; gap: .75rem; }
.stat { flex: 1; background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: .5rem .75rem; display: flex; flex-direction: column; }
.stat-number { font-size: 1.8rem; font-weight: 900; color: var(--accent); line-height: 1.1; }
.wins { margin: .75rem 0 0; }
.home { display: flex; flex-direction: column; }

/* Czat */
.chat-header { display: flex; align-items: center; gap: .75rem; }
.messages { display: flex; flex-direction: column; gap: .6rem; padding: .5rem 0 1rem; }
.bubble { max-width: 85%; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 20px; white-space: pre-wrap; line-height: 1.4; }
.bubble.tutor { background: var(--card); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.student { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
/* Zdjęcia: w rozmowie miniatury, kliknięcie = podgląd na cały ekran (PhotoStrip) */
.photo-strip { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; white-space: normal; }
.photo-thumb-wrap { position: relative; }
.photo-thumb { padding: 0; border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: zoom-in; overflow: hidden; display: block; }
.photo-thumb img { width: 88px; height: 88px; object-fit: cover; display: block; }
.emoji-picker { display: flex; flex-direction: column; gap: .25rem; border: 2px dashed var(--line); border-radius: 16px; padding: .5rem; margin-bottom: .6rem; background: var(--card); }
.emoji-group { display: flex; flex-wrap: wrap; gap: .1rem; }
.emoji-option { font-size: 1.5rem; width: 44px; height: 44px; border: none; border-radius: 10px; background: none; cursor: pointer; padding: 0; line-height: 1; }
.emoji-option:hover, .emoji-option:focus-visible { background: var(--bg); }
.emoji-option:disabled { opacity: .45; cursor: not-allowed; }
.photo-remove:disabled, .library-photo:disabled { opacity: .45; cursor: not-allowed; }
.photo-remove { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; cursor: pointer; line-height: 1; padding: 0; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 14, 35, .88); display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #fff; cursor: default; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.6rem; font-weight: 800; cursor: pointer; line-height: 1; padding: 0; }
.lightbox-close { top: .8rem; right: .8rem; font-size: 1.2rem; }
.lightbox-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; }
.pending-photos { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .5rem; }
.pending-photos .photo-strip { padding-top: 8px; }
.photo-library { border: 2px dashed var(--line); border-radius: 16px; padding: .7rem; margin-bottom: .6rem; background: var(--card); }
.photo-library-head { justify-content: space-between; align-items: center; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.library-photo { position: relative; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.library-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.library-photo.selected { border-color: var(--accent); }
.library-date { position: absolute; left: 4px; bottom: 4px; background: rgba(255,255,255,.9); color: var(--ink); border-radius: 8px; padding: 0 .35rem; font-size: .75rem; font-weight: 700; }
.library-check { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.thinking { color: var(--muted); font-style: italic; }
.composer { position: sticky; bottom: 0; background: var(--bg); padding: .5rem 0; display: flex; flex-direction: column; gap: .5rem; }
.composer .row > textarea { flex: 1; min-width: 0; }
.message-row { flex-wrap: nowrap; gap: .5rem; align-items: stretch; }
.message-row .send-btn { align-self: center; }
.emoji-btn { font-size: 1.4rem; padding: 0; width: 3rem; flex: none; border-radius: 14px; }
.composer-tools { display: flex; justify-content: space-between; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; }
.tool-group { gap: .5rem; }
.btn-small { font-size: .9rem; padding: .3rem .8rem; }
.photo-btn { position: relative; overflow: hidden; flex-direction: row; }
.photo-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.quiz-formats { margin-top: 1rem; }
.quiz-formats .row > .btn { flex: 1; }
.quiz-answers { gap: .5rem; flex-wrap: nowrap; }
.quiz-answers .answer-btn { flex: 1; font-size: 1.6rem; padding: .6rem 0; }

/* Rodzic */
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .4rem; border-bottom: 1px solid var(--bg-deep); vertical-align: top; }
.flag { color: var(--danger); font-weight: 700; }
.day { margin-top: 1rem; }

#blazor-error-ui {
    background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); display: none;
    left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

@media (max-width: 600px) {
    html, body { font-size: 17px; }
    .page { padding: .75rem; }
    .bubble { max-width: 92%; }
    /* Na telefonie najpierw wybór przedmiotu, statystyki pod nim */
    .home > .unfinished, .home > .subjects, .home > .modes { order: 2; }
    .home > .stats-row { order: 3; }
    .home > .improvements { order: 5; }
    /* Pasek pisania: każda grupa przycisków w swojej linii, przyciski równej szerokości */
    .tool-group { width: 100%; flex-wrap: nowrap; }
    .tool-group > .btn { flex: 1; }
    .lesson-tools > .btn-hint { flex: 2; }
    /* Górny pasek ucznia: bez imienia (jest w powitaniu), „Pomoc” jako sama ikona – żeby zmieścił się „Wyloguj” */
    .topbar:has(.help-btn) .who { display: none; }
    .help-label { display: none; }
    /* Moje postępy: odznaki pod nazwą przedmiotu */
    .subject-row { grid-template-columns: 3.5rem minmax(0, 1fr); row-gap: .2rem; }
    .subject-row .badge-shelf { grid-column: 2; gap: .1rem .3rem; }
    .subject-row .badge-slot { font-size: 1.15rem; }
    .my-progress .brain-visual { min-width: 4.5rem; height: 5rem; }
}
