* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1c1b1a; background: #f6f4f0; }
a { color: #8a3b12; }
main { padding: 12px 16px 40px; max-width: 1200px; margin: 0 auto; }
h1 { font-size: 1.35rem; margin: 8px 0 12px; }
h1 small { font-weight: normal; color: #6b6660; font-size: .9rem; }
h2 { font-size: 1.05rem; margin: 16px 0 6px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: #1c1b1a; color: #fff; }
.top a, .top .linkbtn { color: #fff; text-decoration: none; margin-left: 14px; }
.top .brand { margin: 0; font-weight: 700; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.row.nowrap { flex-wrap: nowrap; margin: 0; }
.tools { padding: 8px; background: #fff; border: 1px solid #e3ded6; border-radius: 6px; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.stack label.check { flex-direction: row; align-items: center; gap: 8px; }
.narrow { max-width: 420px; }
.center { text-align: center; margin: 15vh auto 0; }
input, select, button, .btn { font: inherit; padding: 8px 10px; border: 1px solid #c9c2b8; border-radius: 6px; background: #fff; color: inherit; min-height: 40px; }
input[type=search] { flex: 1 1 240px; }
input[type=checkbox] { min-height: 0; width: 20px; height: 20px; }
input[readonly] { background: #efece7; color: #555; }
.short { max-width: 120px; } .short2 { width: 130px; }
button, .btn { cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.primary { background: #8a3b12; border-color: #8a3b12; color: #fff; font-weight: 600; }
.danger { border-color: #b3261e; color: #b3261e; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 0; cursor: pointer; font: inherit; }
form.inline { display: inline; margin: 0; }
.flash { padding: 8px 12px; border-radius: 6px; }
.flash.ok { background: #e3f1e1; color: #1d5b1a; }
.flash.err { background: #fbe4e2; color: #8c1d15; }
.ferr { color: #b3261e; font-weight: normal; font-size: .9rem; }
.warn { color: #8a5a00; font-weight: normal; font-size: .9rem; }
.muted { color: #6b6660; } .small { font-size: .85rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.testplay { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px dashed #c9c2b8; border-radius: 6px; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid #e3ded6; border-radius: 6px; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 6px 8px; border-bottom: 1px solid #eee9e2; text-align: left; vertical-align: middle; white-space: nowrap; }
td:nth-child(2), td:nth-child(3) { white-space: normal; min-width: 140px; }
th { background: #f0ece6; font-weight: 600; }
tr.off td { color: #9a948c; }
