.viewport-app.realtime-page main.page { padding-top: 10px; }
.realtime-page .page-head { align-items: center; margin-bottom: 5px; }
.realtime-page .page-head h1 { font-size: 21px; }
.realtime-page #live-search { width: 210px; font-size: 12px; padding: 7px 10px; }
.realtime-page #data-source { margin: 0 0 10px; font-size: 10px; }
.viewport-app.realtime-page main.page > .realtime-layout { flex: 1; min-height: 0; }
.realtime-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.realtime-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--theme-surface, white); border: 1px solid var(--theme-line, #e3e9f2); border-radius: 12px; }
.realtime-panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; flex: none; }
.realtime-panel-head h2 { font-size: 15px; }
.realtime-panel-head > b { font-size: 21px; color: var(--theme-blue, #5980bc); }
.realtime-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 12px; flex: none; }
.realtime-filters button { border-radius: 6px; background: var(--theme-raised, #f4f6fa); color: var(--theme-muted, #8895a9); padding: 6px 8px; font-size: 10px; }
.realtime-filters button.active { background: var(--theme-blue-soft, #eaf1ff); color: var(--theme-blue, #426ec1); }
.realtime-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 12px 12px; scrollbar-width: thin; scrollbar-color: var(--theme-line, #c5d1e3) transparent; }
.realtime-room { border: 1px solid var(--theme-line, #e6ebf3); border-radius: 9px; padding: 14px; margin-bottom: 10px; }
.realtime-room-head { display: flex; justify-content: space-between; gap: 10px; }
.realtime-room-head strong { font-size: 14px; }
.realtime-room-head small { display: block; font-size: 10px; color: var(--theme-muted, #96a1b2); margin-top: 5px; }
.realtime-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 55%; }
.realtime-tags .badge { font-size: 9px; }
.realtime-data { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 16px 0 10px; }
.realtime-data b { display: block; font-size: 18px; color: var(--theme-muted, #4c5e78); }
.realtime-data small { display: block; font-size: 10px; color: var(--theme-muted, #96a1b2); margin-top: 6px; }
.realtime-reason { font-size: 11px; line-height: 1.8; background: var(--theme-raised, #f7f9fc); border-radius: 6px; padding: 8px 10px; color: var(--theme-muted, #8592a6); overflow-wrap: anywhere; }
.realtime-room-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--theme-muted, #8c9bb0); }
@media(max-width:760px) {
  .realtime-layout { gap: 8px; }
  .realtime-page .page-head { flex-wrap: wrap; }
  .realtime-page .page-head .toolbar { width: 100%; }
  .realtime-page #live-search { flex: 1; min-width: 70px; width: 90px; }
  .realtime-panel-head { padding: 10px 8px; gap: 5px; }
  .realtime-panel-head h2 { font-size: 11px; }
  .realtime-panel-head > b { font-size: 16px; }
  .realtime-filters { flex-wrap: nowrap; overflow-x: auto; padding: 0 6px 8px; }
  .realtime-filters button { white-space: nowrap; font-size: 9px; }
  .realtime-list { padding: 0 6px 6px; }
  .realtime-room { padding: 9px; }
  .realtime-room-head { flex-direction: column; gap: 7px; }
  .realtime-room-head strong { font-size: 12px; }
  .realtime-tags { max-width: 100%; justify-content: flex-start; }
  .realtime-data { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 5px; }
  .realtime-data b { font-size: 13px; }
  .realtime-data small { font-size: 8px; }
  .realtime-room-foot { flex-wrap: wrap; gap: 6px; font-size: 10px; }
}
.realtime-tags { align-items: flex-start; align-content: flex-start; }
