
:root{--bg:#ffffff;--muted:#6b7280;--card:#f8fafc;--border:#e5e7eb;--text:#111827;--accent:#111827}
*{box-sizing:border-box}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;line-height:1.5;color:var(--text);background:linear-gradient(#fff,#f7fafc)}
h1,h2,h3{margin:0 0 .5rem 0}
.container{max-width:1000px;margin:0 auto;padding:16px}
.small{font-size:.875rem}
.muted{color:var(--muted)}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:16px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media (max-width:800px){.grid{grid-template-columns:repeat(2,1fr)}}
textarea{width:100%;min-height:120px;padding:12px;border-radius:12px;border:1px solid var(--border);font-family:inherit}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
button{padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:#111827;color:#fff;cursor:pointer}
button.secondary{background:#fff;color:#111827}
button.ghost{background:transparent;color:var(--accent)}
button:disabled{opacity:.6;cursor:not-allowed}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:10px;border-bottom:1px solid var(--border);vertical-align:top}
.badge{display:inline-block;padding:.2rem .5rem;border-radius:999px;border:1px solid var(--border);font-size:.75rem}
.stat{display:flex;flex-direction:column;align-items:center;justify-content:center}
.stat-title{font-size:.9rem;color:var(--muted)}
.stat-value{font-size:2rem;font-weight:700}
.stat-sub{font-size:.8rem;color:var(--muted)}
.filters{margin-bottom:8px}
.rules{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:800px){.rules{grid-template-columns:1fr}}
