
:root{
  --bg:#f3f4f6; --card:#fff; --text:#111827; --muted:#6b7280; --border:#e5e7eb;
  --green:#34d399; --blue:#60a5fa;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial}
.container{max-width:1100px;margin:auto;padding:24px}
h1{font-size:28px;margin:0 0 16px}
h2{font-size:22px;margin:0 0 12px}
h3{font-size:16px;margin:0 0 8px}
.mt{margin-top:16px}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}
.grid-2{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:16px}
label{display:flex;flex-direction:column;gap:6px;font-weight:600}
input,select{padding:10px;border:1px solid var(--border);border-radius:8px;font:inherit}
.radios{display:flex;gap:16px;align-items:center;margin-bottom:8px}
.swatch{display:inline-block;width:16px;height:16px;border:1px solid #0001;border-radius:3px;vertical-align:middle}
.swatch.green{background:var(--green)}
.swatch.blue{background:var(--blue)}
.layout-grid{display:grid;grid-template-columns:repeat(4, 42px);gap:6px}
.layout-grid .cell{width:42px;height:42px;border:1px solid var(--border);border-radius:6px;cursor:pointer;background:#fff;transition:filter .15s}
.layout-grid .cell:hover{filter:brightness(.96)}
.layout-grid .cell.g0{background:var(--green)}
.layout-grid .cell.g1{background:var(--blue)}
.btn{margin-top:16px;background:#2563eb;color:#fff;border:none;border-radius:10px;padding:12px 16px;font-weight:700;cursor:pointer}
.btn:hover{filter:brightness(.95)}
table{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px}
th,td{border:1px solid var(--border);padding:8px;text-align:left}
tfoot td{font-weight:800}
.hint{color:var(--muted);font-size:12px;margin-top:6px}
@media (max-width:800px){.grid-2{grid-template-columns:1fr} .layout-grid{grid-template-columns:repeat(4, 38px)} .layout-grid .cell{width:38px;height:38px}}
