:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fafafa; color: #1a1a1a; line-height: 1.5; }
.container { max-width: 1080px; margin: 0 auto; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 600; }
.subtitle { color: #666; font-size: 14px; margin: 0 0 18px; }
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.mode-tabs { display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; background: #eef0f3; border-radius: 10px; width: fit-content; }
.mode-tab { padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 500; color: #555; cursor: pointer; border: none; background: transparent; font-family: inherit; transition: background .15s; }
.mode-tab.active { background: #fff; color: #1a1a1a; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
label.field-label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
input[type="url"], input[type="number"], input[type="date"] { padding: 10px 12px; font-size: 14px; border: 1px solid #d4d4d4; border-radius: 8px; font-family: inherit; background: #fff; color: #1a1a1a; }
input[type="url"] { width: 100%; }
input[type="url"]:focus, input[type="number"]:focus, input[type="date"]:focus { outline: none; border-color: #4a7dff; box-shadow: 0 0 0 3px rgba(74,125,255,.1); }
.group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #888; letter-spacing: .4px; margin: 16px 0 6px; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #e5e5e5; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; background: #fff; }
.check:hover { background: #f6f8ff; border-color: #c8d4ff; }
.check input { margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.check-text { font-size: 13px; }
.check-title { font-weight: 600; color: #1a1a1a; }
.check-title .site-tag { display: inline-block; padding: 1px 6px; font-size: 9px; background: #eef0f3; color: #555; border-radius: 4px; margin-left: 6px; vertical-align: 1px; font-weight: 500; }
.check-desc { color: #666; font-size: 12px; margin-top: 2px; }
.period-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.period-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #d4d4d4; border-radius: 8px; cursor: pointer; font-size: 13px; user-select: none; background: #fff; }
.period-chip input { margin: 0; }
.period-chip:has(input:checked) { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.row-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row-inline > div { display: flex; flex-direction: column; }
button.primary { padding: 11px 22px; font-size: 14px; font-weight: 600; background: #1a1a1a; color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: background .15s; font-family: inherit; }
button.primary:hover:not(:disabled) { background: #333; }
button.primary:disabled { background: #ccc; cursor: not-allowed; }
button.secondary { padding: 11px 14px; font-size: 13px; font-weight: 500; background: #fff; color: #444; border: 1px solid #d4d4d4; border-radius: 8px; cursor: pointer; font-family: inherit; }
button.secondary:hover { background: #f5f5f5; }
.status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 13px; display: none; }
.status.info { background: #eef4ff; color: #1e40af; border: 1px solid #c8d4ff; display: block; }
.status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }
.progress-wrap { margin-top: 12px; }
.progress-bar { height: 6px; background: #eef0f3; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #2563eb; transition: width .3s; }
.progress-text { font-size: 12px; color: #666; margin-top: 6px; word-break: break-all; }
.result-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 18px; margin-bottom: 12px; border-left: 4px solid #ddd; }
.result-card.risk-high { border-left-color: #dc2626; }
.result-card.risk-medium { border-left-color: #f59e0b; }
.result-card.risk-low { border-left-color: #65a30d; }
.result-card.risk-none { border-left-color: #94a3b8; }
.result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.result-title { font-size: 15px; font-weight: 600; margin: 0; }
.risk-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.risk-badge.risk-high { background: #fee2e2; color: #991b1b; }
.risk-badge.risk-medium { background: #fef3c7; color: #92400e; }
.risk-badge.risk-low { background: #dcfce7; color: #166534; }
.risk-badge.risk-none { background: #f1f5f9; color: #475569; }
.result-section { margin-top: 10px; font-size: 13px; }
.result-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #888; letter-spacing: .4px; margin-bottom: 4px; }
.result-section-body { color: #333; white-space: pre-wrap; word-wrap: break-word; }
.result-section-body ul { margin: 4px 0; padding-left: 20px; }
.result-section-body li { margin-bottom: 4px; }
.match-tag { display: inline-block; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; padding: 3px 8px; border-radius: 6px; margin: 3px 4px 3px 0; font-size: 12px; font-weight: 500; }
.match-tag.org { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.match-tag.foreign { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.match-tag.russian { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.source-link { display: inline-block; margin-top: 6px; font-size: 12px; color: #2563eb; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.page-meta { font-size: 12px; color: #666; background: #f5f5f5; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; word-break: break-all; }
.page-meta a { color: #2563eb; text-decoration: none; }
.disclaimer { font-size: 11px; color: #888; margin-top: 16px; padding: 12px; background: #f9fafb; border-radius: 8px; line-height: 1.5; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #c8d4ff; border-top-color: #2563eb; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 600px) { .summary-grid { grid-template-columns: repeat(2, 1fr); } }
.summary-cell { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 14px; text-align: center; }
.summary-cell-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #888; letter-spacing: .4px; margin-bottom: 4px; }
.summary-cell-value { font-size: 24px; font-weight: 600; color: #1a1a1a; }
.summary-cell.high .summary-cell-value { color: #dc2626; }
.summary-cell.medium .summary-cell-value { color: #f59e0b; }
.summary-cell.low .summary-cell-value { color: #65a30d; }
.summary-cell.none .summary-cell-value { color: #94a3b8; }
.results-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; }
.results-table th { background: #f5f5f5; padding: 10px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #555; letter-spacing: .4px; text-align: left; border-bottom: 1px solid #e5e5e5; }
.results-table th.center, .results-table td.center { text-align: center; }
.results-table td { padding: 10px 8px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; }
.results-table tr.row-clickable { cursor: pointer; }
.results-table tr.row-clickable:hover { background: #f6f8ff; }
.results-table .row-detail { background: #fafafa; }
.dot-badge { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; }
.dot-badge.risk-high { background: #dc2626; }
.dot-badge.risk-medium { background: #f59e0b; }
.dot-badge.risk-low { background: #65a30d; }
.dot-badge.risk-none { background: #cbd5e1; }
.dot-badge.risk-error { background: #d1d5db; outline: 1px dashed #888; outline-offset: -1px; }
.url-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-cell a { color: #2563eb; text-decoration: none; }
.legend { font-size: 11px; color: #666; margin-top: 8px; }
.legend span { margin-right: 12px; }
.audit-block { margin-bottom: 16px; }
.audit-block-header { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #555; letter-spacing: .4px; margin-bottom: 8px; padding: 4px 8px; background: #eef0f3; border-radius: 4px; display: inline-block; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.toolbar-info { font-size: 13px; color: #555; margin-right: auto; }
