:root {
  --service-primary-collapsed: 62px;
  --service-primary-expanded: 210px;
  --service-workbar-height: 58px;
}

.integrated-test-shell {
  grid-template-columns: var(--service-primary-collapsed) minmax(0, 1fr) !important;
}

.integrated-test-shell #integratedWorkspaceBar { display: none !important; }
.integrated-test-shell > .shell-source-sidebar { display: none !important; }

.service-primary-sidebar {
  position: sticky;
  top: 0;
  z-index: 48;
  width: var(--service-primary-collapsed);
  height: 100vh;
  overflow: hidden;
  padding: 16px 8px;
  color: #fff;
  background: #091a16;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  transition: width .2s ease, box-shadow .2s ease;
}

.service-primary-sidebar nav { display: grid; gap: 8px; }
.service-primary-brand { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 2px 14px; }
.service-primary-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; color: #13241f; background: #dff35d; font-size: 16px; font-weight: 950; letter-spacing: -.08em; }
.service-primary-copy { width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transform: translateX(-6px); transition: width .2s ease, opacity .15s ease, transform .2s ease; }
.service-primary-copy b, .service-primary-copy small { display: block; }
.service-primary-copy b { font-size: 13px; }
.service-primary-copy small { margin-top: 3px; color: #84a096; font-size: 8px; font-weight: 800; letter-spacing: .08em; }

.service-primary-item {
  width: 100%; min-height: 52px; padding: 5px; border: 1px solid transparent; border-radius: 10px;
  color: #bad0c7; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left;
}
.service-primary-item:hover { color: white; background: rgba(255,255,255,.065); }
.service-primary-item.active { color: #13241f; background: #dff35d; box-shadow: 0 8px 20px rgba(148,172,30,.18); }
.service-primary-item.active .service-primary-copy small { color: #4f6121; }
.service-primary-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.06); font-size: 14px; font-weight: 950; }
.service-primary-item.active .service-primary-icon { background: rgba(19,36,31,.1); }
.service-primary-status { margin-top: auto; min-height: 54px; display: flex; align-items: center; gap: 13px; padding: 10px 10px; border-top: 1px solid rgba(255,255,255,.09); }
.service-test-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #58e0aa; box-shadow: 0 0 0 4px rgba(88,224,170,.12); }

.primary-sidebar-expanded .service-primary-sidebar { width: var(--service-primary-expanded); box-shadow: 18px 0 38px rgba(4,18,14,.25); }
.primary-sidebar-expanded .service-primary-copy { width: 145px; opacity: 1; transform: none; }

.integrated-test-shell .workspace { min-width: 0; }
.service-workbar {
  position: sticky; top: 0; z-index: 24; min-height: var(--service-workbar-height); margin: -24px -28px 18px; padding: 8px 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); background: #103c31; box-shadow: 0 8px 22px rgba(9,36,29,.12);
}
.service-context-brand { min-width: 0; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.12); }
.service-context-kicker { display: block; color: #dff35d; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.service-context-brand strong { display: inline-block; margin-top: 2px; font-size: 14px; }
.service-context-brand small { display: block; overflow: hidden; margin-top: 2px; color: #98aea6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.service-top-nav { display: flex; min-width: 0; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.service-top-item {
  display: inline-flex; min-width: max-content; min-height: 40px; padding: 0 15px; align-items: center; justify-content: center; gap: 8px;
  color: #c5d4ce; border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 12px; font-weight: 850;
}
.service-top-item:hover { color: #fff; border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.06); }
.service-top-item.active { color: #13241f; border-color: #dff35d; background: #dff35d; box-shadow: 0 7px 16px rgba(6,24,19,.16); }
.service-top-item > span { font-size: 14px; line-height: 1; }
.service-top-nav-empty { color: #9db1aa; font-size: 10px; }
.service-global-message { padding: 0 10px; }

.service-top-session { display: flex; align-items: center; gap: 10px; }
.service-top-session > span { display: inline-flex; align-items: center; gap: 8px; color: #bad0c7; font-size: 10px; white-space: nowrap; }
.service-top-session button { min-height: 34px; padding: 0 12px; color: #d6e2dd; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); font-size: 10px; font-weight: 800; }
.service-top-session button:hover { color: #fff; background: rgba(255,255,255,.09); }

.hub-frame-view { min-height: calc(100vh - var(--service-workbar-height)); padding: 0; }
.hub-frame-view iframe { display: block; width: 100%; min-height: calc(100vh - var(--service-workbar-height) - 18px); border: 0; background: #eef4f0; }
.hub-content-active .workspace { padding-bottom: 0 !important; }
.hub-content-active .workspace > .topbar,
.hub-content-active .workspace > .readonly-banner { display: none !important; }
.hub-content-active .service-workbar { margin-bottom: 0; }

@media (max-width: 1100px) {
  .service-workbar { grid-template-columns: minmax(0, 1fr); }
  .service-top-session { display: none; }
}

@media (max-width: 760px) {
  .integrated-test-shell { grid-template-columns: 1fr !important; }
  .service-primary-sidebar,
  .primary-sidebar-expanded .service-primary-sidebar { position: static; width: 100%; height: auto; padding: 8px 10px; overflow: visible; box-shadow: none; }
  .service-primary-brand, .service-primary-status { display: none; }
  .service-primary-sidebar nav { display: flex; overflow-x: auto; }
  .service-primary-item { min-width: 96px; min-height: 40px; }
  .service-primary-copy, .primary-sidebar-expanded .service-primary-copy { width: auto; opacity: 1; transform: none; }
  .service-primary-copy small { display: none; }
  .service-primary-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .service-workbar { position: static; margin: -16px -16px 14px; grid-template-columns: 1fr; padding: 8px 10px; }
  .service-context-brand { display: none; }
  .service-top-item { min-height: 38px; padding-inline: 12px; }
  .hub-frame-view iframe { min-height: calc(100vh - 104px); }
}
