/**
 * SCM Cube – shared top bar: consistent logo size + Home entry.
 * Loaded by js/scmx-shell.js on sub-screens.
 */

/* Current page AP code (all screens via scmx-page-ap-badge.js) */
.scmx-page-ap-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.scmx-page-ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.22), rgba(15, 17, 23, 0.92));
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  line-height: 1;
  user-select: none;
}
.scmx-page-ap-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #67e8f9;
  text-transform: uppercase;
}
.scmx-page-ap-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f0fdfa;
}
.scmx-page-ap-badge--unset {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.65);
}
.scmx-page-ap-badge--unset .scmx-page-ap-label,
.scmx-page-ap-badge--unset .scmx-page-ap-code {
  color: #94a3b8;
}
.page-hero-row .scmx-page-ap-wrap {
  margin-right: 0.65rem;
}
.navbar .scmx-page-ap-wrap {
  order: -1;
}
@media (max-width: 576px) {
  .scmx-page-ap-code {
    font-size: 0.65rem;
  }
}
.scmx-navbar-logo {
  height: 42px;
  width: auto;
  display: block;
  vertical-align: middle;
}
a.scmx-shell-logo-link {
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.scmx-navbar-fallback {
  font-weight: 700;
  color: #a5b4fc !important;
  font-size: 1.1rem;
}
nav.navbar .scmx-shell-home-ul .nav-link.scmx-home-link,
header.top-bar a.scmx-shell-injected-home {
  font-weight: 500;
}
header.top-bar a.scmx-shell-injected-home {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}
header.top-bar a.scmx-shell-injected-home:hover {
  color: #c7d2fe;
}

/* Frequently used shortcuts */
.scmx-shell-nav-cf {
  overflow: visible;
}
.scmx-shell-nav-left-cluster {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(78vw, 56rem);
  overflow: visible;
}
.scmx-shell-nav-flex-spacer {
  flex: 0 1 0.5rem;
  min-width: 0.25rem;
}
.scmx-shell-frequent-wrap {
  max-width: min(52vw, 28rem);
  overflow: visible;
}
.scmx-shell-frequent-wrap--toolbar-left {
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.scmx-shell-frequent-wrap--nav-right {
  max-width: min(54vw, 38rem);
  margin-right: 0.35rem;
  gap: 0.35rem !important;
  overflow-x: auto;
  overflow-y: visible;
  flex-wrap: nowrap;
  align-items: center;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
li.scmx-shell-frequent-nav-item {
  display: flex;
  align-items: flex-start;
  margin-right: 0.15rem;
  overflow: visible;
  max-width: none;
  min-width: 0;
  flex-shrink: 0;
}
.scmx-home-navbar .navbar-nav {
  flex-wrap: nowrap;
  align-items: center;
  max-width: none;
  overflow: visible;
}
.scmx-home-navbar .navbar-collapse {
  overflow: visible;
}
.scmx-home-navbar .scmx-shell-nav-cf {
  flex-wrap: nowrap;
  align-items: center;
}
.scmx-home-navbar .scmx-shell-nav-cf > .navbar-ap-launcher {
  flex: 1 1 auto;
  min-width: 0;
}
.scmx-home-navbar .scmx-shell-frequent-wrap--nav-right {
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.scmx-home-navbar .scmx-shell-nav-cf > .navbar-collapse {
  flex: 0 0 auto;
}
.scmx-home-frequent-slot {
  min-height: 2.35rem;
  margin-left: 0.35rem;
  margin-right: 0.15rem;
  gap: 0.35rem;
}
.scmx-home-frequent-slot:empty {
  display: none !important;
}
.scmx-freq-module-panel--fixed {
  position: fixed !important;
  z-index: 1090 !important;
  display: block !important;
  width: max-content;
  min-width: 3.5rem;
}
.scmx-freq-module-panel--fixed .scmx-freq-module-panel-grid {
  flex-wrap: nowrap;
  overflow: visible;
  max-width: none;
}
.scmx-freq-module-panel--fixed.scmx-freq-module-panel--no-scroll .scmx-freq-module-panel-grid {
  overflow: visible;
}
.navbar:has(.scmx-shell-frequent-wrap) {
  overflow: visible;
}
@media (min-width: 992px) {
  .scmx-shell-frequent-wrap:not(.scmx-shell-frequent-wrap--nav-right) {
    max-width: none;
  }
}
a.scmx-shell-frequent-chip,
button.scmx-shell-frequent-chip.scmx-freq-module-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(194, 65, 12, 0.35), rgba(22, 26, 36, 0.95));
  border: 1px solid rgba(253, 186, 116, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: border-color 0.15s, transform 0.15s, background 0.15s, box-shadow 0.15s;
  padding: 0;
  cursor: pointer;
}
button.scmx-shell-frequent-chip.scmx-freq-module-trigger {
  color: inherit;
  position: relative;
}
button.scmx-shell-frequent-chip.scmx-freq-module-trigger--parent {
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.55),
    0 0 12px rgba(6, 182, 212, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  border-color: rgba(34, 211, 238, 0.85) !important;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.42), rgba(15, 23, 42, 0.98)) !important;
}
button.scmx-shell-frequent-chip.scmx-freq-module-trigger--parent::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  border: 1px solid #0f172a;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.8);
}
button.scmx-shell-frequent-chip.scmx-freq-module-trigger--parent .scmx-shell-frequent-chip-inner i {
  color: #ecfeff;
}
a.scmx-shell-frequent-chip:hover,
button.scmx-shell-frequent-chip.scmx-freq-module-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
button.scmx-shell-frequent-chip.scmx-freq-module-open {
  outline: 2px solid rgba(34, 211, 238, 0.65);
  outline-offset: 2px;
}
.scmx-freq-module-host {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  overflow: visible;
}
.scmx-freq-module-host--open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  max-width: none;
}
.scmx-freq-module-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 1080;
  width: max-content;
  max-width: min(96vw, 40rem);
  padding: 0.5rem 0.55rem 0.6rem;
  border-radius: 12px;
  background: #1a1d29;
  border: 1px solid #2d3142;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
/* Expand child shortcuts inline in the left toolbar (no overlay on center icons) */
.scmx-freq-module-panel--inline {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto;
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  max-width: none;
  padding: 0 0 0 0.15rem;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-left: 2px solid rgba(34, 211, 238, 0.35);
  padding-left: 0.45rem;
}
.scmx-freq-module-panel--inline .scmx-freq-module-panel-head {
  display: none;
}
.scmx-freq-module-panel--inline .scmx-freq-module-panel-grid {
  flex-wrap: nowrap;
  overflow-x: visible;
  max-width: none;
}
.scmx-shell-frequent-wrap--toolbar-left .scmx-freq-module-host--open {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.scmx-freq-module-panel:not(.d-none) {
  display: block;
}
.scmx-freq-module-panel-head {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.15rem 0.25rem 0.45rem;
  border-bottom: 1px solid rgba(45, 49, 66, 0.8);
  margin-bottom: 0.45rem;
}
.scmx-freq-module-panel--open-left {
  transform-origin: right center;
}
.scmx-freq-module-panel-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow-x: visible;
  overflow-y: hidden;
}
.scmx-freq-module-panel--no-scroll .scmx-freq-module-panel-grid {
  overflow-x: visible;
  max-width: calc(10 * 1.65rem + 9 * 0.35rem);
}
.scmx-freq-module-panel:not(.scmx-freq-module-panel--no-scroll) .scmx-freq-module-panel-grid {
  overflow-x: auto;
  max-width: min(96vw, 36rem);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.scmx-freq-module-panel-grid .scmx-freq-module-child {
  flex: 0 0 auto;
  position: relative;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
}
.scmx-freq-module-panel-grid .scmx-freq-module-child .scmx-shell-frequent-chip-inner {
  font-size: 0.5rem;
}
.scmx-freq-module-panel-grid .scmx-freq-module-child .scmx-shell-frequent-chip-inner i {
  font-size: 0.72rem;
}
.scmx-freq-module-panel-grid .scmx-freq-module-child:hover {
  transform: translateY(-1px);
  z-index: 2;
}
.scmx-freq-module-panel-grid .scmx-freq-module-child::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%) scale(0.96);
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #f1f5f9;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  z-index: 10060;
}
.scmx-freq-module-panel-grid .scmx-freq-module-child:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}
.scmx-freq-module-panel-empty {
  padding: 0.25rem 0.35rem;
}
.scmx-shell-frequent-chip.scmx-freq-color-0 {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.55), rgba(15, 23, 42, 0.95));
  border-color: rgba(34, 211, 238, 0.55);
}
.scmx-shell-frequent-chip.scmx-freq-color-0:hover {
  border-color: #22d3ee;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.75), rgba(15, 23, 42, 0.98));
}
.scmx-shell-frequent-chip.scmx-freq-color-0 .scmx-shell-frequent-chip-inner,
.scmx-shell-frequent-chip.scmx-freq-color-0 .scmx-shell-frequent-chip-inner i {
  color: #ecfeff;
}
.scmx-shell-frequent-chip.scmx-freq-color-1 {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.55), rgba(15, 23, 42, 0.95));
  border-color: rgba(196, 181, 253, 0.5);
}
.scmx-shell-frequent-chip.scmx-freq-color-1:hover {
  border-color: #c4b5fd;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.75), rgba(15, 23, 42, 0.98));
}
.scmx-shell-frequent-chip.scmx-freq-color-1 .scmx-shell-frequent-chip-inner,
.scmx-shell-frequent-chip.scmx-freq-color-1 .scmx-shell-frequent-chip-inner i {
  color: #ede9fe;
}
.scmx-shell-frequent-chip.scmx-freq-color-2 {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.5), rgba(15, 23, 42, 0.95));
  border-color: rgba(252, 211, 77, 0.5);
}
.scmx-shell-frequent-chip.scmx-freq-color-2:hover {
  border-color: #fcd34d;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.72), rgba(15, 23, 42, 0.98));
}
.scmx-shell-frequent-chip.scmx-freq-color-2 .scmx-shell-frequent-chip-inner,
.scmx-shell-frequent-chip.scmx-freq-color-2 .scmx-shell-frequent-chip-inner i {
  color: #fffbeb;
}
.scmx-shell-frequent-chip.scmx-freq-color-3 {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.5), rgba(15, 23, 42, 0.95));
  border-color: rgba(134, 239, 172, 0.45);
}
.scmx-shell-frequent-chip.scmx-freq-color-3:hover {
  border-color: #86efac;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.72), rgba(15, 23, 42, 0.98));
}
.scmx-shell-frequent-chip.scmx-freq-color-3 .scmx-shell-frequent-chip-inner,
.scmx-shell-frequent-chip.scmx-freq-color-3 .scmx-shell-frequent-chip-inner i {
  color: #ecfdf5;
}
.scmx-shell-frequent-chip.scmx-freq-color-4 {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.5), rgba(15, 23, 42, 0.95));
  border-color: rgba(249, 168, 212, 0.5);
}
.scmx-shell-frequent-chip.scmx-freq-color-4:hover {
  border-color: #f9a8d4;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.72), rgba(15, 23, 42, 0.98));
}
.scmx-shell-frequent-chip.scmx-freq-color-4 .scmx-shell-frequent-chip-inner,
.scmx-shell-frequent-chip.scmx-freq-color-4 .scmx-shell-frequent-chip-inner i {
  color: #fdf2f8;
}
.scmx-shell-frequent-chip-inner {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffedd5;
  line-height: 1;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scmx-shell-frequent-chip-inner--code {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  min-width: 1.65rem;
}
.scmx-freq-module-panel-grid .scmx-shell-frequent-chip-inner--code {
  font-size: 0.52rem;
  min-width: 1.35rem;
}
.scmx-shell-frequent-chip-inner i {
  font-size: 0.95rem;
  color: inherit;
  line-height: 1;
}
.navbar-light a.scmx-shell-frequent-chip {
  background: linear-gradient(145deg, rgba(194, 65, 12, 0.2), #fff);
  border-color: rgba(194, 65, 12, 0.35);
}
.navbar-light a.scmx-shell-frequent-chip:hover {
  background: linear-gradient(145deg, rgba(194, 65, 12, 0.28), #fff);
}
.navbar-light .scmx-shell-frequent-chip-inner {
  color: #9a3412;
}
.navbar-light .scmx-shell-frequent-chip-inner i {
  color: #c2410c;
}
