:root {
  --bg: #f5f6f4; --panel: #fff; --line: #e2e5e0; --text: #1f2a22; --muted: #6b766d;
  --brand: #2f6b45; --brand-soft: #e6efe8; --ok: #2f7d4a; --warn: #b7791f; --warn-soft: #fbf3e2;
  --bad: #c0392b; --bad-soft: #fbeaea;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
.layout { display: flex; min-height: 100vh; }
nav { width: 190px; background: #1f3a2a; color: #dfe9e2; padding: 18px 0; flex-shrink: 0; }
nav h1 { font-size: 17px; margin: 0 20px 20px; color: #fff; }
nav a { display: block; padding: 10px 20px; color: inherit; text-decoration: none; }
nav a:hover { background: rgba(255,255,255,.06); }
nav a.on { background: rgba(255,255,255,.12); color: #fff; font-weight: bold; }
nav a.off { opacity: .45; pointer-events: none; }
nav a small { font-size: 11px; margin-left: 4px; }
main { flex: 1; padding: 22px 28px; max-width: 1560px; min-width: 0; }
.fixgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.fixside { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.fixbox { font-size: 13px; }
.fixcheck { padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .fixgrid { grid-template-columns: 1fr; } .fixside { position: static; max-height: none; } }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
header h2 { margin: 0; font-size: 20px; }
header .spacer { flex: 1; }
select, button, input { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
button { cursor: pointer; }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--brand); }
.muted { color: var(--muted); font-size: 12px; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert.warn { background: var(--warn-soft); color: #7a5214; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--brand-soft); color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tile .label { color: var(--muted); font-size: 12px; }
.tile .value { font-size: 26px; font-weight: bold; margin-top: 4px; }
.tile .value.bad { color: var(--bad); }
.tile .value.ok { color: var(--ok); }
.tile .value.warn { color: var(--warn); }
.grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } nav { display: none; } main { padding: 16px; } }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; overflow-x: auto; }
section h3 { margin: 0 0 12px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: normal; }
td.num, th.num { text-align: right; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 12px; margin: 1px 2px 1px 0; }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: #7a5214; }
.fail { padding: 8px 10px; border-radius: 6px; margin-top: 6px; font-size: 13px; }
.fail.recall { background: var(--bad-soft); color: var(--bad); font-weight: bold; }
.fail.likely-ok { background: var(--warn-soft); color: #7a5214; }
.fail.other { background: #f1f1f1; }
.empty { color: var(--muted); padding: 10px 0; }
.bar { height: 6px; background: var(--brand); border-radius: 3px; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 28px; text-align: center; background: var(--panel); margin-bottom: 16px; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
pre.log { background: #1f2a22; color: #e3ebe5; padding: 12px; border-radius: 8px; white-space: pre-wrap; font-size: 12px; margin: 0; }
