.topic-live-empty {
    margin: 18px 0;
    padding: 20px;
    border: 1px dashed #e3e7ec;
    border-radius: 12px;
    background: #fafbfc;
    color: #627085;
}

.topic-live-empty a {
    color: #d40012;
    font-weight: 700;
}

.topic-live-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}

.topic-live-action > b {
    width: 100%;
    color: #2b2f35;
    font-size: 18px;
}

.topic-live-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #627085;
}

.topic-live-search input,
.m-topic-searchline input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e1e5eb;
    border-radius: 9px;
    font: inherit;
}

.pc-topic-announcement-list,
.m-topic-announcement-list,
.topic-live-files {
    display: grid;
    gap: 10px;
}

.pc-topic-announcement-list > a,
.m-topic-announcement-list > a,
.topic-live-files > a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 14px 16px;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    background: #fff;
    color: #2b2f35;
    text-decoration: none;
}

.pc-topic-announcement-list > a:hover,
.m-topic-announcement-list > a:hover,
.topic-live-files > a:hover {
    border-color: #e60012;
}

.pc-topic-announcement-list strong,
.m-topic-announcement-list b,
.topic-live-files b {
    flex: 1 1 250px;
}

.pc-topic-announcement-list small,
.m-topic-announcement-list small,
.topic-live-files small {
    color: #748195;
}

.pc-topic-announcement-list [hidden],
.m-topic-announcement-list [hidden] {
    display: none;
}

@media (max-width: 700px) {
    .topic-live-action {
        display: grid;
    }

    .topic-live-action > b {
        font-size: 16px;
    }
}

.pc-topic-position-main,
.m-topic-position-list article,
.pc-topic-download-list article > div,
.m-topic-download-list article > div {
    min-width: 0;
}

.pc-topic-position-main h3,
.m-topic-position-list h3,
.pc-topic-download-list h3,
.m-topic-download-list h3 {
    overflow-wrap: anywhere;
}

.pc-topic-position-facts span,
.m-topic-position-facts span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-file-icon,
.m-file-icon {
    background: #eef5ff;
    color: #2b2f35;
    text-transform: uppercase;
}

.m-topic-download-list article > a {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #e60012;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pc-exam-position-foot.sel-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pc-exam-position-foot.sel-tools label,
.pc-exam-position-foot.sel-tools select {
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid #e1e6ed;
    border-radius: 8px;
    background: #fff;
    color: #5e6d81;
    font-size: 12px;
    cursor: pointer;
}

.m-exam-position-actions.sel-tools {
    margin-top: 8px;
}

.m-exam-position-actions.sel-tools select {
    min-width: 0;
    appearance: auto;
    text-align: center;
    cursor: pointer;
}
.m-topic-schedule--readable .m-topic-exam-day + .m-topic-exam-day {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e7ebf1;
}

.m-topic-schedule--readable .m-topic-exam-date {
    align-items: baseline;
    margin-bottom: 7px;
    line-height: 20px;
}

.m-topic-schedule--readable .m-topic-exam-date strong {
    min-width: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.m-topic-schedule--readable .m-topic-exam-date em {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
}

.m-topic-schedule--readable .m-topic-exam-subject {
    gap: 7px;
}

.m-topic-schedule--readable .m-topic-exam-session {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 10px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: #f8fafc;
    line-height: 20px;
}

.m-topic-schedule--readable .m-topic-exam-session b {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.m-topic-schedule--readable .m-topic-exam-session em {
    padding: 1px 6px;
    font-size: 10px;
    line-height: 18px;
    white-space: nowrap;
}

.m-topic-schedule--readable .m-topic-exam-session i {
    grid-column: 1 / -1;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.6;
}
.m-topic-schedule--readable details.m-topic-exam-day > summary {
    min-height: 28px;
    margin-bottom: 0;
    cursor: pointer;
    list-style: none;
}

.m-topic-schedule--readable details.m-topic-exam-day > summary::-webkit-details-marker {
    display: none;
}

.m-topic-schedule--readable details.m-topic-exam-day[open] > summary {
    margin-bottom: 7px;
}

.m-topic-exam-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    color: #ce1428;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.m-topic-exam-toggle::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: -3px;
    transform: rotate(45deg);
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.m-topic-exam-toggle .when-open,
.m-topic-exam-day[open] .m-topic-exam-toggle .when-closed {
    display: none;
}

.m-topic-exam-day[open] .m-topic-exam-toggle .when-open {
    display: inline;
}

.m-topic-exam-day[open] .m-topic-exam-toggle::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

body.mobile .m-topic-searchline {
    height: 38px;
    gap: 6px;
    padding: 0 0 0 10px;
    overflow: hidden;
}

body.mobile .m-topic-searchline > .ui-icon {
    flex: 0 0 auto;
}

body.mobile .m-topic-searchline input {
    width: 0;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    line-height: normal;
}

body.mobile .m-topic-searchline button {
    flex: 0 0 auto;
    height: 36px;
    min-width: 48px;
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
}

body.mobile .m-topic-announcement-list > a {
    gap: 5px 10px;
    padding: 10px 12px;
}

body.mobile .m-topic-announcement-list b {
    flex-basis: 100%;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body.mobile .m-topic-announcement-list small {
    font-size: 10px;
}

body.mobile .m-topic-announcement-list > a > span {
    margin-left: auto;
    color: #d31529;
    font-size: 11px;
    white-space: nowrap;
}

body.mobile .m-topic-rank-row {
    grid-template-columns: minmax(0, 1fr) minmax(30px, 1.15fr) max-content;
    gap: 8px;
    margin-top: 10px;
}

body.mobile .m-topic-rank-row > span {
    min-width: 0;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.mobile .m-topic-rank-row > b {
    font-size: 11px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.m-topic-rank-scale {
    margin: 10px 0 0;
    color: #8b96a6;
    font-size: 10px;
    line-height: 1.5;
}
.m-topic-position-actions > a {
    margin-left: auto;
}
.m-topic-hero--compact h1 {
    margin: 6px 0 9px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 800;
    overflow-wrap: anywhere;
}


/* Mobile topic/project downloads share the shangan palette and compact type. */
.mobile.topic-live-page [data-panel="downloads"] .m-topic-panel-head h2 {
    font-size: 13px;
    font-weight: 600;
}
.mobile.topic-live-page [data-panel="downloads"] .m-topic-panel-head > span {
    font-size: 10px;
    color: #929cac;
}
.mobile.topic-live-page [data-panel="downloads"] .m-topic-download-list {
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr);
}
.mobile.topic-live-page [data-panel="downloads"] .m-topic-download-list article {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 44px;
    align-items: start;
    gap: 9px;
    min-width: 0;
    padding: 11px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #fff;
}
.mobile.topic-live-page [data-panel="downloads"] .m-file-icon {
    width: 32px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #ffe0e5;
    border-radius: 8px;
    background: #fff1f3;
    color: #d7354a;
    font-size: 9px;
    font-weight: 600;
}
.mobile.topic-live-page [data-panel="downloads"] .m-topic-download-list h3 {
    margin: 0;
    color: #2b2f35;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.mobile.topic-live-page [data-panel="downloads"] .m-download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    margin: 5px 0 0;
    color: #98a2b0;
    font-size: 10px;
    line-height: 1.5;
}
.mobile.topic-live-page [data-panel="downloads"] .m-download-exam {
    margin: 4px 0 0;
    color: #9aa4b2;
    font-size: 10px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.mobile.topic-live-page [data-panel="downloads"] .m-topic-download-list article > a {
    align-self: center;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 32px;
    padding: 0;
    border: 1px solid #ffd7de;
    border-radius: 8px;
    background: #fff3f5;
    color: #e60012;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.mobile.topic-live-page [data-panel="downloads"] .m-topic-download-list article > a:active {
    background: #ffe5ea;
}
.mobile.topic-live-page [data-panel="downloads"] .m-topic-download-list article > a:focus-visible {
    outline: 2px solid #e60012;
    outline-offset: 3px;
}
.mobile.topic-live-page [data-panel="downloads"] .topic-live-empty {
    font-size: 11px;
    color: #929cac;
}
.pc .pc-topic-schedule-exam {
    align-items: flex-start;
}
.pc .pc-topic-schedule-days {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 14px;
}
.pc .pc-topic-schedule-days > .topic-schedule-exam-main {
    align-items: center;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
}
.pc .pc-topic-schedule-days > .topic-schedule-exam-main + .topic-schedule-exam-main {
    padding-top: 14px;
    border-top: 1px dashed #e4e9f0;
}
.pc .pc-topic-schedule-days .topic-schedule-exam-date strong {
    white-space: nowrap;
}
.pc .pc-topic-schedule-days .topic-schedule-subjects {
    gap: 6px;
    padding-top: 0;
}
.pc .pc-topic-schedule-days .topic-schedule-subjects span {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}
.pc .pc-topic-schedule-days .topic-schedule-subjects b,
.pc .pc-topic-schedule-days .topic-schedule-subjects em {
    white-space: nowrap;
}
.pc .pc-topic-schedule-days .topic-schedule-subjects i {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    line-height: 1.65;
}
.pc .pc-topic-schedule-days .pc-topic-schedule-empty strong {
    font-size: 17px;
    line-height: 1.5;
    white-space: normal;
}


/* Topic position count and full list entry. */
.topic-position-summary{display:flex;align-items:center;gap:10px;white-space:nowrap}
.topic-position-summary .topic-all-positions{display:inline-flex;align-items:center;min-height:28px;padding-left:10px;border-left:1px solid #edf0f4;color:#e60012;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none}
.topic-position-summary .topic-all-positions:hover{color:#c80010}
.topic-position-summary .topic-all-positions:focus-visible{outline:2px solid #e60012;outline-offset:3px;border-radius:3px}
body.mobile .topic-position-summary{gap:8px}
body.mobile .topic-position-summary .topic-all-positions{padding-left:8px;font-size:12px}

/* Mobile topic project card actions: matching size and alignment. */
body.mobile.topic-live-page .m-topic-record-bottom .m-topic-record-actions{gap:6px;align-items:center}
body.mobile.topic-live-page .m-topic-record-bottom .m-topic-record-actions>a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 72px;box-sizing:border-box;width:72px;height:34px;min-height:34px;padding:0;border:1px solid #ffd4da;border-radius:9px;font-size:12px;font-weight:700;line-height:1;white-space:nowrap;text-decoration:none;color:#e60012;background:#fff7f8}
body.mobile.topic-live-page .m-topic-record-bottom .m-topic-record-actions>.m-topic-pick{border-color:#e60012;background:#e60012;color:#fff}
body.mobile.topic-live-page .m-topic-record-bottom .m-topic-record-actions>a:focus-visible{outline:2px solid #e60012;outline-offset:3px}
body.mobile.topic-live-page .m-topic-record-bottom .m-topic-record-actions>a:active{filter:brightness(.95)}
