/* Olympiad prep assignment dashboard — visual refresh (2026-08). */

.demo-shell.container {
    width: min(100% - 32px, 1280px);
    max-width: 1280px;
    padding-right: 0;
    padding-left: 0;
    font-family: "Nunito", sans-serif;
}

.demo-head {
    position: relative;
    min-height: 116px;
    margin: 0;
    padding: 20px 34% 10px 0;
    overflow: hidden;
}

.demo-head-title {
    color: #112d51;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.demo-head-title-accent {
    color: #8b2bff;
}

.demo-intro-student-welcome > p {
    color: #18345b !important;
    font-size: .92rem;
}

.demo-head-batch {
    margin: .35rem 0 0;
    color: #475569;
    font-weight: 500;
}

.olymp-head-trophy {
    position: absolute;
    z-index: 0;
    top: -42px;
    right: 20px;
    width: min(37%, 390px);
    height: 190px;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.olymp-head-trophy[hidden] { display: none; }

.demo-head-intro {
    position: relative;
    z-index: 1;
}

.demo-head-intro-actions {
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 24px;
}

.demo-tabs {
    min-height: 68px;
    margin-top: 0;
    gap: 0;
    border-bottom: 1px solid #dce5ef;
}

.demo-tab-btn {
    /* min-width: 230px;
    min-height: 68px; */
    padding: 8px 18px 13px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border-radius: 14px 14px 0 0;
    color: #6c809d;
}

.demo-tab-btn::after {
    bottom: -1px;
    height: 4px;
    border-radius: 4px 4px 0 0;
}

.demo-tab-btn.active {
    background: linear-gradient(180deg, #fff 0%, #f8fffc 100%);
}

.olymp-tab-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2f7;
    color: #7084a1;
    font-size: 1.15rem;
}

.demo-tab-btn.active .olymp-tab-icon--assignment {
    background: #e6fbf1;
    color: #0fb77b;
}

.demo-tab-btn.active .olymp-tab-icon--performance {
    background: #eef1ff;
    color: #6555ed;
}

.olymp-tab-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.demo-tab-btn .tab-main {
    font-size: 1.06rem;
}

.demo-tab-btn .tab-sub {
    margin-top: 4px;
    font-size: .69rem;
    font-weight: 500;
}

#assignment-panel > .dashboard-container {
    display: none !important;
}

.olymp-v2-dashboard {
    --navy: #102d53;
    --muted: #6d819d;
    --line: #dee8f2;
    --violet: #5b34f4;
    --green: #08a878;
    color: var(--navy);
    padding: 14px 0 30px;
}

.olymp-v2-dashboard button,
.olymp-v2-dashboard a {
    font-family: inherit;
}

.olymp-dashboard-screen[hidden] {
    display: none !important;
}

.olymp-dashboard-screen.is-active {
    display: block;
    animation: olympScreenIn .22s ease both;
}

@keyframes olympScreenIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.olymp-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 14px;
}

.olymp-summary-card {
    position: relative;
    min-height: 152px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(30, 55, 86, .045);
    isolation: isolate;
}

.olymp-summary-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
}

.olymp-summary-card--pending {
    border-color: #ffd8dc;
}

.olymp-summary-card--pending::before {
    background: linear-gradient(110deg, #fff 0%, #fff9fa 58%, #fff3f5 100%);
}

.olymp-summary-card--active {
    border-color: #ddd9ff;
}

.olymp-summary-card--active::before {
    background: linear-gradient(110deg, #fff 0%, #faf9ff 60%, #f2efff 100%);
}

.olymp-summary-card--curriculum {
    border-color: #cfeee7;
}

.olymp-summary-card--curriculum::before {
    background: linear-gradient(110deg, #fff 0%, #f8fffd 58%, #edfbf8 100%);
}

.olymp-summary-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 16px;
    padding: 19px 17px;
}

.olymp-summary-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 15px rgba(29, 48, 77, .16);
}

.olymp-summary-icon--pending {
    background: linear-gradient(145deg, #ff6f63, #ff143c);
    box-shadow: 0 9px 18px rgba(255, 44, 72, .27);
}

.olymp-summary-icon--active {
    background: linear-gradient(145deg, #7854ff, #4e25eb);
    box-shadow: 0 9px 18px rgba(92, 50, 244, .27);
}

.olymp-summary-icon--curriculum {
    background: linear-gradient(145deg, #27c99b, #008e68);
    box-shadow: 0 9px 18px rgba(5, 165, 120, .25);
}

.olymp-summary-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.olymp-summary-label {
    color: #17365c;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.15;
}

.olymp-summary-value {
    margin-top: 1px;
    color: #ff183b;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
}

.olymp-summary-card--active .olymp-summary-value { color: #5f34f4; }
.olymp-summary-card--curriculum .olymp-summary-value { color: #00a271; }

.olymp-summary-value--task {
    max-width: 280px;
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.olymp-summary-note {
    margin-top: 5px;
    color: #60748f;
    font-size: .72rem;
    font-weight: 500;
}

.olymp-pill-button {
    display: inline-flex;
    min-height: 30px;
    margin-top: 10px;
    padding: 5px 15px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: #fff;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.olymp-pill-button:hover {
    transform: translateY(-1px);
}

.olymp-pill-button--pending { color: #ff2445; }
.olymp-pill-button--active { border-color: #5e34f4; background: linear-gradient(135deg, #6e45fa, #4d25ed); color: #fff; box-shadow: 0 5px 10px rgba(86, 48, 236, .2); }
.olymp-pill-button--curriculum { border-color: #009d72; background: linear-gradient(135deg, #13b98a, #00926a); color: #fff; box-shadow: 0 5px 10px rgba(5, 156, 113, .18); }

.olymp-summary-art {
    position: absolute;
    z-index: 0;
    right: -5px;
    bottom: -14px;
    width: 42%;
    height: 126px;
    object-fit: contain;
    pointer-events: none;
    opacity: .82;
}

.olymp-summary-art--clipboard { opacity: .64; }
.olymp-summary-art--target { right: 1px; opacity: .76; }
.olymp-summary-art--books { right: -5px; opacity: .75; }

.olymp-card-arrow {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 14px;
    display: inline-flex;
    width: 25px;
    height: 25px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #5e7797;
    font-size: .72rem;
    cursor: pointer;
}

.olymp-summary-card--curriculum .olymp-card-arrow { color: #009d72; }

.olymp-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 18px;
}

.olymp-active-panel,
.olymp-battle-panel,
.olymp-curriculum-preview,
.olymp-detail-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(25, 51, 83, .045);
}

.olymp-active-panel {
    min-height: 240px;
    border-color: #d7dcff;
}

.olymp-panel-ribbon {
    display: flex;
    min-height: 36px;
    padding: 7px 14px;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: .91rem;
    font-weight: 600;
}

.olymp-panel-ribbon--violet { background: linear-gradient(100deg, #5533f0, #7863ff); }
.olymp-panel-ribbon--aqua { background: linear-gradient(100deg, #00a98a, #46ccb7); }

.olymp-panel-ribbon small {
    padding: 4px 10px;
    border-radius: 999px;
    background: #1aaa67;
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
}

.olymp-active-inner { padding: 10px 15px 8px; }

.olymp-active-task-grid {
    display: grid;
    min-width: 0;
}

.olymp-active-task-grid--multiple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.olymp-active-task-grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.olymp-active-task-grid--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.olymp-active-task-grid--multiple .olymp-active-task-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0e3ff;
    border-radius: 11px;
    background: linear-gradient(145deg, #fff 0%, #fbfaff 100%);
}

.olymp-active-task-grid--multiple .olymp-active-title-row {
    gap: 10px;
}

.olymp-active-task-grid--multiple .olymp-target-box {
    min-width: 112px;
    padding-inline: 9px;
}

.olymp-active-task-grid--multiple .olymp-active-actions {
    margin-top: 10px;
}

.olymp-active-task-grid--multiple .olymp-active-metrics {
    gap: 6px;
}

.olymp-active-task-grid--multiple .olymp-metric {
    min-width: 0;
    padding-inline: 7px;
}

.olymp-active-task-grid--multiple .olymp-metric strong {
    overflow-wrap: anywhere;
}

.olymp-active-empty {
    display: flex;
    min-height: 150px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #687d99;
    text-align: center;
}

.olymp-active-empty strong {
    color: #17365c;
    font-size: 1.05rem;
    font-weight: 600;
}

.olymp-active-empty span {
    font-size: .76rem;
    font-weight: 500;
}

.olymp-active-title-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.olymp-active-title-row h2 {
    margin: 4px 0 2px;
    color: #17365c;
    font-size: 1.05rem;
    font-weight: 600;
}

.olymp-active-topic {
    color: #667b97;
    font-size: .68rem;
    font-weight: 500;
}

.olymp-target-box {
    min-width: 142px;
    padding: 7px 14px;
    border: 1px solid #b9e9df;
    border-radius: 9px;
    background: linear-gradient(135deg, #f3fffc, #eaf9f7);
    text-align: center;
}

.olymp-target-box span,
.olymp-target-box small {
    display: block;
    color: #009b79;
    font-size: .54rem;
    font-weight: 500;
}

.olymp-target-box strong {
    display: block;
    margin: 1px 0;
    color: #18345b;
    font-size: .95rem;
    font-weight: 600;
}

.olymp-active-panel--starts-soon {
    border-color: #d7dcff;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.olymp-active-inner--starts-soon {
    display: flex;
    min-height: 172px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.olymp-starts-soon-copy {
    max-width: 620px;
}

.olymp-starts-soon-copy h2 {
    margin: 0;
    color: #17365c;
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.25;
}

.olymp-starts-soon-copy p {
    margin: 8px 0 0;
    color: #667b97;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.5;
}

.olymp-target-box--starts-soon {
    min-width: 190px;
}

.prep-starts-soon-section {
    background: linear-gradient(135deg, #f4f7ff, #ffffff);
}

.prep-starts-soon-card {
    padding: 18px 20px;
    border: 1px solid #dce5ff;
    border-radius: 18px;
    background: #fff;
}

.prep-starts-soon-card h3 {
    margin: 0;
    color: #17365c;
    font-size: 1.35rem;
    font-weight: 600;
}

.prep-starts-soon-card p {
    margin: 8px 0 0;
    color: #667b97;
    font-size: .95rem;
    font-weight: 500;
}

.olymp-active-actions {
    display: flex;
    gap: 10px;
    margin-top: -22px;
    margin-bottom: 10px;
}

.olymp-action-btn {
    display: inline-flex;
    min-height: 30px;
    padding: 6px 22px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    font-size: .68rem;
    font-weight: 600;
    text-decoration: none !important;
}

.olymp-action-btn--learn { background: linear-gradient(135deg, #6044ef, #7862ff); }
.olymp-action-btn--practice { background: linear-gradient(135deg, #fa2861, #ff8017); }

.olymp-active-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.olymp-metric {
    min-height: 47px;
    padding: 7px 12px;
    border: 1px solid;
    border-radius: 8px;
}

.olymp-metric span,
.olymp-metric strong { display: block; }
.olymp-metric span { font-size: .56rem; font-weight: 500; }
.olymp-metric strong { margin-top: 2px; color: #17365c; font-size: .78rem; font-weight: 600; }
.olymp-metric--score { border-color: #ffddc3; background: #fff8f2; }
.olymp-metric--score span { color: #ee463a; }
.olymp-metric--time { border-color: #c9e6fb; background: #f3faff; }
.olymp-metric--time span { color: #287dc1; }
.olymp-metric--rank { border-color: #ded5ff; background: #f8f5ff; }
.olymp-metric--rank span { color: #6540d9; }

.olymp-active-progress { margin-top: 8px; }
.olymp-active-progress > div { display: flex; justify-content: space-between; color: #63748d; font-size: .59rem; font-weight: 500; }
.olymp-progress-track { display: block; height: 6px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: #e9eef5; }
.olymp-progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b35f3, #8a68ff); }

.olymp-leaderboard-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 7px;
}

.olymp-leaderboard-links button {
    min-height: 26px;
    border: 1px solid #e1dfff;
    border-radius: 999px;
    background: #fff;
    color: #6045dd;
    font-size: .6rem;
    font-weight: 600;
}

.olymp-battle-panel {
    min-height: 240px;
    padding: 14px 16px 11px;
    border-color: #ffe4cf;
    background: linear-gradient(145deg, #fff 0%, #fffaf5 100%);
}

.olymp-battle-panel > header h2 {
    margin: 0 0 13px;
    color: #ff3b21;
    font-size: 1rem;
    font-weight: 600;
}

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

.olymp-battle-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.olymp-battle-stat:last-child {
    min-height: 68px;
    grid-column: 1 / -1;
}

.olymp-battle-grid--compact .olymp-battle-stat:last-child {
    min-height: 88px;
    grid-column: auto;
}

.olymp-battle-grid--compact .olymp-battle-stat strong {
    overflow-wrap: anywhere;
}

.olymp-battle-stat {
    display: flex;
    min-width: 0;
    min-height: 88px;
    padding: 12px 10px;
    align-items: center;
    gap: 10px;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
}

.olymp-battle-stat > div { min-width: 0; }

.olymp-battle-stat-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.15rem;
}

.olymp-battle-stat-icon--red { background: #fff2f1; color: #d82517; }
.olymp-battle-stat-icon--orange { background: #fff5e6; color: #d97900; }
.olymp-battle-stat-icon--blue { background: #eef6ff; color: #1779d9; }

.olymp-battle-stat small,
.olymp-battle-stat strong { display: block; }
.olymp-battle-stat small { color: #74849b; font-size: .52rem; font-weight: 600; }
.olymp-battle-stat strong { margin-top: 5px; color: #17365c; font-size: .7rem; font-weight: 600; line-height: 1.38; }

.olymp-battle-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.olymp-battle-actions--details-only {
    justify-content: flex-start;
}

.olymp-battle-btn {
    display: inline-flex;
    min-height: 32px;
    padding: 6px 16px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 600;
    text-decoration: none !important;
}

.olymp-battle-btn--primary { background: linear-gradient(135deg, #ff6d29, #ff431e); color: #fff !important; }
.olymp-battle-btn--details { border: 1px solid #d9e2ef; background: #fff; color: #33567e; }
.olymp-battle-note { color: #6e8098; font-size: .59rem; font-weight: 500; }

.olymp-battle-empty {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #596f8b;
}
.olymp-battle-empty strong,
.olymp-battle-empty span { display: block; }
.olymp-battle-empty strong { color: #17365c; font-size: .9rem; }
.olymp-battle-empty span { margin-top: 4px; font-size: .72rem; }

.olymp-curriculum-preview {
    margin-top: 14px;
    border-color: #d9eee9;
    background: linear-gradient(180deg, #f6fdfa 0%, #fff 44%);
}

.olymp-curriculum-preview > header {
    display: flex;
    min-height: 42px;
    padding: 8px 16px;
    align-items: center;
    justify-content: space-between;
}

.olymp-curriculum-preview h2 {
    margin: 0;
    color: #079b75;
    font-size: 1rem;
    font-weight: 600;
}

.olymp-curriculum-preview > header button {
    border: 0;
    background: transparent;
    color: #078d6d;
    font-size: .64rem;
    font-weight: 600;
}

.olymp-preview-list { border-top: 1px solid #edf3f2; }

.olymp-preview-row {
    display: grid;
    width: 100%;
    min-height: 30px;
    grid-template-columns: 23px minmax(0, 1fr) auto 18px;
    gap: 8px;
    padding: 4px 12px 4px 16px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #e9eff2;
    background: rgba(255, 255, 255, .8);
    color: #17365c;
    text-align: left;
}

.olymp-preview-row strong { font-size: .65rem; font-weight: 600; }
.olymp-preview-row small { color: #6f8198; font-size: .57rem; font-weight: 500; }
.olymp-preview-chevron { color: #0bab82; font-size: .55rem; }

.olymp-topic-icon {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 5px 10px rgba(31, 52, 80, .11);
}

.olymp-preview-row .olymp-topic-icon { width: 22px; height: 22px; flex-basis: 22px; border-radius: 6px; font-size: .65rem; }
.olymp-topic-icon--amber { background: linear-gradient(135deg, #ffbd1c, #f39b00); }
.olymp-topic-icon--coral { background: linear-gradient(135deg, #ff646e, #ff304b); }
.olymp-topic-icon--blue { background: linear-gradient(135deg, #42a5ff, #1576e8); }
.olymp-topic-icon--violet { background: linear-gradient(135deg, #9a6aff, #6544e8); }
.olymp-topic-icon--aqua { background: linear-gradient(135deg, #30cfd0, #00aeb0); }
.olymp-topic-icon--orange { background: linear-gradient(135deg, #ff9855, #fa6a22); }
.olymp-topic-icon--green { background: linear-gradient(135deg, #4bd29d, #0aaa73); }
.olymp-topic-icon--pink { background: linear-gradient(135deg, #f77fc4, #dc489c); }

.olymp-more-topics {
    display: flex;
    width: 100%;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: #f3fcf9;
    color: #0aa77f;
    font-size: .6rem;
    font-weight: 600;
}

.olymp-overview-curriculum-table {
    border-top: 1px solid #dbe9e6;
    overflow: hidden;
}

.olymp-overview-table-head,
.olymp-overview-topic-head {
    display: grid;
    align-items: center;
}

.olymp-overview-table-head {
    min-height: 44px;
    grid-template-columns: 64px minmax(0, 1fr) 170px 52px;
    padding: 0 14px;
    background: #16467c;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.olymp-overview-table-head span:first-child { text-align: center; }

.olymp-overview-topic {
    color: #102e52;
    border-bottom: 1px solid rgba(255, 255, 255, .92);
    background: var(--olymp-overview-topic-bg, #ffe7a7);
}

.olymp-overview-topic--amber { --olymp-overview-topic-bg: #ffe7a7; }
.olymp-overview-topic--coral { --olymp-overview-topic-bg: #ffd1d6; }
.olymp-overview-topic--blue { --olymp-overview-topic-bg: #d7eafa; }
.olymp-overview-topic--violet { --olymp-overview-topic-bg: #e6d8f1; }
.olymp-overview-topic--aqua { --olymp-overview-topic-bg: #ccefee; }
.olymp-overview-topic--orange { --olymp-overview-topic-bg: #ffe0ba; }
.olymp-overview-topic--green { --olymp-overview-topic-bg: #dcefc0; }
.olymp-overview-topic--pink { --olymp-overview-topic-bg: #f1cce3; }

.olymp-overview-topic-head {
    min-height: 64px;
    grid-template-columns: 64px minmax(0, 1fr) 170px 52px;
    padding: 7px 14px;
}

.olymp-overview-topic-number {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.olymp-overview-topic-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.olymp-overview-topic-name .olymp-topic-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 8px;
    font-size: .78rem;
}

.olymp-overview-topic-name strong {
    min-width: 0;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.olymp-overview-topic-date {
    color: #17365c;
    font-size: .88rem;
    font-weight: 600;
}

.olymp-overview-topic-toggle {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid rgba(19, 57, 94, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    color: #153b67;
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.olymp-overview-topic-toggle:hover,
.olymp-overview-topic-toggle:focus-visible,
.olymp-overview-topic.is-open .olymp-overview-topic-toggle {
    background: #fff;
    box-shadow: 0 4px 12px rgba(19, 57, 94, .14);
}

.olymp-overview-topic-toggle:focus-visible {
    outline: 3px solid rgba(72, 74, 255, .25);
    outline-offset: 2px;
}

.olymp-overview-subtopics {
    padding: 0 66px 5px 92px;
    border-top: 1px solid rgba(16, 46, 82, .1);
    background: rgba(255, 255, 255, .74);
}

.olymp-overview-subtopic-row {
    display: grid;
    min-height: 42px;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(16, 46, 82, .09);
}

.olymp-overview-subtopic-row:last-child { border-bottom: 0; }

.olymp-overview-subtopic-row strong {
    position: relative;
    padding-left: 15px;
    font-size: .9rem;
    font-weight: 600;
}

.olymp-overview-subtopic-row strong::before {
    position: absolute;
    top: .48em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8aa2bd;
    content: "";
}

.olymp-overview-subtopic-row small {
    color: #536b87;
    font-size: .8rem;
    font-weight: 600;
}

.olymp-detail-card { margin-top: 14px; }

.olymp-detail-hero {
    position: relative;
    padding: 16px 24px 18px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.olymp-detail-hero--pending { background: linear-gradient(120deg, #fff 0%, #fff 62%, #fff3f7 100%); }
.olymp-detail-hero--curriculum { background: linear-gradient(120deg, #fff 0%, #fff 58%, #eff4ff 100%); }

.olymp-back-button {
    position: relative;
    z-index: 2;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #617590;
    font-size: .7rem;
    font-weight: 600;
}

.olymp-detail-heading {
    position: relative;
    z-index: 1;
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: space-between;
}

.olymp-detail-heading h2 {
    display: flex;
    margin: 0;
    align-items: center;
    gap: 12px;
    color: #102d53;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.olymp-detail-heading h2 span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #ff2850;
    color: #fff;
    font-size: .67rem;
    letter-spacing: 0;
}

.olymp-detail-hero--curriculum .olymp-detail-heading h2 span {
    background: #e6f7f0;
    color: #0b9b72;
}

.olymp-detail-heading p {
    margin: 5px 0 0;
    color: #6a7e98;
    font-size: .75rem;
    font-weight: 500;
}

.olymp-detail-heading img {
    position: absolute;
    right: 25px;
    bottom: -42px;
    width: 230px;
    height: 150px;
    object-fit: contain;
    opacity: .58;
    pointer-events: none;
}

.olymp-detail-hero--curriculum .olymp-detail-heading img { width: 285px; height: 175px; bottom: -51px; opacity: .72; }

.olymp-pending-toolbar {
    display: flex;
    min-height: 58px;
    padding: 0 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e7edf4;
}

.olymp-pending-filters {
    display: flex;
    gap: 26px;
    align-items: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
}

.olymp-pending-filters::-webkit-scrollbar { display: none; }

.olymp-pending-filters button {
    position: relative;
    min-height: 41px;
    padding: 8px 0 11px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #526984;
    font-size: .65rem;
    font-weight: 600;
}

.olymp-pending-filters button::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 3px;
    background: #ff244b;
    content: "";
    transform: scaleX(0);
}

.olymp-pending-filters button.is-active { color: #ff2349; }
.olymp-pending-filters button.is-active::after { transform: scaleX(1); }

.olymp-pending-sort {
    display: flex;
    padding-bottom: 8px;
    align-items: center;
    gap: 4px;
}

.olymp-pending-sort label { color: #6f829a; font-size: .58rem; font-weight: 500; }
.olymp-pending-sort select,
.olymp-pending-sort button { min-height: 30px; border: 1px solid #dfe7f0; border-radius: 7px; background: #fff; color: #17365c; font-size: .62rem; font-weight: 600; }
.olymp-pending-sort select { padding: 3px 26px 3px 7px; }
.olymp-pending-sort button { width: 30px; padding: 0; }

.olymp-pending-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 16px 20px 20px;
}

.olymp-pending-table-wrap {
    overflow: hidden;
    border: 1px solid #e4ebf2;
    border-radius: 12px;
}

.olymp-pending-table-head {
    display: grid;
    min-height: 36px;
    grid-template-columns: 1.45fr 1.25fr .9fr 1fr;
    padding: 0 12px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e8eef4;
    background: #fbfcfe;
    color: #73859b;
    font-size: .5rem;
    font-weight: 600;
}

.olymp-pending-row {
    display: grid;
    min-height: 72px;
    grid-template-columns: 1.45fr 1.25fr .9fr 1fr;
    padding: 9px 12px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e8eef4;
    background: #fff;
}

.olymp-pending-row[hidden],
.olymp-pending-row.is-page-hidden { display: none !important; }

.olymp-pending-topic-cell,
.olymp-pending-date-cell,
.olymp-pending-action-cell { display: flex; align-items: center; min-width: 0; }
.olymp-pending-topic-cell { gap: 10px; }
.olymp-pending-topic-cell .olymp-topic-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; font-size: .78rem; }
.olymp-pending-topic-cell strong,
.olymp-pending-topic-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olymp-pending-topic-cell strong { color: #17365c; font-size: .72rem; font-weight: 600; }
.olymp-pending-topic-cell small { margin-top: 3px; color: #71839a; font-size: .53rem; font-weight: 500; }

.olymp-pending-progress-cell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    align-items: center;
}

.olymp-pending-progress-cell > span { grid-column: 1 / -1; color: #516984; font-size: .55rem; font-weight: 600; }
.olymp-pending-progress-cell > div { height: 5px; overflow: hidden; border-radius: 999px; background: #e8edf3; }
.olymp-pending-progress-cell > div i { display: block; height: 100%; border-radius: inherit; background: #5b35f3; }
.olymp-pending-progress-cell > strong { color: #17365c; font-size: .55rem; font-weight: 600; }

.olymp-pending-date-cell { gap: 7px; color: #637894; }
.olymp-pending-date-cell > i { color: #57718f; font-size: .8rem; }
.olymp-pending-date-cell strong,
.olymp-pending-date-cell small { display: block; }
.olymp-pending-date-cell strong { color: #18365a; font-size: .58rem; font-weight: 600; }
.olymp-pending-date-cell small { margin-top: 2px; color: #647a95; font-size: .52rem; font-weight: 500; }
.olymp-pending-date-cell.is-overdue small { color: #ff284b; }

.olymp-pending-action-cell { gap: 7px; }
.olymp-row-btn {
    display: inline-flex;
    min-height: 27px;
    padding: 4px 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-radius: 6px;
    background: #fff;
    font-size: .53rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}
.olymp-row-btn--learn { border-color: #bba7ff; color: #6040dd !important; }
.olymp-row-btn--practice { border-color: #ffb2be; color: #ff2445 !important; }
.olymp-row-more { width: 22px; height: 27px; padding: 0; border: 0; background: transparent; color: #3c5d82; font-size: .72rem; }

.olymp-show-more {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    background: #fff;
    color: #5d3de2;
    font-size: .58rem;
    font-weight: 600;
}

.olymp-progress-aside {
    display: flex;
    min-height: 260px;
    padding: 22px 14px 0;
    align-items: center;
    flex-direction: column;
    border: 1px solid #f2e6d8;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
    text-align: center;
}

.olymp-progress-aside > strong { color: #17365c; font-size: .68rem; font-weight: 600; }
.olymp-progress-aside > p { max-width: 135px; margin: 7px 0 12px; color: #718199; font-size: .53rem; font-weight: 500; line-height: 1.45; }
.olymp-progress-ring {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#6036f3 calc(var(--progress) * 1%), #eceff5 0);
    position: relative;
}
.olymp-progress-ring::after { position: absolute; width: 53px; height: 53px; border-radius: 50%; background: #fff; content: ""; }
.olymp-progress-ring span { position: relative; z-index: 1; color: #5f36f1; font-size: 1rem; font-weight: 600; }
.olymp-progress-aside > small { margin-top: 8px; color: #718299; font-size: .5rem; font-weight: 500; }
.olymp-progress-aside > b { margin-top: 3px; color: #17365c; font-size: .52rem; font-weight: 600; }
.olymp-progress-motto { width: calc(100% + 28px); margin-top: auto; padding: 12px; border-top: 1px solid #f0e5db; color: #17365c; font-size: .52rem; font-weight: 600; }
.olymp-progress-motto i { display: grid; width: 24px; height: 24px; margin: 0 auto 6px; place-items: center; border-radius: 50%; background: #6a3cf3; color: #fff; }

.olymp-empty-state {
    display: flex;
    min-height: 180px;
    padding: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #7a8ca3;
    text-align: center;
}
.olymp-empty-state > i { color: #16ae7f; font-size: 2rem; }
.olymp-empty-state strong { margin-top: 10px; color: #17365c; }
.olymp-empty-state span { margin-top: 4px; font-size: .75rem; }

.olymp-curriculum-detail { padding-bottom: 20px; }

.olymp-curriculum-headings {
    display: grid;
    min-height: 45px;
    grid-template-columns: minmax(0, 1fr) 160px 28px;
    padding: 0 32px;
    align-items: center;
    gap: 22px;
    color: #60738d;
    font-size: .55rem;
    font-weight: 600;
}

.olymp-curriculum-accordion { padding: 0 20px; }

.olymp-curriculum-group {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(23, 54, 92, .16);
    border-radius: 12px;
    background: var(--olymp-curriculum-group-bg, #a5cae8);
}

.olymp-curriculum-group-head {
    display: grid;
    width: 100%;
    min-height: 74px;
    grid-template-columns: 42px minmax(0, 1fr) 160px 28px;
    padding: 10px 14px;
    align-items: center;
    gap: 5px;
    border: 0;
    background: var(--olymp-curriculum-group-bg, #a5cae8);
    color: #17365c;
    text-align: left;
}

.olymp-curriculum-title strong,
.olymp-curriculum-title small { display: block; }
.olymp-curriculum-title strong { font-size: .88rem; font-weight: 600; }
.olymp-curriculum-title small { margin-top: 4px; color: #25405f; font-size: .67rem; font-weight: 550; }

.olymp-group-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.olymp-group-progress > i { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .72); }
.olymp-group-progress > i b { display: block; height: 100%; border-radius: inherit; background: #0cac7d; }
.olymp-group-progress > strong { color: #25405f; font-size: .72rem; font-weight: 600; }
.olymp-group-chevron { justify-self: center; transition: transform .2s ease; }
.olymp-curriculum-group.is-open .olymp-group-chevron { transform: rotate(180deg); }

.olymp-curriculum-group-body { border-top: 1px solid rgba(23, 54, 92, .14); background: rgba(255, 255, 255, .88); }
.olymp-curriculum-group-body[hidden] { display: none !important; }

.olymp-curriculum-row-head,
.olymp-curriculum-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, .8fr) minmax(100px, .55fr) minmax(100px, .5fr);
    gap: 18px;
    align-items: center;
}

.olymp-curriculum-row-head {
    min-height: 36px;
    padding: 0 18px 0 26px;
    border-bottom: 1px solid #e7edf3;
    background: rgba(255, 255, 255, .72);
    color: #75869b;
    font-size: .5rem;
    font-weight: 600;
}

.olymp-curriculum-row-head span:last-child {
    justify-self: end;
    text-align: right;
}

.olymp-curriculum-row {
    min-height: 58px;
    padding: 8px 18px 8px 26px;
    border-bottom: 1px solid #e7edf3;
    background: rgba(255, 255, 255, .58);
}
.olymp-curriculum-row:last-child { border-bottom: 0; }

.olymp-curriculum-name { display: flex; min-width: 0; align-items: center; gap: 12px; }
.olymp-curriculum-name > div { min-width: 0; }
.olymp-curriculum-name > i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #c8d4e7; }
.olymp-curriculum-name strong,
.olymp-curriculum-name small { display: block; }
.olymp-curriculum-name strong { overflow: hidden; color: #17365c; font-size: .72rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.olymp-curriculum-name small { margin-top: 3px; color: #72859d; font-size: .53rem; font-weight: 500; }

.olymp-curriculum-progress {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 9px;
    align-items: center;
}
.olymp-curriculum-progress > strong { color: #435d7c; font-size: .62rem; font-weight: 600; }
.olymp-curriculum-progress > span { height: 5px; overflow: hidden; border-radius: 999px; background: #e6ebf1; }
.olymp-curriculum-progress > span i { display: block; height: 100%; border-radius: inherit; background: #12aa79; }
.olymp-curriculum-row--active .olymp-curriculum-progress > span i,
.olymp-curriculum-row--pending .olymp-curriculum-progress > span i { background: #ff9d00; }

.olymp-status-pill {
    display: inline-flex;
    min-height: 22px;
    padding: 4px 9px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf1f5;
    color: #6e8096;
    font-size: .53rem;
    font-weight: 600;
}
.olymp-status-pill--completed { background: #ddf7ec; color: #07976b; }
.olymp-status-pill--active { background: #e4f0ff; color: #2877d1; }
.olymp-status-pill--pending { background: #ffe2e8; color: #e11d48; }
.olymp-status-pill--optional,
.olymp-status-pill--break { background: #fff3da; color: #c57700; }
.olymp-status-pill--event { background: #efe8ff; color: #7048d7; }

.olymp-curriculum-status { min-width: 0; }

.olymp-curriculum-action { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: #365779; }
.olymp-curr-action {
    display: inline-flex;
    min-height: 25px;
    padding: 4px 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid #9e80ff;
    border-radius: 6px;
    background: #fff;
    color: #6842e5 !important;
    font-size: .55rem;
    font-weight: 600;
    text-decoration: none !important;
}
.olymp-curr-action:disabled { border-color: #cbd5e1; color: #8290a3 !important; }

.olymp-break-copy { margin: 8px 0; color: #687d97; font-size: .75rem; font-weight: 500; }
.olymp-break-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 1100px) {
    .olymp-summary-grid { gap: 12px; }
    .olymp-summary-content { gap: 10px; padding: 17px 13px; }
    .olymp-summary-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .olymp-summary-art { width: 38%; opacity: .58; }
    .olymp-pill-button { padding-inline: 11px; }
    .olymp-battle-stat { padding: 10px 7px; gap: 6px; }
    .olymp-battle-stat-icon { width: 31px; height: 31px; flex-basis: 31px; font-size: .95rem; }
    .olymp-battle-stat strong { font-size: .61rem; }
    .olymp-pending-layout { grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; padding-inline: 14px; }
    .olymp-pending-table-head,
    .olymp-pending-row { grid-template-columns: 1.25fr 1fr .8fr 1fr; gap: 8px; }
}

@media (max-width: 900px) {
    .demo-shell.container { width: min(100% - 24px, 1280px); }
    .demo-head { min-height: 102px; padding-right: 30%; }
    .olymp-head-trophy { right: -10px; width: 34%; height: 165px; }
    .olymp-summary-grid { grid-template-columns: 1fr; }
    .olymp-summary-card { min-height: 132px; }
    .olymp-summary-art { right: 15px; bottom: -18px; width: 190px; height: 130px; opacity: .68; }
    .olymp-summary-content { padding: 17px; }
    .olymp-main-grid { grid-template-columns: 1fr; }
    .olymp-active-panel,
    .olymp-battle-panel { min-height: 0; }
    .olymp-pending-toolbar { align-items: stretch; flex-direction: column; gap: 4px; padding-top: 8px; }
    .olymp-pending-filters { width: 100%; }
    .olymp-pending-sort { justify-content: flex-end; }
    .olymp-pending-layout { grid-template-columns: 1fr; }
    .olymp-progress-aside { min-height: 225px; }
    .olymp-curriculum-headings { display: none; }
    .olymp-curriculum-accordion { padding-top: 14px; }
    .olymp-curriculum-group-head { grid-template-columns: 42px minmax(0, 1fr) 125px 22px; gap: 10px; }
    .olymp-curriculum-row,
    .olymp-curriculum-row-head { grid-template-columns: minmax(0, 1.3fr) minmax(120px, .8fr) 96px 90px; gap: 10px; }
}

@media (max-width: 1250px) {
    .olymp-active-task-grid--count-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .demo-shell.container { width: min(100% - 16px, 1280px); }
    .demo-head { min-height: 88px; padding: 14px 0 8px; }
    .demo-head-title { max-width: 78%; font-size: 1.45rem; }
    .demo-intro-student-welcome > p { max-width: 78%; font-size: .72rem; }
    .olymp-head-trophy { top: -17px; right: -36px; width: 42%; height: 120px; opacity: .72; }
    .demo-tabs { min-height: 62px; }
    .demo-tab-btn { min-width: 0; min-height: 62px; flex: 1 1 50%; padding: 7px 8px 11px; gap: 8px; }
    .olymp-tab-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 1rem; }
    .demo-tab-btn .tab-main { font-size: .88rem; }
    .demo-tab-btn .tab-sub { font-size: .57rem; }
    .olymp-v2-dashboard { padding-top: 10px; }
    .olymp-panel-ribbon { align-items: flex-start; gap: 8px; }
    .olymp-panel-ribbon small { max-width: 46%; white-space: normal; }
    .olymp-summary-card { min-height: 124px; }
    .olymp-summary-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 12px; font-size: 1.2rem; }
    .olymp-summary-label { font-size: .88rem; }
    .olymp-summary-value { font-size: 1rem; }
    .olymp-summary-art { right: -7px; width: 145px; height: 110px; opacity: .56; }
    .olymp-pill-button { min-height: 28px; margin-top: 7px; font-size: .62rem; }
    .olymp-active-title-row { gap: 10px; }
    .olymp-active-task-grid--multiple,
    .olymp-active-task-grid--count-3,
    .olymp-active-task-grid--count-4 { grid-template-columns: minmax(0, 1fr); }
    .olymp-target-box { min-width: 118px; padding-inline: 8px; }
    .olymp-active-inner--starts-soon { min-height: 150px; gap: 12px; }
    .olymp-starts-soon-copy h2 { font-size: 1.05rem; }
    .olymp-starts-soon-copy p { font-size: .76rem; }
    .olymp-target-box--starts-soon { min-width: 145px; }
    .olymp-active-actions { margin-top: 9px; }
    .olymp-active-metrics { gap: 7px; }
    .olymp-metric { padding-inline: 8px; }
    .olymp-battle-grid { grid-template-columns: 1fr; }
    .olymp-battle-grid.olymp-battle-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .olymp-battle-stat { min-height: 64px; }
    .olymp-battle-grid--compact .olymp-battle-stat { min-height: 76px; padding: 10px 8px; gap: 8px; }
    .olymp-battle-grid--compact .olymp-battle-stat-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 1rem; }
    .olymp-battle-actions { align-items: stretch; flex-direction: column; }
    .olymp-battle-btn { width: 100%; }
    .olymp-battle-note { text-align: center; }
    .olymp-curriculum-preview > header { align-items: flex-start; gap: 8px; }
    .olymp-curriculum-preview > header button { max-width: 145px; text-align: right; }
    .olymp-preview-row { grid-template-columns: 23px minmax(0, 1fr) 18px; }
    .olymp-preview-row small { display: none; }
    .olymp-overview-table-head {
        min-height: 40px;
        grid-template-columns: 38px minmax(0, 1fr) 90px 36px;
        padding: 0 8px;
        font-size: .66rem;
    }
    .olymp-overview-topic-head {
        min-height: 70px;
        grid-template-columns: 38px minmax(0, 1fr) 36px;
        grid-template-rows: auto auto;
        padding: 8px;
    }
    .olymp-overview-topic-number { grid-column: 1; grid-row: 1 / span 2; font-size: .86rem; }
    .olymp-overview-topic-name { grid-column: 2; grid-row: 1; gap: 8px; }
    .olymp-overview-topic-name .olymp-topic-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .olymp-overview-topic-name strong { font-size: .86rem; white-space: normal; }
    .olymp-overview-topic-date { grid-column: 2; grid-row: 2; padding-left: 38px; font-size: .75rem; }
    .olymp-overview-topic-toggle { grid-column: 3; grid-row: 1 / span 2; width: 30px; height: 30px; }
    .olymp-overview-subtopics { padding: 2px 12px 5px 6px; }
    .olymp-overview-subtopic-row { min-height: 48px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .olymp-overview-subtopic-row strong { font-size: .8rem; }
    .olymp-overview-subtopic-row small { font-size: .7rem; text-align: right; }
    .olymp-detail-hero {  padding: 14px 16px; }
    .olymp-detail-heading { margin-top: 18px; }
    .olymp-detail-heading h2 { display: block; font-size: 1.3rem; }
    .olymp-detail-heading h2 span { display: inline-flex; margin-left: 6px; transform: translateY(-2px); }
    .olymp-detail-heading img { right: -35px; width: 165px; height: 120px; opacity: .34; }
    .olymp-detail-hero--curriculum .olymp-detail-heading img { right: -35px; width: 190px; height: 135px; opacity: .45; }
    .olymp-pending-filters { gap: 18px; }
    .olymp-pending-layout { padding: 10px; }
    .olymp-pending-table-head { display: none; }
    .olymp-pending-table-wrap { border: 0; }
    .olymp-pending-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 10px;
        padding: 13px;
        border: 1px solid #e2eaf2;
        border-radius: 12px;
        box-shadow: 0 5px 13px rgba(31, 55, 86, .04);
    }
    .olymp-pending-topic-cell { grid-column: 1 / -1; }
    .olymp-pending-progress-cell { grid-column: 1 / -1; }
    .olymp-pending-action-cell { justify-content: flex-end; }
    .olymp-row-btn { flex: 1 1 auto; }
    .olymp-progress-aside { min-height: 210px; }
    .olymp-curriculum-accordion { padding: 10px 8px 0; }
    .olymp-curriculum-group-head {
        min-height: 82px;
        grid-template-columns: 38px minmax(0, 1fr) 20px;
        gap: 9px;
        padding: 10px;
    }
    .olymp-curriculum-group-head .olymp-topic-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .olymp-group-progress { grid-column: 2; grid-row: 2; }
    .olymp-group-chevron { grid-column: 3; grid-row: 2; }
    .olymp-curriculum-row-head { display: none; }
    .olymp-curriculum-row {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        padding: 12px;
    }
    .olymp-curriculum-name { grid-column: 1 / -1; align-items: flex-start; }
    .olymp-curriculum-name strong {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .olymp-curriculum-progress { grid-column: 1; }
    .olymp-curriculum-status { grid-column: 1; grid-row: 3; }
    .olymp-curriculum-action { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}

@media (max-width: 420px) {
    .demo-head-title { max-width: 82%; font-size: 1.28rem; }
    .olymp-head-trophy { right: -47px; width: 47%; opacity: .6; }
    .demo-tab-btn { gap: 6px; }
    .olymp-tab-icon { width: 32px; height: 32px; flex-basis: 32px; }
    .demo-tab-btn .tab-main { font-size: .78rem; }
    .olymp-summary-content { padding: 14px 12px; }
    .olymp-summary-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .olymp-active-title-row { flex-direction: column; }
    .olymp-target-box { width: 100%; }
    .olymp-active-inner--starts-soon {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .olymp-target-box--starts-soon { width: 100%; }
    .olymp-active-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .olymp-action-btn { padding-inline: 10px; }
    .olymp-active-metrics { grid-template-columns: repeat(2, 1fr); }
    .olymp-leaderboard-links { grid-template-columns: 1fr; }
    .olymp-pending-sort { justify-content: stretch; }
    .olymp-pending-sort select { flex: 1; }
    .olymp-pending-row { grid-template-columns: 1fr; }
    .olymp-pending-date-cell,
    .olymp-pending-action-cell { grid-column: 1; }
    .olymp-pending-action-cell { justify-content: stretch; flex-wrap: wrap; }
    .olymp-detail-heading h2 { font-size: 1.12rem; }
}

/* Self-contained icon fallbacks: the dashboard stays complete if the site's
   optional icon font is unavailable. */
.olymp-tab-icon i,
.olymp-summary-icon i,
.olymp-topic-icon i,
.olymp-battle-stat-icon i { display: none; }
.olymp-tab-icon::before,
.olymp-summary-icon::before,
.olymp-topic-icon::before,
.olymp-battle-stat-icon::before {
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
}
.olymp-tab-icon--assignment::before { content: "▤"; }
.olymp-tab-icon--performance::before { content: "▥"; }
.olymp-summary-icon--pending::before { content: "⌛"; }
.olymp-summary-icon--active::before { content: "➤"; transform: rotate(-35deg); }
.olymp-summary-icon--curriculum::before { content: "◆"; }
.olymp-topic-icon--amber::before { content: "○"; }
.olymp-topic-icon--coral::before { content: "◇"; }
.olymp-topic-icon--blue::before { content: "¹⁄₂"; font-size: .8em; }
.olymp-topic-icon--violet::before { content: "▦"; }
.olymp-topic-icon--aqua::before { content: "½"; }
.olymp-topic-icon--orange::before { content: "⌁"; }
.olymp-topic-icon--green::before { content: "◔"; }
.olymp-topic-icon--pink::before { content: "✦"; }
.olymp-battle-stat-icon--red::before { content: "▣"; }
.olymp-battle-stat-icon--orange::before { content: "⚔"; }
.olymp-battle-stat-icon--blue::before { content: "▤"; }
.olymp-pill-button i,
.olymp-card-arrow i,
.olymp-preview-chevron { display: none; }
.olymp-pill-button::after,
.olymp-card-arrow::after { content: "›"; font-size: 1.15em; font-weight: 600; }

.olymp-pending-topic-cell > div { min-width: 0; }

/* The supplied dashboard references use a focused, distraction-free shell. */
footer,
body > footer,
body > .footer {
    display: none !important;
}

body {
    padding-top: 0 !important;
}

#assignment-panel {
    margin-top: 0 !important;
}

.olymp-active-panel {
    padding: 0 !important;
}

.olymp-active-inner {
    padding: 6px 12px 5px;
}

.olymp-active-topic {
    display: none;
}

.olymp-target-box {
    padding-top: 4px;
    padding-bottom: 4px;
}

.olymp-active-actions {
    margin-top: -15px;
    margin-bottom: 5px;
}

.olymp-action-btn {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.olymp-battle-btn {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.olymp-leaderboard-links button {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.olymp-active-metrics {
    gap: 8px;
}

.olymp-metric {
    min-height: 39px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.olymp-active-progress,
.olymp-leaderboard-links {
    margin-top: 4px;
}

@media (min-width: 901px) {
    .demo-head {
        min-height: 78px;
        padding-top: 14px;
        padding-bottom: 5px;
    }
    .olymp-head-trophy {
        top: -30px;
        width: min(34%, 350px);
        height: 142px;
    }
    .demo-tabs,
    .demo-tab-btn {
        min-height: 50px;
    }
    .demo-tab-btn {
        padding-top: 4px;
        padding-bottom: 7px;
    }
    .olymp-tab-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .olymp-summary-card {
        min-height: 120px;
    }
    .olymp-v2-dashboard {
        padding-top: 9px;
    }
    .olymp-summary-grid {
        margin-bottom: 11px;
    }
    .olymp-summary-content {
        padding-top: 14px;
        padding-bottom: 12px;
    }
    .olymp-summary-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    /* .olymp-summary-value {
        font-size: 1.6rem;
    } */
    .olymp-summary-note {
        margin-top: 3px;
    }
    .olymp-pill-button {
        min-height: 26px;
        margin-top: 7px;
    }
    .olymp-summary-art--clipboard {
        right: -3%;
        bottom: -35px;
        width: 45%;
        height: 170px;
    }
    .olymp-summary-art--target,
    .olymp-summary-art--books {
        right: -23%;
        bottom: -31px;
        width: 80%;
        height: 170px;
    }
    .olymp-active-panel,
    .olymp-battle-panel {
        min-height: 188px;
    }
}

@media (max-width: 680px) {
    .olymp-active-actions {
        margin-top: 8px;
    }
    .demo-head {
        padding-right: 0;
    }
    .demo-head-title,
    .demo-intro-student-welcome > p {
        max-width: 100%;
    }
    .olymp-head-trophy {
        display: none !important;
    }
    .demo-head-intro-actions {
        position: static;
        width: 100%;
        margin-top: 10px;
        padding-right: 10px;
        justify-content: flex-end;
    }
    .demo-intro-trigger {
        gap: 6px;
        padding: 8px 11px;
        font-size: .72rem;
    }
    .demo-intro-trigger-icon {
        width: 24px;
        height: 24px;
        font-size: .78rem;
    }
    .olymp-curriculum-preview > header button {
        max-width: none;
        white-space: nowrap;
    }
}

/* Readability pass: keep the compact layout, but use comfortable dashboard
   type sizes at both desktop and mobile widths. */
.demo-tab-btn .tab-main { font-size: 1.12rem; }
.demo-tab-btn .tab-sub { font-size: .76rem; }
.olymp-summary-label { font-size: 1.08rem; }
.olymp-summary-note { font-size: .82rem; }
.olymp-pill-button { font-size: .8rem; }
.olymp-panel-ribbon { font-size: 1rem; }
.olymp-active-title-row h2 { font-size: 1.18rem; }
.olymp-target-box span,
.olymp-target-box small { font-size: .64rem; }
.olymp-target-box strong { font-size: 1.06rem; }
.olymp-action-btn { font-size: .78rem; }
.olymp-metric span { font-size: .66rem; }
.olymp-metric strong { font-size: .88rem; }
.olymp-active-progress > div { font-size: .68rem; }
.olymp-leaderboard-links button { font-size: .7rem; }
.olymp-battle-panel > header h2 { font-size: 1.12rem; }
.olymp-battle-stat small { font-size: .62rem; }
.olymp-battle-stat strong { font-size: .78rem; }
.olymp-battle-btn { font-size: .76rem; }
.olymp-battle-note { font-size: .7rem; }
.olymp-battle-empty strong { font-size: 1rem; }
.olymp-battle-empty span { font-size: .82rem; }
.olymp-curriculum-preview h2 { font-size: 1.1rem; }
.olymp-curriculum-preview > header button { font-size: .75rem; }
.olymp-preview-row { min-height: 36px; }
.olymp-preview-row strong { font-size: .76rem; }
.olymp-preview-row small { font-size: .66rem; }
.olymp-more-topics { font-size: .7rem; }
.olymp-back-button { font-size: .82rem; }
.olymp-detail-heading h2 { font-size: 1.8rem; }
.olymp-detail-heading h2 span { font-size: .76rem; }
.olymp-detail-heading p { font-size: .9rem; }
.olymp-pending-filters button { font-size: .88rem; }
.olymp-pending-sort label { font-size: .7rem; }
.olymp-pending-sort select,
.olymp-pending-sort button { font-size: .8rem; }
.olymp-pending-layout { grid-template-columns: minmax(0, 1fr); }
.olymp-pending-table-head { font-size: .7rem; }
.olymp-pending-row { min-height: 82px; }
.olymp-pending-topic-cell strong { font-size: 1rem; }
.olymp-pending-topic-cell small { font-size: .74rem; }
.olymp-pending-progress-cell > span,
.olymp-pending-progress-cell > strong { font-size: .74rem; }
.olymp-pending-date-cell strong { font-size: .78rem; }
.olymp-pending-date-cell small { font-size: .7rem; }
.olymp-row-btn {
    min-height: 34px;
    padding: 6px 14px;
    font-size: .78rem;
}
.olymp-show-more { min-height: 40px; font-size: .72rem; }
.olymp-curriculum-headings { font-size: .66rem; }
.olymp-curriculum-title strong { font-size: 1.1rem; }
.olymp-curriculum-title small { font-size: .78rem; }
.olymp-group-progress > strong { font-size: .82rem; }
.olymp-curriculum-row-head { font-size: .62rem; }
.olymp-curriculum-name strong { font-size: .86rem; }
.olymp-curriculum-name small { font-size: .66rem; }
.olymp-curriculum-progress > strong { font-size: .72rem; }
.olymp-status-pill { font-size: .66rem; }
.olymp-curr-action { min-height: 30px; font-size: .68rem; }

@media (max-width: 680px) {
    .demo-tab-btn .tab-main { font-size: .94rem; }
    .demo-tab-btn .tab-sub { font-size: .64rem; }
    .olymp-summary-label { font-size: 1rem; }
    .olymp-summary-note { font-size: .76rem; }
    .olymp-pill-button { font-size: .72rem; }
    .olymp-detail-heading h2 { font-size: 1.42rem; }
    .olymp-detail-heading p { font-size: .8rem; }
    .olymp-pending-filters button { font-size: .8rem; }
    .olymp-pending-topic-cell strong { font-size: .94rem; }
    .olymp-pending-topic-cell small { font-size: .72rem; }
}

body.olymp-prep-tour-active .introjs-tooltipReferenceLayer,
body.olymp-prep-tour-active .demo-intro-reference-layer,
body.olymp-prep-tour-active .introjs-tooltip.demo-intro-tooltip,
body.olymp-prep-tour-active .introjs-arrow {
    transition: none !important;
    animation: none !important;
}

body.olymp-prep-tour-active .introjs-tooltip.demo-intro-tooltip--olymp,
body.olymp-prep-tour-active .introjs-tooltipReferenceLayer .introjs-arrow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.olymp-prep-tour-active .introjs-tooltipReferenceLayer,
body.olymp-prep-tour-active .demo-intro-reference-layer {
    z-index: 2147483646 !important;
    overflow: visible !important;
}

body.olymp-prep-tour-active .introjs-tooltip.demo-intro-tooltip {
    z-index: 2147483647 !important;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    backdrop-filter: none !important;
}

body.olymp-prep-tour-active .demo-intro-tooltip .demo-intro-topbar,
body.olymp-prep-tour-active .demo-intro-tooltip .introjs-tooltiptext,
body.olymp-prep-tour-active .demo-intro-tooltip .introjs-tooltipbuttons,
body.olymp-prep-tour-active .demo-intro-tooltip .demo-intro-actionbar {
    background: #ffffff !important;
}

body.olymp-intro-positioning .introjs-tooltip.demo-intro-tooltip,
body.olymp-intro-positioning .introjs-arrow {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Multiple assignments need a wider work area and shared vertical anchors so
   titles of different lengths never push their controls out of alignment. */
@media (min-width: 901px) {
    .olymp-main-grid--multiple {
        grid-template-columns: minmax(0, 76fr) minmax(300px, 24fr);
        gap: 22px;
    }

    .olymp-active-task-grid--multiple {
        gap: 16px;
        padding: 16px;
    }

    .olymp-active-task-grid--multiple .olymp-active-task-card {
        display: flex;
        padding: 16px;
        flex-direction: column;
    }

    .olymp-active-task-grid--multiple .olymp-active-title-row {
        min-height: 104px;
    }

    .olymp-active-task-grid--multiple .olymp-active-actions {
        min-height: 34px;
        margin: 0 0 12px;
        align-items: stretch;
    }

    .olymp-active-task-grid--multiple .olymp-active-metrics {
        margin-top: 0;
    }

    .olymp-active-task-grid--multiple .olymp-leaderboard-links {
        margin-top: auto;
        padding-top: 10px;
    }

    .olymp-main-grid--multiple .olymp-battle-panel {
        padding: 18px;
    }
}

.olymp-battle-detail-list {
    display: grid;
    gap: 9px;
}

.olymp-battle-detail-row {
    display: grid;
    min-width: 0;
    min-height: 49px;
    padding: 7px 10px;
    grid-template-columns: 34px 72px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
}

.olymp-battle-detail-row .olymp-battle-stat-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 1rem;
}

.olymp-battle-detail-row small {
    color: #74849b;
    font-size: .66rem;
    font-weight: 500;
}

.olymp-battle-detail-row strong {
    min-width: 0;
    color: #17365c;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .olymp-battle-detail-row {
        grid-template-columns: 32px 64px minmax(0, 1fr);
        padding-inline: 8px;
        gap: 7px;
    }
}

/* Compact assignment home (reference-aligned, 2026-09).
   The detail, curriculum, and performance screens keep their existing content;
   this layer only simplifies the main decision surface. */
.demo-shell.container {
    width: min(100% - 32px, 1280px);
}

.demo-head {
    min-height: 104px;
    padding: 17px 360px 12px 0;
}

.demo-head-title {
    font-size: clamp(1.65rem, 2.25vw, 2rem);
    line-height: 1.08;
}

.demo-head-wave {
    display: none;
}

.demo-head-subcopy {
    margin: 5px 0 0;
    color: #6f7f98;
    font-size: .86rem;
    font-weight: 600;
}

.olymp-head-trophy {
    display: block;
    top: -22px;
    right: 0;
    width: 245px;
    height: 138px;
    opacity: .92;
}

.olymp-head-trophy[hidden] {
    display: none !important;
}

.demo-head-intro-actions {
    top: 23px;
    right: 0;
}

.demo-intro-trigger {
    min-height: 42px;
    padding: 8px 17px;
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(84, 49, 221, .18);
    font-size: .9rem;
}

.demo-intro-dismiss {
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border: 2px solid #fff;
    background: #142b4f;
    color: #fff;
    font-size: .72rem;
}

.demo-tabs {
    min-height: 53px;
    gap: 8px;
}

.demo-tab-btn {
    min-width: 0;
    min-height: 53px;
    padding: 7px 20px 10px;
    flex: 0 1 205px;
    justify-content: center;
    gap: 9px;
    border-radius: 10px 10px 0 0;
    background: #f4f6fb;
    color: #415373;
}

.demo-tab-btn.active {
    background: #e9fbf3;
    color: #00a672;
}

.demo-tab-btn::after {
    height: 3px;
}

.olymp-tab-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 1rem;
}

.demo-tab-btn.active .olymp-tab-icon--assignment,
.demo-tab-btn.active .olymp-tab-icon--performance,
.demo-tab-btn.active .olymp-tab-icon--curriculum {
    background: transparent;
    color: inherit;
}

.olymp-tab-icon--curriculum::before {
    content: "\25A4";
}

.demo-tab-btn .tab-main {
    font-size: 1.05rem;
    font-weight: 700;
}

.demo-tab-btn .tab-sub {
    display: none;
}

.olymp-v2-dashboard {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 13px;
    padding: 11px 0 30px;
}

.olymp-summary-grid,
.olymp-dashboard-screen[data-olymp-screen="overview"].is-active,
.olymp-main-grid {
    display: contents;
}

.olymp-summary-card--active,
.olymp-summary-card--curriculum,
.olymp-curriculum-preview,
.olymp-v2-dashboard:not([data-active-view="overview"]) .olymp-summary-card--pending {
    display: none !important;
}

.olymp-summary-card--pending {
    min-height: 134px;
    grid-column: 1 / span 7;
    grid-row: 1;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(118deg, #f21e3e 0%, #e60e31 72%, #ca153e 100%);
    box-shadow: 0 8px 22px rgba(217, 18, 56, .18);
}

.olymp-summary-card--pending::before {
    z-index: 0;
    inset: auto -46px -89px auto;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.olymp-summary-card--pending::after {
    position: absolute;
    right: 44px;
    bottom: -106px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(90, 28, 107, .14);
    content: "";
}

.olymp-summary-card--pending .olymp-summary-content {
    height: 100%;
    padding: 18px 18px;
    align-items: center;
    gap: 17px;
}

.olymp-summary-card--pending .olymp-summary-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 50%;
    background: rgba(180, 0, 28, .66);
    box-shadow: 0 7px 18px rgba(92, 0, 17, .19);
    font-size: 1.65rem;
}

.olymp-summary-card--pending .olymp-summary-copy {
    z-index: 2;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 20px;
}

.olymp-summary-card--pending .olymp-summary-label {
    grid-column: 1;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
}

.olymp-pending-summary-main {
    display: flex;
    grid-column: 1;
    align-items: center;
    gap: 18px;
}

.olymp-summary-card--pending .olymp-summary-value {
    margin: 4px 0 0;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.olymp-summary-card--pending .olymp-summary-note {
    margin: 6px 0 0;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: .88rem;
}

.olymp-summary-card--pending .olymp-pill-button {
    min-height: 43px;
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 8px 17px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #e81739;
    font-size: .86rem;
    box-shadow: 0 5px 14px rgba(91, 0, 17, .14);
}

.olymp-summary-card--pending .olymp-summary-art,
.olymp-summary-card--pending .olymp-card-arrow {
    display: none;
}

.olymp-battle-panel {
    min-height: 134px;
    grid-column: 8 / -1;
    grid-row: 1;
    padding: 13px 15px 10px;
    border: 1px solid #ffdfbf;
    border-radius: 13px;
    background: linear-gradient(125deg, #fffaf4 0%, #fff0df 100%);
    box-shadow: 0 8px 22px rgba(199, 108, 24, .11);
}

.olymp-battle-panel > header h2 {
    display: flex;
    margin: 0 0 8px;
    align-items: center;
    gap: 8px;
    color: #122f57;
    font-size: 1.08rem;
    font-weight: 800;
}

.olymp-battle-panel > header h2 i {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #ff7a13;
    color: #fff;
}

.olymp-battle-detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.olymp-battle-detail-row {
    min-height: 48px;
    padding: 4px 5px;
    grid-template-columns: 25px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 5px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .46);
}

.olymp-battle-detail-row .olymp-battle-stat-icon {
    width: 25px;
    height: 25px;
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: .75rem;
}

.olymp-battle-detail-row small {
    grid-column: 2;
    align-self: end;
    color: #7c89a0;
    font-size: .62rem;
    line-height: 1;
}

.olymp-battle-detail-row strong {
    grid-column: 2;
    align-self: start;
    margin-top: 3px;
    font-size: .76rem;
    line-height: 1.2;
}

.olymp-battle-actions {
    margin-top: 2px;
}

.olymp-battle-btn {
    min-height: 24px;
    padding: 3px 7px;
    border: 0;
    background: transparent;
    color: #e36613;
    font-size: .7rem;
}

.olymp-battle-empty {
    min-height: 72px;
    justify-content: flex-start;
}

.olymp-battle-empty > .olymp-battle-stat-icon {
    width: 42px;
    height: 42px;
}

.olymp-battle-empty strong {
    font-size: 1.02rem;
}

.olymp-battle-empty span {
    font-size: .86rem;
    line-height: 1.4;
}

.olymp-active-panel {
    min-height: 191px;
    grid-column: 1 / -1;
    grid-row: 2;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(122deg, #0879f7 0%, #0d65ec 58%, #0754d3 100%);
    box-shadow: 0 9px 24px rgba(11, 91, 218, .22);
}

.olymp-panel-ribbon,
.olymp-panel-ribbon--violet,
.olymp-panel-ribbon--aqua {
    min-height: 38px;
    padding: 8px 15px;
    background: rgba(0, 40, 139, .14);
    color: #fff;
    font-size: 1.05rem;
}

.olymp-panel-ribbon small {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.olymp-active-task-grid {
    display: block;
}

.olymp-active-task-card {
    display: grid;
    min-height: 108px;
    padding: 11px 15px 8px;
    grid-template-columns: minmax(220px, 1.45fr) minmax(180px, .85fr) minmax(105px, .48fr) minmax(150px, .6fr);
    grid-template-areas:
        "task progress metrics action"
        "leaders leaders leaders leaders";
    align-items: center;
    gap: 10px 18px;
    color: #fff;
}

.olymp-active-title-row {
    grid-area: task;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.olymp-active-title-row h2 {
    margin: 0;
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.2;
}

.olymp-target-box {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.olymp-target-box strong {
    display: none;
}

.olymp-target-box small {
    color: #d9e9ff;
    font-size: .78rem;
}

.olymp-target-box small::before {
    margin-right: 6px;
    content: "\25A3";
}

.olymp-active-progress {
    grid-area: progress;
    margin: 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(0, 45, 149, .35);
}

.olymp-active-progress > div {
    color: #dceaff;
    font-size: .72rem;
}

.olymp-active-progress > div strong {
    color: #fff;
}

.olymp-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, .22);
}

.olymp-progress-track > span {
    background: #1fe0ae;
}

.olymp-active-metrics {
    display: block;
    grid-area: metrics;
}

.olymp-metric {
    display: none;
}

.olymp-metric--score {
    position: relative;
    display: block;
    min-height: 54px;
    padding: 8px 7px 7px 42px;
    border: 0;
    background: rgba(0, 45, 149, .35);
}

.olymp-metric--score::before {
    position: absolute;
    left: 12px;
    bottom: 13px;
    width: 5px;
    height: 7px;
    background: #ffd522;
    box-shadow: 7px -4px 0 #ffd522, 14px -10px 0 #ffd522;
    content: "";
}

.olymp-metric--score span {
    color: #dceaff;
    font-size: .64rem;
}

.olymp-metric--score strong {
    color: #fff;
    font-size: 1.05rem;
}

.olymp-active-actions {
    grid-area: action;
    margin: 0;
}

.olymp-action-btn--learn {
    display: none;
}

.olymp-action-btn--practice {
    width: 100%;
    min-height: 43px;
    border-radius: 8px;
    background: #08cd8d;
    color: #fff !important;
    box-shadow: 0 7px 16px rgba(0, 56, 78, .19);
    font-size: .86rem;
}

.olymp-leaderboard-links {
    grid-area: leaders;
    margin: 0;
    gap: 12px;
}

.olymp-leaderboard-links button {
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: rgba(221, 231, 255, .92);
    color: #4131b6;
    font-size: .8rem;
}

.olymp-leaderboard-links button::after {
    margin-left: 10px;
    content: "\203A";
    font-size: 1.15em;
}

.olymp-active-task-grid--multiple {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
}

.olymp-active-task-grid--multiple .olymp-active-task-card {
    background: rgba(0, 40, 139, .25);
    border-color: rgba(255, 255, 255, .2);
}

.olymp-dashboard-screen[data-olymp-screen="pending"].is-active,
.olymp-dashboard-screen[data-olymp-screen="curriculum"].is-active {
    display: block;
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .demo-head {
        min-height: 99px;
        padding: 15px 300px 10px 0;
    }

    .olymp-head-trophy {
        right: 0;
        width: 168px;
        height: 125px;
    }

    .demo-tab-btn {
        flex: 1 1 33.333%;
    }

    .olymp-v2-dashboard {
        grid-template-columns: 1fr;
    }

    .olymp-summary-card--pending,
    .olymp-battle-panel,
    .olymp-active-panel {
        grid-column: 1;
    }

    .olymp-summary-card--pending { grid-row: 1; }
    .olymp-battle-panel { grid-row: 2; }
    .olymp-active-panel { grid-row: 3; }

    .olymp-active-task-card {
        grid-template-columns: minmax(190px, 1.1fr) minmax(160px, .8fr) minmax(95px, .45fr) minmax(135px, .55fr);
        gap: 10px;
    }
}

@media (max-width: 680px) {
    .demo-shell.container {
        width: min(100% - 20px, 1280px);
    }

    .demo-head {
        min-height: 96px;
        padding: 13px 138px 10px 0;
    }

    .demo-head-title {
        max-width: none;
        font-size: 1.35rem;
    }

    .demo-head-subcopy {
        max-width: none !important;
        font-size: .76rem !important;
        line-height: 1.25;
    }

    .olymp-head-trophy {
        top: 2px;
        right: 0;
        width: 96px;
        height: 82px;
        opacity: .78;
    }

    .demo-head-intro-actions {
        position: absolute;
        top: 16px;
        right: 0;
        width: auto;
    }

    .demo-intro-trigger {
        min-height: 36px;
        padding: 6px 9px;
        font-size: .72rem;
    }

    .demo-intro-trigger-icon {
        width: 23px;
        height: 23px;
        font-size: .75rem;
    }

    .demo-tabs {
        min-height: 55px;
        gap: 4px;
        flex-wrap: nowrap;
    }

    .demo-tab-btn {
        min-height: 55px;
        padding: 7px 5px 10px;
        width: 0;
        flex: 1 1 0;
        gap: 3px;
    }

    .olymp-tab-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: .77rem;
    }

    .demo-tab-btn .tab-main {
        font-size: .75rem;
        line-height: 1.15;
    }

    .olymp-v2-dashboard {
        gap: 10px;
        padding-top: 9px;
    }

    .olymp-summary-card--pending {
        min-height: 145px;
    }

    .olymp-summary-card--pending .olymp-summary-content {
        padding: 15px 12px;
        gap: 11px;
    }

    .olymp-summary-card--pending .olymp-summary-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 1.25rem;
    }

    .olymp-summary-card--pending .olymp-summary-copy {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .olymp-summary-card--pending .olymp-summary-label {
        font-size: .98rem;
    }

    .olymp-summary-card--pending .olymp-summary-value {
        font-size: 2rem;
    }

    .olymp-summary-card--pending .olymp-summary-note {
        padding-left: 10px;
        font-size: .74rem;
    }

    .olymp-summary-card--pending .olymp-pill-button {
        min-height: 33px;
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        margin-top: 7px;
        padding: 6px 11px;
        font-size: .74rem;
    }

    .olymp-battle-panel {
        min-height: 132px;
        padding: 11px 10px 8px;
    }

    .olymp-battle-detail-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .olymp-battle-detail-row {
        min-height: 62px;
        padding: 5px;
        grid-template-columns: 1fr;
        grid-template-rows: 24px auto auto;
        text-align: center;
    }

    .olymp-battle-detail-row .olymp-battle-stat-icon,
    .olymp-battle-detail-row small,
    .olymp-battle-detail-row strong {
        grid-column: 1;
    }

    .olymp-battle-detail-row .olymp-battle-stat-icon {
        grid-row: 1;
        justify-self: center;
    }

    .olymp-battle-detail-row small { grid-row: 2; }
    .olymp-battle-detail-row strong { grid-row: 3; font-size: .7rem; }

    .olymp-active-panel {
        min-height: 280px;
    }

    .olymp-active-task-card {
        min-height: 220px;
        padding: 12px;
        grid-template-columns: minmax(0, 1fr) 112px;
        grid-template-areas:
            "task task"
            "progress metrics"
            "action action"
            "leaders leaders";
        gap: 10px;
    }

    .olymp-active-title-row {
        flex-direction: row;
        align-items: flex-end;
    }

    .olymp-target-box {
        width: auto;
        margin-left: auto;
        text-align: right;
    }

    .olymp-action-btn--practice {
        min-height: 40px;
    }

    .olymp-active-actions {
        display: flex;
    }

    .olymp-leaderboard-links {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .olymp-leaderboard-links button {
        min-height: 38px;
        padding: 5px 7px;
        font-size: .7rem;
    }
}

@media (max-width: 390px) {
    .demo-head {
        padding-right: 116px;
    }

    .olymp-head-trophy {
        display: block;
        top: 3px;
        right: 0;
        width: 108px;
        height: 85px;
    }

    .demo-tab-btn .tab-main {
        font-size: .72rem;  
    }

    .olymp-summary-card--pending .olymp-summary-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .olymp-active-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .olymp-target-box {
        margin-left: 0;
        text-align: left;
    }
}

.olymp-tour-tooltip {
    position: fixed;
    z-index: 2147483647;
    width: min(356px, calc(100vw - 28px));
    min-width: 318px;
    max-width: calc(100vw - 28px);
    box-sizing: border-box;
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24);
    color: #475569;
    font-family: Poppins, "Segoe UI", sans-serif;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none !important;
    animation: none !important;
    pointer-events: auto;
}

.olymp-tour-tooltip__arrow {
    position: fixed;
    z-index: 2147483647;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.14));
    pointer-events: none;
}

.olymp-tour-tooltip__arrow--top {
    border-width: 0 10px 10px 10px;
    border-bottom-color: #ffffff;
}

.olymp-tour-tooltip__arrow--bottom {
    border-width: 10px 10px 0 10px;
    border-top-color: #ffffff;
}

.olymp-tour-tooltip__arrow--left {
    border-width: 10px 10px 10px 0;
    border-right-color: #ffffff;
}

.olymp-tour-tooltip__arrow--right {
    border-width: 10px 0 10px 10px;
    border-left-color: #ffffff;
}

.olymp-tour-tooltip__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
}

.olymp-tour-tooltip__guide {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.olymp-tour-tooltip__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .25);
}

.olymp-tour-tooltip__label {
    min-width: 0;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.olymp-tour-tooltip__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    cursor: pointer;
}

.olymp-tour-tooltip__body {
    padding: 2px 16px 18px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.62;
    max-height: calc(100dvh - 184px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.olymp-tour-tooltip__title {
    display: none;
}

.olymp-tour-tooltip__text {
    margin: 0;
}

.olymp-tour-tooltip__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 9px 16px 13px;
    border-top: 1px solid #edf2f7;
    border-radius: 0 0 18px 18px;
    background: #ffffff;
}

.olymp-tour-tooltip__count {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.olymp-tour-tooltip__next {
    min-width: 52px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #38a3f1 0%, #1d8ce3 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 36px;
    box-shadow: 0 7px 16px rgba(29, 140, 227, .14);
    cursor: pointer;
}

@media (max-width: 767px) {
    .olymp-tour-tooltip {
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        width: auto;
        min-width: 0;
        max-width: none;
        border-radius: 16px;
    }

    .olymp-tour-tooltip__arrow {
        display: none;
    }

    .olymp-tour-tooltip__topbar {
        gap: 8px;
        padding: 12px 12px 8px;
    }

    .olymp-tour-tooltip__avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .olymp-tour-tooltip__label {
        font-size: 13px;
        white-space: normal;
    }

    .olymp-tour-tooltip__body {
        padding: 0 12px 12px;
        font-size: 12.5px;
        line-height: 1.55;
        max-height: calc(100dvh - 150px);
    }

    .olymp-tour-tooltip__footer {
        min-height: 46px;
        padding: 8px 12px 12px;
    }
}

/* Desktop curriculum headers: keep the date beside the topic and reduce the
   closed-row height without compressing the mobile two-row layout. */
@media (min-width: 901px) {
    .olymp-curriculum-group {
        margin-bottom: 7px;
        border-radius: 10px;
    }

    .olymp-curriculum-group-head {
        min-height: 52px;
        padding: 6px 14px;
    }

    .olymp-curriculum-title {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 16px;
    }

    .olymp-curriculum-title strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .olymp-curriculum-title small {
        margin-top: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Reference-matched Olympiad home polish (2026-09-07). */
body {
    background:
        radial-gradient(circle at 8% 7%, rgba(213, 232, 255, .72) 0, rgba(213, 232, 255, 0) 19%),
        radial-gradient(circle at 88% 16%, rgba(239, 221, 255, .58) 0, rgba(239, 221, 255, 0) 20%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 62%);
}

.demo-shell.container {
    width: min(100% - 28px, 1760px);
    max-width: 1760px;
}

.demo-head {
    /* min-height: 146px; */
    padding: 22px 260px 12px 0;
    isolation: isolate;
}

.demo-head::before,
.demo-head::after {
    position: absolute;
    z-index: -1;
    border-radius: 48% 52% 58% 42%;
    content: "";
    pointer-events: none;
}

.demo-head::before {
    top: 14px;
    right: 39%;
    width: 160px;
    height: 105px;
    background: rgba(219, 237, 255, .55);
    transform: rotate(-12deg);
}

.demo-head::after {
    right: 12%;
    bottom: -32px;
    width: 205px;
    height: 85px;
    background: rgba(242, 222, 255, .52);
}

.demo-head-title {
    font-size: clamp(2rem, 2.55vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.demo-head-subcopy {
    margin-top: 7px;
    color: #637696;
    font-size: 1rem;
    font-weight: 700;
}

.olymp-head-student {
    position: absolute;
    z-index: 2;
    right: 265px;
    bottom: 0;
    width: 155px;
    height: 100px;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
}

.olymp-head-encouragement {
    position: absolute;
    z-index: 3;
    right: 416px;
    top: 47px;
    display: flex;
    flex-direction: column;
    color: #1f3970;
    font-family: "Comic Sans MS", "Segoe Print", cursive;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.12;
    transform: rotate(-7deg);
}

.olymp-head-encouragement::after {
    width: 78px;
    height: 10px;
    margin: 7px 0 0 18px;
    border-bottom: 3px solid #ff5a7f;
    border-radius: 50%;
    content: "";
    transform: rotate(-4deg);
}

.olymp-head-trophy {
    top: 5px;
    right: 0;
    width: 145px;
    height: 116px;
}

.demo-head-intro-actions {
    top: 42px;
}

.demo-intro-trigger {
    min-height: 48px;
    padding: 9px 20px;
    border: 1px solid rgba(116, 95, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    color: #4934d5;
    box-shadow: 0 10px 26px rgba(87, 65, 203, .15);
    backdrop-filter: blur(10px);
}

.demo-intro-trigger:hover,
.demo-intro-trigger:focus {
    color: #4934d5;
}

.demo-intro-trigger-icon {
    background: #fff7c9;
}

.demo-tabs {
    min-height: 57px;
    gap: 12px;
    border-bottom: 0;
}

.demo-tab-btn {
    min-height:unset;
    flex-basis: unset;
    border: 1px solid #e0e8f3;
    border-radius: 9px 9px 0 0;
    background: rgba(248, 250, 255, .78);
    box-shadow: 0 5px 14px rgba(29, 62, 107, .04);
}

.demo-tab-btn.active {
    border-color: #bcebdc;
    background: #effbf7;
    color: #05b981;
}

.demo-tab-btn::after {
    bottom: -1px;
    height: 4px;
    background: #13c894;
}

.olymp-v2-dashboard {
    gap: 14px;
    padding-top: 12px;
}

.olymp-summary-card--pending {
    min-height: unset;
    border: 1px solid #ff9a83;
    border-radius: 15px;
    background: linear-gradient(123deg, #ff7f61 0%, #ff5762 43%, #f32258 100%);
    box-shadow: 0 10px 26px rgba(237, 55, 82, .17);
}

.olymp-summary-card--pending::before {
    right: 118px;
    bottom: -102px;
    width: 245px;
    height: 245px;
    background: rgba(255, 255, 255, .1);
}

.olymp-summary-card--pending::after {
    right: -12px;
    bottom: -102px;
    background: rgba(109, 30, 100, .11);
}

.olymp-summary-card--pending .olymp-summary-content {
    padding: 20px 22px;
}

.olymp-summary-card--pending .olymp-summary-icon {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    background: rgba(221, 20, 66, .72);
    font-size: 1.9rem;
}

.olymp-summary-card--pending .olymp-summary-label {
    font-size: 1.08rem;
}

.olymp-summary-card--pending .olymp-summary-value {
    font-size: 2.7rem;
}

.olymp-summary-message {
    display: flex;
    flex-direction: column;
}

.olymp-summary-card--pending .olymp-summary-note {
    margin-top: 3px;
    font-size: .93rem;
}

.olymp-summary-message small {
    margin: 3px 0 0 18px;
    color: rgba(255, 255, 255, .82);
    font-size: .7rem;
    font-weight: 600;
}

.olymp-summary-card--pending .olymp-pill-button {
    z-index: 3;
    min-height: 44px;
    padding-inline: 21px;
    border-radius: 999px;
    font-weight: 700;
}

.olymp-summary-card--pending .olymp-summary-art {
    display: block;
    right: 16px;
    bottom: -18px;
    width: 142px;
    height: 132px;
    opacity: .18;
    filter: saturate(.4) brightness(1.5);
}

.olymp-battle-panel {
    position: relative;
    min-height: unset;
    padding: 14px 18px 10px;
    border-color: #ffdba7;
    border-radius: 15px;
    background: linear-gradient(125deg, #fffdf8 0%, #fff4db 100%);
}

.olymp-battle-panel::after {
    position: absolute;
    z-index: 0;
    top: 12px;
    right: 19px;
    color: #ffb51d;
    font-size: 3.3rem;
    content: "\1F3C6";
    filter: drop-shadow(0 7px 8px rgba(211, 132, 12, .15));
    opacity: .9;
}

.olymp-battle-panel > header,
.olymp-battle-detail-list,
.olymp-battle-actions,
.olymp-battle-empty {
    position: relative;
    z-index: 1;
}

.olymp-battle-panel > header h2 {
    margin-bottom: 1px;
}

.olymp-battle-panel > header p {
    margin: 0 0 8px 37px;
    color: #667a98;
    display:none;
    font-size: .68rem;
    font-weight: 600;
}

.olymp-battle-detail-list {
    padding-right: 0;
    gap: 8px;
}

.olymp-battle-detail-row {
    min-height: 49px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 235, 204, .76);
    background: rgba(255, 255, 255, .88);
}

.olymp-battle-btn {
    font-weight: 800;
}

.olymp-active-panel {
    position: relative;
    min-height: 218px;
    border: 1px solid #51aaff;
    border-radius: 15px;
    background: linear-gradient(123deg, #0874f7 0%, #078cf6 58%, #0960e3 100%);
    box-shadow: 0 12px 28px rgba(6, 102, 223, .2);
}

.olymp-active-panel::before,
.olymp-active-panel::after {
    position: absolute;
    z-index: 0;
    content: "";
    pointer-events: none;
}

.olymp-active-panel::before {
    top: -46px;
    left: 29%;
    width: 330px;
    height: 260px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%);
    transform: rotate(40deg);
}

.olymp-active-panel::after {
    inset: 0;
    background-image:
        radial-gradient(circle at 52% 20%, rgba(255,255,255,.65) 0 1px, transparent 2px),
        radial-gradient(circle at 84% 27%, rgba(255,255,255,.45) 0 1px, transparent 2px),
        radial-gradient(circle at 26% 65%, rgba(255,255,255,.28) 0 1px, transparent 2px);
}

.olymp-panel-ribbon,
.olymp-panel-ribbon--violet,
.olymp-panel-ribbon--aqua {
    position: relative;
    z-index: 1;
    min-height: 58px;
    padding: 9px 20px;
    background: rgba(0, 54, 170, .18);
}

.olymp-panel-ribbon-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.olymp-panel-ribbon-copy strong {
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.15;
}

.olymp-panel-ribbon-copy strong i {
    margin-right: 8px;
    color: #ffd54a;
}

.olymp-panel-ribbon-copy > span {
    padding-left: 28px;
    color: #dcecff;
    font-size: .78rem;
    font-weight: 550;
}

.olymp-panel-ribbon > small {
    min-width: 105px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(53, 159, 255, .62);
    font-size: .68rem;
}

.olymp-panel-ribbon > small::before {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background: #38ed7c;
    box-shadow: 0 0 8px rgba(56, 237, 124, .9);
    content: "";
}

.olymp-active-task-grid {
    position: relative;
    z-index: 1;
}

.olymp-active-task-card {
    min-height: 145px;
    margin: 0 18px 12px;
    padding: 10px 12px 8px;
    grid-template-columns: minmax(275px, 1.45fr) minmax(205px, .85fr) minmax(145px, .58fr) minmax(190px, .8fr);
    border: 1px solid rgba(190, 224, 255, .38);
    border-radius: 13px;
    background: rgba(0, 79, 205, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}

.olymp-active-title-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 0px;
}

.olymp-active-focus-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    grid-row: 1;
    border-radius: 50%;
    background: #eef8ff;
    color: #1183ea;
    box-shadow: 0 7px 18px rgba(0, 47, 133, .18);
    font-size: 1.6rem;
}

.olymp-active-focus-icon i::before {
    content: "\1F4D6";
}

.olymp-active-focus-copy {
    min-width: 0;
}

.olymp-active-title-row h2 {
    font-size: 1.3rem;
}

.olymp-target-box {
    margin-top: 5px;
}

.olymp-target-box small {
    color: #f0f6ff;
    font-size: .82rem;
}

.olymp-active-progress,
.olymp-metric--score {
    min-height: 62px;
    border: 1px solid rgba(180, 218, 255, .14);
    background: rgba(0, 65, 181, .5);
}

.olymp-active-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 8px;
}

.olymp-action-btn--learn {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
    color: #fff !important;
    font-size: .86rem;
    box-shadow: none;
}

.olymp-action-btn--learn::before {
    margin-right: 7px;
    content: "\1F4D8";
}

.olymp-action-btn--practice {
    min-height: 48px;
    background: linear-gradient(135deg, #12d68e, #00bf80);
    font-size: .92rem;
    font-weight: 800;
}

.olymp-action-btn--practice i::before {
    content: "\25B6";
}

.olymp-leaderboard-links {
    display: flex;
    justify-content: center;
}

.olymp-leaderboard-links button {
    min-height: 38px;
    background: rgba(241, 248, 255, .94);
    color: #2f3ec5;
    font-size: .82rem;
    font-weight: 800;
    min-width:290px;
}

@media (max-width: 1100px) {
    .olymp-head-student {
        right: 225px;
        width: 155px;
    }

    .olymp-head-encouragement {
        right: 375px;
        font-size: .78rem;
    }

    .olymp-active-task-card {
        grid-template-columns: minmax(240px, 1.25fr) minmax(165px, .8fr) minmax(125px, .55fr) minmax(165px, .72fr);
        gap: 9px;
    }
}

@media (max-width: 900px) {
    .demo-head {
        min-height: 112px;
        padding-right: 230px;
    }

    .olymp-head-student,
    .olymp-head-encouragement {
        display: none;
    }

    .olymp-summary-card--pending,
    .olymp-battle-panel {
        min-height: 150px;
    }

    .olymp-active-task-card {
        grid-template-columns: minmax(220px, 1.1fr) minmax(165px, .8fr) minmax(120px, .55fr) minmax(155px, .7fr);
    }
}

@media (max-width: 680px) {
    body {
        background: linear-gradient(180deg, #f5f9ff 0%, #fff 58%);
    }

    .demo-head {
        min-height: unset;
        padding:unset;
    }

    .demo-head-intro-actions {
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
    }

    .demo-intro-trigger {
        min-height: 36px;
        padding: 6px 8px;
        gap: 5px;
        font-size: .66rem;
    }

    .demo-intro-trigger-icon {
        width: 20px;
        height: 20px;
        font-size: .68rem;
    }

    .demo-head::before,
    .demo-head::after {
        display: none;
    }

    .demo-head-title {
        font-size: 1.45rem;
    }

    .demo-head-subcopy {
        font-size: .8rem !important;
    }

    .demo-tabs {
        gap: 5px;
    }

    .demo-tab-btn {
        padding-inline: 3px;
    }

    .olymp-summary-card--pending {
        min-height: 174px;
    }

    .olymp-summary-card--pending .olymp-summary-content {
        align-items: flex-start;
    }

    .olymp-summary-card--pending .olymp-summary-art {
        display: none;
    }

    .olymp-summary-message small {
        margin-left: 10px;
        font-size: .66rem;
    }

    .olymp-battle-panel {
        min-height: 165px;
    }

    .olymp-battle-panel::after {
        top: 9px;
        right: 10px;
        font-size: 2.4rem;
        opacity: .42;
    }

    .olymp-battle-panel > header p {
        max-width: 245px;
        margin-left: 0;
        font-size: .7rem;
    }

    .olymp-active-panel {
        min-height: 365px;
    }

    .olymp-panel-ribbon-copy > span {
        max-width: 230px;
        padding-left: 0;
        font-size: .68rem;
    }

    .olymp-panel-ribbon > small {
        min-width: 84px;
        padding-inline: 8px;
        display:none;
    }

    .olymp-active-task-card {
        min-height: 280px;
        margin: 0 9px 9px;
        grid-template-columns: minmax(0, 1fr) 112px;
        grid-template-areas:
            "task task"
            "progress metrics"
            "action action"
            "leaders leaders";
    }

    .olymp-active-title-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .olymp-active-focus-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .olymp-active-title-row h2 {
        font-size: 1.05rem;
    }

    .olymp-active-actions {
        grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    }

    .olymp-action-btn--learn,
    .olymp-action-btn--practice {
        min-height: 43px;
    }
}

@media (max-width: 420px) {
    .demo-head-title {
        font-size: 1.28rem;
    }

    .demo-head-subcopy {
        font-size: .72rem !important;
    }

    .olymp-summary-card--pending .olymp-summary-label {
        font-size: .9rem;
    }

    .olymp-summary-card--pending .olymp-summary-note {
        font-size: .69rem;
    }

    .olymp-panel-ribbon {
        align-items: flex-start;
    }

    .olymp-panel-ribbon-copy > span {
        max-width: 190px;
        display:none;
    }

    .olymp-leaderboard-links {
        display:grid;
        gap:10px;
        grid-template-columns: 1fr;
    }
}

/* Pending assignments: higher contrast and a compact, deliberate mobile layout. */
.olymp-summary-card--pending {
    background: linear-gradient(123deg, #ee5e55 0%, #ef3f59 48%, #d9164e 100%);
}

.olymp-summary-card--pending .olymp-summary-label,
.olymp-summary-card--pending .olymp-summary-value,
.olymp-summary-card--pending .olymp-summary-note,
.olymp-summary-card--pending .olymp-summary-message small {
    color: #fff;
    text-shadow: 0 1px 1px rgba(92, 0, 29, .24);
}

.olymp-summary-card--pending .olymp-summary-label {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
}

.olymp-summary-card--pending .olymp-summary-value {
    font-size: 3rem;
    font-weight: 850;
}

.olymp-summary-card--pending .olymp-summary-note {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.olymp-summary-card--pending .olymp-summary-message small {
    color: rgba(255, 255, 255, .96);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
}

.olymp-summary-card--pending .olymp-pill-button {
    font-size: .94rem;
}

@media (max-width: 680px) {
    .olymp-summary-card--pending {
        grid-row: 1;
    }

    .olymp-active-panel {
        grid-row: 2;
    }

    .olymp-battle-panel {
        grid-row: 3;
    }

    .olymp-summary-card--pending {
        min-height: 128px;
    }

    .olymp-summary-card--pending .olymp-summary-content {
        height: auto;
        min-height: 126px;
        padding: 10px 15px;
        align-items: center;
        gap: 0;
    }

    .olymp-summary-card--pending .olymp-summary-icon {
        display: none;
    }

    .olymp-summary-card--pending .olymp-summary-copy {
        display: grid;
        min-width: 0;
        grid-template-columns: 50px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "pending-label pending-label"
            "pending-value pending-message"
            "pending-button pending-button";
        column-gap: 10px;
        row-gap: 4px;
    }

    .olymp-summary-card--pending .olymp-summary-label {
        grid-area: pending-label;
        font-size: 1.06rem;
        line-height: 1.15;
        white-space: normal;
    }

    .olymp-summary-card--pending .olymp-pending-summary-main {
        display: contents;
    }

    .olymp-summary-card--pending .olymp-summary-value {
        grid-area: pending-value;
        align-self: center;
        margin: 0;
        font-size: 2.35rem;
        line-height: .95;
    }

    .olymp-summary-card--pending .olymp-summary-message {
        grid-area: pending-message;
        min-width: 0;
        align-self: center;
    }

    .olymp-summary-card--pending .olymp-summary-note {
        margin: 0;
        padding-left: 9px;
        font-size: .84rem;
        line-height: 1.2;
    }

    .olymp-summary-card--pending .olymp-summary-message small {
        margin: 2px 0 0 9px;
        font-size: .68rem;
        line-height: 1.25;
    }

    .olymp-summary-card--pending .olymp-pill-button {
               min-height: 36px;
        grid-area: pending-button;
        justify-self: start;
        margin: 2px 0 0;
        padding: 7px 15px;
        font-size: .84rem;
        line-height: 1.1;
        width: 100%;
        font-weight: 600;
    }
}

@media (max-width: 370px) {
    .olymp-summary-card--pending .olymp-summary-content {
        padding-inline: 13px;
    }

    .olymp-summary-card--pending .olymp-summary-label {
        font-size: 1.2rem;
        text-align:center;
        font-weight:700;
    }

    .olymp-summary-card--pending .olymp-summary-note {
        font-size: .78rem;
    }

    .olymp-summary-card--pending .olymp-summary-message small {
        font-size: .64rem;
    }
}

/* Keep the tour dismiss control inside the clipped dashboard hero. */
.demo-head-intro-actions {
    right: 10px;
}

.demo-intro-dismiss {
    top: -9px;
    right: -6px;
    z-index: 6;
    box-sizing: border-box;
}

@media (max-width: 680px) {
    .demo-head-intro-actions {
        right: 8px;
        display:none;
    }

    .demo-intro-dismiss {
        top: -7px;
        right: -5px;
    }
}

/* Compact pending-task list with direct, accessible column sorting. */
.olymp-pending-detail .olymp-detail-hero {
    padding: 13px 24px 14px;
}

.olymp-pending-detail .olymp-detail-heading {
    margin-top: 13px;
}

.olymp-pending-detail .olymp-detail-heading h2 {
    font-size: 1.65rem;
}

.olymp-pending-detail .olymp-detail-heading img {
    right: 20px;
    bottom: -34px;
    width: 170px;
    height: 112px;
}

.olymp-pending-layout {
    padding: 12px 20px 16px;
}

.olymp-pending-table-head,
.olymp-pending-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(105px, .65fr) minmax(135px, .9fr) minmax(210px, 1fr);
    gap: 14px;
}

.olymp-pending-table-head {
    min-height: 38px;
    padding: 0 14px;
    font-size: .72rem;
}

.olymp-pending-table-head > button,
.olymp-pending-table-head > span {
    display: inline-flex;
    min-width: 0;
    height: 100%;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #60748e;
    font: inherit;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: left;
}

.olymp-pending-table-head > button {
    cursor: pointer;
}

.olymp-pending-table-head > button i {
    display: none;
}

.olymp-pending-table-head > button::after {
    color: #94a3b8;
    content: "\2195";
    font-size: .9rem;
    line-height: 1;
}

.olymp-pending-table-head > button:hover,
.olymp-pending-table-head > button:focus-visible,
.olymp-pending-table-head > button.is-active {
    color: #5234dd;
}

.olymp-pending-table-head > button:focus-visible {
    outline: 2px solid rgba(82, 52, 221, .28);
    outline-offset: 3px;
}

.olymp-pending-table-head > button.is-active[data-sort-direction="asc"]::after {
    color: #5234dd;
    content: "\2191";
}

.olymp-pending-table-head > button.is-active[data-sort-direction="desc"]::after {
    color: #5234dd;
    content: "\2193";
}

.olymp-pending-row {
    min-height: 64px;
    padding: 7px 14px;
}

.olymp-pending-topic-cell {
    gap: 11px;
}

.olymp-pending-topic-cell .olymp-topic-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.olymp-pending-topic-cell strong {
    font-size: .94rem;
}

.olymp-pending-topic-cell small {
    margin-top: 1px;
    font-size: .7rem;
}

.olymp-pending-progress-cell {
    display: flex;
    align-items: center;
}

.olymp-pending-progress-cell > span {
    color: #405a79;
    font-size: .8rem;
    font-weight: 700;
}

.olymp-pending-date-cell {
    gap: 7px;
}

.olymp-pending-date-cell strong {
    color: #17365c;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.olymp-pending-action-cell {
    gap: 8px;
}

.olymp-pending-action-cell .olymp-row-btn {
    min-height: 34px;
    padding: 6px 13px;
    font-size: .78rem;
}

@media (max-width: 680px) {
    .olymp-pending-detail .olymp-detail-hero {
        padding: 11px 14px 12px;
    }

    .olymp-pending-detail .olymp-detail-heading {
        margin-top: 11px;
    }

    .olymp-pending-detail .olymp-detail-heading h2 {
        font-size: 1.28rem;
    }

    .olymp-pending-detail .olymp-detail-heading p {
        margin-top: 3px;
        font-size: .76rem;
    }

    .olymp-pending-detail .olymp-detail-heading img {
        display: none;
    }

    .olymp-pending-layout {
        padding: 8px;
    }

    .olymp-pending-row {
        min-height: 0;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "pending-topic pending-topic"
            "pending-progress pending-date"
            "pending-actions pending-actions";
        gap: 7px 0;
        margin-bottom: 8px;
        padding: 10px 12px;
    }

    .olymp-pending-topic-cell {
        grid-area: pending-topic;
    }

    .olymp-pending-progress-cell {
        grid-area: pending-progress;
        white-space: nowrap;
    }

    .olymp-pending-date-cell {
        grid-area: pending-date;
        justify-self: start;
        gap: 6px;
        white-space: nowrap;
    }

    .olymp-pending-date-cell::before {
        color: #a1aec0;
        content: "|";
        font-weight: 700;
    }

    .olymp-pending-date-cell > i {
        display: none;
    }

    .olymp-pending-progress-cell > span,
    .olymp-pending-date-cell strong {
        font-size: .75rem;
    }

    .olymp-pending-action-cell {
        grid-area: pending-actions;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .olymp-pending-action-cell .olymp-row-btn {
        min-height: 34px;
        padding: 6px 14px;
        flex: 0 1 auto;
    }
}

/* Battle join CTA: revealed only during the server-defined live window. */
.olymp-battle-btn--join {
    min-height: 34px;
    padding: 7px 15px;
    background: linear-gradient(135deg, #08c879 0%, #00a968 100%);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(0, 169, 104, .22);
}

.olymp-battle-btn--join:hover,
.olymp-battle-btn--join:focus-visible {
    color: #fff !important;
    filter: brightness(1.04);
}

.olymp-battle-btn--join[hidden] {
    display: none !important;
}

.olymp-battle-panel.is-live {
    border-color: #74d9a8;
    box-shadow: 0 10px 26px rgba(0, 169, 104, .12);
}

@media (max-width: 680px) {
    .olymp-battle-btn--join {
        width: 100%;
        min-height: 40px;
        font-size: .82rem;
    }
}

/* Mobile curriculum: remove repeated progress visuals and use compact rows. */
@media (max-width: 680px) {
    .olymp-curriculum-detail {
        padding-bottom: 10px;
    }

    .olymp-curriculum-accordion {
        padding: 6px 4px 0;
    }

    .olymp-curriculum-group {
        margin-bottom: 6px;
        border-radius: 10px;
    }

    .olymp-curriculum-group-head {
        min-height: 56px;
        grid-template-columns: 32px minmax(0, 1fr) 22px;
        grid-template-rows: auto;
        gap: 8px;
        padding: 7px 10px;
        align-items: center;
    }

    .olymp-curriculum-group-head .olymp-topic-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 8px;
        font-size: .72rem;
    }

    .olymp-curriculum-title {
        min-width: 0;
        line-height: 1.18;
    }

    .olymp-curriculum-title strong {
        font-size: .94rem;
        line-height: 1.2;
    }

    .olymp-curriculum-title small {
        margin-top: 3px;
        font-size: .68rem;
        line-height: 1.15;
    }

    .olymp-group-progress {
        display: none;
    }

    .olymp-group-chevron {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        font-size: .8rem;
    }

    .olymp-curriculum-row {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "curriculum-name curriculum-name"
            "curriculum-status curriculum-action";
        gap: 6px 10px;
        padding: 8px 10px;
    }

    .olymp-curriculum-name {
        grid-area: curriculum-name;
        gap: 8px;
    }

    .olymp-curriculum-name > i {
        margin-top: 6px;
    }

    .olymp-curriculum-name strong {
        font-size: .82rem;
        line-height: 1.25;
    }

    .olymp-curriculum-name small {
        margin-top: 2px;
        font-size: .65rem;
        line-height: 1.15;
    }

    .olymp-curriculum-progress {
        display: none;
    }

    .olymp-curriculum-status {
        grid-area: curriculum-status;
        align-self: center;
    }

    .olymp-curriculum-action {
        grid-area: curriculum-action;
        align-self: center;
        justify-content: flex-end;
    }

    .olymp-status-pill {
        min-height: 21px;
        padding: 3px 9px;
        font-size: .62rem;
    }

    .olymp-curr-action {
        min-height: 28px;
        padding: 4px 10px;
        font-size: .64rem;
    }

    .olymp-curriculum-name > div {
        display: flex;
        min-width: 0;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 2px 8px;
    }

    .olymp-curriculum-name small {
        margin-top: 0;
    }

    .olymp-group-chevron {
        width: 9px;
        height: 9px;
        margin: 4px 3px 0 0;
        align-self: start;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        font-size: 0;
        transform: rotate(45deg);
    }

    .olymp-group-chevron::before {
        content: "" !important;
    }

    .olymp-curriculum-group.is-open .olymp-group-chevron {
        margin-top: 9px;
        transform: rotate(225deg);
    }
}

@media (max-width: 360px) {
    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
    }

    .demo-shell.container,
    .olymp-dashboard-shell,
    .olymp-curriculum-detail {
        min-width: 0;
        max-width: 100%;
    }
}

/* Future-batch state: the shared active panel is blue, so this state needs
   explicit high-contrast type instead of the white-card text palette. */
.olymp-active-panel.olymp-active-panel--starts-soon {
    min-height: 176px;
    border-color: #4cb9ff;
    background:
        radial-gradient(circle at 82% 28%, rgba(255, 218, 74, .2), transparent 20%),
        linear-gradient(120deg, #075edb 0%, #078bf3 55%, #6046e8 100%);
    box-shadow: 0 14px 30px rgba(20, 91, 210, .24);
}

.olymp-active-panel--starts-soon .olymp-panel-ribbon {
    min-height: 48px;
    padding: 9px 20px;
    background: rgba(5, 42, 129, .32);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.olymp-active-panel--starts-soon .olymp-panel-ribbon > span {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 850;
}

.olymp-active-panel--starts-soon .olymp-panel-ribbon > span i {
    margin-right: 8px;
    color: #ffe15a;
}

.olymp-active-panel--starts-soon .olymp-panel-ribbon > small {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.olymp-active-panel--starts-soon .olymp-active-inner--starts-soon {
    position: relative;
    z-index: 1;
    min-height: 126px;
    padding: 18px 28px;
}

.olymp-active-panel--starts-soon .olymp-starts-soon-copy h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 850;
    letter-spacing: -.015em;
    text-shadow: 0 2px 8px rgba(0, 34, 102, .2);
}

.olymp-active-panel--starts-soon .olymp-starts-soon-copy p {
    max-width: 720px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .94);
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.4;
}

.olymp-active-panel--starts-soon .olymp-target-box--starts-soon {
    min-width: 220px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 9px 22px rgba(9, 45, 128, .18);
}

.olymp-active-panel--starts-soon .olymp-target-box--starts-soon span {
    color: #6552df;
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.olymp-active-panel--starts-soon .olymp-target-box--starts-soon strong {
    display: block;
    margin: 3px 0;
    color: #102f58;
    font-size: 1.16rem;
    font-weight: 850;
}

.olymp-active-panel--starts-soon .olymp-target-box--starts-soon small {
    color: #526986;
    font-size: .7rem;
    font-weight: 700;
}

@media (max-width: 680px) {
    .olymp-active-panel.olymp-active-panel--starts-soon {
        min-height: 0;
    }

    .olymp-active-panel--starts-soon .olymp-panel-ribbon {
        min-height: 44px;
        padding: 8px 13px;
    }

    .olymp-active-panel--starts-soon .olymp-panel-ribbon > span {
        font-size: .94rem;
    }

    .olymp-active-panel--starts-soon .olymp-panel-ribbon > small {
        display: inline-flex;
        min-width: 0;
        padding: 5px 8px;
        font-size: .58rem;
    }

    .olymp-active-panel--starts-soon .olymp-active-inner--starts-soon {
        min-height: 0;
        padding: 14px;
        gap: 11px;
    }

    .olymp-active-panel--starts-soon .olymp-starts-soon-copy h2 {
        font-size: 1.08rem;
        line-height: 1.25;
    }

    .olymp-active-panel--starts-soon .olymp-starts-soon-copy p {
        margin-top: 5px;
        font-size: .76rem;
        line-height: 1.35;
    }

    .olymp-active-panel--starts-soon .olymp-target-box--starts-soon {
        display: grid;
        min-width: 0;
        width: 100%;
        padding: 8px 11px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        text-align: left;
    }

    .olymp-active-panel--starts-soon .olymp-target-box--starts-soon span,
    .olymp-active-panel--starts-soon .olymp-target-box--starts-soon small {
        grid-column: 1;
    }

    .olymp-active-panel--starts-soon .olymp-target-box--starts-soon strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
        font-size: .94rem;
        white-space: nowrap;
    }
}
