/* Workspace tabs: one tab per open screen, across the top of the desktop app.
   Colours and type come from the tokens in index.html (--ink, --slate, --line, --card, --canvas, --gold-bg, --warn-ink) and the
   control tokens in hl-ui.css (--hl-primary, --hl-r). Dark mode is those same tokens under body.hl-dark; nothing here is a new colour. */
html body .hlt-bar {
  display: none; position: sticky; top: 0; z-index: 60;
  align-items: flex-end; gap: 2px; margin: 0 0 14px; padding: 8px 0 0;
  background: var(--canvas); border-bottom: 1px solid var(--line);
}
html body.hl-authed .hlt-bar:not([hidden]) { display: flex; }
@media (max-width: 860px) { html body .hlt-bar, html body.hl-authed .hlt-bar:not([hidden]) { display: none; } }
/* On HiveConnect the module fills the width, so the bar gets the page gutter itself. */
html body.hc-open .hlt-bar { margin-bottom: 0; padding-left: 24px; padding-right: 24px; }
html body .hlt-strip { display: flex; align-items: flex-end; gap: 2px; flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
html body .hlt-tab {
  position: relative; display: flex; align-items: center; gap: 7px; flex: 0 1 auto; width: 188px; min-width: 112px; height: 36px; padding: 0 6px 0 11px;
  border: 1px solid transparent; border-bottom: 0; border-radius: var(--hl-r, 9px) var(--hl-r, 9px) 0 0;
  background: transparent; color: var(--slate); font: 600 12.5px/1 var(--sans); cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background .12s ease, color .12s ease;
}
html body .hlt-tab:hover { background: var(--gold-bg); color: var(--ink); }
html body .hlt-tab:focus-visible { outline: 2px solid var(--hl-primary, #2f5d8a); outline-offset: -2px; }
html body .hlt-tab[aria-selected="true"] {
  background: var(--card); color: var(--ink); border-color: var(--line); margin-bottom: -1px; height: 37px; box-shadow: inset 0 2px 0 var(--hl-primary, #2f5d8a);
}
html body.hl-dark .hlt-tab[aria-selected="true"] { box-shadow: inset 0 2px 0 var(--link, #8db4ff); }
html body .hlt-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-size: 12px; }
html body .hlt-ic svg { width: 16px; height: 16px; }
html body .hlt-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .hlt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn-ink, #8a5300); }
html body .hlt-x {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--slate); font: 700 15px/1 var(--sans); cursor: pointer;
}
html body .hlt-x:hover { background: var(--line); color: var(--ink); }
html body .hlt-x:focus-visible { outline: 2px solid var(--hl-primary, #2f5d8a); outline-offset: 0; }
html body .hlt-note {
  flex: none; align-self: center; margin: 0 0 6px 10px; padding: 5px 10px; border-radius: var(--hl-r, 9px);
  background: var(--gold-bg); color: var(--ink); font: 600 12px/1.3 var(--sans);
}
html body .hlt-note[hidden] { display: none; }
