/* The live workspace toolbar: aligned to the content, not a full-width empty strip. */
.topbar {
  width: calc(100% - 80px);
  max-width: 1520px;
  height: auto;
  min-height: 80px;
  margin: 24px auto 0;
  padding: 12px 16px;
  gap: 24px;
  border: 1px solid #675a7a80;
  border-radius: 14px;
  background: #151c2ded;
  box-shadow: 0 5px 22px #080c191c;
}
.header-workspace { display: flex; align-items: center; gap: 24px; min-width: 0; flex: 1 1 auto; }
.topbar .server-picker { width: 260px; max-width: 100%; min-width: 160px; gap: 12px; flex: 0 1 260px; }
.topbar .server-symbol {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #7853db1c;
  border-color: #a88bcb60;
  color: #d9c4f5;
  font-size: 12px;
}
.server-field { flex: 1; min-width: 0; }
.header-eyebrow { display: block; margin: 0 0 3px; color: #b4a9c8; font-size: 10px; font-weight: 600; letter-spacing: .65px; line-height: 1.4; }
.server-field .header-eyebrow { padding-left: 10px; }
.topbar .server-picker .select-trigger {
  min-height: 36px;
  padding: 6px 9px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #f0ebf8;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.topbar .server-picker .select-trigger:hover:not(:disabled) { background: #7853db17; border-color: #a88bcb75; }
.topbar .server-picker .select-trigger[aria-expanded=true] { background: #7853db21; border-color: #c4a9ff; }
.topbar .server-picker .select-trigger > svg { width: 17px; height: 17px; color: #ccb4eb; }
.header-location { min-width: 0; padding-left: 24px; border-left: 1px solid #71617e4d; }
.header-location strong { display: block; color: #eae3f6; font-size: 13px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .top-actions { flex-shrink: 0; gap: 12px; }
.topbar .quick-find {
  width: 194px;
  min-height: 44px;
  padding: 10px 12px;
  gap: 10px;
  border: 1px solid #655673;
  border-radius: 8px;
  background: #1c2134;
  color: #c8bed8;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.topbar .quick-find svg { width: 17px; height: 17px; flex-shrink: 0; color: #c7afe4; }
.topbar .quick-find span { display: inline; white-space: nowrap; }
.topbar .quick-find kbd { display: inline; margin-left: auto; border: 1px solid #675671; border-radius: 4px; background: #13182a; color: #b1a2c5; padding: 1px 4px; font-size: 9px; white-space: nowrap; }
.topbar .connection { font-size: 11px; line-height: 1.5; padding: 0 3px; gap: 8px; }
.topbar .connection::before { width: 7px; height: 7px; flex-shrink: 0; }
.topbar .header-guide { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; font-size: 11px; white-space: nowrap; }
.topbar .header-guide svg, .topbar #logout-mobile svg { width: 18px; height: 18px; flex-shrink: 0; }
.topbar #logout-mobile { padding: 10px; }
.topbar :is(.select-trigger, .quick-find, .header-guide, #logout-mobile):focus-visible { outline: 3px solid var(--control-focus); outline-offset: 3px; }

@media(max-width:1250px) {
  .topbar { width: calc(100% - 50px); margin-top: 22px; gap: 16px; }
  .header-workspace { gap: 18px; }
  .header-location { padding-left: 18px; }
  .topbar .server-picker { width: 235px; flex-basis: 235px; }
  .topbar .quick-find { width: 166px; }
  .topbar .quick-find kbd { display: none; }
}
@media(max-width:1100px) {
  .header-location { display: none; }
  .topbar .header-guide { width: 44px; padding: 10px; }
  .topbar .header-guide > span { display: none; }
  .topbar .server-picker { flex: 1; width: auto; }
}
@media(min-width:761px) and (max-width:900px) {
  .topbar .quick-find { width: 44px; padding: 10px 12px; }
  .topbar .quick-find > span { display: none; }
}
@media(max-width:760px) {
  .topbar { width: calc(100% - 40px); margin-top: 18px; padding: 12px; min-height: 0; display: grid; gap: 10px; border-radius: 12px; }
  .header-workspace { width: 100%; }
  .topbar .server-picker { min-width: 0; max-width: none; width: 100%; gap: 10px; }
  .topbar .server-symbol { width: 38px; height: 38px; font-size: 11px; }
  .topbar .server-picker .select-trigger { min-height: 44px; padding: 8px 9px; font-size: 13px; }
  .header-eyebrow { font-size: 9px; margin-bottom: 1px; }
  .topbar .top-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(44px, 1fr) auto 44px 44px; gap: 6px; padding-top: 10px; border-top: 1px solid #71617e3b; }
  .topbar .top-actions:has(> #quick-find[hidden]) { grid-template-columns: minmax(0, 1fr) 44px 44px; }
  .topbar .quick-find { width: 100%; min-width: 0; padding: 10px; font-size: 11px; gap: 8px; }
  .topbar .connection { padding: 0 4px; gap: 6px; align-self: center; font-size: 10px; }
  .topbar .connection::before { width: 6px; height: 6px; }
  .topbar .header-guide, .topbar #logout-mobile { min-width: 44px; min-height: 44px; width: 44px; padding: 10px; }
}
@media(max-width:460px) {
  .topbar .quick-find { justify-content: center; }
  .topbar .quick-find > span { display: none; }
}
