/* LOOP-IT V4.1.3 Protected Route Shell Bridge
 * Presentation only: the proven protected runtime remains authoritative.
 */
:root {
  --loopit-v413-bg: #020a0d;
  --loopit-v413-nav: #030d10;
  --loopit-v413-line: rgba(255,255,255,.065);
  --loopit-v413-text: #f3f8f4;
  --loopit-v413-muted: #84948d;
  --loopit-v413-green: #80f24c;
}

#root .app-shell.loopit-v413-shell .topbar {
  min-height: 74px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 0 28px !important;
  background: rgba(2,10,13,.97) !important;
  border-bottom: 1px solid var(--loopit-v413-line) !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

#root .app-shell.loopit-v413-shell .topbar > :not(.loopit-v413-brand):not(.loopit-v413-tools) {
  display: none !important;
}

.loopit-v413-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.loopit-v413-brand__logo {
  width: 265px;
  max-width: 34vw;
  height: auto;
  display: block;
  object-fit: contain;
  flex: 0 1 auto;
}

.loopit-v413-brand__rule {
  width: 1px;
  height: 28px;
  flex: 0 0 1px;
  background: rgba(255,255,255,.09);
}

.loopit-v413-brand__platform {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--loopit-v413-muted);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.loopit-v413-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.loopit-v413-status,
.loopit-v413-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  white-space: nowrap;
}

.loopit-v413-status {
  padding: 0 12px;
  border: 1px solid rgba(128,242,76,.17);
  border-radius: 999px;
  background: rgba(128,242,76,.04);
  color: #8bf75d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
}

.loopit-v413-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--loopit-v413-green);
  box-shadow: 0 0 9px rgba(128,242,76,.9);
}

.loopit-v413-button {
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.024);
  color: #cad4cf;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.loopit-v413-button:hover {
  border-color: rgba(128,242,76,.28);
  color: #eef8f0;
}

/* Hide the duplicate proven-runtime topbar overlay only. Its runtime and modal remain active. */
#loopit-shared-topbar-root {
  display: none !important;
}

#root .app-shell.loopit-v413-shell .module-nav {
  min-height: 56px !important;
  display: flex !important;
  align-items: stretch !important;
  padding: 0 20px !important;
  gap: 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  background: rgba(3,13,16,.96) !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
  box-sizing: border-box !important;
  scrollbar-width: thin;
}

#root .app-shell.loopit-v413-shell .module-nav__item[data-loopit-v413-legacy-nav="true"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  border: 0 !important;
}

.loopit-v413-nav-links {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: max-content;
}

.loopit-v413-nav-link {
  position: relative;
  height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  color: #83958d;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
}

.loopit-v413-nav-link:hover {
  color: #c9d6d0;
  background: rgba(128,242,76,.025);
}

.loopit-v413-nav-link.is-active {
  color: #89f55c;
  background: rgba(128,242,76,.035);
  border-bottom-color: #7bee4b;
}

.loopit-v413-nav-link.is-future {
  opacity: .58;
}

.loopit-v413-nav-link.is-future::after {
  content: "FUTURE";
  font-size: 7px;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
}

.loopit-v413-control-launcher {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.loopit-v413-control-launcher[hidden] { display: none !important; }

.loopit-v413-control-panel {
  width: min(680px, calc(100vw - 32px));
  border: 1px solid rgba(128,242,76,.20);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg,#08181c,#051115);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}

.loopit-v413-control-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.loopit-v413-eyebrow {
  color: #55e989;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.loopit-v413-control-panel h2 {
  margin: 5px 0 4px;
  color: #f3f8f4;
  font-size: 22px;
}

.loopit-v413-control-panel p {
  margin: 0;
  color: #899b92;
  font-size: 12px;
  line-height: 1.5;
}

.loopit-v413-close,
.loopit-v413-control-item {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
  color: #dce9e2;
  cursor: pointer;
}

.loopit-v413-close {
  border-radius: 9px;
  padding: 8px 11px;
}

.loopit-v413-control-item {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  text-align: left;
}

.loopit-v413-control-item strong,
.loopit-v413-control-item small { display: block; }
.loopit-v413-control-item small { margin-top: 4px; color: #82978d; }

@media (max-width: 1100px) {
  .loopit-v413-brand__platform,
  .loopit-v413-status { display: none; }
  .loopit-v413-brand__logo { width: 220px; }
}

@media (max-width: 760px) {
  #root .app-shell.loopit-v413-shell .topbar {
    min-height: 68px !important;
    padding: 0 14px !important;
  }
  .loopit-v413-brand__logo { width: 180px; max-width: 46vw; }
  .loopit-v413-brand__rule,
  .loopit-v413-button[data-loopit-v413-control] { display: none; }
  #root .app-shell.loopit-v413-shell .module-nav { padding: 0 10px !important; }
  .loopit-v413-nav-link { padding: 0 11px; font-size: 11px; }
}
