:root { --bg:#f4f6f9; --panel:#fff; --text:#18202b; --muted:#4b5563; --line:#e1e5eb; --link:#1659c7; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#12151b; --panel:#1a1f28; --text:#e8ecf2; --muted:#aeb8c6; --line:#2c3441; --link:#8cb8ff; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); line-height:1.6;
       font-family: system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size:15px; }
a { color:var(--link); text-decoration:none; } a:hover { text-decoration:underline; }
.top { display:flex; gap:12px; align-items:baseline; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--panel); }
.top a { font-weight:700; font-size:18px; } .top span, small, .note, footer { color:var(--muted); }
main { max-width:1280px; margin:0 auto; padding:16px; }
footer { max-width:1280px; margin:24px auto; padding:0 16px; font-size:12px; }
h1 { font-size:24px; margin:4px 0 8px; } h2 { font-size:18px; margin:24px 0 8px; } h3 { font-size:14px; margin:12px 0 4px; }
.search { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.search input[type=search] { flex:1 1 320px; padding:10px 12px; font-size:15px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--text); }
button { padding:10px 18px; font-size:15px; border:0; border-radius:6px; background:#1659c7; color:#fff; cursor:pointer; }
.scroll { overflow-x:auto; background:var(--panel); border:1px solid var(--line); border-radius:8px; }
table { width:100%; border-collapse:collapse; }
/* 좁은 화면에서는 설명 칸을 누르지 않고 표를 가로로 스크롤한다 */
table.list, table.rem { min-width:960px; }
.filters { flex-basis:100%; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.filters select { padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--text); max-width:100%; }
table.list.with-why { min-width:1200px; }
td.why { min-width:180px; font-size:12px; color:var(--muted); }
th, td { text-align:left; vertical-align:top; padding:9px 12px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
th { font-size:13px; font-weight:600; color:var(--muted); white-space:nowrap; }
.nowrap { white-space:nowrap; } .small { font-size:12px; }
.pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.tag, .sev { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; font-weight:600; border:1px solid var(--line); }
.tag.kev, .sev.critical { background:#a3142c; border-color:#a3142c; color:#fff; }
.sev.high { background:#b84a00; border-color:#b84a00; color:#fff; }
.sev.medium { background:#8a6d00; border-color:#8a6d00; color:#fff; }
.sev.low { background:#39705a; border-color:#39705a; color:#fff; }
.tag.scn { background:#1659c7; border-color:#1659c7; color:#fff; }
.lv-direct { background:#39705a; border-color:#39705a; color:#fff; }
.lv-indirect { background:#8a6d00; border-color:#8a6d00; color:#fff; }
.lv-check { background:#5b4b9a; border-color:#5b4b9a; color:#fff; }
.lv-uncollected { background:#b84a00; border-color:#b84a00; color:#fff; }
.lv-blind { background:#a3142c; border-color:#a3142c; color:#fff; }
.scores { display:flex; flex-wrap:wrap; gap:10px; margin:8px 0; }
.scores div { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:8px 18px; min-width:120px; }
.scores dt { font-size:12px; color:var(--muted); } .scores dd { margin:0; font-size:20px; font-weight:700; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin:8px 0; }
.card summary { cursor:pointer; }
.warn { border:1px solid #b84a00; border-radius:8px; padding:8px 12px; }
.pager { display:flex; gap:16px; justify-content:center; padding:16px; }
/* ── 첫 화면(현황) ── */
:root { --series-1:#257de0; --grid:#e8ebf0; }
@media (prefers-color-scheme: dark) { :root { --series-1:#338ced; --grid:#262d38; } }
.top nav { margin-left:auto; display:flex; gap:20px; font-size:15px; }
.top nav a { font-size:15px; font-weight:600; color:var(--text); } .top nav a:hover { color:var(--link); }
.asof { color:var(--muted); font-size:14px; margin:14px 0 6px; }
.info { display:inline-block; cursor:help; color:var(--muted); font-size:13px; margin-left:2px; }
.muted { color:var(--muted); }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; margin:8px 0 18px; }
.tiles div { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px 20px; }
.tiles dt { font-size:14px; color:var(--muted); font-weight:600; }
.tiles dd { margin:2px 0 0; font-size:34px; font-weight:700; line-height:1.25; font-variant-numeric:tabular-nums; }
.tiles dd.sub { font-size:14px; font-weight:400; color:var(--muted); }
.tiles dd.sub strong { color:var(--text); }
.tiles dd.dates { font-size:17px; font-weight:600; margin-top:6px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:6px 20px 16px; margin:0 0 18px; }
.ph { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:12px 0 10px; }
.ph h2 { margin:0; font-size:19px; }
.ph .meta { color:var(--muted); font-size:14px; margin-left:auto; }
.ph .meta a { margin-left:10px; }
.panel .scroll { border:0; border-radius:0; }
.empty { color:var(--muted); padding:8px 0; }
.two { display:grid; grid-template-columns:repeat(auto-fit, minmax(400px, 1fr)); gap:0 18px; }
a.plain { color:var(--text); } a.plain:hover { color:var(--link); }
svg.chart { width:100%; height:auto; display:block; }
svg.chart .grid { stroke:var(--grid); stroke-width:1; } svg.chart .axis { stroke:var(--muted); }
svg.chart .tick { fill:var(--muted); font-size:9px; }
svg .mark { fill:var(--series-1); }
svg.chart .hit { fill:transparent; }
svg.chart .bar:hover .hit { fill:var(--grid); }
details.quiet summary { cursor:pointer; color:var(--muted); font-size:14px; padding-top:6px; }
table.compact { width:auto; } table.compact td, table.compact th { padding:3px 14px; }
table.rank td { padding:7px 6px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.rank tr:last-child td { border-bottom:0; }
table.rank td.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; font-weight:600; width:70px; }
table.rank td.barcell { width:38%; } table.rank svg { width:100%; height:12px; display:block; }
ul.posts { list-style:none; padding:0; margin:0; }
ul.posts li { display:flex; gap:12px; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); }
ul.posts li:last-child { border-bottom:0; }
ul.posts .date { color:var(--muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }
/* KEV 표: 위 10건과 펼친 나머지의 칸 너비를 맞춘다 */
table.kevt { table-layout:fixed; min-width:760px; }
table.kevt th:nth-child(1) { width:110px; } table.kevt th:nth-child(2) { width:160px; }
table.kevt th:nth-child(4) { width:120px; } table.kevt th:nth-child(5) { width:80px; } table.kevt th:nth-child(6) { width:100px; }
table.kevt tbody tr:hover, table.topt tbody tr:hover { background:var(--bg); }
table.topt { min-width:860px; } table.topt td { vertical-align:middle; }
.clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
details.more-toggle summary { cursor:pointer; padding:10px 12px 0; color:var(--link); font-weight:600; }
