:root {
  --bg:#f3f4f6;
  --panel:#ffffff;
  --panel2:#e5e7eb;
  --border:#d1d5db;
  --text:#222;
  --muted:#666;
  --ok:#1f7a3a;
  --bad:#b42318;
  --warn:#b7791f;
}
* { box-sizing:border-box; }
body { margin:0; font-family: Arial, sans-serif; background:var(--bg); color:var(--text); }
a { color:#1f2937; text-decoration: underline; text-underline-offset: 3px; }
.container { max-width:1180px; margin:0 auto; padding:0 18px; }
.topbar { background:#e5e7eb; border-bottom:1px solid var(--border); }
.topbar__inner { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { font-weight:700; font-size:20px; text-decoration:none; color:#111; }
.nav { display:flex; gap:16px; flex-wrap:wrap; }
.nav a { text-decoration:none; color:#333; }
.main { padding:28px 18px 50px; }
.footer { border-top:1px solid var(--border); padding:18px 0; color:var(--muted); font-size:13px; }
.panel { background:var(--panel); border:1px solid var(--border); padding:18px; margin-bottom:18px; }
.hero { background:#f5f5f5; }
h1 { margin:0 0 10px; font-size:30px; }
h2 { margin:0 0 14px; font-size:21px; }
p { margin:0 0 10px; }
.muted { color:var(--muted); }
.break { word-break:break-word; overflow-wrap:anywhere; }
.scan-form label { display:block; font-weight:700; margin-bottom:8px; }
.form-row { display:flex; gap:10px; }
input[type=url], input[type=text] { width:100%; padding:13px 14px; border:1px solid var(--border); font-size:16px; background:#fff; }
button, .button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid #444; background:#333; color:#fff; padding:11px 15px; min-height:42px; cursor:pointer; text-decoration:none; font-size:14px; }
button:hover, .button:hover { background:#111; }
.button.secondary { background:#f3f4f6; color:#222; border-color:var(--border); }
.button.secondary:hover { background:#e5e7eb; }
.button.active { outline:2px solid #777; }
.checkbox { display:flex !important; align-items:flex-start; gap:8px; margin-top:12px; font-weight:400 !important; color:#444; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.small p { margin-top:8px; color:#555; }
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.head-actions, .mode-switch { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.stats-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:18px; }
.stat { margin-bottom:0; }
.stat span { display:block; color:var(--muted); font-size:13px; margin-bottom:8px; }
.stat b { font-size:24px; }
.ok { color:var(--ok); font-weight:700; }
.attention, .error { color:var(--bad); font-weight:700; }
.warn { color:var(--warn); font-weight:700; }
.current-url { padding:12px; background:#f3f4f6; border:1px solid var(--border); word-break:break-word; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; background:#fff; }
th, td { border-bottom:1px solid var(--border); padding:11px 9px; text-align:left; vertical-align:top; }
th { background:#e5e7eb; font-size:13px; color:#333; }
.url-link.ok { color:var(--ok); }
.url-link.attention, .url-link.error { color:var(--bad); }
.badge, .severity { display:inline-block; padding:4px 8px; border:1px solid var(--border); background:#f3f4f6; font-size:12px; }
.badge.running { border-color:#b7791f; color:#8a5a10; }
.badge.finished { border-color:#1f7a3a; color:#1f7a3a; }
.badge.failed, .severity.critical { border-color:#b42318; color:#b42318; }
.severity.warning { border-color:#b7791f; color:#8a5a10; }
.severity.notice { color:#555; }
.actions { display:flex; align-items:center; gap:10px; }
.link-button { background:none; color:#333; border:none; padding:0; min-height:auto; text-decoration:underline; cursor:pointer; }
.summary-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.summary-grid div { display:flex; justify-content:space-between; gap:10px; padding:12px; background:#f3f4f6; border:1px solid var(--border); }
.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.detail-grid div { background:#f3f4f6; border:1px solid var(--border); padding:12px; }
.detail-grid span { display:block; color:#666; font-size:13px; margin-bottom:6px; }
.detail-grid b { display:block; word-break:break-word; }
.detail-grid small { display:block; margin-top:6px; color:#666; }
pre { white-space:pre-wrap; word-break:break-word; background:#f3f4f6; border:1px solid var(--border); padding:8px; max-width:520px; }
.raw-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.dev-data { font-size:12px; max-width:520px; }
@media (max-width:900px) {
  .grid-3, .stats-grid, .detail-grid, .raw-grid { grid-template-columns:1fr; }
  .page-head { flex-direction:column; }
  .head-actions, .mode-switch { justify-content:flex-start; }
  h1 { font-size:24px; }
  .form-row { flex-direction:column; }
  table, thead, tbody, th, td, tr { display:block; }
  thead { display:none; }
  tr { border:1px solid var(--border); margin-bottom:10px; background:#fff; }
  td { border-bottom:1px solid #eee; display:grid; grid-template-columns:130px 1fr; gap:10px; }
  td::before { content:attr(data-label); font-weight:700; color:#555; }
  .actions { display:grid; grid-template-columns:130px 1fr; }
}
.preline { white-space:pre-wrap; }
