[hidden] { display: none !important; }
main.wide { max-width: 1200px; }
.bar a { color: var(--accent); }
h2 { display: flex; align-items: center; gap: 12px; margin-top: 0; }
button.small { padding: 4px 10px; font-size: 13px; }
button.danger { background: var(--bad); }
.row.wrap { flex-wrap: wrap; align-items: center; }
.row.wrap input[name=name] { flex: 1; min-width: 200px; }
.row input[type=color] { width: 52px; height: 40px; padding: 2px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 4px 12px 4px 0; white-space: nowrap; }
label.inline input { display: inline; width: auto; margin: 0; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; align-items: end; margin-bottom: 12px; }
.grid-form .checks { grid-column: 1 / -1; }
.grid-form button { justify-self: start; }
.notice { background: #fff6d6; color: #5b4500; border-radius: 6px; padding: 10px 12px; }
@media (prefers-color-scheme: dark) { .notice { background: #3a3110; color: #ffe08a; } }
.notice code { font-size: 16px; font-weight: 700; user-select: all; }
td input[type=text], td select { margin: 0; padding: 5px 6px; }
td .swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: middle; }
td.actions { white-space: nowrap; text-align: right; }
td.actions button { margin-left: 4px; }
.scroll { overflow-x: auto; }
table.matrix th, table.matrix td { text-align: center; white-space: nowrap; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
table.matrix .chhead { border-top: 4px solid var(--c); }
table.matrix input { display: inline; width: auto; margin: 0 2px; }
table.matrix label { display: inline-flex; align-items: center; gap: 1px; margin: 0 3px; font-size: 12px; color: var(--muted); }
.tag { font-size: 12px; border-radius: 99px; padding: 1px 8px; background: var(--bg); border: 1px solid var(--line); }
.off { opacity: .5; }
td input[type=color] { width: 56px; height: 34px; padding: 2px; margin: 0; }
button.danger { color: #fff; font-weight: 600; }
button:disabled { opacity: .4; cursor: default; }
.message:empty { min-height: 0; margin: 0; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
details summary { cursor: pointer; }
details table td select { margin: 0; padding: 4px 6px; }
h3 { margin: 18px 0 6px; font-size: 16px; }
.row.wrap .tag { display: inline-flex; align-items: center; gap: 4px; }

.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 24px; }
.scroll.tall { max-height: 360px; overflow: auto; }
pre.log { max-height: 320px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.tag.good { background: #e3f6ea; color: #1b6b3a; border-color: #b5e3c6; }
.tag.warn { background: #fff1d6; color: #7a5200; border-color: #f0d49a; }
.tag.bad { background: #ffe1dc; color: #9b1c0c; border-color: #f3b2a6; }
@media (prefers-color-scheme: dark) { .tag.good { background: #183826; color: #8fe2ad; } .tag.warn { background: #3a3110; color: #ffe08a; } .tag.bad { background: #3a1d1a; color: #ffb2a6; } }
.r-ok { color: #1b8a4a; font-weight: 600; } .r-bad { color: var(--bad); font-weight: 600; }
