:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #262b33; background: #f5f6f8; font-size: 14px; letter-spacing: 0;
  --red: #b32330; --blue: #2866b9; --line: #e3e7ed; --muted: #747e8c;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button, select, input, textarea { border: 1px solid #d4dbe5; border-radius: 4px; background: #fff; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 13px; white-space: normal; }
button:hover { background: #eef2f7; }
input, select, textarea { padding: 9px 11px; max-width: 100%; min-width: 0; }
input[type=checkbox] { accent-color: var(--blue); width: 16px; height: 16px; flex: 0 0 auto; }
textarea { resize: vertical; line-height: 1.7; }
svg.lucide { width: 17px; height: 17px; flex-shrink: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 18px; font-weight: 650; }
h2 { font-size: 15px; font-weight: 650; }
.muted { color: var(--muted); font-size: 12px; }
.error { color: var(--red); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 550; }
.primary:hover { background: #20589f; }
.top-spacer { flex: 1; min-width: 0; }
[hidden] { display: none !important; }
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 2px 6px #202c3d06; }
.topbar { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid #eff1f5; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; flex-shrink: 0; }
.brand img { width: 33px; height: 33px; border-radius: 6px; }
.connection { font-size: 12px; display: flex; align-items: center; gap: 7px; color: #677381; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #8c96a2; }
.connection.online .status-dot { background: #169b70; }
.connection.offline .status-dot { background: #c05542; }
#clock { font-variant-numeric: tabular-nums; font-size: 12px; color: #727d8b; white-space: nowrap; }
.icon-button { width: 34px; height: 34px; min-height: 34px; padding: 7px; border: 0; background: transparent; border-radius: 4px; flex: 0 0 auto; }
.icon-button[aria-pressed=true] { background: #eaf1fb; color: var(--blue); }
.navigation { display: flex; gap: 7px; border-bottom: 1px solid var(--line); padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
.navigation::-webkit-scrollbar { display: none; }
.navigation a { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 13px; color: #626e7c; }
.navigation a.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 650; }
.navigation a:hover { background: #f7f9fc; }
main { max-width: 1440px; margin: 0 auto; padding: 0 28px 50px; }
.view { min-width: 0; min-height: 65vh; }
.feed-toolbar, .section-toolbar { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 17px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: relative; }
.view[aria-busy=true] > .feed-toolbar::after, .view[aria-busy=true] > .section-toolbar::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--blue); opacity: .55; }
.feed-toolbar input { width: 220px; }
.feed-toolbar select { max-width: 220px; }
.news-layout { display: grid; grid-template-columns: minmax(0,1fr) 224px; gap: 28px; }
.feed-column { min-width: 0; }
.feed { background: #fff; border-left: 1px solid #e9edf2; border-right: 1px solid #e9edf2; }
.feed-day { font-size: 12px; font-weight: 600; color: #667585; padding: 11px 18px; border-bottom: 1px solid var(--line); background: #f0f3f7; }
.news-row { display: grid; grid-template-columns: 78px minmax(0,1fr); padding: 16px 22px 12px 0; border-bottom: 1px solid var(--line); }
.news-row:hover { background: #fafcff; }
.news-time { font-size: 12px; color: #84909d; display: flex; align-items: flex-start; justify-content: center; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-main { min-width: 0; }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; color: #7c8591; }
.source-name { font-weight: 650; color: #405d79; }
.tag { display: inline-block; padding: 1px 5px; color: #92721f; background: #fff4d3; border-radius: 2px; font-size: 11px; }
.news-title { font-size: 15px; line-height: 1.8; font-weight: 450; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-title a:hover { color: var(--blue); }
.news-row.is-priority .news-title, .news-row.is-priority .article-full { color: var(--red); }
.news-row.is-priority .news-title a:hover { color: var(--red); text-decoration: underline; }
.news-row.is-priority .tag { color: var(--red); background: #fcecef; }
.ai-brief { font-size: 16px; line-height: 1.85; color: var(--red); margin-top: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.symbol-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.symbol { font-size: 12px; color: #35765c; background: #ecf6f0; padding: 2px 6px; border-radius: 2px; }
.article-footer { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.article-details { flex: 1; min-width: 0; font-size: 12px; color: #7a8796; padding-top: 5px; }
.article-details summary { cursor: pointer; width: fit-content; padding: 2px 0; }
.article-full { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; margin-top: 12px; color: #454f5d; font-size: 14px; }
.article-actions { display: flex; gap: 1px; margin-left: auto; }
.article-actions button { color: #8a95a4; width: 30px; height: 30px; min-height: 30px; }
.article-actions button:hover { color: var(--blue); }
.source-sidebar { padding: 20px 0; align-self: start; position: sticky; top: 122px; }
.source-sidebar h2 { margin-bottom: 14px; }
.status-row { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 12px; }
.status-row .source-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-light { width: 5px; height: 5px; border-radius: 50%; background: #a0a9b5; flex-shrink: 0; }
.source-light.good { background: #169b70; }
.source-light.bad { background: #c37535; }
.status-time { color: #8993a0; font-variant-numeric: tabular-nums; font-size: 11px; }
.aside-footer { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: flex; justify-content: space-between; font-size: 12px; }
.load-more { width: 100%; margin-top: 15px; color: #687789; background: transparent; border-color: #dfe5ed; }
.new-items { position: sticky; top: 118px; z-index: 5; margin: 10px auto; background: #edf3fc; color: var(--blue); border-color: #cbdaf0; box-shadow: 0 2px 5px #1829410a; }
.empty { padding: 56px 20px; color: #828d9c; text-align: center; font-size: 14px; line-height: 1.8; }
.loading { padding: 35px 20px; color: #7a8491; text-align: center; line-height: 1.8; }
.subheading { margin-top: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.report-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 36px; padding-top: 26px; }
.history-column { min-width: 0; }
.history-column h2 { color: #697888; font-size: 12px; margin: 0 12px 14px; }
.report-history { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.history-button { background: transparent; border: 0; border-left: 2px solid transparent; border-radius: 0; text-align: left; justify-content: flex-start; flex-direction: column; align-items: flex-start; padding: 12px; gap: 7px; min-height: 64px; font-size: 12px; line-height: 1.7; }
.history-button.selected { background: #eaf0f8; border-left-color: var(--blue); color: #255797; }
.history-button small { color: #7c8896; font-size: 11px; }
.history-empty { color: #8a95a2; font-size: 12px; padding: 10px 12px; }
.report-body { padding: 2px 0 26px; max-width: 1040px; min-width: 0; }
.report-title { font-size: 22px; line-height: 1.65; margin-bottom: 12px; overflow-wrap: anywhere; }
.report-meta { display: flex; gap: 13px; flex-wrap: wrap; color: #84909e; font-size: 12px; line-height: 1.8; margin-bottom: 24px; }
.report-overview { font-size: 18px; color: var(--red); line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 28px; }
.report-section { padding: 22px 0; border-top: 1px solid var(--line); }
.report-section h2 { margin-bottom: 14px; font-size: 16px; }
.report-section p, .report-section li { line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.report-section ul { padding-left: 20px; margin: 0; }
.report-item { padding: 11px 0; }
.report-item h3 { font-size: 15px; margin: 0 0 5px; line-height: 1.8; }
.report-item p { color: #4b5764; font-size: 14px; }
.coverage { font-size: 12px; color: #718091; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 14px; }
.coverage.warning { color: #ac5c1c; }
.custom-window { display: flex; gap: 20px; padding-top: 18px; flex-wrap: wrap; }
.custom-window label { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.x-summary { max-width: 1100px; padding-top: 26px; min-height: 160px; }
.lower-toolbar { border-top: 1px solid var(--line); }
.tweet { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 1100px; }
.tweet > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13px; flex-wrap: wrap; position: relative; padding-right: 24px; }
.tweet > summary::after { content: "+"; position: absolute; top: 1px; right: 0; color: #718297; font-size: 17px; }
.tweet[open] > summary::after { content: "-"; }
.tweet > summary strong { font-size: 14px; color: #335c8f; }
.tweet-preview { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6d7a89; line-height: 1.8; }
.tweet[open] .tweet-preview { display: none; }
.tweet-body { padding-top: 14px; font-size: 15px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.tweet-raw { color: #7a8693; font-size: 13px; margin-top: 10px; }
.tweet-original, .article-original { margin-top: 14px; }
.tweet-original > summary { cursor: pointer; font-size: 12px; white-space: normal; }
.tweet-link { display: inline-flex; gap: 5px; align-items: center; color: #366aa8; font-size: 12px; margin-top: 12px; }
.source-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 36px; }
.source-control { display: flex; gap: 12px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.source-control label { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.source-control small { color: #7e8997; font-size: 12px; white-space: nowrap; }
.option-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 24px; padding: 12px 0; }
.option-grid label { display: flex; gap: 9px; align-items: center; overflow-wrap: anywhere; padding: 13px 0; }
.listing-types { display: flex; gap: 12px 22px; flex-wrap: wrap; padding: 22px 0; font-size: 14px; color: #617082; }
.settings-form { max-width: 640px; display: flex; flex-direction: column; gap: 23px; padding-top: 28px; }
.settings-form > label { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.settings-form .toggle-row { flex-direction: row; justify-content: space-between; align-items: center; min-height: 42px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.toggle-row small { margin-left: 10px; color: #8893a0; }
.settings-form input.switch { appearance: none; width: 35px; height: 20px; border-radius: 10px; background: #c5ced9; border: 0; padding: 3px; margin: 0; cursor: pointer; }
.settings-form input.switch::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; }
.settings-form input.switch:checked { background: var(--blue); }
.settings-form input.switch:checked::before { transform: translateX(15px); }
.volume-control { display: flex; align-items: center; gap: 14px; color: #758497; }
.volume-control input { flex: 1; padding: 0; accent-color: var(--blue); }
.volume-control output { width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
.settings-form button { align-self: flex-start; min-width: 120px; }
.table-wrapper { overflow-x: auto; padding: 15px 0; scrollbar-color: #c6cfdb transparent; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; text-align: left; background: #fff; }
.data-table th { font-weight: 550; color: #657587; background: #edf1f6; padding: 12px; white-space: nowrap; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); line-height: 1.8; max-width: 450px; overflow-wrap: anywhere; }
.data-table tbody tr:hover { background: #f8faff; }
.data-table td:last-child { min-width: 88px; }
.positive { color: var(--red); }
.negative { color: #288568; }
.stock-performance { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-performance.negative { color: #20714f; }
.stock-performance.flat { color: #657587; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: min(600px,90vw); padding: 12px 20px; background: #2c333d; color: #fff; border-radius: 4px; z-index: 20; font-size: 13px; line-height: 1.7; box-shadow: 0 4px 20px #0002; }
.bootstrap-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: #738295; }
.bootstrap-view img { width: 36px; height: 36px; border-radius: 6px; }
.bootstrap-view strong { font-size: 20px; color: #303944; }
.bootstrap-view span { font-size: 12px; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-form { width: min(384px,100%); display: flex; flex-direction: column; gap: 23px; background: #fff; padding: 36px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 30px #20334d07; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.login-brand img { width: 44px; height: 44px; border-radius: 7px; }
.login-brand h1 { font-size: 26px; line-height: 1.4; }
.login-brand .muted { font-size: 11px; }
.login-form label { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.login-form input { width: 100%; height: 42px; }
.login-form .primary { width: 100%; height: 42px; }
.login-form .error:empty { display: none; }
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { padding-right: 43px; }
.password-field button { position: absolute; right: 4px; color: #7e8b9d; }
@media(min-width: 1800px) {
  .topbar, .navigation { padding-left: max(28px,calc((100vw - 1384px)/2)); padding-right: max(28px,calc((100vw - 1384px)/2)); }
}
@media(max-width: 1000px) {
  .news-layout { grid-template-columns: minmax(0,1fr) 180px; gap: 22px; }
  .option-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-layout { grid-template-columns: 175px minmax(0,1fr); gap: 24px; }
  #clock { display: none; }
  .navigation { gap: 0; padding: 0 15px; }
  .navigation a { padding: 0 12px; }
}
@media(max-width: 740px) {
  .topbar { height: 55px; padding: 0 14px; gap: 8px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 29px; height: 29px; }
  .connection { font-size: 11px; gap: 5px; }
  .topbar .icon-button { width: 31px; height: 31px; min-height: 31px; }
  .navigation { padding: 0 4px; }
  .navigation a { height: 44px; padding: 0 12px; gap: 5px; font-size: 12px; }
  .navigation svg { width: 15px; height: 15px; }
  main { padding: 0 12px 36px; }
  .feed-toolbar, .section-toolbar { gap: 10px; padding: 16px 0; min-height: 65px; }
  .feed-toolbar h1 { width: calc(100% - 70px); }
  .feed-toolbar .top-spacer { display: none; }
  .feed-toolbar input { flex: 1; width: 120px; }
  .feed-toolbar select { width: 130px; }
  .news-layout { display: block; }
  .source-sidebar { display: none; }
  .feed-day { padding: 10px 13px; font-size: 11px; }
  .news-row { grid-template-columns: 55px minmax(0,1fr); padding: 15px 13px 11px 0; }
  .news-time { font-size: 10px; padding-top: 3px; }
  .news-title { font-size: 15px; line-height: 1.85; }
  .ai-brief { font-size: 16px; line-height: 1.9; }
  .article-footer { gap: 6px; }
  .article-full { font-size: 14px; }
  .article-actions button { width: 28px; height: 28px; min-height: 28px; padding: 6px; }
  .new-items { top: 109px; }
  .report-layout { display: flex; flex-direction: column; gap: 22px; padding-top: 20px; }
  .history-column h2 { margin: 0 0 9px; }
  .report-history { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .history-button { min-width: 168px; min-height: 65px; padding: 10px; }
  .report-title { font-size: 20px; }
  .report-overview { font-size: 17px; line-height: 1.95; }
  .report-meta { margin-bottom: 20px; gap: 7px 12px; }
  .section-toolbar h1 { font-size: 17px; }
  .section-toolbar .primary { padding: 7px 10px; font-size: 12px; min-height: 36px; }
  .section-toolbar select { font-size: 12px; max-width: 135px; }
  .section-toolbar input[type=date] { font-size: 12px; width: 136px; }
  .source-controls { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; font-size: 13px; }
  .settings-form { padding-top: 20px; }
  .custom-window { gap: 12px; }
  .custom-window label { width: 100%; justify-content: space-between; }
  .custom-window input { width: 230px; }
  .x-summary { padding-top: 22px; }
  .tweet > summary { gap: 8px; }
  .tweet-body { font-size: 15px; }
  .subheading { margin-top: 22px; }
}
@media(max-width: 380px) {
  .topbar { gap: 5px; padding: 0 10px; }
  .brand { font-size: 17px; }
  .brand img { width: 27px; height: 27px; }
  .connection { font-size: 10px; }
  .topbar .icon-button { width: 28px; height: 28px; min-height: 28px; }
  .login-form { padding: 28px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
