:root {
    --font-sans-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
    --cg-navy: #123a63;
    --cg-blue: #176db3;
    --cg-sky: #62b4e8;
    --cg-pale: #e6f2fa;
    --cg-bg: #f3f7fa;
    --cg-line: #d8e4ec;
    --cg-text: #1b2d3d;
    --cg-muted: #687b8c;
    --cg-danger: #b8323a;
}

.advanced-filters .filter-field > input,
.advanced-filters .filter-field > select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d7e1e8;
    border-radius: 6px;
    background: #fff;
    color: #344b5d;
    font-family: var(--font-sans-cn);
    font-size: 13px;
    line-height: 1.2;
    padding: 0 10px;
    outline: none;
}

.advanced-filters .filter-field > input:focus,
.advanced-filters .filter-field > select:focus {
    border-color: var(--cg-blue);
    box-shadow: 0 0 0 3px rgba(23, 109, 179, .12);
}

.advanced-filters .news-date-field { grid-column: span 2; }
.advanced-filters .news-date-field > .news-date-filter {
    width: 100%;
    height: 36px;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}
.news-date-filter .review-date-presets { width: 100%; height: 36px; }
.news-date-filter .review-date-preset { height: 34px; flex: 1 1 0; font-size: 13px; }
.news-custom-date { right: auto; left: 0; }
.advanced-filters .news-custom-date label { display: grid; gap: 5px; margin-bottom: 0; }

.loading-panel,
.empty-live-state {
    min-height: 140px;
    display: grid;
    place-items: center;
    color: var(--cg-muted);
    font-size: 12px;
}

.service-state.error i,
.health-mini.error i {
    background: var(--cg-danger);
    box-shadow: 0 0 0 3px rgba(184, 50, 58, .12);
}

.service-state.pending i {
    background: #d09532;
}

.user-button {
    cursor: pointer;
}

.queue-list .empty-live-state {
    min-height: 240px;
    padding: 24px;
    text-align: center;
}

.trend-chart svg .trend-primary,
.trend-chart svg .trend-secondary {
    fill: none;
}

.rank-bars .empty-live-state,
.efficiency-table .empty-live-state {
    min-height: 160px;
}

.login-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--cg-text);
    background:
        linear-gradient(120deg, rgba(18, 58, 99, .96), rgba(23, 109, 179, .9) 47%, rgba(98, 180, 232, .72)),
        radial-gradient(circle at 16% 18%, rgba(255,255,255,.2), transparent 35%);
    font-family: var(--font-sans-cn);
}

.login-shell {
    width: min(960px, calc(100vw - 40px));
    min-height: 570px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(10, 43, 72, .32);
    background: #fff;
}

.login-brand {
    position: relative;
    padding: 72px 70px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(18,58,99,.96), rgba(23,109,179,.86)),
        repeating-linear-gradient(90deg, transparent 0 48px, rgba(255,255,255,.05) 49px 50px);
}

.login-brand::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025);
}

.login-brand img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.14));
}

.login-brand > div span {
    display: block;
    margin-top: 30px;
    color: #acdafa;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .22em;
}

.login-brand h1 {
    margin: 8px 0 12px;
    font-family: var(--font-sans-cn);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: .03em;
}

.login-brand p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    letter-spacing: .08em;
}

.login-brand ul {
    position: relative;
    z-index: 1;
    margin: 66px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.login-brand li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: rgba(255,255,255,.84);
    font-size: 13px;
}

.login-brand li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8dd2fa;
    box-shadow: 0 0 0 5px rgba(141,210,250,.12);
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 54px;
    background: #fff;
}

.login-card header > span {
    color: var(--cg-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.login-card h2 {
    margin: 9px 0 6px;
    font-size: 27px;
    font-weight: 700;
}

.login-card header p,
.login-card footer {
    color: #80909d;
    font-size: 12px;
}

.login-card form {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.login-card label span {
    display: block;
    margin-bottom: 8px;
    color: #536a7b;
    font-size: 12px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1px solid #cfdae3;
    border-radius: 7px;
    padding: 0 13px;
    font: inherit;
    outline: none;
}

.login-card input:focus {
    border-color: var(--cg-blue);
    box-shadow: 0 0 0 4px rgba(23,109,179,.1);
}

.login-card button {
    height: 46px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--cg-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(23,109,179,.22);
}

.login-card button:hover {
    background: #125e9c;
}

.login-card footer {
    margin-top: 28px;
    text-align: center;
}

.login-error {
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid #f0c7ca;
    border-radius: 6px;
    color: #9f2931;
    background: #fff4f5;
    font-size: 12px;
}

@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-card { min-height: 500px; padding: 44px 30px; }
}

.evidence-modal { width: min(720px, 100%); }
.evidence-list { display: grid; gap: 10px; max-height: min(62vh, 620px); padding: 0; margin: 0; overflow-y: auto; list-style: none; }
.evidence-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid #b7ccda; background: #eef6fb; }
.evidence-list li strong { display: block; color: #153d5a; font-size: 14px; }
.evidence-list li p { margin: 6px 0 0; color: #526b7c; font-size: 12px; line-height: 1.65; }
.evidence-list li a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: #176db3; font-size: 12px; text-decoration: none; }
.evidence-list li a svg { width: 12px; height: 12px; }
