.parent-shell {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.parent-top {
    border: 1px solid #b7cbe6;
    border-radius: 18px;
    padding: 12px 18px;
    color: #f8fbff;
    background:
        radial-gradient(110% 120% at 100% 0%, rgba(255, 171, 74, .14) 0%, rgba(255,171,74,0) 42%),
        linear-gradient(135deg, #1a3d70 0%, #234f8c 52%, #2f5f9d 100%);
    box-shadow: 0 18px 34px rgba(26, 61, 112, .22);
}

.parent-top-copy {
    display: grid;
    gap: 0;
}

.parent-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.parent-filter-form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .9fr) auto;
    gap: 10px;
    align-items: end;
}

.parent-student-pill-card {
    display: grid;
    gap: 4px;
    min-height: 46px;
    align-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #eef5ff;
}

.parent-student-pill-label {
    color: rgba(238, 245, 255, .82);
    font-size: .78rem;
    font-weight: 700;
}

.parent-student-pill-card strong {
    color: #ffffff;
    font-size: .96rem;
    font-weight: 800;
}

.parent-filter-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #eef5ff;
    font-size: .84rem;
    font-weight: 700;
}

.parent-filter-form select,
.parent-filter-form input {
    min-height: 46px;
    border: 1px solid #bfd0e9;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    color: #173253;
    padding: 0 14px;
}

.parent-filter-form button {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #f3b775;
    background: linear-gradient(135deg, #ffca8a 0%, #f1a64f 100%);
    color: #54320c;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(34, 61, 99, .16);
}

.week-nav {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.week-nav span {
    color: #ecf3ff;
    font-weight: 800;
    text-align: center;
    flex: 1 1 auto;
}

.week-nav a {
    text-decoration: none;
    color: #f7fbff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, .10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 34px;
    font-size: .84rem;
    flex: 0 0 auto;
}

.parent-card {
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(31, 61, 99, .07);
}

.section-head {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.section-head h3 {
    margin: 0;
    font-size: 1.22rem;
    color: #183354;
}

.parent-section-note {
    margin: 4px 0 0;
    color: #667b93;
    font-size: .92rem;
}

.parent-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #c7d7ec;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    color: #28496d;
    font-size: .82rem;
    font-weight: 800;
}

.parent-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .95fr);
    gap: 14px;
}

.parent-focus-main,
.parent-alerts {
    border: 1px solid #d6e0ee;
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.parent-meta-grid,
.parent-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.parent-insight-grid {
    margin-top: 12px;
}

.parent-meta-card,
.parent-insight-card {
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    display: grid;
    gap: 5px;
}

.parent-meta-label,
.parent-insight-label {
    color: #778aa1;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.parent-meta-card strong,
.parent-insight-card strong {
    color: #173253;
    font-size: 1.12rem;
    line-height: 1.2;
}

.parent-insight-card small {
    color: #73869d;
    font-size: .82rem;
}

.parent-alerts h4 {
    margin: 0 0 10px;
    color: #173253;
    font-size: 1rem;
}

.parent-alert-list {
    display: grid;
    gap: 10px;
}

.parent-alert-card {
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    padding: 12px 13px;
    background: #fff;
}

.parent-alert-card strong {
    display: block;
    color: #173253;
    margin-bottom: 5px;
}

.parent-alert-card p {
    margin: 0;
    color: #687d95;
    font-size: .9rem;
    line-height: 1.5;
}

.parent-alert-card.tone-success {
    border-color: #bfe0cf;
    background: linear-gradient(180deg, #fbfffc 0%, #f3fbf6 100%);
}

.parent-alert-card.tone-warning {
    border-color: #f1d4ab;
    background: linear-gradient(180deg, #fffdfa 0%, #fff6ea 100%);
}

.parent-alert-card.tone-danger {
    border-color: #efc6c6;
    background: linear-gradient(180deg, #fffdfd 0%, #fff3f3 100%);
}

.parent-alert-card.tone-info {
    border-color: #c8d8f2;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

.parent-week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.parent-week-day {
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: grid;
    gap: 6px;
}

.parent-week-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.parent-week-day.is-active {
    border-color: #bcd0eb;
    box-shadow: 0 10px 18px rgba(46, 124, 246, .08);
}

.parent-week-day:nth-child(1) {
    background: linear-gradient(180deg, #dcecff 0%, #cfe5ff 100%);
    border-color: #8eb7f0;
}

.parent-week-day:nth-child(2) {
    background: linear-gradient(180deg, #def7e7 0%, #cff0da 100%);
    border-color: #7fc89c;
}

.parent-week-day:nth-child(3) {
    background: linear-gradient(180deg, #fff0df 0%, #ffe5c8 100%);
    border-color: #e5b573;
}

.parent-week-day:nth-child(4) {
    background: linear-gradient(180deg, #ede2ff 0%, #e0d0ff 100%);
    border-color: #b798f0;
}

.parent-week-day:nth-child(5) {
    background: linear-gradient(180deg, #ffe3e8 0%, #ffd4dc 100%);
    border-color: #eb94a7;
}

.parent-week-day:nth-child(6) {
    background: linear-gradient(180deg, #dcf7f8 0%, #cef0f2 100%);
    border-color: #7fd0d6;
}

.parent-week-day:nth-child(7) {
    background: linear-gradient(180deg, #fff1d9 0%, #ffe5bf 100%);
    border-color: #efbd72;
}

.parent-week-day.has-exam {
    box-shadow: 0 12px 24px rgba(41, 85, 133, .16);
    transform: translateY(-1px);
}

.parent-week-day-label {
    color: #7b8ca1;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.parent-week-day-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
    border: 1px solid #9ec0ee;
    color: #1d4b78;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

.parent-week-day strong {
    color: #173253;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.parent-week-day small {
    color: #73869d;
    font-size: .82rem;
}

.summary-chart {
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.parent-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.chart-row {
    margin: 0;
}

.chart-row span {
    display: block;
    margin-bottom: 6px;
    color: #4f6783;
    font-size: .84rem;
    font-weight: 800;
}

.chart-row i {
    display: block;
    height: 11px;
    border-radius: 999px;
    overflow: hidden;
    background: #ebf1f7;
}

.chart-row i b {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(120deg, #2e7cf6, #2ec5d3);
}

.chart-row.good i b { background: linear-gradient(120deg, #2f9c63, #56cb8c); }
.chart-row.bad i b { background: linear-gradient(120deg, #c95050, #e28a8a); }
.chart-row.muted i b { background: linear-gradient(120deg, #8a96a8, #b5bec9); }

.table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d9e2ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
    scrollbar-gutter: stable both-edges;
}

.table-wrap table {
    min-width: 760px;
    width: max-content;
}

.table-wrap thead th {
    background: linear-gradient(180deg, #edf5ff 0%, #e5efff 100%);
    white-space: nowrap;
    color: #183354;
    font-weight: 800;
    border-bottom: 1px solid #cfdbec;
}

.table-wrap tbody td {
    background: rgba(255, 255, 255, .94);
    color: #183354;
}

.table-wrap tbody tr:nth-child(even) td {
    background: #f9fbff;
}

.table-wrap tbody tr:hover td {
    background: #f3f8ff;
}

.table-wrap td.good {
    background: linear-gradient(180deg, #eefaf3 0%, #e2f5ea);
    color: #1f6b49;
}

.table-wrap td.bad {
    background: linear-gradient(180deg, #fff2f2 0%, #ffe4e4);
    color: #a54242;
}

.table-wrap td.muted {
    background: linear-gradient(180deg, #f4f7fb 0%, #eaf0f6);
    color: #5d6f82;
}

.parent-schedule-note,
.parent-schedule-empty,
.mini-stats {
    color: #5e7590;
}

.parent-schedule-grid,
.exam-months {
    display: grid;
    gap: 10px;
}

.parent-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.parent-topic-list {
    display: grid;
    gap: 10px;
}

.parent-topic-list.is-scrollable {
    max-height: 252px;
    overflow-y: auto;
    padding-right: 4px;
}

.parent-topic-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid #dce6f1;
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
}

.parent-topic-copy {
    display: grid;
    gap: 4px;
}

.parent-topic-copy strong {
    color: #173253;
}

.parent-topic-copy small {
    color: #6f839a;
    font-size: .84rem;
}

.parent-topic-card {
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: grid;
    gap: 10px;
}

.parent-topic-card.is-strong {
    border-color: #bfdcc8;
    background: linear-gradient(180deg, #fbfffc 0%, #f2fbf6 100%);
}

.parent-topic-card.is-watch {
    border-color: #e6d4b1;
    background: linear-gradient(180deg, #fffdfa 0%, #fff7ec 100%);
}

.parent-topics-card .parent-disclosure {
    gap: 14px;
}

.parent-topic-group {
    overflow: hidden;
}

.parent-topic-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.parent-topic-summary::-webkit-details-marker {
    display: none;
}

.parent-topic-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d2deed;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
}

.parent-topic-toggle::before {
    content: "+";
    color: #2f557f;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
}

.parent-topic-group[open] .parent-topic-toggle::before {
    content: "-";
}

.parent-topic-group[open] .parent-topic-toggle {
    background: linear-gradient(180deg, #edf4ff 0%, #e2edff 100%);
}

.parent-topic-head {
    display: grid;
    gap: 4px;
}

.parent-topic-head strong {
    color: #173253;
}

.parent-topic-head span {
    color: #6b8098;
    font-size: .86rem;
}

.parent-topic-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.parent-topic-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d6e0ee;
    background: #fff;
    color: #45617d;
    font-size: .82rem;
    font-weight: 700;
}

.parent-report-list {
    display: grid;
    gap: 10px;
}

.parent-report-card {
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    padding: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    display: grid;
    gap: 10px;
    box-shadow: 0 10px 22px rgba(26, 56, 97, .06);
}

.parent-report-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.parent-report-head strong {
    display: block;
    color: #183354;
    font-size: 1rem;
}

.parent-report-head span,
.parent-report-meta span {
    color: #6a7f97;
    font-size: .86rem;
}

.parent-report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.parent-report-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #cfe0f1;
    background: #eef5ff;
    color: #183354;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.parent-report-action--secondary {
    background: #fff7ea;
    border-color: #eed4ac;
    color: #8a5b13;
}

.parent-report-block {
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    padding: 14px 15px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.parent-report-block.is-muted {
    background: #f8fbff;
}

.parent-report-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #31547e;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.parent-report-block p {
    margin: 10px 0 0;
    color: #314b69;
    line-height: 1.72;
    font-size: 1rem;
    text-wrap: pretty;
}

.parent-report-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #596f88;
    font-size: .9rem;
}

.parent-schedule-day,
.exam-month-group {
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.parent-schedule-day-head,
.exam-month-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 11px 13px;
    border-bottom: 1px solid #e4ebf4;
    background: #f4f8ff;
    color: #355578;
    font-weight: 700;
}

.parent-schedule-day-head,
.exam-month-head strong {
    color: #173253;
}

.parent-schedule-day-body,
.exam-card-list {
    padding: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.parent-schedule-table-wrap {
    overflow: auto;
    border: 1px solid #d9e2ee;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    scrollbar-gutter: stable both-edges;
}

.table-wrap::-webkit-scrollbar,
.parent-schedule-table-wrap::-webkit-scrollbar {
    height: 12px;
}

.table-wrap::-webkit-scrollbar-track,
.parent-schedule-table-wrap::-webkit-scrollbar-track {
    background: #e9f0f8;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb,
.parent-schedule-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #7fa8df 0%, #4e82cc 100%);
    border-radius: 999px;
    border: 2px solid #e9f0f8;
}

.table-wrap,
.parent-schedule-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: #4e82cc #e9f0f8;
}

.parent-schedule-table-shell {
    max-width: 1120px;
    margin-inline: auto;
    width: 100%;
}

.parent-schedule-card {
    max-width: none;
    margin-inline: 0;
    width: 100%;
}

.parent-disclosure {
    display: grid;
    gap: 10px;
}

.parent-disclosure-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.parent-disclosure-summary::-webkit-details-marker {
    display: none;
}

.parent-disclosure-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d2deed;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    box-shadow: 0 8px 16px rgba(24, 51, 84, .08);
}

.parent-disclosure-toggle::before {
    content: "+";
    color: #2f557f;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.parent-disclosure[open] .parent-disclosure-toggle::before {
    content: "-";
}

.parent-disclosure[open] .parent-disclosure-toggle {
    background: linear-gradient(180deg, #edf4ff 0%, #e2edff 100%);
}

.parent-schedule-table {
    width: 100%;
    min-width: 940px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.parent-schedule-table th,
.parent-schedule-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2eaf3;
    border-right: 1px solid #edf3f8;
    vertical-align: middle;
    text-align: center;
}

.parent-schedule-table th:last-child,
.parent-schedule-table td:last-child {
    border-right: 0;
}

.parent-schedule-table thead th {
    background: linear-gradient(180deg, #edf5ff 0%, #e2edff 100%);
    color: #355578;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.parent-schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.schedule-summary-cell {
    display: grid;
    gap: 4px;
    min-height: 54px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.schedule-summary-cell strong {
    color: #173253;
    font-size: .92rem;
    line-height: 1.25;
}

.schedule-summary-cell span {
    color: #7287a0;
    font-size: .81rem;
}

.schedule-empty {
    color: #8ea0b3;
    font-weight: 700;
}

.schedule-summary-day {
    width: 108px;
    font-weight: 800;
    color: #355578;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    white-space: nowrap;
}

.parent-schedule-pill,
.exam-card-badges span,
.rate,
.dyb-line span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.parent-schedule-pill {
    border: 1px solid #d4e1f0;
    padding: 5px 10px;
    background: #f9fbff;
    color: #28496d;
}

.good { color: #21744d; font-weight: 800; }
.bad { color: #b04c4c; font-weight: 800; }
.muted { color: #6d7f92; font-weight: 800; }

.rate {
    min-width: 58px;
    padding: 4px 9px;
    background: #eef5ff;
    border: 1px solid #cadcf3;
    color: #285483;
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .92rem;
}

.mini-stats strong { color: #173253; }

.exam-card {
    width: 100%;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 14px 28px rgba(20, 50, 86, .08);
    overflow: hidden;
}

.exam-card > summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ebf4ff 0%, #dfeeff 100%);
    transition: background .2s ease;
}

.exam-card > summary::-webkit-details-marker {
    display: none;
}

.exam-card > summary:hover {
    background: linear-gradient(180deg, #e2efff 0%, #d4e7ff 100%);
}

.exam-card-summary {
    display: grid;
    gap: 3px;
}

.exam-card-summary strong {
    color: #173253;
    font-size: 1.08rem;
}

.exam-card-summary span {
    color: #55708f;
    font-size: .86rem;
    font-weight: 700;
}

.exam-card-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.exam-card-badges span {
    border: 1px solid #cfe1d6;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .8rem;
    font-weight: 700;
    color: #24543f;
    background: #f1f9f4;
}

.exam-card-toggle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #c9d8ea;
    background: linear-gradient(180deg, #ffffff 0%, #e6f1ff 100%);
}

.exam-card-toggle::before {
    content: "+";
    color: #2f557f;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.exam-card[open] .exam-card-toggle::before {
    content: "-";
}

.exam-card-content {
    border-top: 1px solid #e5efe9;
    padding: 14px;
    display: grid;
    gap: 12px;
    background:
        radial-gradient(circle at top right, rgba(242, 176, 78, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(251, 254, 252, 0.98), rgba(244, 250, 246, 0.98));
}

.exam-card-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.exam-card-kpi {
    border: 1px solid #dce9e1;
    border-radius: 14px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.88);
    display: block;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.exam-card-kpi:first-child {
    background:
        radial-gradient(circle at top right, rgba(84, 137, 220, 0.10), transparent 38%),
        rgba(255, 255, 255, 0.92);
}

.exam-card-kpi span {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6a8176;
}

.exam-card-kpi strong {
    display: block;
    margin-top: 7px;
    color: #173b2d;
    font-size: 1.2rem;
    line-height: 1.05;
}

.exam-lesson-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.exam-lesson-item {
    --lesson-accent: #e28f2f;
    --lesson-surface: #fff5ea;
    --lesson-tint: #ffeed6;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    box-shadow: 0 12px 24px rgba(21, 53, 91, 0.08);
    display: grid;
    gap: 8px;
}

.exam-lesson-item:nth-child(6n+1) {
    --lesson-accent: #df9840;
    --lesson-surface: #fff4e8;
    --lesson-tint: #fff0df;
}

.exam-lesson-item:nth-child(6n+2) {
    --lesson-accent: #3eaf72;
    --lesson-surface: #ecfbf1;
    --lesson-tint: #dcf5e5;
}

.exam-lesson-item:nth-child(6n+3) {
    --lesson-accent: #4f8fe5;
    --lesson-surface: #eef5ff;
    --lesson-tint: #ddeafd;
}

.exam-lesson-item:nth-child(6n+4) {
    --lesson-accent: #d25d88;
    --lesson-surface: #fff0f5;
    --lesson-tint: #ffe0ea;
}

.exam-lesson-item:nth-child(6n+5) {
    --lesson-accent: #8d66d6;
    --lesson-surface: #f5f0ff;
    --lesson-tint: #e8deff;
}

.exam-lesson-item:nth-child(6n+6) {
    --lesson-accent: #33a6b4;
    --lesson-surface: #ebfbfc;
    --lesson-tint: #d8f3f6;
}

.exam-lesson-title,
.exam-lesson-item > strong {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--lesson-accent) 42%, #ffffff 58%);
    background: linear-gradient(180deg, var(--lesson-surface) 0%, var(--lesson-tint) 100%);
    width: fit-content;
    max-width: 100%;
}

.exam-lesson-title strong,
.exam-lesson-item > strong {
    color: #1e3553;
    font-size: .84rem;
    line-height: 1.25;
}

.exam-lesson-net-panel,
.exam-lesson-item > span:last-child {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px 0;
    border-top: 1px solid color-mix(in srgb, var(--lesson-accent) 24%, #dbe5f1 76%);
}

.exam-lesson-net-label {
    color: #6f88a4;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.exam-lesson-net-value,
.exam-lesson-item > span:last-child {
    color: var(--lesson-accent);
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.dyb-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.dyb-line span {
    border-radius: 9px;
    padding: 4px 4px;
    font-size: .76rem;
    font-weight: 700;
    border: 1px solid transparent;
    text-align: center;
    min-height: 44px;
    display: grid;
    justify-items: center;
    align-content: center;
    border-radius: 9px;
    line-height: 1.1;
}

.dyb-line span small {
    font-size: .62rem;
    letter-spacing: .1em;
    opacity: .82;
}

.dyb-line span b {
    font-size: .98rem;
    line-height: 1;
}

.dyb-good {
    color: #1f7a4f;
    background: #e9f7ef;
    border-color: #bfe2cd;
}

.dyb-bad {
    color: #a73e3e;
    background: #ffefef;
    border-color: #efc2c2;
}

.dyb-blank {
    color: #5e6f67;
    background: #f1f4f2;
    border-color: #d3ddd7;
}

.perfect-star {
    color: #e59a1b;
    font-size: .86rem;
}

.exam-note {
    margin-top: 10px;
    color: #4d6885;
    font-size: .9rem;
    border: 1px dashed #d7e3ef;
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

@media (min-width: 821px) {
    .exam-card {
        border-radius: 18px;
        box-shadow: 0 18px 34px rgba(20, 50, 86, .1);
    }

    .exam-card > summary {
        padding: 16px 18px;
    }

    .exam-card-summary strong {
        font-size: 1.16rem;
    }

    .exam-card-summary span {
        font-size: .9rem;
    }

    .exam-card-badges span {
        min-height: 38px;
        padding: 0 14px;
        font-size: .9rem;
        border-width: 2px;
    }

    .exam-card-content {
        padding: 16px 18px 18px;
    }

    .exam-card-kpi {
        padding: 14px 16px;
        border-width: 2px;
    }

    .exam-card-kpi span {
        font-size: .76rem;
    }

    .exam-card-kpi strong {
        font-size: 1.28rem;
    }

    .exam-lesson-list {
        gap: 10px;
    }

    .exam-lesson-item {
        border-width: 2px;
        padding: 12px 13px;
        box-shadow: 0 10px 18px rgba(26, 56, 97, .08), inset 0 1px 0 rgba(255,255,255,.9);
    }

    .exam-lesson-title strong,
    .exam-lesson-item > strong {
        font-size: .94rem;
    }

    .dyb-line span {
        min-height: 30px;
        padding: 0 10px;
        font-size: .84rem;
        border-radius: 999px;
    }

    .exam-lesson-net-value,
    .exam-lesson-item > span:last-child {
        font-size: 1.08rem;
    }

    .exam-note {
        margin-top: 12px;
        padding: 12px 14px;
        font-size: .94rem;
    }
}

:root[data-theme="dark"] .parent-top {
    border-color: #355680;
    background:
        radial-gradient(110% 120% at 100% 0%, rgba(255, 171, 74, .12) 0%, rgba(255,171,74,0) 42%),
        linear-gradient(135deg, #101d35 0%, #162944 52%, #1d3558 100%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .35);
}

:root[data-theme="dark"] .parent-top p,
:root[data-theme="dark"] .week-nav span,
:root[data-theme="dark"] .parent-filter-form label {
    color: #d6e4fa;
}

:root[data-theme="dark"] .week-nav a {
    color: #eef5ff;
    border-color: #3a5f91;
    background: rgba(33, 58, 95, .5);
}

:root[data-theme="dark"] .parent-filter-form select,
:root[data-theme="dark"] .parent-filter-form input {
    background: #0f1d33;
    border-color: #355780;
    color: #eef5ff;
}

:root[data-theme="dark"] .parent-filter-form button {
    background: linear-gradient(135deg, #f4bd73 0%, #d58f3a 100%);
    color: #33200a;
}

:root[data-theme="dark"] .parent-focus-main,
:root[data-theme="dark"] .parent-alerts,
:root[data-theme="dark"] .summary-chart,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .parent-schedule-day,
:root[data-theme="dark"] .exam-month-group,
:root[data-theme="dark"] .exam-card,
:root[data-theme="dark"] .parent-meta-card,
:root[data-theme="dark"] .parent-insight-card,
:root[data-theme="dark"] .parent-alert-card,
:root[data-theme="dark"] .parent-week-day,
:root[data-theme="dark"] .parent-report-card,
:root[data-theme="dark"] .parent-report-block,
:root[data-theme="dark"] .parent-topic-card {
    background: linear-gradient(180deg, #112039 0%, #0d1a30 100%);
    border-color: #29466b;
    color: #eef4ff;
}

:root[data-theme="dark"] .section-head h3,
:root[data-theme="dark"] .parent-alerts h4,
:root[data-theme="dark"] .parent-meta-card strong,
:root[data-theme="dark"] .parent-insight-card strong,
:root[data-theme="dark"] .parent-week-day strong,
:root[data-theme="dark"] .parent-report-head strong,
:root[data-theme="dark"] .parent-topic-head strong,
:root[data-theme="dark"] .exam-card-summary strong,
:root[data-theme="dark"] .parent-schedule-day-head,
:root[data-theme="dark"] .exam-month-head strong,
:root[data-theme="dark"] .mini-stats strong {
    color: #eef5ff;
}

:root[data-theme="dark"] .parent-section-note,
:root[data-theme="dark"] .parent-meta-label,
:root[data-theme="dark"] .parent-insight-label,
:root[data-theme="dark"] .parent-insight-card small,
:root[data-theme="dark"] .parent-alert-card p,
:root[data-theme="dark"] .parent-schedule-note,
:root[data-theme="dark"] .parent-schedule-empty,
:root[data-theme="dark"] .mini-stats,
:root[data-theme="dark"] .parent-report-head span,
:root[data-theme="dark"] .parent-report-meta span,
:root[data-theme="dark"] .parent-report-block p,
:root[data-theme="dark"] .parent-report-note,
:root[data-theme="dark"] .parent-topic-head span,
:root[data-theme="dark"] .parent-topic-copy small,
:root[data-theme="dark"] .exam-card-summary span,
:root[data-theme="dark"] .exam-note,
:root[data-theme="dark"] .parent-week-day small {
    color: #a9bbd4;
}

:root[data-theme="dark"] .parent-chip,
:root[data-theme="dark"] .parent-student-pill-card,
:root[data-theme="dark"] .parent-schedule-pill,
:root[data-theme="dark"] .exam-card-badges span,
:root[data-theme="dark"] .rate,
:root[data-theme="dark"] .parent-report-label,
:root[data-theme="dark"] .parent-topic-stats span {
    background: #13233b;
    border-color: #345476;
    color: #dce9ff;
}

:root[data-theme="dark"] .parent-report-action {
    background: #17365a;
    border-color: #345476;
    color: #eef6ff;
}

:root[data-theme="dark"] .parent-report-action--secondary {
    background: #4f3818;
    border-color: #7b5b2e;
    color: #ffe6bf;
}

:root[data-theme="dark"] .parent-schedule-day-head,
:root[data-theme="dark"] .parent-schedule-table thead th,
:root[data-theme="dark"] .exam-month-head,
:root[data-theme="dark"] .table-wrap thead th {
    background: #13233b;
    border-bottom-color: #274467;
    color: #dce9ff;
}

:root[data-theme="dark"] .parent-topic-row,
:root[data-theme="dark"] .parent-schedule-table-wrap,
:root[data-theme="dark"] .parent-schedule-table td {
    background: #12223a;
    border-color: #29466b;
}

:root[data-theme="dark"] .parent-week-day:nth-child(1) {
    background: linear-gradient(180deg, #17304f 0%, #142845 100%);
    border-color: #4a78ad;
}

:root[data-theme="dark"] .parent-week-day:nth-child(2) {
    background: linear-gradient(180deg, #17372d 0%, #143025 100%);
    border-color: #3d8a67;
}

:root[data-theme="dark"] .parent-week-day:nth-child(3) {
    background: linear-gradient(180deg, #47311c 0%, #3a2817 100%);
    border-color: #a36e2d;
}

:root[data-theme="dark"] .parent-week-day:nth-child(4) {
    background: linear-gradient(180deg, #352552 0%, #2c1f45 100%);
    border-color: #7d5ab8;
}

:root[data-theme="dark"] .parent-week-day:nth-child(5) {
    background: linear-gradient(180deg, #4a212b 0%, #3c1b22 100%);
    border-color: #b95f78;
}

:root[data-theme="dark"] .parent-week-day:nth-child(6) {
    background: linear-gradient(180deg, #17373c 0%, #143035 100%);
    border-color: #42949a;
}

:root[data-theme="dark"] .parent-week-day:nth-child(7) {
    background: linear-gradient(180deg, #4b361d 0%, #3f2c18 100%);
    border-color: #b9853d;
}

:root[data-theme="dark"] .parent-week-day.has-exam {
    box-shadow: 0 12px 24px rgba(48, 112, 191, .2);
}

:root[data-theme="dark"] .parent-week-day-badge,
:root[data-theme="dark"] .parent-disclosure-toggle,
:root[data-theme="dark"] .parent-topic-toggle {
    background: #13233b;
    border-color: #345476;
    color: #dce9ff;
}

:root[data-theme="dark"] .parent-disclosure-toggle::before,
:root[data-theme="dark"] .exam-card-toggle::before,
:root[data-theme="dark"] .parent-topic-toggle::before {
    color: #dce9ff;
}

:root[data-theme="dark"] .parent-topic-copy strong,
:root[data-theme="dark"] .schedule-summary-cell strong,
:root[data-theme="dark"] .parent-student-pill-card strong {
    color: #ecf3ff;
}

:root[data-theme="dark"] .table-wrap tbody td {
    background: #12223a;
    color: #e7f0ff;
}

:root[data-theme="dark"] .table-wrap tbody tr:nth-child(even) td {
    background: #14263f;
}

:root[data-theme="dark"] .table-wrap tbody tr:hover td {
    background: #1a2d49;
}

:root[data-theme="dark"] .table-wrap td.good {
    background: linear-gradient(180deg, #153d34 0%, #12342d);
    color: #d7fff0;
}

:root[data-theme="dark"] .table-wrap td.bad {
    background: linear-gradient(180deg, #4a1e27 0%, #3a1820);
    color: #ffe1e6;
}

:root[data-theme="dark"] .table-wrap td.muted {
    background: linear-gradient(180deg, #243244 0%, #1d2a3a);
    color: #d8e6f7;
}

:root[data-theme="dark"] .schedule-summary-cell span,
:root[data-theme="dark"] .schedule-empty,
:root[data-theme="dark"] .parent-student-pill-label {
    color: #a9bbd4;
}

:root[data-theme="dark"] .chart-row span {
    color: #bfd0ea;
}

:root[data-theme="dark"] .chart-row i {
    background: #21324a;
}

:root[data-theme="dark"] .exam-card {
    background: linear-gradient(180deg, #12223a 0%, #0f1d33 100%);
    border-color: #2f4f75;
}

:root[data-theme="dark"] .exam-card-content {
    border-top-color: #29466b;
    background:
        radial-gradient(circle at top right, rgba(244, 171, 72, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(17, 29, 48, 0.98), rgba(15, 25, 42, 0.98));
}

:root[data-theme="dark"] .exam-card > summary {
    background: linear-gradient(180deg, #14243d 0%, #122038 100%);
}

:root[data-theme="dark"] .exam-card > summary:hover {
    background: linear-gradient(180deg, #182944 0%, #14253d 100%);
}

:root[data-theme="dark"] .exam-card-badges span {
    background: var(--tone-neutral-bg);
    border-color: var(--tone-neutral-bd);
    color: var(--tone-neutral-tx);
}

:root[data-theme="dark"] .exam-card-kpi,
:root[data-theme="dark"] .exam-note,
:root[data-theme="dark"] .exam-lesson-item {
    border-color: #315074;
}

:root[data-theme="dark"] .exam-card-kpi {
    background: rgba(14, 24, 41, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .exam-card-kpi:first-child {
    background:
        radial-gradient(circle at top right, rgba(72, 118, 218, 0.22), transparent 40%),
        rgba(14, 24, 41, 0.88);
}

:root[data-theme="dark"] .exam-card-kpi span,
:root[data-theme="dark"] .exam-note strong,
:root[data-theme="dark"] .exam-note span,
:root[data-theme="dark"] .exam-lesson-net-label {
    color: #9eb6da;
}

:root[data-theme="dark"] .exam-card-kpi strong,
:root[data-theme="dark"] .exam-lesson-title strong,
:root[data-theme="dark"] .exam-lesson-item > strong {
    color: #eef4ff;
}

:root[data-theme="dark"] .exam-lesson-item {
    background: linear-gradient(180deg, rgba(17, 29, 48, 0.98), rgba(14, 24, 41, 0.98));
    box-shadow: 0 12px 24px rgba(3, 8, 18, 0.24);
}

:root[data-theme="dark"] .exam-note {
    background: rgba(14, 24, 41, 0.74);
}

:root[data-theme="dark"] .exam-lesson-item:nth-child(6n+1) {
    --lesson-accent: #f0ad56;
    --lesson-surface: rgba(103, 67, 21, 0.92);
    --lesson-tint: rgba(80, 50, 15, 0.96);
}

:root[data-theme="dark"] .exam-lesson-item:nth-child(6n+2) {
    --lesson-accent: #56c788;
    --lesson-surface: rgba(19, 70, 42, 0.92);
    --lesson-tint: rgba(14, 54, 33, 0.96);
}

:root[data-theme="dark"] .exam-lesson-item:nth-child(6n+3) {
    --lesson-accent: #73aef4;
    --lesson-surface: rgba(24, 58, 96, 0.92);
    --lesson-tint: rgba(18, 45, 74, 0.96);
}

:root[data-theme="dark"] .exam-lesson-item:nth-child(6n+4) {
    --lesson-accent: #ef7fa4;
    --lesson-surface: rgba(92, 29, 53, 0.92);
    --lesson-tint: rgba(70, 22, 40, 0.96);
}

:root[data-theme="dark"] .exam-lesson-item:nth-child(6n+5) {
    --lesson-accent: #b894ff;
    --lesson-surface: rgba(66, 38, 110, 0.92);
    --lesson-tint: rgba(52, 30, 87, 0.96);
}

:root[data-theme="dark"] .exam-lesson-item:nth-child(6n+6) {
    --lesson-accent: #67d4dc;
    --lesson-surface: rgba(14, 74, 83, 0.92);
    --lesson-tint: rgba(11, 57, 64, 0.96);
}

:root[data-theme="dark"] .exam-lesson-title,
:root[data-theme="dark"] .exam-lesson-item > strong {
    background: linear-gradient(180deg, var(--lesson-surface) 0%, var(--lesson-tint) 100%);
    border-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .exam-lesson-title strong,
:root[data-theme="dark"] .exam-lesson-item > strong {
    color: #eef5ff;
}

:root[data-theme="dark"] .exam-lesson-net-panel,
:root[data-theme="dark"] .exam-lesson-item > span:last-child {
    border-top-color: color-mix(in srgb, var(--lesson-accent) 28%, #29466b 72%);
}

:root[data-theme="dark"] .exam-lesson-net-value {
    color: var(--lesson-accent);
}

@media (max-width: 1120px) {
    .parent-focus-grid,
    .summary-layout {
        grid-template-columns: 1fr;
    }

    .parent-meta-grid,
    .parent-insight-grid,
    .parent-chart-grid,
    .parent-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .parent-filter-form {
        grid-template-columns: 1fr;
    }

    .parent-week-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .parent-topic-grid {
        grid-template-columns: 1fr;
    }

    .parent-topic-row {
        flex-direction: column;
        align-items: stretch;
    }

    .parent-schedule-card {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .parent-shell {
        gap: 10px;
        margin-top: 10px;
    }

    .parent-top {
        padding: 10px 12px;
        border-radius: 16px;
    }

    .section-head {
        margin-bottom: 10px;
        gap: 8px;
    }

    .section-head h3 {
        font-size: 1.08rem;
    }

    .parent-section-note {
        font-size: .84rem;
        line-height: 1.45;
    }

    .parent-meta-grid,
    .parent-insight-grid,
    .parent-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .parent-focus-main,
    .parent-alerts {
        padding: 12px;
        border-radius: 14px;
    }

    .parent-meta-card,
    .parent-insight-card {
        padding: 10px 11px;
        border-radius: 12px;
    }

    .parent-meta-label,
    .parent-insight-label {
        font-size: .72rem;
    }

    .parent-meta-card strong,
    .parent-insight-card strong {
        font-size: 1rem;
    }

    .parent-insight-card small {
        font-size: .76rem;
    }

    .parent-alert-card {
        padding: 10px 11px;
        border-radius: 12px;
    }

    .parent-alert-card p {
        font-size: .86rem;
        line-height: 1.45;
    }

    .parent-week-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .parent-week-day {
        min-height: 82px;
        padding: 9px;
        align-content: start;
        gap: 4px;
        border-radius: 12px;
    }

    .parent-week-day-label {
        font-size: .68rem;
    }

    .parent-week-day strong {
        font-size: 1rem;
    }

    .parent-week-day small {
        font-size: .72rem;
    }

    .week-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }

    .week-nav span {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 2px;
    }

    .week-nav a {
        min-width: 0;
        padding: 9px 8px;
        font-size: .86rem;
    }

    .parent-report-card {
        padding: 12px;
        gap: 8px;
        border-radius: 14px;
    }

    .parent-report-head {
        gap: 6px;
    }

    .parent-report-head strong {
        font-size: 1rem;
    }

    .parent-report-head span,
    .parent-report-meta span {
        font-size: .78rem;
    }

    .parent-report-block {
        padding: 10px 11px;
        border-radius: 12px;
    }

    .parent-report-block p {
        margin-top: 7px;
        font-size: .88rem;
        line-height: 1.62;
    }

    .parent-report-label {
        font-size: .72rem;
        letter-spacing: .04em;
    }

    .mini-stats {
        gap: 8px;
        font-size: .84rem;
        margin-bottom: 8px;
    }

    .parent-topic-card {
        padding: 11px;
        border-radius: 14px;
    }

    .parent-topic-summary {
        align-items: flex-start;
    }

    .parent-topic-row {
        padding: 10px 11px;
        border-radius: 12px;
        gap: 8px;
    }

    .parent-topic-copy small {
        font-size: .78rem;
    }

    .parent-topic-stats span {
        min-height: 28px;
        padding: 0 8px;
        font-size: .76rem;
    }

    .parent-disclosure-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .parent-disclosure-toggle {
        width: 34px;
        height: 34px;
    }

    .table-wrap {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
    }

    .table-wrap table {
        min-width: 760px;
        width: max-content;
        table-layout: auto;
    }

    .parent-schedule-table-wrap {
        overflow-x: scroll;
        width: 100%;
        padding-bottom: 10px;
        scrollbar-width: auto;
    }

    .parent-schedule-table {
        min-width: 1040px;
        width: max-content;
        table-layout: auto;
    }

    .parent-schedule-card,
    .parent-schedule-table-shell,
    .parent-disclosure,
    .parent-disclosure-summary {
        width: 100%;
    }

    .exam-card > summary {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .exam-card-toggle {
        display: none;
    }

    .exam-card-kpi-grid {
        grid-template-columns: 1fr;
    }

    .exam-lesson-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .exam-lesson-item {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .parent-meta-grid,
    .parent-insight-grid,
    .parent-chart-grid,
    .parent-week-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.parent-shell .parent-meta-card strong,
.parent-shell .parent-insight-card strong,
.parent-shell .parent-week-day strong,
.parent-shell .parent-topic-stats span,
.parent-shell .parent-report-head strong,
.parent-shell .exam-card-kpi strong,
.parent-shell .dyb-line span b {
    font-family: var(--portal-number-font) !important;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1, "zero" 0;
    font-style: normal !important;
    letter-spacing: -0.02em;
}

.parent-demo-tour-launch {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 160;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px 0 12px;
    border: 1px solid rgba(31, 109, 77, .22);
    border-radius: 999px;
    background: linear-gradient(135deg, #163b73, #1f6d4d);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(15, 42, 74, .24);
    cursor: pointer;
}

.parent-demo-tour-launch span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
}

.parent-demo-tour-layer {
    position: fixed;
    inset: 0;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.parent-demo-tour-layer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.parent-demo-tour-open {
    overflow: hidden;
}

body.parent-demo-tour-open .parent-demo-tour-launch {
    display: none;
}

.parent-demo-tour-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 17, 33, .58);
}

.parent-demo-tour-spotlight {
    position: fixed;
    z-index: 11002;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, .92);
    box-shadow:
        0 0 0 9999px rgba(6, 17, 33, .58),
        0 20px 50px rgba(7, 18, 36, .34),
        inset 0 0 0 1px rgba(31, 109, 77, .18);
    pointer-events: none;
    transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease;
    opacity: 0;
}

.parent-demo-tour-card {
    position: fixed;
    z-index: 11003;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98));
    color: #12345f;
    padding: 18px;
    box-shadow: 0 28px 70px rgba(6, 17, 33, .36);
    transition: top .28s ease, left .28s ease, opacity .12s ease;
    opacity: 0;
    pointer-events: none;
}

.parent-demo-tour-layer.is-ready .parent-demo-tour-spotlight,
.parent-demo-tour-layer.is-ready .parent-demo-tour-card {
    opacity: 1;
}

.parent-demo-tour-layer.is-ready .parent-demo-tour-card {
    pointer-events: auto;
}

.parent-demo-tour-top,
.parent-demo-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.parent-demo-tour-top span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e9f3ff;
    color: #28518e;
    font-size: .78rem;
    font-weight: 900;
}

.parent-demo-tour-top button {
    width: 34px;
    height: 34px;
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    background: #fff;
    color: #173a2c;
    font-size: 1.2rem;
    cursor: pointer;
}

.parent-demo-tour-card h3 {
    margin: 16px 0 8px;
    color: #12345f;
    font-size: 1.32rem;
    line-height: 1.15;
}

.parent-demo-tour-card p {
    margin: 0;
    color: #557092;
    line-height: 1.6;
}

.parent-demo-tour-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0;
}

.parent-demo-tour-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c9d8e8;
    transition: width .18s ease, background .18s ease;
}

.parent-demo-tour-dots span.active {
    width: 26px;
    background: linear-gradient(135deg, #163b73, #f18b2b);
}

.parent-demo-tour-actions {
    justify-content: flex-end;
    position: sticky;
    bottom: -18px;
    margin: 16px -18px -18px;
    padding: 12px 18px 18px;
    background: linear-gradient(180deg, rgba(246,250,255,.72), rgba(246,250,255,.98) 45%);
    border-radius: 0 0 18px 18px;
}

.parent-demo-tour-primary,
.parent-demo-tour-secondary {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.parent-demo-tour-primary {
    border: 0;
    background: #1f7a55;
    color: #fff;
}

.parent-demo-tour-secondary {
    border: 1px solid #d7e3ef;
    background: #fff;
    color: #28518e;
}

.parent-demo-tour-secondary:disabled {
    opacity: .48;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .parent-demo-tour-launch {
        right: 14px;
        bottom: 14px;
        min-height: 44px;
        padding-right: 14px;
    }

    .parent-demo-tour-card {
        padding: 16px;
    }

    .parent-demo-tour-actions {
        margin: 14px -16px -16px;
        padding: 12px 16px 16px;
    }
}
