body[data-page="scraping"] #summary { display:none; }
body[data-page="scraping"] .content { padding:16px; max-width:none; display:flex; flex-direction:column; }
.scrape-workspace { flex:1; min-height:0; }
.scrape-center { display:flex; flex-direction:column; overflow:hidden; height:calc(100dvh - 205px); min-height:420px; border-radius:16px; }
.scrape-heading { display:flex; justify-content:space-between; align-items:center; padding:15px 18px; gap:12px; border-bottom:1px solid #e2e8f0; }
.scrape-heading h2 { font-size:16px; margin:0 0 4px; }.scrape-heading p { font-size:11px; margin:0; }.scrape-heading-actions { gap:6px; }
#scrape-refresh-toggle.active { background:#ecfdf5; border-color:#a7f3d0; color:#047857; }
.scrape-toolbar { display:flex; align-items:center; gap:8px; padding:12px 16px; flex-wrap:wrap; border-bottom:1px solid #f1f5f9; }
.scrape-toolbar input,.scrape-toolbar select,.scrape-item-search input { min-height:33px; height:33px; padding:5px 9px; border-radius:8px; font-size:12px; }
#scrape-search-form { display:flex; align-items:center; gap:6px; flex:1; min-width:200px; }#scrape-search { flex:1; width:100%; min-width:0; }
#scrape-source { max-width:180px; }#catalog-job-kind { max-width:140px; }.scrape-page-size,.scrape-item-options label { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:11px; color:#64748b; }
.scrape-page-size select { width:62px; }.scrape-settings { position:relative; font-size:11px; }.scrape-settings>summary { cursor:pointer; border:1px solid #e2e8f0; padding:8px 10px; border-radius:8px; list-style:none; }.scrape-settings>label { position:absolute; z-index:30; right:0; top:38px; min-width:190px; padding:12px; border:1px solid #e2e8f0; border-radius:10px; background:white; box-shadow:0 8px 25px #0f172a15; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.scrape-status-tabs { display:flex; gap:4px; padding:9px 15px; flex-wrap:wrap; border-bottom:1px solid #e2e8f0; }
.scrape-status-tabs button { display:flex; align-items:center; gap:6px; border:1px solid transparent; background:transparent; border-radius:8px; padding:6px 8px; color:#64748b; font-size:11px; cursor:pointer; }
.scrape-status-tabs button[aria-pressed="true"] { background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }.scrape-status-tabs small { padding:0 4px; border-radius:4px; background:#f1f5f9; font-size:10px; }.status-dot { width:6px; height:6px; border-radius:50%; background:#94a3b8; }.running .status-dot { background:#0ea5e9; }.completed .status-dot { background:#10b981; }.failed .status-dot { background:#f43f5e; }.paused .status-dot { background:#f59e0b; }.queued .status-dot { background:#818cf8; }
.scrape-columns { display:flex; min-height:0; flex:1; }.scrape-task-pane { flex:1; min-width:0; display:flex; flex-direction:column; }.scrape-task-scroll { flex:1; min-height:0; overflow:auto; scrollbar-width:thin; }.scrape-task-table { table-layout:fixed; width:100%; min-width:660px; border-collapse:collapse; font-size:11px; }
.scrape-task-table thead { position:sticky; top:0; z-index:2; background:#f8fafc; }.scrape-task-table th { padding:10px 8px; font-size:10px; color:#64748b; font-weight:500; border-bottom:1px solid #e2e8f0; }.scrape-task-table td { padding:12px 8px; vertical-align:top; border-bottom:1px solid #f1f5f9; line-height:1.65; overflow-wrap:anywhere; }.scrape-task-table tbody tr[data-job-id] { cursor:pointer; }.scrape-task-table tbody tr:hover { background:#f8fafc; }.scrape-task-table tbody tr.selected { background:#eff6ff; box-shadow:inset 3px 0 #6366f1; }.scrape-task-table tbody tr:focus-visible { outline:2px solid #818cf8; outline-offset:-2px; }
.scrape-task-table th:nth-child(2) { width:100px; }.scrape-task-table th:nth-child(3) { width:160px; }.scrape-task-table th:nth-child(4) { width:76px; }.scrape-task-table th:nth-child(5) { width:130px; }.scrape-task-table th:nth-child(6) { width:80px; }.scrape-task-table th:last-child { width:75px; }.scrape-path-cell strong,.scrape-path-cell small { display:block; }.scrape-path-cell strong { font-size:11px; font-weight:600; color:#334155; }.scrape-path-cell small { font-size:10px; color:#94a3b8; }.scrape-source-icon { display:inline-grid; place-items:center; width:21px; height:21px; border:1px solid #e2e8f0; border-radius:6px; color:#4285f4; background:white; margin-right:5px; font-weight:700; }.scrape-source-cell>span:last-child { color:#64748b; }
.scrape-progress-cell>span,.scrape-progress-cell>small,.scrape-note-cell>small { display:block; }.scrape-progress-cell small { font-size:9px; color:#64748b; }.scrape-progress-cell progress { width:100%; height:5px; border:0; accent-color:#6366f1; display:block; margin:5px 0; border-radius:5px; overflow:hidden; }.scrape-progress-cell progress::-webkit-progress-bar { background:#e2e8f0; }.scrape-progress-cell progress::-webkit-progress-value { background:#6366f1; }.scrape-time-cell { color:#94a3b8; font-size:10px; }.scrape-note-cell { color:#64748b; font-size:10px; }
.scrape-badge { display:inline-flex; align-items:center; gap:3px; padding:2px 7px; border:1px solid #e2e8f0; background:#f8fafc; border-radius:20px; color:#64748b; font-size:10px; white-space:nowrap; }.scrape-badge.completed { background:#ecfdf5; border-color:#a7f3d0; color:#047857; }.scrape-badge.failed { background:#fff1f2; border-color:#fecdd3; color:#e11d48; }.scrape-badge.running { background:#eff6ff; border-color:#bfdbfe; color:#2563eb; }.scrape-badge.running svg { width:11px; height:11px; animation:spin 1.5s linear infinite; }.scrape-badge.paused,.scrape-badge.review { background:#fffbeb; border-color:#fde68a; color:#b45309; }
.scrape-row-actions { display:flex; gap:3px; flex-wrap:wrap; }.scrape-row-actions .button { padding:3px 5px; min-height:24px; font-size:10px; border-radius:6px; box-shadow:none; }.scrape-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; border-top:1px solid #e2e8f0; color:#64748b; font-size:10px; flex-shrink:0; }.scrape-pagination .button { font-size:10px; padding:4px 7px; min-height:28px; }
.scrape-detail-pane { width:360px; flex-shrink:0; min-width:0; overflow-y:auto; border-left:1px solid #e2e8f0; background:#f8fafc80; scrollbar-width:thin; }.scrape-detail-header { padding:12px; position:sticky; top:0; background:#fff; z-index:3; border-bottom:1px solid #e2e8f0; }.scrape-detail-title { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12px; }.scrape-detail-title #scrape-back { display:none; }.scrape-detail-header>p { font-size:10px; margin:7px 0; overflow-wrap:anywhere; }.scrape-detail-actions { margin-top:8px; }.scrape-detail-summary { margin-top:8px; font-size:11px; }.scrape-detail-summary p { margin:5px 0; overflow-wrap:anywhere; }.scrape-detail-summary small { font-size:10px; }.scrape-mode-tabs { display:flex; margin-top:12px; background:#f1f5f9; border-radius:8px; padding:3px; }.scrape-mode-tabs button { flex:1; border:0; background:transparent; color:#64748b; border-radius:6px; padding:5px; font-size:11px; cursor:pointer; }.scrape-mode-tabs button[aria-pressed="true"] { background:white; color:#334155; box-shadow:0 1px 3px #0f172a12; }
.scrape-item-tabs { display:flex; flex-wrap:wrap; gap:3px; padding:10px 10px 6px; }.scrape-item-tabs button { border:1px solid #e2e8f0; border-radius:6px; background:white; font-size:10px; padding:4px 7px; color:#64748b; cursor:pointer; }.scrape-item-tabs button[aria-pressed="true"] { background:#eef2ff; border-color:#c7d2fe; color:#4f46e5; }.scrape-item-search { display:flex; gap:5px; padding:3px 10px; }.scrape-item-search input { width:100%; min-width:0; font-size:10px; }.scrape-item-search button { padding:4px 7px; font-size:10px; }.scrape-item-options { display:flex; align-items:center; justify-content:space-between; padding:8px 11px; }.scrape-item-options select { height:26px; padding:2px 4px; width:55px; font-size:10px; }.scrape-item-options input { width:12px; height:12px; min-height:0; }
.scrape-item-list { padding:8px 10px 12px; }.scrape-file { background:white; border:1px solid #e2e8f0; border-radius:10px; padding:10px; margin-bottom:8px; box-shadow:0 1px 2px #0f172a04; }.scrape-file-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; }.scrape-file-heading time { color:#94a3b8; font-size:9px; }.scrape-file-name { display:block; font-size:11px; color:#334155; overflow-wrap:anywhere; margin-top:7px; line-height:1.7; }.scrape-file-stage { font-size:10px; color:#64748b; margin:5px 0; }.scrape-file .error-message { font-size:10px; margin:5px 0; }.scrape-match-title { font-size:11px; color:#047857; margin:5px 0; }.scrape-file-extra { font-size:10px; color:#64748b; }.scrape-file-extra summary { cursor:pointer; padding-top:5px; }.scrape-file-extra p { overflow-wrap:anywhere; margin:6px 0; }.scrape-file-extra .button { font-size:10px; padding:3px 6px; min-height:24px; }
.scrape-empty { padding:45px 15px!important; text-align:center; color:#94a3b8; font-size:11px; line-height:1.9; }.scrape-log-entry { padding:12px 8px 12px 16px; border-left:2px solid #c7d2fe; margin:0 0 3px 4px; position:relative; border-bottom:1px solid #e2e8f0; }.scrape-log-entry::before { content:''; width:7px; height:7px; border-radius:50%; background:#818cf8; position:absolute; left:-4px; top:17px; }.scrape-log-entry.has-error::before { background:#f43f5e; }.scrape-log-entry .scrape-file-heading strong { font-size:11px; color:#475569; }.scrape-log-filename { font-size:10px; overflow-wrap:anywhere; margin:6px 0; color:#64748b; }.scrape-log-entry small,.scrape-log-entry code,.scrape-log-entry .error-message { font-size:10px; }.scrape-log-entry code { overflow-wrap:anywhere; }#scrape-detail-error { padding:10px 12px; font-size:11px; }
@media(min-width:1536px) { .scrape-detail-pane { width:384px; } }
@media(min-width:1800px) { .scrape-detail-pane { width:430px; } }
@media(max-width:1279px) { .scrape-detail-pane { display:none; width:100%; border-left:0; }.scrape-workspace.show-detail .scrape-task-pane { display:none; }.scrape-workspace.show-detail .scrape-detail-pane { display:block; }.scrape-detail-title #scrape-back { display:inline-flex; }.scrape-task-table { min-width:720px; }.scrape-center { min-height:420px; } }
@media(max-width:700px) { body[data-page="scraping"] .content { padding:10px; }.scrape-center { min-height:450px; height:calc(100dvh - 185px); }.scrape-heading { padding:12px; flex-wrap:wrap; }.scrape-heading>div:first-child { width:100%; }.scrape-heading h2 { font-size:14px; }.scrape-toolbar { padding:9px; gap:6px; }#scrape-search-form { flex-basis:100%; }#scrape-source { max-width:140px; min-width:0; }#catalog-job-kind { max-width:120px; }.scrape-page-size { margin-left:auto; }.scrape-settings>label { right:auto; left:0; }.scrape-status-tabs { padding:6px; gap:2px; }.scrape-status-tabs button { padding:5px; font-size:10px; }.scrape-task-table { min-width:0; }.scrape-task-table th:nth-child(2),.scrape-task-table td:nth-child(2),.scrape-task-table th:nth-child(6),.scrape-task-table td:nth-child(6),.scrape-task-table th:nth-child(7),.scrape-task-table td:nth-child(7) { display:none; }.scrape-task-table th:nth-child(3) { width:auto; }.scrape-task-table th:nth-child(4) { width:62px; }.scrape-task-table th:nth-child(5) { width:86px; }.scrape-task-table th:last-child { width:50px; }.scrape-task-table td,.scrape-task-table th { padding:9px 5px; }.scrape-progress-cell small { font-size:8px; }.scrape-row-actions .button { font-size:9px; padding:2px 4px; }.scrape-path-cell strong { font-size:10px; }.scrape-badge { font-size:9px; padding:2px 5px; }.scrape-pagination { padding:9px 7px; gap:4px; }.scrape-pagination .button { padding:3px 5px; font-size:9px; }.scrape-file { padding:12px; } }

.scrape-task-table .scrape-select-cell { width:28px; padding-left:8px; padding-right:4px; }.scrape-select-cell input { width:12px; height:12px; min-height:0; margin:4px 0; accent-color:#6366f1; }.scrape-bulk { padding:7px 12px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; background:#eef2ff; border-bottom:1px solid #c7d2fe; color:#4338ca; font-size:11px; }.scrape-bulk button { background:white; border:1px solid #c7d2fe; border-radius:6px; padding:4px 7px; color:#4338ca; font-size:10px; cursor:pointer; }
@media(max-width:1279px) { .scrape-workspace.show-detail .scrape-heading,.scrape-workspace.show-detail .scrape-toolbar,.scrape-workspace.show-detail .scrape-status-tabs,.scrape-workspace.show-detail .scrape-bulk { display:none; } }
.catalog-terminal { background:#101827; color:#cbd5e1; font:12px/1.9 Consolas,"SFMono-Regular","Cascadia Code",monospace; padding:16px; overflow:auto; scrollbar-color:#475569 #101827; white-space:pre-wrap; overflow-wrap:anywhere; tab-size:2; }
.console-line { white-space:pre-wrap; overflow-wrap:anywhere; padding:3px 0 10px; border-bottom:1px solid #1e293b; margin-bottom:7px; }.console-line.info { color:#cbd5e1; }.console-line.warn { color:#fcd34d; }.console-line.error { color:#fda4af; }.console-line.success { color:#86efac; }.console-empty { color:#64748b; padding:24px 0; font:inherit; white-space:pre-wrap; }
#scrape-item-list.catalog-terminal { margin:0; border-radius:0; min-height:260px; max-height:620px; }.console-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 14px; background:#172033; border-bottom:1px solid #334155; color:#cbd5e1; font-size:11px; }.console-toolbar button { background:#243047; border:1px solid #475569; border-radius:6px; color:#e2e8f0; padding:5px 8px; font-size:11px; cursor:pointer; }.console-toolbar button:disabled { opacity:.45; cursor:default; }.console-toolbar label { display:flex; align-items:center; gap:5px; font-size:11px; white-space:nowrap; }.console-toolbar input[type=checkbox] { width:13px; height:13px; min-height:0; accent-color:#38bdf8; }.console-toolbar input[type=search] { flex:1; min-width:200px; background:#101827; color:#e2e8f0; border-color:#475569; min-height:30px; padding:4px 8px; font-size:11px; border-radius:6px; }.console-toolbar input[type=search]::placeholder { color:#94a3b8; }.console-sidebar-tools { gap:5px; padding:8px; }.console-sidebar-tools button,.console-sidebar-tools label { font-size:10px; }.console-sidebar-tools button { padding:4px 6px; }
.catalog-console-dialog { width:min(1200px,94vw); max-width:94vw; height:min(800px,90dvh); max-height:90dvh; padding:0; border:1px solid #334155; border-radius:14px; background:#101827; color:#cbd5e1; overflow:hidden; }.catalog-console-dialog[open] { display:flex; flex-direction:column; }.catalog-console-dialog .dialog-header { background:#172033; border-color:#334155; flex-shrink:0; }.catalog-console-dialog h2 { color:#f1f5f9; font-size:15px; }.catalog-console-dialog .dialog-header p { color:#94a3b8; margin:5px 0 0; font-size:11px; }.catalog-console-dialog .icon-button { color:#cbd5e1; border-color:#475569; }.catalog-console-dialog .catalog-terminal { flex:1; min-height:0; }.console-footer { font-size:10px; padding:9px 14px; color:#94a3b8; border-top:1px solid #334155; background:#172033; }.catalog-console-dialog .error-message { padding:8px 14px; color:#fda4af; font-size:11px; background:#451a26; margin:0; }
@media(max-width:700px) { .catalog-console-dialog { width:96vw; max-width:96vw; height:92dvh; max-height:92dvh; border-radius:10px; }.catalog-terminal { font-size:10px; padding:12px; }.console-toolbar { gap:6px; padding:9px; }.console-toolbar input[type=search] { min-width:0; flex-basis:100%; }.console-toolbar button { font-size:10px; }.catalog-console-dialog .dialog-header { padding:12px; } }
