.bst-pos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -6px 0 22px; padding: 6px 6px 6px 16px; background: var(--paper, #F2F0EB); border-radius: 8px; font-size: .92rem; color: var(--ink-2); }
.bst-pos__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sbx-accent); }
.bst-pos.is-sim .bst-pos__dot { background: #D9940B; }
.bst-pos__name { font-weight: 600; color: var(--sbx-house); }
.bst-pos__sim { padding: 1px 7px; border: 1.5px solid var(--amber, #A66A00); border-radius: 3px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber, #A66A00); cursor: help; }
.bst-pos__warn { font-weight: 600; color: var(--amber, #A66A00); }
.bst-pos__read { margin-left: auto; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.bst-list { background: var(--surface); border-radius: var(--radius-sm, 8px); box-shadow: var(--card); }
.bst-row { display: grid; grid-template-columns: 138px minmax(0, 1fr) auto minmax(0, 300px) auto; align-items: center; gap: 12px 28px; padding: 20px 16px 20px 24px; border-top: 1px solid var(--border); }
.bst-row:first-child { border-top: 0; }
.bst-row__main { min-width: 0; }
.bst-row__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.bst-row__name { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.bst-row.is-off .bst-row__name { color: var(--muted); }
.bst-row.is-off .vc-thumb, .bst-row.is-off .bst-x { opacity: .5; }
.bst-row__product { margin: 3px 0 0; font-size: .92rem; color: var(--ink-2); }
.bst-row__product .mono { margin-right: 6px; font-size: .86rem; color: var(--sbx-house); }
.bst-row__actions { display: flex; align-items: center; gap: 0; }

.bst-media { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 64px; }
.bst-media__more { font-size: .84rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bst-media.is-bad .vc-thumb { box-shadow: 0 0 0 2px var(--danger); }
.bst-media.is-bad .vc-thumb.is-empty { box-shadow: none; border-color: var(--danger); color: var(--danger); }

.bst-when { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .88rem; font-weight: 500; color: var(--sbx-house); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bst-x { flex: none; font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--sbx-house); font-variant-numeric: tabular-nums; cursor: default; }

.bst-state { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.bst-state::before { content: ""; flex: none; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: #9A968E; }
.bst-state.is-live { color: var(--sbx-house); font-weight: 600; }
.bst-state.is-live::before { background: var(--sbx-accent); }
.bst-state.is-done::before { background: transparent; border: 2px solid var(--sbx-accent); }
.bst-state.is-info::before { background: #3E7FA6; }
.bst-state.is-warn::before { background: #D9940B; }
.bst-state.is-over { color: var(--muted); }
.bst-state.is-over::before { background: transparent; border: 2px solid #9A968E; }
.bst-state.is-bad { color: var(--danger); font-weight: 600; }
.bst-state.is-bad::before { background: var(--danger); }

.bst-today { display: flex; align-items: center; gap: 16px; min-width: 0; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; color: var(--ink-2); text-align: left; cursor: pointer; }
.bst-today:hover { background: var(--paper, #F2F0EB); }
.bst-today:focus-visible { outline: 2px solid var(--sbx-accent); outline-offset: 1px; }
.bst-today__nums { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.bst-today__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bst-today__line b { font-size: 1.05rem; font-weight: 700; color: var(--sbx-house); }
.bst-today__line small { margin-left: 3px; font-size: .82rem; color: var(--muted); }
.bst-today__idle { font-size: .92rem; color: var(--muted); }

.bst-sec { margin: 0 0 24px; }
.bst-sec:last-child { margin-bottom: 0; }
.bst-sec__h { margin: 0 0 12px; font-family: var(--font-serif, Georgia, serif) !important; font-size: 1.35rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--sbx-house); }

.bst-det { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 22px; }
.bst-det__id { flex: 1 1 260px; min-width: 0; }
.bst-det__id .bst-row__product { margin: 0 0 6px; }
.bst-det__nums { display: flex; flex-direction: column; gap: 6px; }
.bst-det__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.bst-det__toolbar > .mud-input-control { margin-top: 0; }
.bst-det__search { flex: 1 1 260px; max-width: 380px; }
.bst-det__count { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bst-det__none { color: var(--muted); font-size: .92rem; }

.bst-table .mud-table-container { overflow-x: auto; }
.bst-table .mud-table-head .mud-table-cell, .bst-table .mud-table-body .mud-table-cell { white-space: nowrap; vertical-align: middle; }
.bst-table .bst-num { text-align: right; font-variant-numeric: tabular-nums; }
.bst-table .bst-cc { margin-right: 8px; font-size: .84rem; color: var(--muted); }
.bst-table .vc-info { margin-left: 6px; }
.bst-pct { display: inline-flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bst-pct .meter { width: 120px; }
.bst-pct b { font-weight: 700; color: var(--sbx-house); }
.bst-plays { display: inline-flex; align-items: baseline; gap: 6px; color: rgba(0, 0, 0, .42); font-variant-numeric: tabular-nums; }
.bst-plays i { font-style: normal; }
.bst-plays .is-now { font-weight: 700; color: var(--sbx-house); }

.bst-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px 36px; align-items: start; padding-top: 4px; }
.bst-form__main { min-width: 0; }
.bst-field { margin-bottom: 14px; }
.bst-label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.bst-error { margin: 4px 0 10px; font-size: .8rem; font-weight: 600; color: var(--danger); }
.bst-mult { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.bst-mult__other { flex: 0 0 150px; margin-top: 0; }
.seg.bst-seg { padding: 3px; border: 0; border-radius: 8px; background: var(--paper, #F2F0EB); }
.seg.bst-seg .seg__item { min-width: 54px; border-radius: 6px; color: var(--sbx-house); font-variant-numeric: tabular-nums; }
.seg.bst-seg .seg__item:hover:not(:disabled):not(.on) { background: rgba(30, 57, 50, .08); color: var(--sbx-house); }
.seg.bst-seg .seg__item.on { background: var(--sbx-house); color: #fff; box-shadow: none; }

.bst-content { min-width: 0; padding: 22px 24px 24px; border-radius: 8px; background: var(--paper, #F2F0EB); }
.bst-content.has-error { box-shadow: inset 0 0 0 1px var(--danger); }
.bst-content__h { margin: 18px 0 8px; font-family: var(--font) !important; font-size: .84rem; font-weight: 600; color: var(--sbx-house); }
.bst-content__h:first-of-type { margin-top: 0; }
.bst-content__empty { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.bst-content__picker { margin-top: 18px; }
.bst-content__picker .mud-input.mud-input-outlined { background: var(--surface); }
.bst-content__warn { margin: 6px 0 0; font-size: .86rem; line-height: 1.45; color: var(--amber, #A66A00); }
.bst-content__error { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .9rem; font-weight: 600; line-height: 1.45; color: var(--danger); }
.bst-content__error .mud-icon-root { flex: none; margin-top: 1px; }

.bst-pieces { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--border); }
.bst-piece { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-top: 1px solid var(--line); }
.bst-piece:first-child { border-top: 0; }
.bst-piece__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.bst-piece__text b { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bst-piece__text span { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bst-piece .bst-state { flex: none; font-size: .84rem; }
.bst-option { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.bst-option > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bst-option b { font-size: .92rem; font-weight: 600; }
.bst-option span span { font-size: .8rem; color: var(--muted); }
.bst-label .vc-info, .bst-sec__h .vc-info { margin-left: 4px; }

@media (max-width: 1100px) {
  .bst-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px 16px; }
  .bst-today { grid-column: 1 / 3; max-width: 420px; padding: 0; }
  .bst-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .bst-pos__read { margin-left: 0; }
  .bst-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bst-media, .bst-today, .bst-row__actions { grid-column: 1 / -1; }
  .bst-piece { flex-wrap: wrap; }
}
