.app-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type="search"] { flex: 1 1 220px; padding: 10px 14px; border-radius: 980px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 15px; }
.list { max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who span { color: var(--muted); font-size: 14px; }
.row.protected { opacity: 0.55; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.counter { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; text-align: center; }
.counter b { display: block; font-size: 24px; font-weight: 600; }
.counter.ok b { color: var(--ok); }
.counter.bad b { color: var(--bad); }
.counter span { color: var(--muted); font-size: 13px; }
.log { height: 240px; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.log .ok { color: var(--ok); }
.log .bad { color: var(--bad); }
.hidden { display: none !important; }

/* Layout utilities. The deployed CSP ships style-src 'self' with no
   'unsafe-inline', so every bit of layout has to live in a class, not a
   style="" attribute. */
.section-pad-lg { padding: 64px 0; }
.section-pad { padding: 32px 0; }
.muted-14 { color: var(--muted); font-size: 14px; }
.muted-13 { color: var(--muted); font-size: 13px; }
.hint-bottom { color: var(--muted); font-size: 14px; margin-top: 20px; }
.card-gap { margin-bottom: 16px; }
.field-label { display: block; margin-bottom: 8px; }
.number-input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 15px; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
