body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
    margin: 0;
    padding: 30px;
    background: #f5f7fa;
    color: #1a1a2e;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

h1 {
    font-size: 24px;
    margin: 0 0 4px;
}

.updated-at {
    color: #666;
    font-size: 13px;
    margin: 0 0 24px;
}

.summary {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.card {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.card .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
    letter-spacing: .5px;
}

.card .value {
    font-size: 28px;
    font-weight: 700;
}

.green  { color: #22c55e; }
.red    { color: #ef4444; }
.high   { color: #22c55e; font-weight: 600; }
.mid    { color: #eab308; font-weight: 600; }
.low    { color: #ef4444; font-weight: 600; }

.filter {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    margin-bottom: 16px;
    background: #fff;
    transition: border .15s;
}

.filter:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

th {
    background: #f0f2f5;
    padding: 10px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    text-align: left;
    user-select: none;
}

th.sortable {
    cursor: pointer;
}

th.sortable:hover {
    background: #e5e7eb;
}

th .arrow {
    font-size: 10px;
    color: #888;
}

th.num, td.num {
    text-align: right;
    white-space: nowrap;
}

td {
    padding: 8px 12px;
    font-size: 14px;
    border-top: 1px solid #eee;
    font-variant-numeric: tabular-nums;
}

td.model {
    font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
    font-size: 13px;
}

.err-toggle {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.err-toggle:hover {
    text-decoration: underline;
}

.err-row td {
    padding: 0;
}

.err-table {
    width: 100%;
    box-shadow: none;
    border-radius: 0;
}

.err-table td {
    border-top: none;
    padding: 6px 12px;
    font-size: 12px;
}

.err-table td.err-msg {
    font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
    word-break: break-all;
}

.err-table tr:first-child td {
    padding-top: 10px;
}

.err-table tr:last-child td {
    padding-bottom: 10px;
}

.no-match {
    display: none;
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 14px;
}

tbody tr.model-row:hover {
    background: #f8fafc;
}
