:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 34px auto 70px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.eyebrow { color: #68738a; font-weight: 800; font-size: 11px; letter-spacing: .12em; }
h1 { margin: 7px 0 6px; font-size: clamp(26px, 4vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
h1 span { color: #7d879d; font-size: .55em; vertical-align: .18em; margin-left: 4px; }
.topbar p, .section-head p { color: #6f798d; margin: 0; line-height: 1.55; max-width: 820px; }
.health { white-space: nowrap; border: 1px solid #dce2ed; background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 800; color: #68738a; }
.health.ok { color: #147547; border-color: #c8ead8; background: #f2fbf6; }
.health.bad { color: #aa2d2d; border-color: #f0c7c7; background: #fff7f7; }
.panel { background: #fff; border: 1px solid #e3e7ef; border-radius: 16px; box-shadow: 0 8px 30px rgba(34, 48, 76, .05); }
.input-panel { padding: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
textarea { width: 100%; resize: vertical; min-height: 155px; border: 1px solid #d7deea; border-radius: 12px; padding: 13px 14px; outline: none; line-height: 1.55; background: #fbfcfe; }
textarea:focus, select:focus { border-color: #7aa1f5; box-shadow: 0 0 0 3px rgba(68, 120, 230, .12); }
.control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.field { margin: 0; }
.field span { display: block; color: #626e84; margin-bottom: 7px; }
select { width: 100%; border: 1px solid #d7deea; background: white; border-radius: 9px; padding: 9px 10px; outline: none; }
.actions-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.actions { display: flex; gap: 9px; white-space: nowrap; }
button { border-radius: 9px; border: 1px solid transparent; padding: 10px 14px; font-weight: 800; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: #356ee6; color: #fff; }
.primary:hover:not(:disabled) { background: #285fd0; }
.secondary { background: #fff; color: #42506a; border-color: #d7deea; }
.notice { flex: 1; padding: 10px 12px; border-radius: 10px; background: #f7f9fd; color: #66728a; font-size: 12px; line-height: 1.5; }
.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.summary-grid article { background: #fff; border: 1px solid #e3e7ef; border-radius: 13px; padding: 14px 15px; }
.summary-grid span { display: block; color: #788399; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.summary-grid strong { font-size: 23px; letter-spacing: -.03em; }
.results-panel, .log-panel { overflow: hidden; }
.log-panel { margin-top: 14px; }
.result-head { padding: 19px 21px 0; }
.mini-actions { display: flex; gap: 12px; }
.text-btn { background: transparent; padding: 4px; border: 0; color: #356ee6; font-size: 12px; }
.text-btn.danger { color: #ba4242; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { text-align: left; padding: 10px 15px; font-size: 10px; color: #7d879a; text-transform: uppercase; letter-spacing: .05em; background: #fafbfc; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
td { padding: 13px 15px; border-bottom: 1px solid #edf0f5; vertical-align: middle; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.page-cell { max-width: 320px; }
.page-url { display: block; font-weight: 750; color: #29344a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-meta { display: block; color: #8992a4; font-size: 10px; margin-top: 3px; }
.metric { font-weight: 800; }
.metric.good { color: #147547; }
.metric.warn { color: #a3610e; }
.metric.bad { color: #b23636; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 900; letter-spacing: .025em; }
.badge.ok { color: #147547; background: #eaf8f0; }
.badge.warn { color: #a3610e; background: #fff5df; }
.badge.bad { color: #b23636; background: #fff0f0; }
.badge.neutral { color: #59647a; background: #eef1f6; }
.details-btn { background: transparent; border: 0; color: #356ee6; padding: 5px; font-size: 11px; }
.empty-row td { text-align: center; color: #8a94a6; padding: 36px 20px; }
#runStatus.running { color: #356ee6; font-weight: 700; }
#runStatus.stopped { color: #ad3b3b; font-weight: 700; }
#runStatus.done { color: #147547; font-weight: 700; }
dialog { width: min(860px, calc(100% - 28px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 25px 90px rgba(21, 31, 52, .28); }
dialog::backdrop { background: rgba(18, 25, 40, .52); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid #e9edf3; }
.dialog-head h3 { margin: 5px 0 0; font-size: 18px; }
.icon-btn { border: 0; background: #f1f3f7; width: 33px; height: 33px; padding: 0; border-radius: 50%; font-size: 22px; color: #59647a; }
#detailContent { padding: 20px 22px 24px; max-height: 72vh; overflow: auto; }
.detail-grid { display: grid; grid-template-columns: 170px 1fr; gap: 9px 15px; font-size: 12px; }
.detail-grid dt { color: #7f899d; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.section-block { margin-top: 20px; border-top: 1px solid #e9edf3; padding-top: 16px; }
.section-block h4 { margin: 0 0 9px; font-size: 13px; }
.post-item { padding: 9px 0; border-bottom: 1px solid #eff2f6; }
.post-item:last-child { border: 0; }
.post-item strong { font-size: 11px; }
.post-item a { display: block; color: #356ee6; font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; background: #f6f8fb; border-radius: 8px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .shell { width: min(100% - 20px, 1180px); margin-top: 22px; }
  .topbar { flex-direction: column; }
  .health { align-self: flex-start; }
  .control-grid { grid-template-columns: 1fr; }
  .actions-row { align-items: stretch; flex-direction: column; }
  .actions button { flex: 1; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head.result-head { flex-direction: column; }
  .detail-grid { grid-template-columns: 1fr; gap: 3px; }
  .detail-grid dd { margin-bottom: 8px; }
}
