body{
    margin:0;
    background:#eef3f8;
    color:#213043;
    font-family:Arial,Helvetica,sans-serif;
}
.wrap{max-width:1380px;margin:0 auto;padding:20px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
h1,h2,h3{margin:0 0 14px}
a{color:#0b5ecb;text-decoration:none}
a:hover{text-decoration:underline}
.card{background:#fff;border:1px solid #d5e0ec;border-radius:14px;box-shadow:0 8px 25px rgba(15,32,56,.05);padding:18px;margin-bottom:18px}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.metric{background:#f7fafc;border:1px solid #dde7f1;border-radius:12px;padding:14px}
.metric .label{color:#627084;font-size:12px;margin-bottom:6px}
.metric .value{font-size:28px;font-weight:700}
.value-sm{font-size:22px !important}
.btn{display:inline-block;border:none;background:#0b5ecb;color:#fff;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}
.btn:hover{background:#0a53b4;text-decoration:none}
.btn-secondary{background:#eef4fb;color:#0b5ecb;border:1px solid #b7cde9}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:separate;border-spacing:0}
th,td{border:1px solid #c9d8ea;padding:8px 10px;background:#fff;font-size:14px;vertical-align:middle}
th{position:sticky;top:0;z-index:2;background:#f4f8fd;white-space:nowrap}
td.url-col,th.url-col{min-width:420px;max-width:420px}
.status-cell{text-align:center;font-weight:700;min-width:72px}
.status-indexed{background:#aaf0ab}
.status-not-found{background:#f7df8f}
.status-error{background:#5a5f6b;color:#fff}
.status-empty{background:#f0f3f7;color:#8e98a6}
.status-processing{background:#cde1ff;color:#163765}
.status-queued{background:#eceff4;color:#606b7b}
.form-row{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.filter-grid{display:grid;gap:12px;grid-template-columns:2fr 1fr 1fr auto;align-items:end}
.filter-label{margin-bottom:6px}
.filter-actions{display:flex;gap:10px;align-items:end}
.input,textarea,select{width:100%;box-sizing:border-box;border:1px solid #c7d6e6;border-radius:10px;padding:11px 12px;font-size:14px;background:#fff}
textarea{min-height:180px;resize:vertical}
.notice{padding:12px 14px;border-radius:10px;margin-bottom:14px;background:#eef7ff;border:1px solid #c6ddf6}
.notice.error{background:#fff0f0;border-color:#f0c2c2}
.chart-box{width:100%;height:340px}
.chart-svg{width:100%;height:100%;display:block}
.project-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.project-card{padding:16px;border-radius:14px;background:#fff;border:1px solid #d5e0ec;box-shadow:0 8px 25px rgba(15,32,56,.05)}
.project-card h3{margin-bottom:10px}
.muted{color:#657286}
.empty-box{background:#f7fafc;border:1px dashed #cad8e8;border-radius:12px;padding:18px;color:#6b788a}
pre.log{white-space:pre-wrap;word-break:break-word;margin:0;font-family:Consolas,monospace;font-size:12px;background:#0b1220;color:#d4e0f7;border-radius:12px;padding:14px}
.progress-meta{display:flex;flex-direction:column;gap:12px}
.progress-bar{width:100%;height:14px;background:#e6edf5;border-radius:999px;overflow:hidden}
.progress-bar-inner{height:100%;background:linear-gradient(90deg,#0b5ecb,#5da1ff);border-radius:999px}
.progress-line{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.pill{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}
.pill-running{background:#d9e9ff;color:#0b5ecb}
.pill-ready{background:#eaf7ea;color:#1f7a34}
.pill-drop{background:#ffe0e0;color:#a11d1d}
.pill-recover{background:#dff8e4;color:#196f2e}
@media (max-width:1100px){
    .grid,.project-list,.form-row,.filter-grid,.grid-3{grid-template-columns:1fr}
    td.url-col,th.url-col{min-width:260px;max-width:260px}
    .filter-actions{align-items:stretch}
}


.btn-danger{background:#c93a3a;color:#fff;border:1px solid #b42e2e}
.btn-danger:hover{background:#b42e2e}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.bulk-actions{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.check-col{width:42px;min-width:42px;text-align:center}
