* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; }
a { color: #0f5f9e; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.navbar { background: #fff; padding: 14px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 750; color: #172033; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.link-button { background: transparent; border: 0; color: #0f5f9e; min-height: 0; padding: 0; }
.danger-link { color: #b42318; }
.page { padding: 24px 0 48px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-header h1 { margin: 0; }
.page-subtitle { margin: 4px 0 0; }
.grid { display: grid; gap: 18px; }
.dashboard-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.panel { background: #fff; border: 1px solid #e3e7ee; border-radius: 8px; padding: 16px; }
.stack { display: grid; gap: 12px; }
.compact { gap: 10px; }
.filter-bar { display: grid; grid-template-columns: 2fr repeat(5, minmax(120px, 1fr)) auto; gap: 8px; margin-bottom: 16px; }
input, select, button { min-height: 38px; border: 1px solid #ccd4df; border-radius: 6px; padding: 8px 10px; font: inherit; background: #fff; }
.button, button { background: #1f6feb; color: #fff; border-color: #1f6feb; font-weight: 650; cursor: pointer; }
.button-row { display: flex; align-items: center; gap: 12px; }
.auth-panel, .form-panel { max-width: 620px; margin: 32px auto; }
.status-message { margin-bottom: 16px; color: #05603a; }
.error-text { margin: -6px 0 0; color: #b42318; }
label { display: grid; gap: 6px; font-weight: 650; }
textarea { border: 1px solid #ccd4df; border-radius: 6px; padding: 8px 10px; font: inherit; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { min-height: auto; }
.table-panel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e3e7ee; text-align: left; }
.table-actions { display: flex; align-items: center; gap: 10px; }
.muted { color: #667085; }
.text-clip { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-card h2 { margin: 6px 0 8px; font-size: 1.1rem; }
.article-card p { margin: 0 0 12px; color: #475467; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; background: #eef4ff; color: #1849a9; font-size: .78rem; font-weight: 650; }
.ticker-tag { margin-right: 8px; background: #ecfdf3; color: #05603a; }
.detail-tag { background: #f2f4f7; color: #344054; }
.source-filter { display: flex; align-items: end; gap: 12px; margin-bottom: 16px; }
.source-filter label { min-width: min(420px, 100%); }
.source-groups { display: grid; gap: 16px; }
.source-group { padding: 0; overflow: hidden; }
.source-group-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e3e7ee; }
.source-table-wrap { border: 0; border-radius: 0; padding: 0; }
.urgent-link { display: grid; gap: 4px; color: #172033; }
.urgent-link span { color: #b42318; font-size: .85rem; }
.lead { color: #475467; font-size: 1.05rem; }
.full-text { white-space: pre-wrap; line-height: 1.65; }
@media (max-width: 920px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .filter-bar { grid-template-columns: 1fr; }
    .source-filter, .source-group-header { align-items: stretch; flex-direction: column; }
}
