/* "Why isn't it dialling?" (why-dialling.js) and the configuration check
   page (admin-configcheck.js). */
.why-box { display: grid; gap: 8px; }
.why-headline { margin: 0; font-weight: 900; font-size: 16px; }
.why-box[data-tone="block"] .why-headline { color: var(--bad-text); }
.why-box[data-tone="limit"] .why-headline { color: var(--warn-text); }
.why-box[data-tone="ok"] .why-headline { color: var(--ok-text); }
.why-facts { margin: 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.why-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 10px;
  border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--border); }
.why-sev { font-size: 12px; font-weight: 900; padding: 2px 8px; border-radius: var(--pill); background: var(--pause-soft); color: var(--pause-text); white-space: nowrap; }
.why-item[data-sev="block"] .why-sev { background: var(--bad-soft); color: var(--bad-text); }
.why-item[data-sev="limit"] .why-sev { background: var(--warn-soft); color: var(--warn-text); }
.why-link { font-size: 13px; font-weight: 800; white-space: nowrap; }
.why-strip { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 8px; }
.why-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.why-head { font-weight: 800; font-size: 14px; }
.why-strip[data-tone="block"] .why-head { color: var(--bad-text); }
.why-strip[data-tone="limit"] .why-head { color: var(--warn-text); }
.why-detail { margin-top: 8px; }
.why-strip .why-detail .why-headline { display: none; } /* the strip shows it already */
.camp-why { font-size: 14px; font-weight: 800; }
.camp-why[data-tone="block"] { color: var(--bad-text); }
.camp-why[data-tone="limit"] { color: var(--warn-text); }
.why-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.why-search input { max-width: 220px; }
.why-results { display: grid; gap: 12px; margin-top: 12px; }

/* Configuration check */
.cc-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: var(--pill); font-size: 12px; font-weight: 900; background: var(--bad); color: var(--on-strong); }
.cc-badge[data-tone="warn"] { background: var(--warn); }
.cc-list { display: grid; gap: 10px; }
.cc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px;
  border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--border); }
.cc-item h3 { margin: 0 0 4px; font-size: 16px; }
.cc-item p { margin: 0 0 6px; }
.cc-sev { font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; background: var(--pause-soft); color: var(--pause-text); }
.cc-item[data-sev="error"] .cc-sev { background: var(--bad-soft); color: var(--bad-text); }
.cc-item[data-sev="warning"] .cc-sev { background: var(--warn-soft); color: var(--warn-text); }
.cc-item[data-sev="tip"] .cc-sev { background: var(--call-soft); color: var(--call-text); }
.cc-item[data-sev="error"] { border-left: 4px solid var(--bad); }
.cc-item[data-sev="warning"] { border-left: 4px solid var(--warn); }
.cc-howto { font-size: 14px; color: var(--muted); }
.cc-acts { display: grid; gap: 6px; justify-items: end; }
.cc-area { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 640px) {
  .cc-item, .why-item { grid-template-columns: 1fr; }
  .cc-acts { justify-items: start; }
}
