/* r320: one clean look for the right side panels (Alerts, Data, Objects, AI, Notebook list) and the phone bars.
   Theme variables only; layout and behaviour unchanged. */
.side { border-radius: 12px; overflow: hidden; }
.side-h { height: 48px; padding: 0 6px 0 16px; gap: 2px; }
.side-h b { font: 650 14.5px/1 var(--font-d, inherit); letter-spacing: -.01em; }
.side-h .tb.ic { width: 32px; height: 32px; border-radius: 8px; }
.side-b { overscroll-behavior: contain; scrollbar-width: thin; }
.side-empty { margin: 16px; padding: 26px 18px; border: 1px dashed var(--hair); border-radius: 12px; font-size: 12.5px; line-height: 1.55; color: var(--t3); }
.side-b > .ai-foot { padding: 12px !important; border-bottom: 1px solid var(--hair); }
.side-b > .ai-foot .btn { width: 100%; height: 36px; justify-content: center; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; }

/* Alerts list */
.side-b .al-row { gap: 10px; margin: 6px 8px; padding: 10px 6px 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); }
.side-b .al-row:hover { background: var(--fill); }
.side-b .al-row .al-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.side-b .al-row .al-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.side-b .al-row .al-t b { font-size: 13.5px; font-weight: 650; }
.side-b .al-row .al-t small { font-size: 11.5px; line-height: 1.45; color: var(--t3); }
.side-b .al-row .tb.ic { width: 30px; height: 30px; border-radius: 7px; color: var(--t3); }
.side-b .al-row .tb.ic:hover { color: var(--t1); background: var(--fill-2); }

/* Data window */
.side-b .dw { margin: 10px; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.side-b .dw > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 0 12px; border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.side-b .dw > div:last-child { border-bottom: 0; }
.side-b .dw > div:nth-child(even) { background: var(--fill); }
.side-b .dw span { color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-b .dw b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.side-b .ai-note { margin: 4px 14px 14px; font-size: 11.5px; color: var(--t3); }

/* Object tree */
.side-b .ob-row { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 2px 8px; padding: 0 4px 0 10px; border-radius: 9px; }
.side-b .ob-row:first-child { margin-top: 8px; }
.side-b .ob-row:hover { background: var(--fill); }
.side-b .ob-row > svg, .side-b .ob-row > i { width: 18px; height: 18px; flex: none; color: var(--t2); }
.side-b .ob-row > span { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-b .ob-row .tb.ic { width: 30px; height: 30px; border-radius: 7px; color: var(--t3); opacity: .75; }
.side-b .ob-row:hover .tb.ic { opacity: 1; }

/* Dock (right icon strip) */
.dock .dk { border-radius: 10px; }
.dock .dk:hover { background: var(--fill-2); }

/* ---------- phones ---------- */
.sym320-nav { display: none; }
.sym320-flash { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 128px); z-index: 1200; transform: translate(-50%, 0); padding: 8px 16px; border-radius: 12px; background: var(--card); color: var(--t1); border: 1px solid var(--hair); box-shadow: 0 10px 30px rgba(0,0,0,.22); text-align: center; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.sym320-flash b { display: block; font-size: 16px; font-weight: 700; }
.sym320-flash small { font-size: 10.5px; color: var(--t3); }
.sym320-flash.on { opacity: 1; }
.sym320-flash.on.up { animation: sym320up .25s ease-out; }
.sym320-flash.on.dn { animation: sym320dn .25s ease-out; }
@keyframes sym320up { from { transform: translate(-50%, 14px); } to { transform: translate(-50%, 0); } }
@keyframes sym320dn { from { transform: translate(-50%, -14px); } to { transform: translate(-50%, 0); } }
@media (max-width: 767px) {
  .sym320-nav { display: inline-flex; flex-direction: column; margin-left: 4px; pointer-events: auto; }
  .sym320-nav button { width: 26px; height: 15px; padding: 0; border: 0; background: transparent; color: var(--t3); font-size: 9px; line-height: 15px; cursor: pointer; }
  .sym320-nav button:active { color: var(--t1); }
  /* row above the bottom navbar: one clean scrolling row */
  .bottom { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex-wrap: nowrap; border-top: 1px solid var(--hair); background: var(--card); }
  .bottom::-webkit-scrollbar { display: none; }
  .bottom > * { flex: none; }
  .bottom .bb.only-sm, .bottom .bsep.only-sm { display: none !important; }
  .bottom .bb { height: 32px; min-width: 32px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
  .bottom .bb.on { background: var(--fill-2); color: var(--t1); }
  .bottom .bsep { width: 1px; height: 18px; background: var(--hair); }
  .bottom .ranges { display: flex; gap: 2px; }
  .bottom .ranges button { height: 32px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }
  .bottom .idx-strip, .bottom .grow { display: none; }
  .bottom #zoneBtn .only-sm { display: none; }
  /* top tool row: time frame, candles, indicators */
  .toolstrip { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .toolstrip::-webkit-scrollbar { display: none; }
  .toolstrip .tb { min-width: 36px; height: 36px; border-radius: 9px; }
  .toolstrip .tfs button { height: 32px; min-width: 36px; padding: 0 8px; border-radius: 8px; font-weight: 600; }
  .mnav { border-top: 1px solid var(--hair); padding-bottom: env(safe-area-inset-bottom); }
  .mnav .mn { gap: 3px; font-size: 10.5px; font-weight: 600; }
  .side { border-radius: 16px 16px 0 0; }
}
/* r463 phone: symbol / time frame roll like chart apps (no separate flash card on swipe) */
@media (max-width: 767px), (max-width: 1024px) and (max-height: 500px) and (pointer: coarse) {
  #symBtn.r463-sw, #tfBtn.r463-sw { overflow: hidden; touch-action: pan-x; }
  #symBtn.r463-sw #symName, #tfBtn.r463-sw #tfLabel { display: inline-block; will-change: transform; }
  .r463-in-up { animation: r463up .24s cubic-bezier(.2,.8,.2,1); }
  .r463-in-dn { animation: r463dn .24s cubic-bezier(.2,.8,.2,1); }
}
@keyframes r463up { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes r463dn { from { transform: translateY(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
