:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: #dfe5ec;
    --text: #1f2937;
    --muted: #64748b;
    --red: #d81e06;
    --green: #07a35a;
    --blue: #1685d9;
    --ink: #0f172a;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner,
.page-shell {
    width: min(1180px, calc(100vw - 28px));
    margin: 0 auto;
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 178px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(from 140deg, var(--red), #f7b731, var(--green), var(--blue), var(--red));
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0;
}

.site-nav a {
    border-radius: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    padding: 9px 14px;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    background: #fff1ef;
    color: var(--red);
}

.status-pill {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    padding: 7px 10px;
    white-space: nowrap;
}

.page-shell {
    padding: 18px 0 32px;
}

.latest-panel,
.content-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.latest-panel {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.4fr) minmax(150px, 0.7fr);
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 16px;
}

.eyebrow {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.issue {
    color: var(--ink);
    font-size: 23px;
    font-weight: 800;
}

.countdown {
    color: var(--red);
    font-size: 25px;
    font-weight: 800;
}

.draw-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.ball,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
}

.ball.small {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

.ball.num {
    background: var(--blue);
}

.ball.sum-red {
    background: var(--red);
}

.ball.sum-green {
    background: var(--green);
}

.ball.sum-blue {
    background: var(--blue);
}

.ball.sum-gray {
    background: #7b8794;
}

.tag {
    min-width: 36px;
    height: 30px;
    border-radius: 15px;
    color: #fff;
    font-size: 13px;
    padding: 0 10px;
}

.tag.red {
    background: var(--red);
}

.tag.green {
    background: var(--green);
}

.equal {
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
}

.operator {
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.draw-expression {
    color: var(--ink);
    display: inline-block;
    font-weight: 900;
    white-space: nowrap;
}

.combo-badges {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
}

.shape-tag {
    border: 1px solid var(--line);
    border-radius: 14px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-width: 42px;
    padding: 5px 10px;
    white-space: nowrap;
}

.shape-mixed {
    background: #fff;
    color: var(--ink);
}

.shape-pair {
    background: #fff8d7;
    border-color: #f1d767;
    color: #b58900;
}

.shape-straight {
    background: #e9fff4;
    border-color: #8fe5bd;
    color: #0a9a64;
}

.shape-leopard {
    background: #fff0f0;
    border-color: #f3a1a1;
    color: var(--red);
}

.content-panel {
    padding: 18px;
}

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

.section-title {
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.section-meta {
    color: var(--muted);
    font-size: 13px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric,
.link-tile {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.metric-label,
.tile-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 7px;
}

.metric-value,
.tile-value {
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.link-tile {
    display: block;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-tile:hover {
    border-color: var(--red);
    transform: translateY(-1px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
    text-align: center;
}

.data-table th {
    background: var(--surface-soft);
    color: var(--muted);
    font-weight: 800;
}

.data-table tbody tr:hover {
    background: #fbfdff;
}

.table-wrap {
    overflow-x: auto;
}

.pagination-bar {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
    padding-top: 16px;
}

.pagination-bar:empty {
    display: none;
}

.page-controls,
.page-size-control {
    align-items: center;
    display: flex;
    gap: 10px;
}

.page-controls {
    grid-column: 2;
}

.page-size-control {
    grid-column: 3;
    justify-self: end;
}

.page-btn {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    min-width: 82px;
    padding: 8px 14px;
}

.page-btn:not(:disabled):hover {
    border-color: var(--blue);
    color: var(--blue);
}

.page-btn:disabled {
    color: #a8b2bf;
    cursor: not-allowed;
}

.page-info {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.page-size-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.page-size-btn {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    min-width: 42px;
    padding: 7px 9px;
}

.page-size-btn:hover,
.page-size-btn.active {
    border-color: var(--blue);
    color: var(--blue);
}

.page-size-btn.active {
    background: #eaf7ff;
}

.trend-summary,
.omission-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.bar-list,
.omission-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.omission-strip {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 14px;
}

.omission-grid-horizontal {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.bar-row {
    display: grid;
    grid-template-columns: 42px 1fr 52px;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}

.bar-label,
.bar-count {
    color: var(--muted);
    font-size: 13px;
}

.bar-track {
    height: 10px;
    background: #e7edf3;
    border-radius: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

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

.omission-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.omission-name {
    color: var(--muted);
    font-size: 13px;
}

.omission-count {
    color: var(--red);
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}

.empty-state {
    color: var(--muted);
    padding: 28px;
    text-align: center;
}

.prediction-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 14px;
    margin-bottom: 14px;
}

.prediction-main,
.prediction-side,
.prediction-card {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.prediction-main {
    background: linear-gradient(135deg, #fff7f5 0%, #eef8ff 100%);
    padding: 20px;
}

.prediction-side {
    background: var(--surface-soft);
    display: grid;
    gap: 10px;
    padding: 14px;
}

.prediction-eyebrow {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.prediction-issue {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.prediction-combo {
    color: var(--red);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
}

.prediction-tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.prediction-confidence {
    background: var(--ink);
    border-radius: 16px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
}

.prediction-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.signal-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.signal-label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.signal-value {
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.signal-desc {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.prediction-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prediction-card {
    background: var(--surface-soft);
    padding: 14px;
}

.prediction-card h2 {
    color: var(--ink);
    font-size: 16px;
    margin: 0 0 8px;
}

.prediction-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.prediction-tabs {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 0 auto 18px;
}

.prediction-tab {
    background: #e9eef4;
    border: 0;
    border-radius: 16px;
    color: #3f4856;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    min-width: 108px;
    padding: 16px 20px;
}

.prediction-tab.active {
    background: #08aeea;
    box-shadow: 0 6px 18px rgba(8, 174, 234, 0.32);
    color: #fff;
}

.prediction-table-wrap {
    border: 1px solid #e5eef5;
    border-radius: 8px;
    overflow: hidden;
}

.prediction-table {
    border-collapse: separate;
    border-spacing: 0;
}

.prediction-table th {
    background: #f0f5f9;
    color: #3b4450;
    font-size: 16px;
    padding: 16px 10px;
}

.prediction-table td {
    border-bottom: 1px solid #e8f2f7;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 10px;
}

.trend-matrix {
    border-collapse: collapse;
    table-layout: fixed;
}

.trend-matrix th {
    background: #08aabc;
    color: #fff;
    font-size: 17px;
    padding: 9px 6px;
}

.trend-matrix td {
    background: #fbfbfb;
    border-bottom: 1px dashed #e2e7ec;
    color: #687381;
    font-size: 15px;
    font-weight: 800;
    height: 40px;
    padding: 6px 4px;
}

.trend-matrix .trend-issue {
    color: #687381;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 16px;
}

.trend-value {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 17px;
    font-weight: 900;
}

.trend-value-red {
    color: #ff1d2f !important;
}

.trend-value-green {
    color: #57c985 !important;
}

.trend-value-blue {
    color: #1f87e8 !important;
}

.trend-value-gray {
    color: #687381 !important;
}

.trend-mark {
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-width: 22px;
    padding: 5px 7px;
    white-space: nowrap;
}

.trend-mark.red {
    background: #f70000;
}

.trend-mark.blue {
    background: #00a9bd;
}

.prediction-row:nth-child(odd) td {
    background: #f2fbff;
}

.prediction-row.pending td {
    background: #eefbff;
}

.prediction-row.hit td:first-child {
    box-shadow: inset 5px 0 #16cf88;
}

.prediction-row.miss td:first-child {
    box-shadow: inset 5px 0 #f05a7a;
}

.prediction-pill {
    background: #08aeea;
    border-radius: 18px;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    min-width: 42px;
    justify-content: center;
    padding: 9px 12px;
}

.prediction-number {
    color: #3f4856;
}

.prediction-result {
    color: #111827;
}

.hit-icon {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    font-size: 17px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.hit-icon.yes {
    border: 3px solid #19d188;
    color: #19d188;
}

.hit-icon.no {
    border: 3px solid #ff1d2f;
    color: #ff1d2f;
}

.hit-icon.pending {
    border: 3px solid #687381;
    color: #687381;
}

.dragon-summary {
    align-items: center;
    background: #f5fcff;
    border: 1px solid #cdeeff;
    border-radius: 8px;
    color: #344256;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px 16px;
}

.summary-dot {
    background: #63c8ed;
    border-radius: 50%;
    display: inline-block;
    height: 7px;
    width: 7px;
}

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

.dragon-card {
    background: #fff;
    border: 1px solid #e3ecf3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(25, 46, 74, 0.05);
    overflow: hidden;
}

.dragon-card.active {
    background: #f0fff6;
    border-color: #80e2ad;
}

.dragon-card-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 8px;
}

.dragon-title-wrap {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.dragon-icon {
    align-items: center;
    background: #eef3f8;
    border-radius: 8px;
    color: #53606d;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.dragon-title {
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.dragon-status {
    background: #eef5f8;
    border-radius: 14px;
    color: #1f4058;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    white-space: nowrap;
}

.dragon-card.active .dragon-status {
    background: #16d980;
    color: #fff;
}

.dragon-meta {
    align-items: center;
    display: flex;
    gap: 6px;
    padding: 0 16px 10px;
}

.dragon-kind,
.dragon-count {
    border-radius: 14px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.dragon-kind {
    color: #fff;
}

.dragon-count {
    background: #fff;
    border: 1px solid #d4e0e8;
    color: #111827;
}

.dragon-green {
    background: #05c56d;
    color: #fff;
}

.dragon-blue {
    background: #2f7df6;
    color: #fff;
}

.dragon-purple {
    background: #a33df3;
    color: #fff;
}

.dragon-orange {
    background: #ff6b1a;
    color: #fff;
}

.dragon-progress {
    background: #c8f0fb;
    border-radius: 999px;
    height: 8px;
    margin: 0 16px 10px;
    overflow: hidden;
}

.dragon-progress span {
    background: #9aa7b7;
    display: block;
    height: 100%;
}

.dragon-card.active .dragon-progress span {
    background: #07c96f;
}

.dragon-sequence {
    background: #fafcfd;
    border-top: 1px solid #dce6ed;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 54px;
    padding: 12px 16px;
}

.dragon-token {
    border-radius: 5px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 5px 8px;
}

.dragon-token.red {
    background: #ffe0e0;
    color: #ff1d2f;
}

.dragon-token.blue {
    background: #e1efff;
    color: #136fff;
}

.dragon-token.gray {
    background: #e9edf2;
    color: #53606d;
}

.dragon-foot {
    align-items: center;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
}

.dragon-foot strong {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.dragon-foot span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    gap: 5px;
    justify-content: flex-end;
}

@media (max-width: 860px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }

    .status-pill {
        display: none;
    }

    .latest-panel,
    .link-grid,
    .trend-summary,
    .omission-groups,
    .prediction-layout,
    .prediction-cards {
        grid-template-columns: 1fr;
    }

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

    .omission-grid-horizontal {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .draw-line {
        justify-content: flex-start;
    }

    .latest-panel {
        justify-items: center;
        text-align: center;
    }

    .latest-panel > div {
        width: 100%;
    }

    .latest-panel .draw-line {
        justify-content: center;
    }

    .latest-panel .countdown {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-shell {
        width: min(100vw - 18px, 1180px);
    }

    .header-inner {
        gap: 6px;
        min-height: 0;
        padding: 10px 0;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }

    .brand-name {
        font-size: 17px;
    }

    .site-nav {
        width: 100%;
        gap: 4px;
        padding: 8px 0 4px;
    }

    .site-nav a {
        flex: 1;
        font-size: 13px;
        padding: 8px 4px;
        text-align: center;
    }

    .latest-panel,
    .content-panel {
        padding: 12px;
    }

    .page-shell {
        padding: 10px 0 24px;
    }

    .latest-panel {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 10px;
    }

    .latest-panel .draw-line {
        grid-column: auto;
    }

    .eyebrow {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .issue {
        font-size: 18px;
    }

    .countdown {
        font-size: 19px;
        text-align: center;
    }

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

    .section-title {
        font-size: 18px;
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .metric,
    .link-tile {
        padding: 10px 8px;
    }

    .metric-label,
    .tile-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .metric-value,
    .tile-value {
        font-size: 15px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .link-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0;
    }

    .ball {
        width: 34px;
        height: 34px;
    }

    .ball.small {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .tag {
        min-width: 30px;
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }

    .equal {
        font-size: 18px;
        line-height: 1;
    }

    .draw-line {
        gap: 5px;
    }

    body[data-page="home"] .table-wrap,
    body[data-page="results"] .table-wrap {
        overflow-x: auto;
    }

    body[data-page="home"] .data-table,
    body[data-page="results"] .data-table {
        border-collapse: collapse;
        table-layout: fixed;
        min-width: 0;
    }

    body[data-page="home"] .draw-row,
    body[data-page="results"] .draw-row {
        display: table-row;
    }

    body[data-page="home"] .draw-row:hover,
    body[data-page="results"] .draw-row:hover {
        background: #fbfdff;
    }

    body[data-page="home"] .data-table th,
    body[data-page="home"] .draw-row td,
    body[data-page="results"] .data-table th,
    body[data-page="results"] .draw-row td {
        border-bottom: 1px solid var(--line);
        padding: 8px 4px;
        text-align: center;
    }

    body[data-page="home"] .draw-issue,
    body[data-page="results"] .draw-issue {
        color: var(--ink);
        font-size: 12px;
        font-weight: 900;
        white-space: nowrap;
    }

    body[data-page="home"] .draw-number,
    body[data-page="results"] .draw-number {
        min-width: 0;
    }

    body[data-page="home"] .draw-time,
    body[data-page="results"] .draw-time {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.2;
    }

    body[data-page="home"] .draw-combo,
    body[data-page="results"] .draw-combo {
        display: table-cell;
    }

    .draw-expression {
        font-size: 12px;
    }

    .combo-badges {
        gap: 3px;
    }

    .shape-tag {
        border-radius: 12px;
        font-size: 12px;
        min-width: 34px;
        padding: 4px 7px;
    }

    body[data-page="trend"] .trend-summary {
        gap: 10px;
        grid-template-columns: 1fr;
        min-width: 0;
        overflow: hidden;
    }

    body[data-page="trend"] .trend-summary > section,
    body[data-page="trend"] .bar-list {
        min-width: 0;
        overflow: hidden;
    }

    body[data-page="trend"] .content-panel {
        overflow: hidden;
    }

    body[data-page="trend"] .table-wrap {
        max-width: 100%;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body[data-page="trend"] .bar-row {
        grid-template-columns: 28px minmax(0, 1fr) 38px;
        gap: 6px;
    }

    body[data-page="trend"] .bar-label,
    body[data-page="trend"] .bar-count {
        font-size: 12px;
    }

    body[data-page="trend"] .data-table {
        table-layout: fixed;
        min-width: 0;
        width: 100%;
    }

    body[data-page="trend"] .data-table th,
    body[data-page="trend"] .data-table td {
        padding: 7px 2px;
        font-size: 11px;
    }

    body[data-page="trend"] .trend-matrix th {
        font-size: 11px;
        padding: 7px 2px;
    }

    body[data-page="trend"] .trend-matrix td {
        height: 32px;
    }

    body[data-page="trend"] .trend-matrix .trend-issue,
    body[data-page="trend"] .trend-value {
        font-size: 11px;
    }

    body[data-page="trend"] .trend-mark {
        border-radius: 6px;
        font-size: 10px;
        min-width: 18px;
        padding: 4px 3px;
    }

    body[data-page="trend"] .trend-matrix th:first-child,
    body[data-page="trend"] .trend-matrix td:first-child {
        width: 18%;
    }

    body[data-page="trend"] .trend-matrix th:nth-child(2),
    body[data-page="trend"] .trend-matrix td:nth-child(2) {
        width: 9%;
    }

    body[data-page="trend"] .trend-matrix th:nth-child(n+3),
    body[data-page="trend"] .trend-matrix td:nth-child(n+3) {
        width: 9.125%;
    }

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

    .omission-strip {
        margin-bottom: 10px;
        padding: 10px;
    }

    .omission-card,
    .bar-list {
        padding: 10px;
    }

    .prediction-main,
    .prediction-side,
    .prediction-card {
        padding: 12px;
    }

    .prediction-combo {
        font-size: 34px;
    }

    .prediction-issue {
        font-size: 16px;
    }

    .signal-value {
        font-size: 17px;
    }

    .pagination-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding-top: 12px;
    }

    .page-controls {
        gap: 8px;
    }

    .page-size-control {
        gap: 6px;
        justify-content: center;
        width: 100%;
    }

    .page-btn {
        min-width: 74px;
        padding: 7px 10px;
    }

    .page-size-btn {
        min-width: 38px;
        padding: 6px 8px;
    }

    .prediction-tabs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .prediction-tab {
        border-radius: 14px;
        flex: 1;
        font-size: 15px;
        min-width: 0;
        padding: 12px 8px;
    }

    .dragon-summary {
        align-items: flex-start;
        font-size: 13px;
        line-height: 1.6;
        padding: 11px 12px;
    }

    .dragon-grid {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .dragon-card-top {
        padding: 13px 14px 8px;
    }

    .dragon-title {
        font-size: 18px;
    }

    .dragon-sequence,
    .dragon-foot {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dragon-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .dragon-foot span {
        justify-content: flex-start;
    }

    .prediction-table th {
        font-size: 14px;
        padding: 12px 6px;
    }

    .prediction-table td {
        font-size: 13px;
        padding: 11px 5px;
    }

    .prediction-pill {
        font-size: 14px;
        min-width: 36px;
        padding: 8px 10px;
    }

    .prediction-nbr {
        font-size: 14px;
    }

    .hit-icon {
        font-size: 15px;
        height: 24px;
        width: 24px;
    }
}
