:root { --bg: #f6f7f9; --card: #fff; --line: #dde1e6; --text: #1d2228; --muted: #6b7480; --accent: #2457d6; --ok: #16794a; --bad: #c0362c; --warn: #a86500; }
@media (prefers-color-scheme: dark) { :root { --bg: #14171b; --card: #1d2126; --line: #333a42; --text: #e6e9ed; --muted: #9aa3ad; --accent: #6c95ff; --ok: #4cc38a; --bad: #ff7b70; --warn: #f0b04a; } }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.55 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
.top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 16px; color: var(--text); }
#nav { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
#nav a.active { font-weight: 700; text-decoration: underline; }
#who { color: var(--muted); }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 20px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 22px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 13px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; }
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 200px; }
button, .button { display: inline-block; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
button.secondary, .button.secondary { background: transparent; color: var(--accent); }
button.danger { background: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.bad { color: var(--bad); border-color: var(--bad); }
.badge.warn { color: var(--warn); border-color: var(--warn); }
.log { white-space: pre-wrap; font: 12px/1.5 ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 10px; max-height: 420px; overflow: auto; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border: 1px solid var(--line); border-radius: 6px; cursor: zoom-in; background: #000; }
.shots figcaption { font-size: 12px; color: var(--muted); }
.error { color: var(--bad); margin-top: 8px; }
.notice { padding: 10px 12px; border-radius: 7px; background: var(--bg); border: 1px dashed var(--line); }
.device-edit { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.hidden { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 10; }
.lightbox img { max-width: 96vw; max-height: 94vh; }
/* 체크리스트(GID#2816) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); }
.tile-value { font-size: 20px; font-weight: 700; }
.tile-label { font-size: 12px; color: var(--muted); }
.tile.ok .tile-value { color: var(--ok); } .tile.bad .tile-value { color: var(--bad); } .tile.warn .tile-value { color: var(--warn); }
.badge.none { color: var(--muted); border-style: dashed; }
.block-link { display: block; color: inherit; }
.block-link:hover { border-color: var(--accent); }
.guide summary, details summary { cursor: pointer; }
.guide h3 { font-size: 14px; margin: 16px 0 6px; }
.table-wrap { overflow-x: auto; padding: 8px; }
table.checklist td { font-size: 13px; }
tr.row-bad td { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.nowrap { white-space: nowrap; }
.field { margin: 8px 0; }
.pre { white-space: pre-wrap; }
@media (max-width: 640px) { table:not(.checklist) th:nth-child(n+4), table:not(.checklist) td:nth-child(n+4) { display: none; } table.checklist th:nth-child(3), table.checklist td:nth-child(3), table.checklist th:nth-child(5), table.checklist td:nth-child(5), table.checklist th:nth-child(n+8), table.checklist td:nth-child(n+8) { display: none; } }
