:root { color: #172033; background: #eef2f7; font-family: Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { background: #175cd3; border: 1px solid #175cd3; border-radius: 7px; color: white; cursor: pointer; font-weight: 700; padding: 10px 15px; }
button.secondary { background: white; color: #175cd3; }
button.danger { background: white; border-color: #d92d20; color: #d92d20; padding: 6px 9px; }
input, textarea { border: 1px solid #cbd5e1; border-radius: 7px; padding: 11px; width: 100%; }
input:focus, textarea:focus { border-color: #175cd3; outline: 2px solid #b2ccff; }
.topbar { align-items: center; background: #101828; color: white; display: flex; justify-content: space-between; min-height: 62px; padding: 0 28px; }
.topbar nav { align-items: center; display: flex; gap: 20px; }
.topbar a { color: #e4e7ec; text-decoration: none; }
.brand { font-size: 20px; font-weight: 800; }
.workspace { margin: auto; max-width: 1180px; padding: 28px 22px 50px; }
.page-heading, .section-heading { align-items: center; display: flex; justify-content: space-between; }
.page-heading { margin-bottom: 20px; }
h1, h2 { margin: 4px 0 0; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
.eyebrow { color: #667085; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: #667085; }
.section { background: white; border: 1px solid #e4e7ec; border-radius: 10px; margin-bottom: 18px; padding: 22px; }
.policy-panel { border-top: 4px solid #175cd3; }
.mode-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.mode-card { border: 1px solid #d0d5dd; border-radius: 8px; cursor: pointer; display: grid; gap: 7px; padding: 15px; }
.mode-card:has(input:checked) { background: #eff8ff; border-color: #175cd3; }
.mode-card input { width: auto; }
.mode-card span { color: #667085; font-size: 13px; line-height: 1.4; }
.columns, .list-columns { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-panel, .activity-panel, .list-columns > * { min-width: 0; }
.whitelist-panel { border-top: 4px solid #12b76a; }
.blacklist-panel { border-top: 4px solid #f04438; }
.import-panel select { border: 1px solid #cbd5e1; border-radius: 7px; padding: 10px; }
.inline-form { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; margin: 18px 0; }
.import-panel input, .import-panel textarea, .import-panel button { margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #eaecf0; padding: 11px 8px; text-align: left; }
th { color: #667085; font-size: 12px; text-transform: uppercase; }
td input[type="checkbox"] { width: auto; }
.row-actions { text-align: right; }
.call-list-actions { white-space: nowrap; }
button.compact { font-size: 12px; padding: 6px 8px; }
.empty-state { color: #667085; padding: 25px; text-align: center; }
.status, .result { border-radius: 999px; font-size: 12px; font-weight: 800; padding: 6px 10px; }
.status.waiting { background: #e4e7ec; }
.status.active, .result.allowed { background: #dcfae6; color: #067647; }
.status.error, .result.blocked { background: #fee4e2; color: #b42318; }
.message { border-radius: 7px; bottom: 20px; padding: 12px 16px; position: fixed; right: 20px; }
.message.success { background: #067647; color: white; }
.message.error { background: #b42318; color: white; }
.hidden { display: none; }
.login-shell { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 20px; }
.login-form { background: white; border-top: 5px solid #175cd3; border-radius: 10px; box-shadow: 0 12px 35px #1018281a; padding: 32px; width: min(410px, 100%); }
.login-form p { color: #667085; line-height: 1.5; }
.login-form label { color: #475467; display: grid; font-size: 13px; font-weight: 700; gap: 6px; margin-top: 14px; }
.login-form button { margin: 22px 0 14px; width: 100%; }
.login-form small { color: #667085; }
.form-link { color: #175cd3; display: block; font-size: 14px; font-weight: 700; margin-bottom: 14px; text-align: center; text-decoration: none; }
@media (max-width: 850px) {
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .columns, .list-columns { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 16px; }
  .topbar nav { flex-wrap: wrap; gap: 10px 14px; justify-content: flex-start; width: 100%; }
  .topbar nav span { display: none; }
  .workspace { overflow-x: hidden; padding: 18px 12px 40px; }
  .section { padding: 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mode-grid { grid-template-columns: 1fr; }
  .list-columns { grid-template-columns: minmax(0, 1fr); }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
}
