/* ---------- Top bar ---------- */
.topbar { flex: none; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(4, 9, 15, .94); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tx); font-weight: 800; letter-spacing: .06em; font-size: 15px; white-space: nowrap; } .logo b { color: var(--em); }
.pill-demo { font-style: normal; font-size: 9px; letter-spacing: .1em; padding: 2px 6px; border: 1px solid var(--amb); color: var(--amb); border-radius: 3px; }
.search { flex: 1; max-width: 420px; margin-inline: auto; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #06101a; }
.search input { flex: 1; background: none; border: 0; outline: 0; min-width: 0; } .search input::placeholder { color: var(--dim); } .search:focus-within { border-color: var(--cy); }
.labbtn { padding: 6px 12px; border: 1px solid rgba(251, 191, 36, .55); color: var(--amb); border-radius: var(--r); font-weight: 600; white-space: nowrap; } .labbtn:hover { background: rgba(251, 191, 36, .1); }
.clockbox { text-align: right; line-height: 1.2; } .clockbox .mono { font-size: 14px; } #date { font-size: 10.5px; color: var(--mut); }

/* ---------- Shell: rail + stage (מסך אחד, בלי גלילה של העמוד) ---------- */
.shell { flex: 1; min-height: 0; display: flex; }
.rail { width: 214px; flex: none; padding: 8px; border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.rail-h { font-size: 10px; letter-spacing: .14em; color: var(--dim); padding: 4px 8px 6px; }
.lg { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--r); color: var(--mut); border: 1px solid transparent; }
.lg:hover { color: var(--tx); background: rgba(255, 255, 255, .03); } .lg .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lg .fl { width: 20px; text-align: center; }
.lg .ct { font-size: 11px; color: var(--dim); } .lg.on { color: var(--em); background: linear-gradient(90deg, rgba(25, 230, 140, .15), rgba(25, 230, 140, .02)); border-color: var(--line2); box-shadow: inset 2px 0 0 var(--em); } .lg.on .ct { color: var(--em); }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen { flex: 1; min-height: 0; padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 10px; }
.disclaimer { flex: none; padding: 5px 12px; font-size: 10.5px; color: var(--dim); border-top: 1px solid var(--line); } .disclaimer b { color: var(--amb); }

/* ---------- Tab bar ---------- */
.tabbar { flex: none; display: flex; gap: 2px; padding: 6px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: flex; align-items: center; padding: 0 12px; height: 32px; color: var(--mut); border: 1px solid transparent; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; white-space: nowrap; }
.tab:hover { color: var(--tx); } .tab.on { color: var(--cy); background: var(--panel2); border-color: var(--line); box-shadow: inset 0 2px 0 var(--cy); }
.tab.mt { padding: 0; } .tab.mt > button { height: 100%; padding: 0 6px 0 12px; } .tab.mt i { font-style: normal; color: var(--red); margin-left: 4px; } .tab .x { padding: 0 10px 0 4px; color: var(--dim); } .tab .x:hover { color: var(--red); }

/* ---------- Demo Lab popover ---------- */
.demolab { position: fixed; top: 58px; right: 12px; z-index: 70; width: 300px; display: grid; gap: 6px; padding: 10px; border: 1px solid rgba(251, 191, 36, .5); border-radius: var(--r); background: #08101a; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.dl-t { font-weight: 700; color: var(--amb); letter-spacing: .06em; } .dl-t small { display: block; color: var(--mut); font-weight: 400; letter-spacing: 0; }
.demolab > button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; } .demolab > button:hover { border-color: var(--cy); background: rgba(34, 211, 238, .07); }
.dl-r { display: flex; align-items: center; gap: 6px; color: var(--mut); } .dl-r button { padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; } .dl-r button.on { color: var(--em); border-color: var(--em); }
#toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); opacity: 0; z-index: 110; padding: 9px 14px; border-radius: var(--r); background: #0b2233; border: 1px solid var(--cy); pointer-events: none; transition: .25s; max-width: 92vw; text-align: center; } #toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .shell { flex-direction: column; } .rail { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; } .rail-h { display: none; }
  .lg { flex: none; padding: 5px 10px; border-radius: 14px; border-color: var(--line); } .lg .ct { display: none; }
  .clockbox, .pill-demo { display: none; } .logo span { font-size: 13px; } .search { max-width: none; }
  .disclaimer { font-size: 9.5px; padding: 4px 10px; }
}
