/* Shared Xagio top bar items (Herc, 2026-11-06): ChatGPT + xR / xB, same look as the panel. Fills, no borders. */
.xtb { display: flex; align-items: center; gap: 10px; margin-right: 6px; }
.xtb [hidden] { display: none !important; }
.xtb-cg, .xtb-x { position: relative; }
.xtb-connect, .xtb-cgbtn, .xtb-xags { display: inline-flex; align-items: center; height: 36px; border: 0; border-radius: 7px; background: rgba(25, 68, 118, .07); color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; }
.xtb-connect { gap: 8px; padding: 0 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.xtb-cgbtn { position: relative; justify-content: center; width: 36px; }
.xtb-connect:hover, .xtb-cgbtn:hover, .xtb-xags:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.xtb-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.xtb-xags { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.xtb-xags > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; }
.xtb-sep { width: 1px; height: 20px; background: #c2c2c2; }
.xtb-xi { width: 22px; height: auto; }
.xtb-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: 300px; padding: 14px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-pop); }
.xtb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.xtb-row .xtb-xi { width: 34px; flex: none; }
.xtb-row div { flex: 1; min-width: 0; }
.xtb-row b { display: block; color: var(--ink); font-size: 13px; }
.xtb-row small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.3; }
.xtb-row > span { color: var(--ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.xtb-link { display: block; margin-top: 6px; padding: 10px 12px; border-radius: 9px; background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }
.xtb-link:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.xtb-link.is-primary { margin-top: 12px; background: var(--blue); color: #fff; }
.xtb-link.is-primary:hover { background: var(--blue-dark); color: #fff; }
.xtb-cgmenu { width: 340px; padding: 0; }
.xtb-h { margin: 0; padding: 14px 16px 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.xtb-acc { padding: 10px 16px 12px; }
.xtb-acc + .xtb-acc { border-top: 1px solid var(--line-soft); }
.xtb-who { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; font-weight: 500; }
.xtb-who .ok { color: var(--green); } .xtb-who .warn { color: var(--orange); }
.xtb-who b { min-width: 0; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.xtb-plan { flex: none; padding: 2px 7px; border-radius: 5px; background: var(--bg-2); color: var(--blue); font-size: 11.5px; }
.xtb-sub { margin: 4px 0 0; color: var(--ink-3); font-size: 12px; }
.xtb-bad { margin: 6px 0 0; color: var(--red-text); font-size: 12px; }
.xtb-win { margin-top: 12px; }
.xtb-win p { display: flex; justify-content: space-between; margin: 0; color: var(--ink); font-size: 13px; font-weight: 500; }
.xtb-win p span { color: var(--ink-3); font-weight: 400; }
.xtb-bar { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: var(--bg-2); }
.xtb-bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.xtb-bar i.is-warn { background: var(--orange); } .xtb-bar i.is-full { background: var(--red); }
.xtb-reset { margin: 4px 0 0; color: var(--ink-3); font-size: 11.5px; }
.xtb-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 12px; }
.xtb-foot a { color: var(--blue); font-weight: 600; }
html[data-theme="dark"] .xtb-xi { filter: brightness(1.9) saturate(.85); }
html[data-theme="dark"] .xtb-connect, html[data-theme="dark"] .xtb-cgbtn, html[data-theme="dark"] .xtb-xags { background: var(--bg-2); }
@media (max-width: 1000px) { .xtb-connect span { display: none; } .xtb-connect { width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 700px) { .xtb { gap: 6px; } .xtb-xags { font-size: 12px; } .xtb-xags > span { padding: 0 8px; gap: 4px; } .xtb-xi { width: 15px; } .xtb-menu { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; } }

/* Shared Xagio header spec (Herc, 2026-11-06): tiles 36x36 r8 one fill, no border; Xags 15/600 text colour; theme last */
.topbar { padding-left: 24px !important; padding-right: 24px !important; gap: 12px; }
.tb-actions { gap: 12px; }
.tb-actions .icon-btn { width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--bg-2); color: var(--ink-3); }
.tb-actions .icon-btn .ico { width: 15px; height: 15px; }
.xtb { gap: 12px; margin-right: 0; }
.xtb-connect, .xtb-cgbtn, .xtb-xags { border-radius: 8px; background: var(--bg-2); }
.xtb-cgbtn { color: var(--ink-3); }
.xtb-xags b { font-weight: 600; }
.xtb-upgrade { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px; background: linear-gradient(to right, #ffa049, #ef6400); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.xtb-upgrade:hover { opacity: .9; color: #fff; text-decoration: none; }
.tb-search { height: 40px; border: 0 !important; border-radius: 9px; background: var(--bg-2); max-width: 474px; }
.tb-search kbd { font-size: 10.5px; font-weight: 500; border-radius: 6px; background: var(--white); color: var(--ink-3); }
html[data-theme="dark"] .tb-actions .icon-btn, html[data-theme="dark"] .xtb-connect, html[data-theme="dark"] .xtb-cgbtn, html[data-theme="dark"] .xtb-xags { background: var(--bg-2); }
@media (max-width: 700px) { .xtb-upgrade { display: none; } }
