.log-app {
  --log-blue: #2563eb;
  --log-blue-soft: #eef4ff;
  --log-green: #15803d;
  --log-amber: #b45309;
  --log-red: #be123c;
  --log-violet: #7c3aed;
  --log-text: #111827;
  --log-muted: #64748b;
  --log-dim: #94a3b8;
  --log-border: #dce3ec;
  --log-surface: #fff;
  --log-subtle: #f7f9fc;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  color: var(--log-text);
  font-family: 'Geist', Arial, sans-serif;
  padding-bottom: 52px;
}
.log-app *, .log-app *::before, .log-app *::after { box-sizing: border-box; }
.log-app button, .log-app input, .log-app select, .log-app textarea { font: inherit; letter-spacing: 0; }
.log-app button { cursor: pointer; }
.log-app [hidden] { display: none !important; }
.log-wrap { width: min(100%, 1600px); margin: 0 auto; }

.page-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:25px; }
.page-tag { display:flex; align-items:center; gap:8px; margin-bottom:9px; color:var(--log-blue); font:650 10px/1.3 'Geist Mono',monospace; letter-spacing:1.5px; }
.page-tag span { width:6px; height:6px; transform:rotate(45deg); background:var(--log-blue); }
.page-header h1 { margin:0; color:var(--log-text); font-size:26px; line-height:1.08; font-weight:720; letter-spacing:0; }
.page-header h1 span { color:var(--log-blue); }
.page-lead { max-width:800px; margin:9px 0 0; color:var(--log-muted); font-size:14px; line-height:1.5; }
.header-actions,.toolbar-actions,.analysis-actions,.section-heading-actions,.ai-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; flex-wrap:wrap; }

.button,.icon-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:41px; border-radius:7px; cursor:pointer; transition:border-color .15s,background-color .15s,color .15s,transform .15s,box-shadow .15s; }
.button { padding:0 15px; border:1px solid var(--log-border); color:var(--log-muted); background:#fff; font-size:12.5px; font-weight:550; text-decoration:none; }
.button svg,.icon-button svg,.privacy-label svg,.panel-kicker svg,.drop-zone svg,.mini-drop-zone svg,.search-field svg { width:17px; height:17px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.button.compact { min-height:35px; padding:0 11px; font-size:11.5px; }
.button-primary { border-color:var(--log-blue); color:#fff; background:var(--log-blue); box-shadow:0 4px 10px rgba(37,99,235,.15); font-weight:650; }
.button-primary:hover:not(:disabled) { border-color:#1d4ed8; background:#1d4ed8; transform:translateY(-1px); }
.button-secondary:hover:not(:disabled),.button-ghost:hover:not(:disabled),.icon-button:hover:not(:disabled) { border-color:#b8c5d8; color:var(--log-text); background:#f9fbfd; }
.button-ghost { background:transparent; }
.button-danger-ghost { color:#b4232d; background:#fff; }
.button-danger-ghost:hover:not(:disabled) { border-color:#fecaca; color:#b4232d; background:#fff7f7; }
.button:disabled,.icon-button:disabled { cursor:not-allowed; opacity:.45; box-shadow:none; transform:none; }
.icon-button { width:42px; padding:0; border:1px solid var(--log-border); color:var(--log-muted); background:#fff; }
.icon-button.bordered { width:38px; min-height:38px; }
.header-ai-button svg { width:18px; height:18px; }
.log-app button:focus-visible,.log-app input:focus-visible,.log-app select:focus-visible,.log-app textarea:focus-visible,.log-app summary:focus-visible { outline:3px solid rgba(37,99,235,.17); outline-offset:1px; }

.card,.diagnostic-card { min-width:0; border:1px solid var(--log-border); border-radius:8px; background:var(--log-surface); box-shadow:0 2px 8px rgba(15,23,42,.035); }
.setup-card { padding:18px 22px; margin-bottom:14px; }
.section-heading,.chart-heading,.analysis-head,.report-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.section-heading.compact { align-items:center; }
.section-heading h2,.analysis-head h2,.report-toolbar h2 { margin:4px 0 0; color:var(--log-text); font-size:18px; line-height:1.3; font-weight:680; letter-spacing:0; }
.section-heading p,.analysis-head p,.report-toolbar p { max-width:760px; margin:5px 0 0; color:var(--log-muted); font-size:10.5px; line-height:1.55; }
.panel-kicker { display:flex; align-items:center; gap:7px; color:var(--log-muted); font:650 9.5px/1.3 'Geist Mono',monospace; letter-spacing:.9px; }
.panel-kicker svg { width:15px; height:15px; stroke:var(--log-blue); }
.privacy-label { display:inline-flex; align-items:center; gap:6px; padding:6px 8px; border:1px solid #bde5c9; border-radius:5px; color:#15803d; background:#f0fdf4; font:600 9.5px/1.2 'Geist Mono',monospace; }
.privacy-label svg { width:15px; height:15px; }

.info-icon { position:relative; display:grid; width:18px; height:18px; min-width:18px; min-height:18px; flex:0 0 18px; place-items:center; padding:0; overflow:visible; border:0; border-radius:4px; color:var(--log-blue); background:transparent; cursor:help; }
.info-icon>svg { display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.info-icon:hover,.info-icon:focus-visible { color:#1d4ed8; background:#eef4ff; }
.section-ai-button { width:35px; height:35px; min-width:35px; padding:0; }
.section-ai-button svg { width:16px; height:16px; }
.distribution-item { display:inline-flex; align-items:center; gap:4px; margin:2px 5px 2px 0; padding:2px 6px; border:1px solid #dce3ec; border-radius:5px; background:#f8fafc; white-space:nowrap; font-size:10px; }
.distribution-item strong { color:#172033; font-weight:650; }

.field,.project-id-field { display:flex; min-width:0; flex-direction:column; gap:6px; color:var(--log-muted); }
.field>span,.project-id-field>span,.format-panel label>span { margin:0; font:550 9.5px/1.3 'Geist Mono',monospace; letter-spacing:.45px; text-transform:uppercase; }
.field small { color:var(--log-dim); font-size:10.5px; line-height:1.4; }
.field small.url-limit-warning.is-warning { color:#b45309; font-weight:650; }
.log-app input:not([type="checkbox"]):not([type="file"]),.log-app select,.log-app textarea { width:100%; min-width:0; border:1px solid var(--log-border); border-radius:7px; color:var(--log-text); background:#f8fafc; font-size:12px; outline:none; }
.log-app input:not([type="checkbox"]):not([type="file"]),.log-app select { height:40px; padding:0 11px; }
.log-app textarea { min-height:72px; padding:10px 11px; resize:vertical; line-height:1.5; }
.log-app input:focus,.log-app select:focus,.log-app textarea:focus { border-color:#9ab5f4; background:#fff; }

.project-controls { display:grid; grid-template-columns:minmax(240px,1.35fr) auto auto minmax(220px,.9fr) auto; align-items:end; gap:9px; }
.setup-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr); gap:15px; margin-top:16px; }
.upload-panel,.format-panel { min-width:0; }
.drop-zone { display:flex; width:100%; min-height:128px; align-items:center; justify-content:center; gap:14px; padding:22px; border:1px dashed #b9c8dc; border-radius:8px; color:var(--log-muted); background:#fafcff; cursor:pointer; text-align:left; }
.drop-zone:hover,.drop-zone.is-dragging { border-color:#7ea2eb; background:#f3f7ff; }
.drop-zone input,.mini-drop-zone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.drop-icon { display:grid; width:44px; height:44px; flex:0 0 auto; place-items:center; border:1px solid #c9d8f6; border-radius:7px; color:var(--log-blue); background:var(--log-blue-soft); }
.drop-icon svg { width:22px; height:22px; }
.drop-copy { display:flex; flex-direction:column; gap:5px; }
.drop-copy strong { color:var(--log-text); font-size:13px; }
.drop-copy small { color:var(--log-dim); font-size:11px; }
.format-panel { display:grid; align-content:start; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.format-panel label:first-child,.format-panel .switch-row { grid-column:1/-1; }
.switch-row { display:flex!important; align-items:flex-start; gap:9px; min-height:40px; padding:8px 10px; border:1px solid var(--log-border); border-radius:7px; background:#f8fafc; cursor:pointer; }
.switch-row input { flex:0 0 auto; margin:3px 0 0; accent-color:var(--log-blue); }
.switch-row>span { display:flex; min-width:0; flex-direction:column; gap:2px; margin:0!important; text-transform:none!important; letter-spacing:0!important; }
.switch-row strong { color:var(--log-text); font-size:10.5px; }
.switch-row small { color:var(--log-muted); font-size:9px; line-height:1.4; }
.file-list { margin-top:9px; border:1px solid var(--log-border); border-radius:7px; overflow:hidden; }
.file-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 10px; border-top:1px solid #edf0f4; font-size:10.5px; }
.file-item:first-child { border-top:0; }
.file-item strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-item span { color:var(--log-muted); font:500 9.5px 'Geist Mono',monospace; }
.advanced-format { margin-top:12px; padding:13px; border:1px solid #cbd8ed; border-radius:7px; background:#f5f8fd; }
.advanced-format-grid,.mapping-grid,.regex-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.advanced-format-grid .full { grid-column:1/-1; }
.advanced-format p { color:var(--log-muted); font-size:10.5px; line-height:1.5; }

.preview-panel { margin-top:12px; border:1px solid var(--log-border); border-radius:7px; overflow:hidden; }
.preview-summary { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:11px 13px; background:#f8fafc; }
.preview-summary>div:first-child { display:flex; min-width:180px; flex-direction:column; gap:3px; }
.preview-summary strong { font-size:11.5px; }
.preview-summary span { color:var(--log-muted); font-size:9.5px; }
.availability-list { display:flex; align-items:center; justify-content:flex-end; gap:5px; flex-wrap:wrap; }
.availability-badge { display:inline-flex; min-height:25px; align-items:center; gap:5px; padding:3px 6px; border:1px solid var(--log-border); border-radius:5px; color:var(--log-muted); background:#fff; font-size:8.5px; }
.availability-badge i { width:6px; height:6px; border-radius:2px; background:#94a3b8; }
.availability-badge.available { border-color:#bde5c9; color:#15803d; background:#f0fdf4; }
.availability-badge.available i { background:#16a34a; }
.preview-details { border-top:1px solid #e8edf3; }
.preview-details>summary { display:flex; min-height:38px; align-items:center; justify-content:space-between; gap:12px; padding:0 13px; color:var(--log-blue); font-size:10.5px; cursor:pointer; list-style:none; }
.preview-details>summary::-webkit-details-marker,.crawl-details>summary::-webkit-details-marker { display:none; }
.preview-details .table-scroll { max-height:270px; }

.table-scroll,.table-shell { width:100%; min-width:0; overflow:auto; }
.log-app table { width:100%; border-collapse:collapse; table-layout:auto; }
.log-app th { position:sticky; top:0; z-index:2; padding:10px 12px; border-bottom:1px solid var(--log-border); color:var(--log-muted); background:#f8fafc; font:650 9px 'Geist Mono',monospace; text-align:left; text-transform:uppercase; white-space:nowrap; }
.log-app td { max-width:420px; padding:11px 12px; border-bottom:1px solid #edf0f4; color:#334155; font-size:10.5px; line-height:1.4; vertical-align:top; }
.log-app tbody tr:hover td { background:#fafcff; }
.log-app td.url-cell { min-width:240px; overflow-wrap:anywhere; color:#1d4ed8; font-size:10.5px; font-weight:550; }
.log-app td.url-cell a { color:inherit; text-decoration:none; }
.log-app td.url-cell a:hover,.log-app td.url-cell a:focus-visible { text-decoration:underline; outline:none; }
.log-app td.number-cell { font:500 10px 'Geist Mono',monospace; text-align:right; white-space:nowrap; }
.sort-button { display:inline-flex; width:100%; align-items:center; justify-content:space-between; gap:7px; padding:0; border:0; color:inherit; background:transparent; font:inherit; letter-spacing:inherit; text-align:left; text-transform:inherit; white-space:nowrap; }
.sort-button:hover,.sort-button:focus-visible,.sort-button.is-sorted { color:var(--log-blue); outline:none; }
.sort-indicator { color:#a0aec0; font:600 10px/1 'Geist Mono',monospace; font-style:normal; }
.sort-button.is-sorted .sort-indicator { color:var(--log-blue); }

.crawl-details { margin-top:13px; border:1px solid #cbd8ed; border-radius:7px; background:#f7faff; overflow:hidden; }
.crawl-details>summary { display:flex; min-height:54px; align-items:center; justify-content:space-between; gap:16px; padding:9px 13px; cursor:pointer; list-style:none; }
.crawl-details>summary>span:first-child { display:flex; min-width:0; flex-direction:column; gap:3px; }
.crawl-details>summary strong { color:var(--log-text); font-size:11.5px; }
.crawl-details>summary small { color:var(--log-muted); font-size:9.5px; line-height:1.4; }
.chevron { width:8px; height:8px; flex:0 0 auto; border-right:1.5px solid #6c7a91; border-bottom:1.5px solid #6c7a91; transform:rotate(45deg); transition:transform .16s; }
details[open]>summary .chevron { transform:rotate(225deg); }
.crawl-content { display:grid; gap:12px; padding:0 13px 13px; }
.mini-drop-zone { display:flex; min-height:54px; align-items:center; gap:10px; padding:8px 10px; border:1px dashed #b9c8dc; border-radius:7px; color:var(--log-muted); background:#fff; cursor:pointer; }
.mini-upload-icon { display:grid; width:34px; height:34px; flex:0 0 auto; place-items:center; border-radius:6px; color:var(--log-blue); background:var(--log-blue-soft); }
.mini-drop-zone>span:last-child { display:flex; min-width:0; flex-direction:column; gap:3px; }
.mini-drop-zone strong { color:var(--log-blue); font-size:10.5px; }
.mini-drop-zone small { color:var(--log-muted); font-size:9px; }

.analysis-footer { display:grid; grid-template-columns:minmax(220px,1fr) minmax(220px,auto) auto; align-items:end; gap:11px; margin-top:14px; padding:14px; border:1px solid #cbd8ed; border-radius:7px; background:#f5f8ff; }
.progress-wrap { margin-top:12px; padding:11px 13px; border:1px solid #cbd8ed; border-radius:7px; background:#f5f8ff; }
.progress-line { height:5px; overflow:hidden; border-radius:99px; background:#d6e1fa; }
.progress-line span { display:block; width:0; height:100%; border-radius:inherit; background:var(--log-blue); transition:width .2s ease; }
.progress-copy { display:flex; justify-content:space-between; gap:12px; margin-top:7px; font-size:10px; }
.progress-copy span { color:var(--log-muted); }

.report { display:grid; gap:14px; }
.report-toolbar { align-items:center; padding:13px 15px; border:1px solid #bdd0ee; border-radius:8px; background:#f5f8ff; }
.report-toolbar>div:first-child { min-width:0; }
.report-toolbar h2 { font-size:16px; }
#reportContext { max-width:780px; }
.kpi-grid { position:relative; display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:9px; }
.kpi-card { display:flex; min-width:0; min-height:102px; flex-direction:column; justify-content:center; padding:15px; border:1px solid var(--log-border); border-radius:8px; background:#fff; }
.kpi-label { display:block; min-height:26px; color:var(--log-muted); font-size:9.5px; line-height:1.35; }
.kpi-value { display:block; margin-top:6px; overflow:hidden; color:var(--log-text); font-size:20px; line-height:1.1; font-weight:680; text-overflow:ellipsis; white-space:nowrap; }
.kpi-note { display:block; min-height:13px; margin-top:5px; color:var(--log-dim); font:500 9px 'Geist Mono',monospace; line-height:1.35; }
.kpi-card.is-alert { border-color:#fecaca; background:#fffafb; }
.kpi-card.is-good { border-color:#bde5c9; background:#f9fffc; }

.chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.chart-card { margin:0; padding:20px 22px; }
.chart-heading { align-items:flex-start; margin-bottom:12px; }
.chart-heading-controls { display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end; gap:8px; }
.chart-filter { display:flex; align-items:center; gap:7px; color:var(--log-muted); font:600 8.5px 'Geist Mono',monospace; letter-spacing:.35px; text-transform:uppercase; }
.chart-filter select { width:auto!important; min-width:145px!important; height:31px!important; padding:0 28px 0 9px!important; border-radius:6px!important; font-size:10px!important; text-transform:none; letter-spacing:0; }
.chart-heading h3 { margin:4px 0 0; font-size:16px; line-height:1.3; font-weight:680; }
.chart-heading p { max-width:610px; margin:5px 0 0; color:var(--log-muted); font-size:10.5px; line-height:1.55; }
.chart { min-height:255px; overflow:hidden; }
.chart svg { display:block; width:100%; height:255px; overflow:visible; }
.chart text { fill:#64748b; font-family:'Geist Mono',monospace; font-size:9px; }
.chart .grid-line { stroke:#e8edf4; stroke-width:1; }
.chart .chart-line { fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.chart .chart-point { stroke:#fff; stroke-width:1.5; pointer-events:none; }
.chart .timeline-hover-zone { fill:transparent; cursor:crosshair; transition:fill .12s; }
.chart .timeline-hover-zone:hover { fill:rgba(37,99,235,.055); }
.chart-legend { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:-2px; }
.legend-item { display:inline-flex; align-items:center; gap:5px; color:var(--log-muted); font-size:9px; }
.legend-dot { width:7px; height:7px; border-radius:2px; }
.bar-list { display:grid; gap:11px; padding-top:5px; }
.bar-row { display:grid; grid-template-columns:minmax(100px,.7fr) minmax(120px,2fr) auto; align-items:center; gap:10px; font-size:10px; }
.bar-label { overflow:hidden; color:var(--log-muted); text-overflow:ellipsis; white-space:nowrap; }
.bar-track { height:9px; overflow:hidden; border-radius:99px; background:#edf1f6; }
.bar-fill { height:100%; min-width:2px; border-radius:inherit; background:var(--log-blue); }
.bar-value { min-width:52px; color:var(--log-text); font:600 9.5px 'Geist Mono',monospace; text-align:right; }
.donut-layout { display:grid; grid-template-columns:minmax(170px,1fr) minmax(150px,.75fr); align-items:center; gap:12px; height:255px; }
.donut-layout svg { height:220px; }
.donut-legend { display:grid; gap:9px; }
.donut-legend .legend-item { justify-content:space-between; }
.legend-name { display:inline-flex; align-items:center; gap:6px; }

.diagnostic-card { overflow:hidden; border-color:#cbd8ed; background:#f2f6fc; }
.analysis-head { align-items:center; padding:19px 21px 15px; }
.tabs { display:flex; gap:6px; overflow-x:auto; padding:0 16px 12px; scrollbar-width:thin; }
.tab-button { display:flex; min-height:33px; flex:0 0 auto; align-items:center; gap:6px; padding:0 9px; border:1px solid #d8e1ec; border-radius:7px; color:#5f6f85; background:rgba(255,255,255,.58); font-size:9.75px; white-space:nowrap; cursor:pointer; }
.tab-button:hover { border-color:#b9cae2; color:var(--log-blue); background:#fff; }
.tab-button[aria-selected="true"] { border-color:#9fb8e4; color:#1d4ed8; background:#fff; box-shadow:0 2px 7px rgba(37,99,235,.09); font-weight:650; }
.tab-button:disabled { opacity:.4; cursor:not-allowed; }
.tab-count { display:grid; min-width:17px; height:17px; place-items:center; padding:0 4px; border-radius:4px; color:var(--log-dim); background:rgba(148,163,184,.14); font:600 8px 'Geist Mono',monospace; }
.tab-description { min-height:36px; padding:9px 17px; border-top:1px solid #dce4ef; border-bottom:1px solid #dce4ef; color:var(--log-muted); background:#f8fafc; font-size:10.5px; line-height:1.55; }
.table-tools { display:flex; align-items:center; gap:9px; padding:10px 12px; background:#fff; }
.search-field { position:relative; display:flex; min-width:260px; max-width:520px; flex:1 1 360px; align-items:center; }
.search-field svg { position:absolute; z-index:1; left:11px; width:15px; height:15px; color:var(--log-dim); }
.search-field input { height:38px!important; padding-left:34px!important; }
#tableResultCount { margin-left:auto; color:var(--log-muted); font:500 9.5px 'Geist Mono',monospace; }
.table-shell { min-height:310px; max-height:620px; border-top:1px solid #e1e6ee; border-bottom:1px solid #e1e6ee; background:#fff; }
.status-pill { display:inline-flex; min-width:39px; justify-content:center; padding:3px 6px; border-radius:4px; color:#51627b; background:#edf2f8; font:600 9px 'Geist Mono',monospace; }
.status-pill.s2 { color:#11744d; background:#e8f8f1; }.status-pill.s3 { color:#9c6610; background:#fff4df; }.status-pill.s4,.status-pill.s5 { color:#b52d3b; background:#fdebed; }
.empty-state { display:grid; min-height:180px; place-items:center; padding:28px; color:var(--log-muted); font-size:11px; text-align:center; }
.loading-state::after { content:""; width:22px; height:22px; margin-top:10px; border:2px solid #d7e0ef; border-top-color:var(--log-blue); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:5px; padding:10px 18px; background:#fff; }
.page-button { min-width:30px; height:30px; border:1px solid var(--log-border); border-radius:6px; color:var(--log-muted); background:#fff; font:500 9px 'Geist Mono',monospace; }
.page-button:hover:not(:disabled),.page-button.is-active { border-color:var(--log-blue); color:var(--log-blue); background:var(--log-blue-soft); }
.page-button:disabled { cursor:default; opacity:.45; }

.tooltip,.chart-tooltip { position:fixed; z-index:10050; max-width:min(300px,calc(100vw - 24px)); padding:9px 10px; border:1px solid #cbd5e1; border-radius:6px; color:#334155; background:#fff; box-shadow:0 10px 28px rgba(15,23,42,.14); font:500 10.5px/1.55 'Geist',Arial,sans-serif; pointer-events:none; }
.chart-tooltip { font-family:'Geist Mono',monospace; white-space:pre-line; }

.log-modal-open { overflow:hidden; }
.app-modal { position:fixed; z-index:10020; inset:0; display:grid; place-items:center; padding:22px; }
.app-modal[hidden] { display:none!important; }
.app-modal-backdrop { position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; background:rgba(15,23,42,.55); backdrop-filter:blur(2px); cursor:default; }
.app-modal-card { position:relative; z-index:1; display:flex; width:min(900px,calc(100vw - 32px)); max-height:min(850px,calc(100vh - 32px)); flex-direction:column; overflow:hidden; border:1px solid #d9e1ec; border-radius:8px; background:#fff; box-shadow:0 28px 80px rgba(15,23,42,.28); }
.projects-modal-card { width:min(860px,calc(100vw - 32px)); }
.app-modal-head { display:flex; flex:0 0 auto; align-items:flex-start; justify-content:space-between; gap:18px; padding:16px 18px; border-bottom:1px solid var(--log-border); background:#f8fafc; }
.modal-title-row { display:flex; min-width:0; align-items:flex-start; gap:11px; }
.modal-icon { display:grid; width:35px; height:35px; flex:0 0 auto; place-items:center; border-radius:7px; color:var(--log-blue); background:var(--log-blue-soft); }
.modal-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.app-modal-head h2 { margin:0; font-size:16px; line-height:1.3; font-weight:680; }
.app-modal-head p { margin:4px 0 0; color:var(--log-muted); font-size:10.5px; line-height:1.5; }
.dialog-close { display:grid; width:31px; height:31px; flex:0 0 auto; place-items:center; padding:0; border:1px solid var(--log-border); border-radius:6px; color:var(--log-muted); background:#fff; }
.dialog-close:hover { border-color:#b8c5d8; color:var(--log-text); }
.dialog-close svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.app-modal-body { min-height:0; overflow:auto; padding:18px; }
.projects-modal-body { display:grid; gap:16px; }
.modal-privacy-note { display:flex; align-items:flex-start; gap:8px; padding:10px 11px; border:1px solid #cbd8ed; border-radius:7px; color:var(--log-muted); background:#f5f8ff; font-size:10px; line-height:1.5; }
.modal-privacy-note svg { width:16px; height:16px; flex:0 0 auto; fill:none; stroke:var(--log-blue); stroke-width:1.8; }
.ai-body { display:grid; gap:13px; }
.ai-section-label { color:var(--log-muted); font:600 9px 'Geist Mono',monospace; letter-spacing:.5px; text-transform:uppercase; }
.ai-mode-switch { display:flex; gap:5px; overflow-x:auto; }
.ai-mode-switch button { min-height:33px; padding:0 10px; border:1px solid var(--log-border); border-radius:6px; color:var(--log-muted); background:#f8fafc; font-size:9.75px; white-space:nowrap; }
.ai-mode-switch button:hover { border-color:#b9cae2; color:var(--log-blue); background:#fff; }
.ai-mode-switch button[aria-pressed="true"] { border-color:#9fb8e4; color:#1d4ed8; background:#eef4ff; box-shadow:0 1px 4px rgba(37,99,235,.08); font-weight:650; }
.ai-output { min-height:190px; padding:15px; border:1px solid var(--log-border); border-radius:7px; color:#263348; background:#fff; font-size:12px; line-height:1.7; }
.ai-output h3 { margin:18px 0 7px; font-size:14px; }.ai-output h3:first-child { margin-top:0; }.ai-output ul,.ai-output ol { padding-left:20px; }.ai-output code { padding:2px 4px; border-radius:4px; background:#f0f3f7; font:500 10px 'Geist Mono',monospace; }.ai-error { color:#b4232d; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.comparison-upload-panel { display:grid; grid-template-columns:minmax(220px,.85fr) minmax(300px,1.15fr); align-items:center; gap:13px; margin-top:12px; padding:13px; border:1px solid #b9ccef; border-radius:8px; background:#f5f8ff; }
.comparison-copy { display:flex; min-width:0; flex-direction:column; gap:4px; }
.comparison-copy>strong { font-size:12px; }
.comparison-copy>small { color:var(--log-muted); font-size:9.5px; line-height:1.45; }
.comparison-upload-panel .mini-drop-zone { min-height:62px; }
.comparison-file-list { grid-column:1/-1; width:100%; margin-top:0; background:#fff; }
.sitemap-content { grid-template-columns:minmax(0,1fr); }
.sitemap-status { padding:8px 10px; border:1px solid var(--log-border); border-radius:6px; color:var(--log-muted); background:#fff; font:500 9.5px/1.45 'Geist Mono',monospace; }
.sitemap-status.is-loading { border-color:#bfd0ef; color:#1d4ed8; background:#f5f8ff; }
.sitemap-status.is-success { border-color:#bde5c9; color:#15803d; background:#f0fdf4; }
.sitemap-status.is-error { border-color:#fecaca; color:#b4232d; background:#fff7f7; }

.advanced-report,.comparison-report { min-width:0; overflow:hidden; border:1px solid #cbd8ed; border-radius:8px; background:#f2f6fc; box-shadow:0 2px 8px rgba(15,23,42,.035); }
.advanced-report-head,.comparison-report-head { align-items:center; }
.advanced-chart-grid,.comparison-chart-grid { padding:0 13px 13px; }
.advanced-chart-grid .chart-card,.comparison-chart-grid .chart-card { box-shadow:none; }
.comparison-report { border-color:#b9ccef; background:#f4f7fd; }
.comparison-wide { grid-column:1/-1; }
.comparison-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; padding:0 13px 13px; }
.comparison-kpi { display:flex; min-width:0; min-height:86px; flex-direction:column; justify-content:center; padding:12px; border:1px solid #d7e0ec; border-radius:7px; background:#fff; }
.comparison-kpi>span { color:var(--log-muted); font-size:9px; line-height:1.3; }
.comparison-kpi>strong { margin-top:5px; overflow:hidden; font-size:17px; font-weight:680; text-overflow:ellipsis; white-space:nowrap; }
.comparison-kpi>small { margin-top:4px; font:550 8.5px/1.3 'Geist Mono',monospace; }
.comparison-kpi>small.up { color:#b45309; }.comparison-kpi>small.down { color:#15803d; }.comparison-kpi>small.neutral { color:var(--log-muted); }

.chart-heading-controls { max-width:100%; flex-wrap:wrap; }
.chart-export-actions { display:inline-flex; flex:0 0 auto; align-items:center; gap:3px; }
.chart-action { display:grid; width:auto; min-width:27px; height:24px; min-height:24px; place-items:center; padding:0 5px; border:1px solid #d7e0ec; border-radius:5px; color:#64748b; background:#fff; font:650 8px/1 'Geist Mono',monospace; }
.chart-action:hover:not(:disabled),.chart-action:focus-visible { border-color:#9fb8e4; color:#1d4ed8; background:#f5f8ff; }
.chart-action-image { min-width:25px; padding:0; }
.chart-action-full { min-width:74px; border-color:#bfd0ef; color:#1d4ed8; background:#f5f8ff; font-size:7.5px; }
.chart-action svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.full-export-button { border-color:#bfd0ef; color:#1d4ed8; background:#f5f8ff; white-space:nowrap; }
.full-export-button:hover:not(:disabled) { border-color:#8eaae0; color:#1749b6; background:#edf4ff; }
.table-status-filter { flex:0 0 auto; }
.table-status-filter select { min-width:92px!important; }
.chart-action:disabled { cursor:wait; opacity:.45; }
.chart-insights { display:flex; align-items:stretch; gap:6px; overflow-x:auto; margin-bottom:13px; padding-bottom:2px; }
.chart-insights>span { display:flex; min-width:max-content; flex-direction:column; gap:2px; padding:6px 8px; border:1px solid #e0e6ee; border-radius:6px; color:var(--log-muted); background:#f8fafc; font-size:8.5px; }
.chart-insights strong { color:var(--log-text); font:650 10px/1.2 'Geist Mono',monospace; }

.grouped-bar-list { display:grid; gap:11px; padding-top:4px; }
.grouped-bar-row { display:grid; grid-template-columns:minmax(110px,.75fr) minmax(150px,2fr) minmax(105px,auto); align-items:center; gap:10px; }
.grouped-tracks { display:grid; gap:4px; }
.grouped-track { height:7px; overflow:hidden; border-radius:99px; background:#edf1f6; }
.grouped-track i { display:block; min-width:2px; height:100%; border-radius:inherit; }
.grouped-values { display:grid; gap:3px; font:600 8.5px/1 'Geist Mono',monospace; text-align:right; white-space:nowrap; }
.grouped-legend { margin-top:14px; }
.crawl-details[hidden]{display:none!important}
.sitemap-enable-row{margin:0;padding:10px 12px;border:1px solid #d8e2f1;border-radius:7px;background:#fff}
.sitemap-enable-row>span{gap:3px}
.sitemap-enable-row strong{font-size:10.5px}
.sitemap-enable-row small{font-size:9.5px;line-height:1.45}
.sitemap-options{display:grid;gap:10px;margin-top:10px}
.sitemap-options[hidden]{display:none!important}
.sitemap-audit-note{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #dbe6f5;border-radius:6px;color:var(--log-muted);background:#f8fbff;font-size:9.5px;line-height:1.45}
.sitemap-audit-note strong{flex:0 0 auto;color:var(--log-text);font-size:9.5px}
.data-source-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.data-source-badge{display:inline-flex;align-items:center;min-height:18px;padding:2px 6px;border:1px solid #cbd8ed;border-radius:999px;color:#334155;background:#f8fafc;font:650 8px/1.25 'Geist Mono',monospace;white-space:nowrap}
.data-source-badge.sitemap,.data-source-badge.is-sitemap{border-color:#b9dfd8;color:#0f766e;background:#effcf9}
.data-source-badge.live,.data-source-badge.is-live{border-color:#bfd0ef;color:#1d4ed8;background:#f2f6ff}
.data-source-badge.logs,.data-source-badge.is-logs{border-color:#d7c8f2;color:#6d28d9;background:#f7f3ff}
.source-badges-cell{min-width:142px}
.source-badges-cell .data-source-badge{margin:1px 3px 1px 0}
.chart-insights>span.insight-source{justify-content:center;border-color:#b9dfd8;color:#0f766e;background:#effcf9;font:700 8.5px/1.3 'Geist Mono',monospace}
.chart-insights>span.insight-source.is-live{border-color:#bfd0ef;color:#1d4ed8;background:#f2f6ff}
.chart-insights>span.insight-source.is-combined{border-color:#d7c8f2;color:#6d28d9;background:#f7f3ff}
@media(max-width:1250px){.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.comparison-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.project-controls{grid-template-columns:minmax(180px,1fr) auto auto}.project-id-field{grid-column:1/2}.analysis-footer{grid-template-columns:1fr auto}.analysis-footer>.field{grid-column:1/-1}}
@media(max-width:900px){.page-header,.report-toolbar{align-items:flex-start;flex-direction:column}.comparison-upload-panel{grid-template-columns:1fr}.header-actions{justify-content:flex-start}.setup-grid,.chart-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-controls{grid-template-columns:1fr auto}.project-controls select,.project-id-field{grid-column:1/-1}.advanced-format-grid,.mapping-grid,.regex-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.page-header h1{font-size:26px}.setup-card{padding:18px 14px}.section-heading,.analysis-head,.chart-heading{align-items:flex-start;flex-direction:column}.section-heading-actions,.analysis-actions{justify-content:flex-start}.project-controls,.analysis-footer,.advanced-format-grid,.mapping-grid,.regex-grid{grid-template-columns:1fr}.project-controls>*,.analysis-footer>*,.advanced-format-grid>*,.mapping-grid>*,.regex-grid>*{grid-column:auto!important}.format-panel{grid-template-columns:1fr}.format-panel>*{grid-column:auto!important}.preview-summary{flex-direction:column}.availability-list{justify-content:flex-start}.chart-card{padding:17px 13px}.analysis-head{padding:16px 13px 12px}.table-tools{flex-wrap:wrap}.search-field{min-width:100%;max-width:none}.donut-layout{grid-template-columns:1fr;height:auto}.donut-layout svg{height:190px}.tooltip,.chart-tooltip{max-width:calc(100vw - 24px)}.app-modal{padding:10px}.app-modal-card{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.app-modal-head,.app-modal-body{padding:14px}.chart-heading-controls{width:100%;justify-content:flex-start}.chart-filter{min-width:180px;flex:1}.chart-filter select{width:100%!important}.comparison-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.grouped-bar-row{grid-template-columns:90px 1fr auto;gap:6px}}
@media(max-width:460px){.drop-zone{align-items:flex-start;flex-direction:column}.kpi-grid,.comparison-kpis{grid-template-columns:1fr}.kpi-card{min-height:92px}.bar-row{grid-template-columns:90px 1fr auto;gap:6px}.toolbar-actions .button{flex:1}.ai-mode-switch{width:100%}}
@media print{.sidebar,.topbar,.menu-top,.header-actions,.info-trigger,.tabs,.table-tools,.pagination,.toolbar-actions{display:none!important}.main,.content,.log-app{width:100%!important;margin:0!important;padding:0!important}.card,.diagnostic-card,.kpi-card{box-shadow:none;break-inside:avoid}.table-shell{max-height:none;overflow:visible}}
