/* Live broker-account page /accounts/{id} — frontend/js/live-account-detail.js (Drop 1).
   Tokens only (frontend/css/tokens.css); P/L colours for P/L, warn for Delayed. Text
   >= 12px, taps >= 44px, no sideways scroll at 390px. The credit-spread cards are the
   shared .coc-* card (css/cs-open-card.css). */
.la-page { display: grid; gap: 14px; min-width: 0; font-variant-numeric: tabular-nums; }
.la-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--ds-muted);
  text-decoration: none; width: max-content; }
.la-back:hover { color: var(--ds-text); }
.la-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.la-id { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; }
.la-name { font-size: 20px; font-weight: 600; }
.la-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--ds-r-pill);
  border: 1px solid var(--ds-border-strong); color: var(--ds-muted); }
.la-badge.live { color: var(--ds-text); }
.la-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ds-muted); white-space: nowrap; }
.la-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ds-pnl-up); display: inline-block;
  animation: la-pulse 2s ease-in-out infinite; }
.la-live.delayed { color: var(--ds-warn); font-weight: 600; }
.la-live.delayed i { background: var(--ds-warn); animation: none; }
@keyframes la-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .la-live i { animation: none; } }
.la-k { font-size: 12px; color: var(--ds-label); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.la-muted { color: var(--ds-muted); }
.la-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.la-stat { border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); padding: 10px 12px; background: var(--ds-surface); min-width: 0; }
.la-stat .la-v { font-size: 18px; font-weight: 600; margin-top: 2px; }
.la-s { font-size: 12px; color: var(--ds-muted); }
.la-chart { border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); padding: 12px 14px; background: var(--ds-surface); min-width: 0; }
.la-chart-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.la-ranges { display: flex; gap: 6px; flex-wrap: wrap; }
.la-range { min-height: 44px; min-width: 44px; padding: 0 10px; font: inherit; font-size: 12px; border-radius: var(--ds-r-pill);
  border: 1px solid var(--ds-border); background: transparent; color: var(--ds-muted); cursor: pointer; }
.la-range.on { border-color: var(--ds-text); color: var(--ds-text); font-weight: 600; }
.la-chart-box { position: relative; height: 220px; margin-top: 8px; }
.la-chart-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ds-muted); pointer-events: none; }
.la-chart-msg:empty { display: none; }
.la-h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-label); margin: 8px 0 0; }
.la-next { border: 1px dashed var(--ds-border-strong); border-radius: var(--ds-r-md); padding: 12px 14px; font-size: 13px; color: var(--ds-muted); }
.la-card { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-r-lg); padding: 16px;
  display: grid; gap: 12px; margin-bottom: 12px; min-width: 0; }
.la-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.la-strikes { font-size: 18px; font-weight: 600; }
.la-pnl { display: flex; align-items: baseline; gap: 8px; }
.la-pnl .la-v { font-size: 20px; font-weight: 700; }
.la-dist { font-size: 15px; font-weight: 500; }
.la-dist b { font-size: 18px; }
.la-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.la-tile { border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); padding: 10px 12px; min-width: 0; }
.la-tile .la-v { font-size: 18px; font-weight: 600; margin-top: 2px; }
.la-facts { grid-column: 1 / -1; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; color: var(--ds-muted); }
.la-other { border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); padding: 10px 14px; background: var(--ds-surface); }
.la-orow { display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; padding: 8px 0; font-size: 13px;
  border-top: 1px solid var(--ds-border); }
.la-evline { border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); padding: 10px 14px; font-size: 13px;
  background: var(--ds-surface); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.la-evline + .la-evline { margin-top: 8px; }
/* the shared CS card sits inside this page's own frame */
#la-cs .coc-card { margin-bottom: 12px; }
/* Accounts page "View" link and the picker link */
.acct-btn.acct-view { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.account-dd-view { margin-left: auto; font-size: 12px; color: var(--ds-muted); text-decoration: none; padding: 12px 8px;
  min-height: 44px; display: inline-flex; align-items: center; }
.account-dd-view:hover { color: var(--ds-text); }

@media (max-width: 640px) {
  .la-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .la-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .la-name { font-size: 18px; }
  .la-card { padding: 14px; }
}
