.daily-sector-preview {
  position: fixed;
  z-index: 10050;
  box-sizing: border-box;
  width: min(760px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  padding: 16px;
  color: var(--table-text-color, #303133);
  background: var(--table-bg-color, #fff);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 40px #0f172a33;
  font: 13px/1.5 system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}
.daily-sector-preview[hidden] { display: none; }
.daily-sector-preview strong { font-size: 15px; }
.daily-sector-preview-hint { margin: 6px 0; color: #64748b; font-size: 12px; }
.daily-sector-preview-status { margin: 6px 0 10px; }
.daily-sector-preview-scroll { overflow: auto; min-height: 0; max-height: min(380px, 55vh); overscroll-behavior: contain; }
.daily-sector-preview table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.daily-sector-preview th { position: sticky; top: 0; background: #f1f5f9; text-align: left; font-weight: 600; }
.daily-sector-preview th, .daily-sector-preview td { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; }
.daily-sector-preview-amount { text-align: right; font-variant-numeric: tabular-nums; }
.daily-sector-preview-code { font-variant-numeric: tabular-nums; }
.daily-sector-preview small { display: block; font-size: 10px; color: #64748b; }
.daily-sector-preview button { padding: 4px 9px; border: 1px solid #2563eb; border-radius: 5px; background: #eff6ff; color: #1d4ed8; cursor: pointer; font: inherit; }
.daily-sector-preview button:hover { background: #dbeafe; }
.daily-sector-preview button:disabled { color: #64748b; border-color: #cbd5e1; background: transparent; cursor: default; }
html[data-app-theme='modern-dark'] .daily-sector-preview { background: #17202e; color: #e2e8f0; border-color: #475569; }
html[data-app-theme='modern-dark'] .daily-sector-preview th { background: #243247; }
html[data-app-theme='modern-dark'] .daily-sector-preview td, html[data-app-theme='modern-dark'] .daily-sector-preview th { border-color: #334155; }
html[data-app-theme='modern-dark'] .daily-sector-preview-hint, html[data-app-theme='modern-dark'] .daily-sector-preview small { color: #94a3b8; }
