.ij-page .rl-header { height: 71px; }
.ij-page .ij-war-report + .exam-download { margin-top: 20px; }
.ij-bank { display: flex; flex-direction: column; min-height: calc(100vh - 107px); }
.rl-page .ij-bank .ij-filters { padding-bottom: 18px; border-radius: 12px; }
.rl-page .ij-bank .rl-subjects a { font-weight: 500; }
.rl-page .ij-bank .rl-sources a { padding: 6px 12px; }
.rl-page .ij-filters .rl-filter-heading { gap: 20px; }
.rl-page .ij-filters .rl-help { margin-left: auto; }
.rl-page .ij-help .ij-help-panel { width: 290px; }
.ij-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
}
.ij-filters .rl-source-row + .ij-filter-row { padding-top: 0; }
.ij-filter-row .rl-sources { flex-wrap: wrap; }
.ij-topic-filter { display: flex; align-items: center; gap: 14px; }
.ij-topic-filter summary { list-style: none; cursor: pointer; }
.ij-topic-filter summary::-webkit-details-marker { display: none; }
.rl-page .ij-topic-filter .jj-hit-options {
    left: auto;
    right: -8px;
    width: 160px;
    max-height: 374px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #dce0e5 transparent;
}
.rl-page .ij-topic-filter .jj-option { overflow-wrap: anywhere; white-space: normal; }
.ij-count { color: #8a9db9; white-space: nowrap; }
.ij-count strong { color: #1769ff; font-weight: 500; }
.rl-page .ij-filters .ij-filter-notice { margin-top: 10px; color: #7589a1; }
.rl-page .ij-filters .ij-filter-notice a { color: #1769ff; }
.rl-page .ij-resume { margin: 16px 0 0; padding: 14px 19px; border-radius: 12px; min-height: 80px; }
.rl-page .ij-resume .rl-resume-progress { flex-basis: 150px; }
.rl-page .ij-resume .rl-button { margin-left: 0; padding: 7px 16px; }
.ij-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.ij-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 181px;
    padding: 15px 19px;
    border: 1px solid #dfe7f3;
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.ij-card:hover,
.ij-card:focus-within {
    border-color: #bfd5ff;
    box-shadow: 0 10px 24px #1769ff12;
}
.ij-card-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 22px; margin-bottom: 10px; }
.ij-card-tags span {
    padding: 1px 8px;
    border-radius: 6px;
    background: #f2f6fa;
    color: #71839a;
    font-size: 12px;
    line-height: 20px;
}
.ij-card-tags .ij-new {
    margin-left: auto;
    background: linear-gradient(100deg, #ffa034, #ff641c);
    box-shadow: 0 3px 8px #ff8b3438;
    color: #fff;
    font-weight: 500;
}
.rl-page .ij-card h2 { font-size: 16px; font-weight: 500; color: #1f2a39; line-height: 23px; overflow-wrap: anywhere; }
.ij-card-stats { display: flex; flex-wrap: wrap; gap: 4px 11px; margin: 8px 0 15px; color: #879bb6; font-size: 14px; line-height: 20px; }
.ij-card-stats:empty { margin-top: 0; }
.ij-card-stats span { white-space: nowrap; }
.ij-card-stats strong { color: #617796; font-weight: 400; }
.ij-card-stats .ij-hot { color: #f1812a; }
.ij-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #e4ebf6;
    color: #8296b0;
    font-size: 14px;
}
.rl-page .ij-card-footer p { margin-right: auto; }
.ij-card-footer strong { color: #263448; font-weight: 500; }
.ij-answered { white-space: nowrap; }
.rl-page .ij-card-footer .ij-practice,
.rl-page .ij-card-footer .ij-sample {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-left: auto;
    padding: 5px 16px;
    border: 0;
    border-radius: 18px;
    background: #edf3ff;
    color: #1769ff;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}
.rl-page .ij-card-footer .ij-answered + .ij-practice,
.rl-page .ij-card-footer .ij-sample + .ij-practice { margin-left: 0; }
.rl-page .ij-card-footer .ij-sample { position: relative; z-index: 1; }
.ij-card [data-ij-practice]::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.rl-page .ij-card:hover .ij-practice:not(:disabled),
.rl-page .ij-card:focus-within .ij-practice:not(:disabled) {
    background: linear-gradient(105deg, #1769ff, #38a8ff);
    box-shadow: 0 4px 8px #1769ff26;
    color: #fff;
}
.rl-page .ij-card-footer .ij-practice:disabled { background: #f4f6f9; color: #8998ad; cursor: default; }
.ij-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px 0; color: #62748e; }
.rl-page .ij-pagination a { padding: 6px 12px; border: 1px solid #e3eaf3; border-radius: 6px; background: #fff; color: #1769ff; }
.rl-page .ij-empty { margin-top: 16px; }
.rl-page .ij-empty:not([role="alert"]) { padding: 44px 0; border: 0; background: none; color: #263448; }
.rl-page .ij-empty img { display: block; margin: 0 auto 16px; }

.rl-page .ij-war-report {
    padding: 14px 16px 17px;
    border-radius: 12px;
    background: linear-gradient(178deg, #cdddfb, #eef6ff 32%, #fff 61%);
    box-shadow: 0 6px 20px #1f314b0d;
    color: #687e9e;
    font-size: 12px;
}
.rl-page .ij-war-report h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #263448;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}
.ij-war-report h2::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: #2384ff; }
.ij-report-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    background: #f5f8fce8;
    line-height: 20px;
}
.ij-report-summary span:first-child { color: #263448; font-size: 14px; font-weight: 500; }
.ij-report-summary strong { color: #1769ff; font-size: 16px; font-weight: 500; }
.ij-month-history { margin: 24px 0 0; }
.ij-chart { display: flex; gap: 8px; height: 88px; }
.ij-chart-scale { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: #8296b0; line-height: 1; }
.ij-months {
    display: grid;
    grid-template-columns: repeat(var(--ij-month-count, 6), minmax(0, 1fr));
    flex: 1;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #dce7f3;
    background: repeating-linear-gradient(to right, #e4ebf6 0 4px, transparent 4px 8px) top / 100% 1px no-repeat,
        repeating-linear-gradient(to right, #e4ebf6 0 4px, transparent 4px 8px) center / 100% 1px no-repeat;
    list-style: none;
}
.ij-months li { position: relative; display: flex; justify-content: center; align-items: flex-end; min-width: 0; }
.ij-bar {
    position: relative;
    width: min(52%, 18px);
    height: var(--ij-bar-height);
    border-radius: 4px 4px 0 0;
    background: #4a9bf4;
}
.ij-months li:last-child .ij-bar { background: #1769ff; box-shadow: 0 0 9px #1769ff30; }
.ij-bar strong {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0 4px;
    border-radius: 4px;
    background: #1769ff;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 17px;
}
.ij-month { position: absolute; top: calc(100% + 5px); color: #8195ae; white-space: nowrap; }
.ij-month-history figcaption { margin-top: 37px; color: #71839a; }
.ij-report-recent { margin-top: 24px; }
.ij-categories { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.ij-donut {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--ij-category-colors));
    mask-image: radial-gradient(circle, transparent 41%, #000 42%);
}
.ij-legend { display: grid; flex: 1 1 auto; gap: 7px; min-width: 0; padding: 0; margin: 0; list-style: none; }
.ij-legend li { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.ij-legend-key { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--ij-key); }
.ij-legend-label { color: #35445c; overflow-wrap: anywhere; }
.ij-legend li::after { content: ''; flex: 1 1 14px; border-top: 1px dashed #e0e9f4; }
.ij-legend-value { order: 1; color: #71839a; white-space: nowrap; }
.rl-page .ij-war-report .ij-report-notice { margin-top: 10px; color: #71839a; }
.ij-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ij-bank .jj-list-claim { margin: auto auto 0; padding-top: 16px; }
.rl-page .ij-bank .jj-claim-button { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }
.ij-claim-icon { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #fff0d0; }
[data-jj-open="assistant"] .ij-claim-icon {
    background: radial-gradient(circle at 47% 33%, #ff8525 0 3px, transparent 3.5px),
        radial-gradient(ellipse 6px 4px at 47% 72%, #ff8525 94%, transparent) #fff0d0;
}
[data-jj-open="membership"] .ij-claim-icon { background: #fff0d0 url('../account-benefits/member-active.png') center / 14px no-repeat; }
.rl-page .jj-assistant.ij-assistant { background-image: url('images/assistant-background.png'); }
.ij-assistant .jj-assistant-heading { width: 45.6%; }
.ij-assistant .jj-assistant-reply strong { color: #ff822d; }
.ij-page .jj-gate { transform: translateY(-6.6%); }
.ij-gate::before {
    content: '';
    position: absolute;
    left: 6.06%;
    top: 27.32%;
    width: 58.85%;
    aspect-ratio: 379/87;
    background: url('images/gate-caption.png') center / contain no-repeat;
}
.ij-page .jj-gate-actions button { font-size: 16px; }
.rl-page .ij-bank > .ij-filter-notice { margin: 16px auto; color: #62748e; }
.rl-page .ij-bank > .ij-filter-notice a { color: #1769ff; }
@media (prefers-reduced-motion: reduce) { .ij-card { transition: none; } }
