/* Shared quote board and open-page navigation on all business routes. */
#app #admin-header,
#app #admin-tabbar {
  --chrome-gutter: clamp(12px, 1.65vw, 32px);
  --chrome-ink: #19314d;
  --chrome-rule: #d9e4f0;
  --chrome-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--chrome-font);
}
#app #admin-header {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: 46px 82px;
  align-items: center; column-gap: 12px; row-gap: 0;
  width: 100%; height: 128px; min-height: 128px; padding: 0 var(--chrome-gutter);
  flex: 0 0 auto; background: #fff; border: 0; box-shadow: none;
}
#app #admin-header .collapse-btn {
  grid-area: 1 / 1; justify-self: start; width: 34px; height: 34px; min-height: 0;
  display: inline-grid; place-items: center; padding: 0; margin: 0;
  border: 0; border-radius: 7px; background: transparent; color: #175cc0;
}
#app #admin-header .crumb {
  grid-area: 1 / 2; min-width: 0; min-height: 0; padding: 0 0 0 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 1px solid var(--chrome-rule); font: 450 13px/22px var(--chrome-font); color: #4d6380;
}
#app #admin-header .crumb b { color: var(--chrome-ink); font-weight: 650; }
#app #admin-header .top-actions { grid-area: 1 / 3; min-width: 0; min-height: 0; gap: 6px; margin: 0; align-items: center; }
#app #admin-header .review-quotes {
  --quote-bg: #fbfcfe; --quote-ink: #193451; --quote-secondary: #425b76; --quote-rule: #dce6f1; --quote-muted: #5b6f84;
  display: grid; grid-area: 2 / 1 / 3 / -1; grid-template-columns: 54px; grid-auto-flow: column;
  grid-auto-columns: minmax(106px, 1fr); gap: 0; align-items: center; align-self: stretch;
  width: auto; min-width: 0; max-width: none; height: auto; min-height: 0;
  margin: 0 calc(-1 * var(--chrome-gutter)); padding: 3px var(--chrome-gutter);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain;
  scrollbar-width: thin; scrollbar-color: #b4c6d8 transparent;
  box-sizing: border-box; border: 0; border-block: 1px solid var(--quote-rule);
  border-radius: 0; background: var(--quote-bg); box-shadow: none;
}
#app #admin-header .review-quotes[data-quote-theme="dark"] {
  --quote-bg: #162943; --quote-ink: #f1f5fc; --quote-secondary: #d8e5f4; --quote-rule: #344b66; --quote-muted: #bdcce0;
}
#app #admin-header .review-quotes[data-quote-theme="light"] { --quote-bg: #f5f7fa; }
#app #admin-header .review-quotes[data-quote-theme="white-red"] { --quote-ink: #902338; }
#app #admin-header .review-quotes :is(.quote-legend,.ticker-item) {
  box-sizing: border-box; display: grid; grid-template-rows: 20px 22px 22px; gap: 0;
  align-items: center; align-content: center; justify-content: stretch; justify-items: start;
  width: auto; min-width: 0; height: auto; min-height: 0; margin: 0;
  padding: 0 clamp(10px,1.4vw,24px); background: transparent; border: 0;
  border-inline-start: 1px solid var(--quote-rule); border-radius: 0; box-shadow: none; text-align: left;
}
#app #admin-header .review-quotes .quote-legend {
  position: sticky; left: 0; z-index: 1; padding-inline: 0 5px; border: 0;
  white-space: nowrap; background: var(--quote-bg); color: var(--quote-muted); font: 500 12px/1.2 var(--chrome-font);
}
#app #admin-header .quote-legend > :first-child { color: var(--quote-muted); font-size: 11px; }
#app #admin-header .ticker-item .n {
  color: var(--quote-ink); font: 650 14px/20px var(--chrome-font); letter-spacing: .02em; white-space: nowrap;
}
#app #admin-header .ticker-item .p { display: contents; }
#app #admin-header .ticker-item .p > span {
  display: inline-flex; align-items: baseline; justify-content: start; gap: 5px;
  width: auto; min-width: 0; margin: 0; padding: 0; text-align: start; white-space: nowrap;
  font: 600 17px/22px "Segoe UI", var(--chrome-font); font-variant-numeric: tabular-nums lining-nums;
}
#app #admin-header .ticker-item .p > span:last-child { font-weight: 500; }
#app #admin-header .ticker-item .market-flat { color: var(--quote-secondary) !important; }
#app #admin-header .direction-sign { align-self: center; min-width: .75em; font-size: 9px; line-height: 1; }
#app #admin-header .market-flat .direction-sign { color: var(--quote-muted); }
#app #admin-tabbar {
  display: flex; flex: 0 0 auto; align-items: center; gap: 9px; width: 100%;
  height: 45px; min-height: 45px; margin: 0; padding: 0 var(--chrome-gutter);
  overflow: visible; border: 0; border-bottom: 1px solid var(--chrome-rule); background: #f0f5fc;
}
#app #admin-tabbar .qz-tab-track {
  display: flex; align-items: center; flex: 1; gap: 5px; min-width: 0; max-height: 100%;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain;
  scrollbar-width: thin; scrollbar-color: #acc0d6 transparent;
}
#app #admin-tabbar .tab-chip {
  box-sizing: border-box; display: inline-flex; flex: 0 0 auto; align-items: center; align-self: center;
  min-width: 0; width: auto; height: 31px; min-height: 31px; max-height: none;
  gap: 0; margin: 0; padding: 0 3px; border: 1px solid #d5e0ee; border-radius: 6px;
  background: #fff; box-shadow: none; color: #455b76; white-space: nowrap;
}
#app #admin-tabbar .tab-chip::before, #app #admin-tabbar .tab-chip::after { content: none; }
#app #admin-tabbar .tab-chip.active { border-color: #1a5bb8; color: #fff; background: #205fbd; box-shadow: none; }
#app #admin-tabbar .tab-chip .tab-label, #app #admin-tabbar .tab-chip .x {
  display: inline-flex; align-items: center; justify-content: center; align-self: stretch;
  min-height: 0; height: auto; min-width: 0; margin: 0; border: 0; border-radius: 4px;
  color: inherit; background: transparent; box-shadow: none; cursor: pointer;
}
#app #admin-tabbar .tab-chip .tab-label { padding: 0 8px; font: 500 13px/1.2 var(--chrome-font); }
#app #admin-tabbar .active .tab-label { font-weight: 650; }
#app #admin-tabbar .tab-chip .x { width: 24px; padding: 0; }
#app #admin-tabbar .tab-chip .x svg { width: 11px; height: 11px; }
#app #admin-tabbar .tab-menu-trigger { width: 32px; justify-content: center; padding: 0; }
#app #admin-header :is(button,.review-quotes):focus-visible, #app #admin-tabbar button:focus-visible {
  outline: 2px solid #2465c2; outline-offset: -3px;
}
#app #admin-tabbar .active button:focus-visible { outline-color: #fff; }
@media (hover:hover) {
  #app #admin-header .collapse-btn:hover, #app #admin-tabbar .tab-chip:not(.active):hover { background: #e7effb; }
  #app #admin-tabbar .tab-chip .x:hover { background: #d9e5f6; }
  #app #admin-tabbar .tab-chip.active .x:hover { background: #ffffff32; }
}
@media (max-width:600px) {
  #app #admin-header { grid-template-columns: 35px minmax(0,1fr) auto; grid-template-rows: 47px 78px; gap: 0 4px; height: 125px; min-height: 125px; }
  #app #admin-header .crumb { padding-left: 7px; font-size: 0; }
  #app #admin-header .crumb b { font-size: 13px; }
  #app #admin-header .top-actions { gap: 2px; }
  #app #admin-header .user-chip > div:not(.avatar) { display: none; }
  #app #admin-header .review-quotes { grid-template-columns: 45px; grid-auto-columns: max(92px,calc((100% - 45px) / 3)); padding-inline: 8px; scroll-padding-inline-start: 53px; }
  #app #admin-header .review-quotes .ticker-item { padding-inline: 7px; }
  #app #admin-header .ticker-item .p > span { font-size: 16px; }
  #app #admin-tabbar { --chrome-gutter: 8px; gap: 5px; }
}
@media (pointer:coarse) {
  #app #admin-tabbar { height: 48px; min-height: 48px; }
  #app #admin-tabbar .tab-chip { height: 40px; min-height: 40px; }
  #app #admin-tabbar .tab-chip .x { width: 32px; }
}
