.accum-panel { flex: 0 0 auto; }
.accum-panel[hidden], .accum-body[hidden] { display: none; }
.accum-panel.is-collapsed .monitor-panel-head { border-bottom: 0; }
.accum-status { color: var(--text-tertiary); font-size: .75rem; }
.accum-si-alert { color: var(--brand, #0f71f0); font-size: .8125rem; font-weight: 650; margin-left: 12px; }
.accum-panel .monitor-panel-head { flex-wrap: wrap; row-gap: .25rem; }
.accum-panel .monitor-panel-head .accum-status { margin-left: auto; }
.accum-si-alert[hidden] { display: none; }
/* Табло в шапке: по карточке — название, покупка, продажа; в одну строку, переносится чипами. */
.accum-board { display: flex; flex: 1 1 20rem; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.accum-chip { align-items: baseline; background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); display: inline-flex; font-size: .75rem; font-variant-numeric: tabular-nums; gap: 6px; line-height: 1.3; padding: 0 7px; white-space: nowrap; }
.accum-chip-name { color: var(--text-secondary); font-weight: 600; }
.accum-chip-side.is-buy { color: var(--success); }
.accum-chip-side.is-sell { color: var(--error); }
.accum-chip-side.is-full { font-weight: 700; }
.accum-chip-none { color: var(--text-tertiary); }
.accum-chip.is-warn { border-style: dashed; }
.accum-chip-warn { color: var(--warning); font-weight: 600; }
.accum-board.is-old .accum-chip { border-style: dashed; color: var(--text-tertiary); }
.accum-board.is-old .accum-chip-side, .accum-board.is-old .accum-chip-name { color: var(--text-tertiary); font-weight: 400; }

/* Карточки «сейчас»: высота блока равна самой высокой, порядок постоянный. */
.accum-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); padding: 10px 12px 0; }
.accum-cards.is-old { opacity: .55; }
.accum-card { background: var(--bg-secondary); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); min-width: 0; padding: 7px 10px 8px; }
.accum-card-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0 8px; justify-content: space-between; }
.accum-card-name { color: var(--text-primary); font-size: .8125rem; font-weight: 600; }
.accum-card-status { color: var(--text-tertiary); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.accum-card.is-warn .accum-card-status { color: var(--warning); font-weight: 600; }
.accum-card-caption { color: var(--text-tertiary); font-size: .6875rem; line-height: 1.3; }
.accum-card-text { color: var(--text-secondary); font-size: .75rem; line-height: 1.35; margin: 6px 0 0; }
.accum-card-note { color: var(--text-secondary); font-size: .6875rem; line-height: 1.3; margin-top: 5px; }
.accum-card.is-warn .accum-card-note { color: var(--warning); }
.accum-card-line { overflow-wrap: anywhere; }
.accum-card-line + .accum-card-line { margin-top: 1px; }
.accum-sides { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 5px; }
.accum-card.is-warn .accum-sides { opacity: .6; }
.accum-side { min-width: 0; }
.accum-side-name { font-size: .6875rem; line-height: 1.2; }
.accum-side.is-buy .accum-side-name, .accum-side.is-buy .accum-bar-fill { color: var(--success); }
.accum-side.is-sell .accum-side-name, .accum-side.is-sell .accum-bar-fill { color: var(--error); }
.accum-value { color: var(--text-primary); font-size: 1.125rem; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1.25; }
.accum-value.is-full { font-weight: 600; }
.accum-bar { background: var(--bg-tertiary); border-radius: 2px; height: 3px; margin: 2px 0 4px; overflow: hidden; }
.accum-bar-fill { background: currentColor; height: 100%; }
.accum-card.is-warn .accum-bar-fill { background: var(--text-tertiary); }
.accum-side-note { color: var(--text-tertiary); font-size: .6875rem; line-height: 1.3; overflow-wrap: anywhere; }

/* «В счёте» под карточкой: закрыт, внутри своя прокрутка, карточка не растёт без меры. */
.accum-log { border-top: 1px solid var(--border-secondary); margin-top: 6px; padding-top: 3px; }
.accum-log > summary { color: var(--text-secondary); cursor: pointer; font-size: .6875rem; font-weight: 600; user-select: none; }
.accum-log > summary:hover { color: var(--text-primary); }
.accum-log-note, .accum-log-more { color: var(--text-tertiary); font-size: .6875rem; line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; }
.accum-log-note[hidden], .accum-log-more[hidden] { display: none; }
.accum-card.is-warn .accum-log-note { color: var(--warning); }
.accum-log-box { margin-top: 3px; max-height: 200px; overflow: auto; }
.accum-log-table { border-collapse: collapse; font-size: .6875rem; font-variant-numeric: tabular-nums; width: 100%; }
.accum-log-table td { padding: 1px 8px 1px 0; white-space: nowrap; }
.accum-log-table td:last-child { padding-right: 0; }
.accum-log-table td.numeric { text-align: right; }
.accum-log-table td.is-buy { color: var(--success); }
.accum-log-table td.is-sell { color: var(--error); }
.accum-log-table tr.is-dim td { opacity: .55; }
.accum-log-table tr.accum-log-head td { color: var(--text-secondary); font-weight: 600; padding-top: 4px; white-space: normal; }

/* Сегодня. */
.accum-today { padding: 10px 12px 0; }
.accum-today-head { align-items: baseline; color: var(--text-secondary); display: flex; flex-wrap: wrap; font-size: .8125rem; font-weight: 600; gap: 0 10px; margin: 0 0 2px; }
.accum-today-head .accum-status { font-size: .6875rem; font-weight: 400; }
.accum-today-head .accum-hint { color: var(--text-tertiary); font-size: .6875rem; font-weight: 400; margin-left: auto; }
.accum-today .accum-scroll { max-height: none; padding: 0; }
.accum-today .accum-table { width: auto; }
.accum-today .accum-table th, .accum-today .accum-table td { padding-right: 28px; }
.accum-today .accum-empty { padding: 0; }
.accum-today-more { padding-top: 2px; }

/* Журнал: закрыт, опрос его не трогает. */
.accum-journal { margin-top: 8px; }
.accum-journal > summary { color: var(--text-secondary); cursor: pointer; font-size: .8125rem; font-weight: 600; padding: 4px 12px 8px; user-select: none; }
.accum-journal > summary:hover { color: var(--text-primary); }
.accum-part { border-top: 1px solid var(--border-secondary); }
.accum-part[hidden], .accum-scroll[hidden], .accum-today-box[hidden] { display: none; }
.accum-total { color: var(--text-tertiary); font-size: .75rem; line-height: 1.4; padding: 4px 12px 6px; }
.accum-checks-total { white-space: pre-line; }
.accum-live-lines { white-space: pre-line; }
.accum-scroll { max-height: 220px; overflow: auto; padding: 0 12px 10px; }
.accum-table { border-collapse: collapse; font-size: .8125rem; width: 100%; }
.accum-table th { background: var(--bg-primary); color: var(--text-tertiary); font-size: .75rem; font-weight: 500; padding: 3px 12px 3px 0; position: sticky; text-align: left; top: 0; white-space: nowrap; }
.accum-table td { padding: 3px 12px 3px 0; white-space: nowrap; }
.accum-table .numeric { font-variant-numeric: tabular-nums; text-align: right; }
.accum-table th.numeric { text-align: right; }
.accum-table tr.is-pending td { opacity: .7; }
.accum-table td.is-buy { color: var(--success); }
.accum-table td.is-sell { color: var(--error); }
.accum-table td.is-outcome-hit { color: var(--success); font-weight: 600; }
.accum-empty { color: var(--text-tertiary); font-size: .8125rem; margin: 0; padding: 0 12px 10px; }
.accum-empty[hidden] { display: none; }
.accum-si-head { color: var(--text-secondary); font-size: .8125rem; font-weight: 600; margin: 0; padding: 8px 12px 0; }
.accum-table td.is-strong { font-weight: 600; }
.accum-table tr.is-recovered td { opacity: .6; }

/* Узкий экран: строка сигнала в две линии, числа подписаны. Боковой прокрутки на первом экране нет. */
@media (max-width: 48rem) {
  .accum-today .accum-table, .accum-today .accum-table tbody { display: block; }
  .accum-today .accum-table thead { display: none; }
  .accum-today .accum-table tr { border-top: 1px solid var(--border-secondary); display: flex; flex-wrap: wrap; gap: 0 10px; padding: 4px 0; }
  .accum-today .accum-table td { padding: 0; white-space: normal; }
  .accum-today .accum-table td.is-none { display: none; }
  .accum-today .accum-table td[data-label]::before { color: var(--text-tertiary); content: attr(data-label) " "; }
}
/* Куда засчитана строка журнала Si (PLAN.si-log-marks.md §2.1): под видом события, с переносом — видно и на узкой карточке. */
.accum-log-table .accum-log-dest { display: block; color: var(--text-tertiary); font-size: .625rem; line-height: 1.2; white-space: normal; }
.accum-log-table td.is-count { color: var(--text-tertiary); }
.accum-log-table td.accum-log-price { white-space: normal; }
