:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f6f8;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #ffffff 0, #f4f6f8 38rem); }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.shell { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 72px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 22px; }
.eyebrow { margin: 0 0 10px; color: #667085; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 62px); letter-spacing: -.045em; line-height: .98; }
.lead { max-width: 760px; margin: 18px 0 0; color: #5b6575; line-height: 1.7; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 10px; }
.hero-meta div { min-width: 120px; padding: 14px 16px; border: 1px solid #e1e5ea; background: rgba(255,255,255,.82); border-radius: 16px; box-shadow: 0 8px 28px rgba(31,41,55,.04); }
.hero-meta span { display: block; color: #7a8493; font-size: 12px; }
.hero-meta strong { display: block; margin-top: 5px; font-size: 18px; }
.panel, .summary { border: 1px solid #e1e5ea; background: rgba(255,255,255,.94); border-radius: 20px; box-shadow: 0 12px 34px rgba(31,41,55,.055); }
.summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 26px; margin-bottom: 16px; }
.summary.ready { border-color: #cbd8cf; background: #fbfefc; }
.summary-label { color: #697586; font-size: 12px; font-weight: 700; }
.summary h2 { margin: 6px 0 4px; font-size: 28px; }
.summary p { margin: 0; color: #687386; line-height: 1.6; }
.summary-speed { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; margin-bottom: 12px; }
.control-copy h2, .section-head h2 { margin: 0 0 6px; font-size: 18px; }
.control-copy p, .section-head p { margin: 0; color: #697586; line-height: 1.5; font-size: 14px; }
.current-task { margin-top: 6px !important; color: #2f3b4e !important; font-weight: 650; }
.actions, .config-actions, .selection-actions, .row-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
button { border: 1px solid #d8dde5; background: #fff; color: #273244; padding: 10px 15px; border-radius: 11px; font-weight: 700; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); border-color: #b8c0cc; box-shadow: 0 7px 16px rgba(31,41,55,.08); }
button.primary { background: #172033; border-color: #172033; color: #fff; }
button.primary-soft { background: #f1f4f8; border-color: #ccd4df; color: #243247; }
button.danger { color: #9b3434; }
.selection-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 18px; margin-bottom: 12px; }
.selection-panel strong { margin-right: 10px; }
.selection-panel span { color: #6f7a8a; font-size: 13px; }
.selection-actions button { padding: 8px 12px; }
.table-panel { overflow: hidden; }
.section-head { padding: 20px 22px 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1180px; }
th { padding: 12px 14px; text-align: left; color: #758093; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; background: #fafbfc; }
td { padding: 16px 14px; vertical-align: top; border-bottom: 1px solid #edf0f3; }
tbody tr:last-child td { border-bottom: 0; }
.check-col, .check-cell { width: 62px; text-align: center; }
.target-check { width: 17px; height: 17px; margin-top: 3px; accent-color: #172033; }
.route-title { font-weight: 800; }
.route-url { max-width: 330px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; color: #788394; font-size: 12px; white-space: nowrap; }
.bar { width: min(300px, 100%); height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #edf0f3; }
.bar i { display: block; height: 100%; background: #526277; border-radius: inherit; transition: width .18s linear; }
.live { display: inline-block; margin-top: 7px; color: #526277; font-size: 12px; font-weight: 650; }
.error-text { margin-top: 7px; color: #a23d3d; font-size: 12px; max-width: 330px; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: #f0f2f5; color: #5f6b7a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.done, .status.quickDone { background: #eaf4ed; color: #356244; }
.status.quick, .status.full { background: #eaf0f8; color: #35577f; }
.status.shortlisted { background: #f3efe4; color: #75612f; }
.status.error { background: #faecec; color: #943c3c; }
.status.stopped { background: #f3f4f6; color: #667085; }
.submetric { margin-top: 3px; color: #7a8492; font-size: 12px; }
.action-col { min-width: 190px; }
.row-actions { min-width: 190px; }
.row-actions button { padding: 8px 10px; font-size: 12px; }
.config-panel { margin-top: 16px; padding: 18px 20px 20px; }
.config-panel summary { cursor: pointer; font-weight: 800; }
.config-panel p { color: #697586; line-height: 1.65; font-size: 14px; }
.config-panel code { padding: 2px 5px; border-radius: 6px; background: #f1f3f5; }
textarea { width: 100%; min-height: 220px; resize: vertical; border: 1px solid #d9dee6; border-radius: 12px; padding: 12px 13px; color: #253146; background: #fbfcfd; line-height: 1.6; outline: none; }
textarea:focus { border-color: #aab5c4; box-shadow: 0 0 0 3px rgba(82,98,119,.08); }
.config-actions { margin-top: 10px; }
.inline-message { color: #6f7b8c; font-size: 13px; }
.inline-message.ok { color: #3e6c4d; }
.inline-message.bad { color: #9b3d3d; }
.note { margin-top: 16px; padding: 15px 18px; color: #667181; line-height: 1.65; font-size: 13px; border-left: 3px solid #bdc5d0; }
@media (max-width: 900px) {
  .shell { width: min(100% - 22px, 1320px); padding-top: 26px; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-meta div { min-width: 0; }
  .summary, .controls, .selection-panel { align-items: flex-start; flex-direction: column; }
  .summary-speed { white-space: normal; }
}
@media (max-width: 560px) {
  .hero-meta { grid-template-columns: 1fr; }
  .actions button { flex: 1 1 100%; }
  .selection-actions { width: 100%; }
  .selection-actions button { flex: 1; }
}
