/* ==========================================================================
   STUDIO SHELL & CHASSIS SUBSYSTEM (v5.5.0)
   180px Nav Rail, 50px Topbar, TBAR Branch Menu, 28px Bottom Dock.
   ========================================================================== */

.studio-chassis {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* LEFT NAVIGATION RAIL (180px FIXED) */
.studio-rail {
  width: 180px;
  background: #000000 !important;
  border-right: 2px solid #151515;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  z-index: 1000;
}

.studio-rail-brand {
  height: auto !important;
  padding: 18px 8px 14px 8px;
  background: #000000 !important;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

.studio-brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  min-width: 0;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.studio-brand-text {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.studio-brand-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  background: linear-gradient(312deg, #ffffff 0%, #d8d8d8 30%, #959595 65%, #424242 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 2px;
}

.studio-version-tag {
  position: absolute;
  top: -11px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  letter-spacing: 0.03em;
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
  transform: translateY(3px);
}

.studio-rail-brand:hover .studio-version-tag,
.studio-brand-badge:hover .studio-version-tag,
.studio-version-tag.has-update {
  opacity: 0.95;
  pointer-events: auto;
  transform: translateY(0);
}

.studio-version-tag:hover {
  color: #ffffff;
}

.studio-version-tag.has-update {
  color: var(--text-muted);
}

.studio-version-tag.has-update::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--status-green-text);
  flex-shrink: 0;
}

.studio-rail-nav {
  padding: 15px 6px 6px 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.rail-hook-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.rail-hook-active {
  stroke: #737373;
  stroke-width: 1.5;
  stroke-dasharray: 2.5 3.5;
  fill: none;
}

.rail-hook-hover {
  stroke: #3f3f3f;
  stroke-width: 1.5;
  stroke-dasharray: 2.5 3.5;
  fill: none;
}

.studio-nav-item {
  width: 100%;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-muted);
  padding: 4px 6px 4px 22px !important;
  border-radius: 0 !important;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: color 0.12s ease;
  position: relative;
  z-index: 2;
  box-shadow: none !important;
}

.studio-nav-item .icon-svg {
  color: #525252;
  margin-top: 2px;
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.studio-nav-item:hover {
  background: transparent !important;
  color: #e5e5e5;
}

.studio-nav-item:hover .icon-svg {
  color: #a3a3a3;
}

.studio-nav-item:hover .studio-nav-label {
  color: #e5e5e5;
}

.studio-nav-item.active {
  background: transparent !important;
  color: #ffffff;
}

.studio-nav-item.active .icon-svg {
  color: #ffffff;
}

.studio-nav-item.active .studio-nav-label {
  color: #ffffff;
  font-weight: 600;
}

.studio-nav-item.active .studio-nav-desc {
  color: #737373;
}

.studio-nav-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  flex: 1;
  overflow: hidden;
}

.studio-nav-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.studio-nav-desc {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}

.nav-tally-badge {
  background: #000000;
  border: 1px solid #262626;
  color: var(--status-blue-text);
  -webkit-text-fill-color: var(--status-blue-text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: auto;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.15s ease;
}

.nav-tally-badge.badge-conflict {
  background: var(--status-red-bg);
  border-color: rgba(255, 51, 51, 0.3);
  color: var(--status-red-text);
  -webkit-text-fill-color: var(--status-red-text);
}

.studio-nav-item.active .nav-tally-badge {
  -webkit-text-fill-color: var(--status-blue-text);
}

.studio-nav-item.active .nav-tally-badge.badge-conflict {
  -webkit-text-fill-color: var(--status-red-text);
}

.studio-rail-footer {
  padding: 8px 8px 12px 8px;
  border-top: none !important;
  background: #000000 !important;
  position: relative;
  overflow: visible !important;
  z-index: 1005;
}

.pc {
  position: relative;
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 7px 8px;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .25s;
  box-sizing: border-box;
  width: 100%;
  z-index: 1001;
}

.pc:hover, .pc.open {
  border-color: #2c2c2c;
  background: #141414;
}

.pc:hover .orb {
  transform: scale(1.08) translateY(-1px);
}

.pc:hover .halo {
  border-color: rgba(255, 255, 255, 0.2);
}

.pc:hover .spark {
  opacity: 0.9;
  animation: spin 3.5s linear infinite;
}

.pc .row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}

.pc .row:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.pc .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-align: left;
}

.pc .nm {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  line-height: 1.2;
}

.pc .pl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.rail-pro-pill {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 4px;
  border-radius: 3px;
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #303030;
  line-height: 1.1;
}

.rail-pro-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim, #737373);
}

.rail-free-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #e5e5e5;
}

.rail-free-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-dim, #737373);
}

.pc .g {
  width: 14px;
  height: 14px;
  color: #525252;
  flex: none;
  transition: transform .5s cubic-bezier(.3,1.5,.5,1), color .2s;
}

.pc:hover .g {
  color: #ffffff;
}

.pc.open .g {
  transform: rotate(60deg);
  color: #ffffff;
}

/* ORB & SKINS */
.orb {
  position: relative;
  flex: none;
  width: var(--sz, 30px);
  height: var(--sz, 30px);
  transition: transform .45s cubic-bezier(.3,1.7,.5,1);
}

.shell, .halo, .glow, .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.shell, .halo {
  animation: morph 7s ease-in-out infinite alternate;
}

.halo {
  inset: -3px;
  border: 1px solid rgba(255,255,255,.08);
  animation-duration: 9s;
  animation-direction: alternate-reverse;
}

.shell {
  box-shadow: 0 4px 10px #000;
}

.glow {
  opacity: 0;
  filter: blur(8px);
  transition: opacity .45s;
}

.ring {
  opacity: 0;
  transition: opacity .45s;
}

.spark {
  position: absolute;
  inset: -4px;
  opacity: 0;
  transition: opacity .4s;
}

.spark::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
}

.pc.s-mercury { --ink: #0a0a0a; }
.pc.s-glass { --ink: #ffffff; }
.pc.s-ember { --ink: #2a0a00; }
.pc.s-ice { --ink: #062a33; }
.pc.s-void { --ink: #eaf0ff; }
.pc.s-plasma { --ink: #12031f; }
.pc.s-holo { --ink: #0a0a0a; }

.s-mercury .shell {
  background: radial-gradient(circle at 30% 22%, #fff, #bdbdbd 22%, #3a3a3a 52%, #eaeaea 70%, #1c1c1c);
}

.s-glass .shell {
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.62), rgba(255,255,255,.08) 46%, rgba(255,255,255,.02) 74%);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 2px 8px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.55);
}

.s-glass .halo {
  inset: -5px;
  border-color: rgba(255,255,255,.15);
}

.s-ember .shell {
  background: radial-gradient(circle at 34% 28%, #fff3c4, #ff9d3c 26%, #c2410c 56%, #3b0a02 86%);
}

.s-ember .glow {
  opacity: .85;
  background: radial-gradient(circle, #ff8a2b, transparent 68%);
}

.s-ice .shell {
  background: radial-gradient(circle at 32% 24%, #fff, #bff0ff 26%, #4aa8c8 56%, #0d2b38 88%);
}

.s-ice .glow {
  opacity: .45;
  background: radial-gradient(circle, #7fd8ff, transparent 70%);
}

.s-plasma .shell {
  background: conic-gradient(from 0deg, #7c3aed, #db2777, #f59e0b, #22d3ee, #7c3aed);
  animation: morph 7s ease-in-out infinite alternate, spin 6s linear infinite;
  filter: saturate(1.15);
}

.s-plasma .glow {
  opacity: .6;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}

.s-holo .shell {
  background: conic-gradient(from 210deg, #fde68a, #a5f3fc, #c4b5fd, #fbcfe8, #fde68a);
  animation: morph 7s ease-in-out infinite alternate, spin 9s linear infinite;
  filter: blur(.4px) saturate(1.2);
}

.s-holo .glow {
  opacity: .45;
  background: radial-gradient(circle, #c4b5fd, transparent 70%);
}

.s-void .shell {
  border-radius: 50%;
  animation: none;
  background: radial-gradient(circle at 50% 50%, #000 0 55%, #04060b 64%, #0a0f1a 72%, transparent 82%), #000;
  box-shadow: inset 0 0 0 1px rgba(190,210,255,.30), inset 0 0 14px 3px rgba(110,150,255,.22), 0 0 22px rgba(110,150,255,.32), 0 6px 18px #000;
}

.s-void .shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, rgba(220,232,255,.95) 63%, rgba(140,180,255,.35) 66%, transparent 71%);
  animation: voidPulse 3.6s ease-in-out infinite;
  pointer-events: none;
}

.s-void .shell::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0deg, rgba(255,255,255,.35) 30deg, transparent 70deg, transparent 220deg, rgba(160,200,255,.28) 260deg, transparent 300deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 66%, #000 76%, transparent 80%);
  mask: radial-gradient(circle, transparent 62%, #000 66%, #000 76%, transparent 80%);
  animation: spin 11s linear infinite reverse;
  pointer-events: none;
}

.s-void .ring {
  opacity: 1;
  inset: -5px;
  animation: spin 5s linear infinite;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(150,190,255,.95) 40deg, transparent 95deg, transparent 200deg, rgba(200,160,255,.85) 250deg, transparent 305deg);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 60%, #000 74%, transparent 79%);
  mask: radial-gradient(circle, transparent 56%, #000 60%, #000 74%, transparent 79%);
}

.s-void .glow {
  opacity: .55;
  background: radial-gradient(circle, rgba(120,170,255,.6), transparent 68%);
  animation: voidAura 4.2s ease-in-out infinite;
}

.s-void .halo {
  inset: -10px;
  border: 0;
  background:
    radial-gradient(1.2px 1.2px at 18% 28%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 80% 20%, rgba(170,205,255,.75), transparent 60%),
    radial-gradient(1px 1px at 66% 86%, rgba(255,255,255,.60), transparent 60%);
  animation: morph 9s ease-in-out infinite alternate-reverse, twinkle 5.5s ease-in-out infinite;
}

/* EYES, MOODS & MOUTH */
.eyes {
  position: absolute;
  left: 50%;
  top: 44%;
  display: flex;
  gap: 3px;
  transform: translate(calc(-50% + var(--ex, 0px)), calc(-50% + var(--ey, 0px)));
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.3, 1);
  will-change: transform;
}

.eyes i {
  display: block;
  width: 4px;
  height: 7px;
  border-radius: 2.5px;
  background: var(--ink, #0a0a0a);
  transition: width .25s, height .25s, transform .12s, border-radius .2s, box-shadow .25s;
}

.blink .eyes i {
  transform: scaleY(.12) !important;
}

.m-happy .eyes i {
  width: 7px;
  height: 3.5px;
  background: none;
  border: 1.8px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  box-shadow: none;
}

.m-serious .eyes i {
  width: 6px;
  height: 3.5px;
  border-radius: 1px;
  background: var(--ink);
  border: 0;
}
.m-serious .eyes i:first-child { transform: rotate(14deg); }
.m-serious .eyes i:last-child { transform: rotate(-14deg); }

.m-sad .eyes i {
  width: 4.5px;
  height: 6px;
  border: 0;
  background: var(--ink);
  border-radius: 2.5px;
}
.m-sad .eyes i:first-child { transform: rotate(-16deg); }
.m-sad .eyes i:last-child { transform: rotate(16deg); }

.m-surprised .eyes i {
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--ink);
  border-radius: 50%;
}

.m-sleepy .eyes i {
  width: 6px;
  height: 2px;
  border: 0;
  background: var(--ink);
  border-radius: 2px;
}

.m-wink .eyes i:last-child {
  width: 7px;
  height: 3.5px;
  background: none;
  border: 1.8px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.mouth {
  position: absolute;
  left: 50%;
  top: 69%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  transition: all .22s cubic-bezier(.3,1.4,.5,1);
}

.m-happy .mouth {
  width: 9px;
  height: 5px;
  border: 1.6px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.m-sad .mouth {
  width: 8px;
  height: 4px;
  border: 1.6px solid var(--ink);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.m-surprised .mouth {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.m-serious .mouth {
  width: 8px;
  height: 1.5px;
  border-radius: 1.5px;
  background: var(--ink);
}

.m-sleepy .mouth {
  width: 4px;
  height: 2.5px;
  border-radius: 50%;
  background: var(--ink);
}

.m-wink .mouth {
  width: 7px;
  height: 3.5px;
  border: 1.6px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  transform: translate(-50%, -50%) rotate(-10deg);
}

/* MOTIONS & POP */
.mot-still .orb, .mot-still .shell, .mot-still .halo { animation: none; }
.mot-breathe .orb { animation: breathe 3.8s ease-in-out infinite; }
.mot-float .orb { animation: float 3.6s ease-in-out infinite; }
.mot-orbit .orb { animation: orbitWobble 4s ease-in-out infinite; }
.mot-orbit .spark { opacity: 1; animation: spin 5s linear infinite; }
.pc.pop .orb { animation: pop .34s cubic-bezier(.3,1.7,.5,1); }

/* POPOVER MENU */
.pc .menu {
  position: absolute;
  left: 0;
  width: 230px;
  bottom: calc(100% + 8px);
  z-index: 99999;
  background: #0d0d0d !important;
  border: 1px solid #222222;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.98), 0 0 0 1px #222222;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transform-origin: bottom left;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s, transform .28s cubic-bezier(.3,1.4,.5,1), visibility 0s .28s;
  overflow: hidden;
}

.pc.open .menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.menu button:not(.mskin-btn):not(.mmood-btn):not(.mnav-back) {
  all: unset;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #cfcfcf;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.menu button:not(.mskin-btn):not(.mmood-btn):not(.mnav-back):hover,
.menu button:not(.mskin-btn):not(.mmood-btn):not(.mnav-back):focus-visible {
  background: #1a1a1a;
  color: #ffffff;
  outline: none;
}

.menu hr {
  border: 0;
  border-top: 1px solid #1f1f1f;
  margin: 4px 2px;
}

.menu kbd {
  font: 9.5px var(--font-mono);
  color: #666;
  transition: color .15s;
}

.menu button:hover kbd {
  color: #ffffff;
}

.mchev {
  color: #5a5a5a;
  font-size: 14px;
  line-height: 1;
}

.mhead {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px 8px;
}

.mavatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #161616;
  border: 1px solid #262626;
}

.mname {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmail {
  font-size: 10px;
  color: #7a7a7a;
  font-family: var(--font-mono);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mplan {
  margin: 0 2px 6px;
  padding: 6px 8px;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  background: #0a0a0a;
}

.mplanrow {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #cfcfcf;
  margin-bottom: 5px;
}

.mmuted {
  color: #6e6e6e;
}

.mbar {
  height: 3px;
  border-radius: 99px;
  background: #202020;
  overflow: hidden;
}

.mbar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #ffffff;
}

.mpages {
  display: flex;
  width: 200%;
  transition: transform .24s cubic-bezier(.25,1,.5,1);
}

.menu.sub-open .mpages {
  transform: translateX(-50%);
}

.mpage {
  width: 50%;
  flex: none;
  box-sizing: border-box;
}

.mpage-main {
  transition: visibility 0s .24s;
}

.mpage-sub {
  padding: 2px 2px 4px;
  visibility: hidden;
  transition: visibility 0s .24s;
}

.menu.sub-open .mpage-sub {
  visibility: visible;
  transition-delay: 0s;
}

.menu.sub-open .mpage-main {
  visibility: hidden;
}

.msubhdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 2px 6px;
  border-bottom: 1px solid #1c1c1c;
  margin-bottom: 6px;
}

.msubhdr span {
  font-size: 11px;
  font-weight: 700;
  color: #efefef;
}

.mnav-back {
  all: unset;
  font-size: 11px;
  color: #e5e5e5;
  cursor: pointer;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background .15s;
}

.mnav-back:hover {
  background: #181818;
}

.msec {
  padding: 3px 1px 6px;
}

.mseclab {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim, #737373);
  font-weight: 600;
}

.msechdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.msec .mseclab {
  margin-bottom: 4px;
}

.msechdr .mseclab {
  margin-bottom: 0;
}

.mskins {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 4px;
}

.mskin-btn {
  all: unset;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color .15s, transform .15s;
  flex: none;
}

.mskin-btn:hover {
  transform: scale(1.15);
}

.mskin-btn.on {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.mskin-orb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.4), 0 2px 5px rgba(0,0,0,.6);
  flex: none;
  pointer-events: none;
}

.skin-mercury { background: radial-gradient(circle at 32% 24%,#fff,#bdbdbd 28%,#3a3a3a 58%,#eaeaea 74%,#1c1c1c); }
.skin-glass { background: radial-gradient(circle at 32% 26%,rgba(255,255,255,.9),rgba(255,255,255,.2) 46%,rgba(255,255,255,.05) 74%),rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.5); }
.skin-ember { background: radial-gradient(circle at 34% 28%,#fff3c4,#ff9d3c 30%,#c2410c 60%,#3b0a02 90%); box-shadow: 0 0 8px rgba(255,140,43,.55); }
.skin-ice { background: radial-gradient(circle at 32% 24%,#fff,#bff0ff 30%,#4aa8c8 60%,#0d2b38 90%); box-shadow: 0 0 8px rgba(127,216,255,.5); }
.skin-void { background: radial-gradient(circle at 50% 50%,#000 0 45%,#0b1220 70%,#18233c 85%,#3b82f6 100%); border: 1px solid rgba(140,180,255,.6); box-shadow: 0 0 8px rgba(110,150,255,.55); }
.skin-plasma { background: conic-gradient(from 0deg,#7c3aed,#db2777,#f59e0b,#22d3ee,#7c3aed); box-shadow: 0 0 8px rgba(168,85,247,.5); }
.skin-holo { background: conic-gradient(from 210deg,#fde68a,#a5f3fc,#c4b5fd,#fbcfe8,#fde68a); filter: saturate(1.3); box-shadow: 0 0 8px rgba(196,181,253,.5); }

.mtoggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-transform: none;
  font-size: 9.5px;
  color: var(--text-dim, #737373);
}

.mtoggle input {
  appearance: none;
  width: 20px;
  height: 11px;
  border-radius: 99px;
  background: #222;
  position: relative;
  cursor: pointer;
  margin: 0;
  transition: background .2s;
}

.mtoggle input::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #777;
  transition: transform .2s, background .2s;
}

.mtoggle input:checked {
  background: #2c2c2c;
}

.mtoggle input:checked::after {
  transform: translateX(9px);
  background: #ffffff;
}

.mmoods {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 2px 0;
}

.mmood-btn {
  all: unset;
  box-sizing: border-box;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 10px;
  color: #888;
  background: #121212;
  border: 1px solid #202020;
  cursor: pointer;
  text-align: center;
  text-transform: capitalize;
  transition: all .15s;
}

.mmood-btn:hover {
  color: #fff;
  border-color: #333;
}

.mmood-btn.on {
  color: #fff;
  background: #222;
  border-color: #ffffff;
}

@keyframes morph {
  0% { border-radius: 46% 54% 50% 50%/52% 46% 54% 48%; }
  33% { border-radius: 56% 44% 42% 58%/46% 56% 44% 54%; }
  66% { border-radius: 48% 52% 58% 42%/58% 44% 56% 42%; }
  100% { border-radius: 52% 48% 46% 54%/44% 54% 46% 56%; }
}
@keyframes breathe { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.06) translateY(-1.5px); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes orbitWobble {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(2px,-2px) rotate(3deg); }
  50% { transform: translate(0,-3px) rotate(0deg); }
  75% { transform: translate(-2px,-2px) rotate(-3deg); }
}
@keyframes pop { 0% { transform: scale(1); } 38% { transform: scale(.82); } 100% { transform: scale(1); } }
@keyframes voidPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes voidAura { 0%,100% { opacity: .35; transform: scale(.96); } 50% { opacity: .72; transform: scale(1.06); } }
@keyframes twinkle { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* TOPBAR PILOT RIBBON (50px FIXED) */
.studio-canvas {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: var(--bg-canvas);
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.studio-topbar {
  height: 50px;
  background-color: #121212;
  border-bottom: 2px solid #151515;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 900;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-repo-btn {
  background: #121212;
  border: 2px solid #151515;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.topbar-repo-btn:hover {
  background: #151515;
}

.topbar-repo-btn.is-external-ready {
  border-color: #3f3f3f;
  background: #181818;
}

.topbar-repo-btn.is-external-ready #hudActiveRepoLabel {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-branch-deck {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #121212;
  border: 2px solid #151515;
  padding: 3px 6px;
  border-radius: 15px;
  position: relative;
}

.topbar-branch-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.12s ease;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.topbar-branch-btn:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
}

.topbar-branch-btn.is-open {
  background: #141414;
  color: var(--status-green-text);
}

/* TOPBAR RIGHT: UNIFIED GHOST ACTIONS (OPTION B) */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-right .topbar-branch-deck {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.topbar-right .topbar-branch-btn,
.topbar-right .lp-header-trigger {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
  white-space: nowrap;
}

.topbar-right .topbar-branch-btn:hover,
.topbar-right .lp-header-trigger:hover {
  background: #181818;
  border-color: #282828;
  color: #ffffff;
}

.topbar-right .topbar-branch-btn.is-open {
  background: #181818;
  border-color: #3f3f3f;
  color: var(--status-green-text);
}

.topbar-right .topbar-branch-btn:hover .topbar-shortcut-kbd {
  background: #282828;
  color: #ffffff;
}

.branch-chevron {
  color: var(--text-dim);
  transition: transform 0.15s ease;
}

.topbar-branch-btn.is-open .branch-chevron {
  transform: rotate(180deg);
  color: var(--status-green-text);
}

.topbar-shortcut-kbd {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  background: #181818;
  border: 1px solid #282828;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

#btnSyncActiveRepo.is-desynced {
  color: var(--status-yellow-text) !important;
  border-color: rgba(255, 209, 102, 0.3) !important;
  background: rgba(255, 209, 102, 0.05) !important;
}

#btnSyncActiveRepo.is-desynced svg {
  color: var(--status-yellow-text) !important;
}

.btn-branch-new {
  padding: 2px 6px;
  font-size: 10px;
  height: 22px;
}

/* TITAN-BRANCH AEGIS REACTOR (TBAR) FLYOUT PALETTE */
.branch-flyout-palette {
  position: absolute;
  top: 100%;
  left: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #101010;
  border: 1px solid #161616;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  z-index: 99999;
  margin-top: 6px;
  overflow: hidden;
  animation: qsIn 0.12s ease;
}

.branch-flyout-search-wrap {
  padding: 8px 10px;
  background: #0e0e0e;
  border-bottom: 1px solid #141414;
  display: flex;
  align-items: center;
  gap: 6px;
}

.branch-search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.branch-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  min-width: 0;
}

.branch-flyout-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.branch-flyout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.1s ease;
  user-select: none;
}

.branch-flyout-item:hover, .branch-flyout-item.is-highlighted {
  background: #141414;
  border-color: #262626;
}

.branch-flyout-item.active {
  background: #181818;
  border-color: #282828;
}

.branch-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.branch-item-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.branch-flyout-item.active .branch-item-icon {
  color: #ffffff;
}

.branch-item-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  flex: 1;
}

.branch-flyout-item.active .branch-item-name {
  color: #ffffff;
  font-weight: 600;
}

.branch-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}

.branch-item-sha {
  font-family: var(--font-pixel, var(--font-mono));
  font-size: 9px;
  color: var(--text-dim);
  background: #141414;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #222222;
}

.branch-flyout-empty {
  padding: 16px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

.branch-flyout-footer {
  padding: 8px 10px;
  background: #101010;
  border-top: 1px solid #141414;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-flyout-new {
  width: 100%;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-flyout-new:hover {
  background: var(--bg-surface-hover);
  color: var(--status-green-text);
}

.branch-create-dock {
  padding: 8px 10px;
  background: #101010;
  border-top: 1px solid #161616;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: qsIn 0.12s ease;
}

.branch-create-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0e0e0e;
  border: 1px solid var(--border-focus);
  padding: 3px 6px;
  border-radius: 4px;
}

.branch-create-icon {
  color: var(--status-green-text);
  flex-shrink: 0;
}

.branch-create-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  min-width: 0;
}

.branch-create-actions {
  display: flex;
  gap: 6px;
}

.branch-item-create {
  border-bottom: 1px dashed #262626 !important;
  margin-bottom: 2px;
  color: #e5e5e5 !important;
}

.branch-item-create:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: #3f3f3f !important;
}

.branch-item-create .branch-create-icon {
  color: var(--status-green-text);
}

.branch-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0e0e0e;
  border: 1px solid #242424;
  border-radius: 6px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
}

.branch-dropdown-item {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
  cursor: pointer;
}

.branch-dropdown-item:hover {
  background: #181818;
  color: #ffffff;
}

.topbar-telemetry-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  background: #101010;
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-quota-bar {
  width: 32px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.topbar-quota-fill {
  height: 100%;
  background: var(--status-green-text);
}

.topbar-ci-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--status-green-text);
  background: var(--status-green-bg);
  border: 1px solid rgba(0, 229, 153, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ci-led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green-text);
}

.topbar-error-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--status-red-text);
  background: var(--status-red-bg);
  border: 1px solid rgba(255, 51, 85, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.topbar-error-pill:hover {
  background: rgba(255, 51, 85, 0.16);
  border-color: var(--status-red-text);
}

.error-led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-red-text);
  animation: pulseError 1.5s infinite;
}

@keyframes pulseError {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.topbar-avatar-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.topbar-avatar-crop {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #101010;
  border: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
}

/* FLOATING APP UPDATE CARD & DOCK PILL */
.zc-update-banner {
  position: fixed;
  right: 14px;
  bottom: 38px;
  width: min(304px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: var(--text-main);
  z-index: 95000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.78);
  animation: zcUpdateSlideIn 0.14s ease-out;
}

.zc-update-banner.is-warn {
  border-color: rgba(251, 191, 36, 0.35);
}

@keyframes zcUpdateSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zc-upd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zc-upd-head-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.zc-upd-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--status-green-text);
}

.zc-upd-led.is-warn {
  background: var(--status-yellow-text);
}

.zc-upd-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.zc-upd-min {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease;
}

.zc-upd-min:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.zc-upd-msg {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.zc-upd-msg.is-warn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--status-yellow-text);
}

.zc-upd-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 4px;
}

.zc-upd-later,
.zc-upd-apply {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.zc-upd-later {
  background: #161616;
  border: 1px solid #282828;
  color: var(--text-muted);
}

.zc-upd-later:hover {
  background: #202020;
  border-color: #363636;
  color: #ffffff;
}

.zc-upd-apply {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #000000;
}

.zc-upd-apply:hover {
  background: #e5e5e5;
  border-color: #e5e5e5;
}

.zc-upd-later:disabled,
.zc-upd-apply:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.zc-upd-dock-pill {
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  background: #121212;
  border: 1px solid #242424;
  color: var(--text-main);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.zc-upd-dock-pill:hover {
  background: #1a1a1a;
  border-color: #333333;
  color: #ffffff;
}

.zc-upd-dock-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-green-text);
  flex-shrink: 0;
}

.zc-upd-dock-pill.is-warn .zc-upd-dock-led {
  background: var(--status-yellow-text);
}

.tv-console-footer .zc-upd-dock-pill {
  margin-left: auto;
  margin-right: 10px;
}

.tv-console-ver {
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.tv-console-ver.has-update {
  color: var(--status-green-text);
}

@media (prefers-reduced-motion: reduce) {
  .zc-update-banner {
    animation: none;
  }
}

@media (max-width: 560px) {
  .zc-update-banner {
    left: 10px;
    right: 10px;
    bottom: 36px;
    width: auto;
  }
}

.telemetry-status-dock {
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  background: #121212;
  border-top: 2px solid #151515;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  user-select: none;
  z-index: 50;
  box-sizing: border-box;
}

.telemetry-dock-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}

.telemetry-dock-center {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telemetry-dock-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.dock-segment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.dock-segment-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.dock-label-highlight {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dock-divider {
  width: 1px;
  height: 11px;
  background: #262626;
  flex-shrink: 0;
}

.dock-delta-add {
  color: var(--status-green-text);
  font-weight: 600;
}

.dock-delta-tomb {
  font-weight: 500;
}

.dock-led-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-green-text);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.dock-led-dot.warn {
  background: var(--status-yellow-text);
}

.dock-led-dot.error {
  background: var(--status-red-text);
}

.dock-label-safety {
  font-weight: 500;
}

.telemetry-dock-ticker {
  font-family: var(--font-pixel, var(--font-mono));
  color: #737373;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.telemetry-dock-action-beacon {
  background: #121212;
  border: 1px solid #242424;
  color: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.12s ease;
  height: 20px;
  line-height: 1;
}

.telemetry-dock-action-beacon:hover {
  background: #1a1a1a;
  border-color: #333333;
  color: #ffffff;
}

.dock-beacon-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-green-text);
}

.telemetry-commit-pill {
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.25);
  color: var(--status-green-text);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  transition: all 0.12s ease;
}

.telemetry-commit-pill:hover {
  background: rgba(0, 229, 153, 0.15);
  border-color: var(--status-green-text);
  color: #ffffff;
}

.dock-author-label {
  color: var(--text-dim);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.btn-dock-shortcut {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  height: 20px;
  line-height: 1;
  transition: all 0.12s ease;
}

.btn-dock-shortcut:hover {
  background: #161616;
  border-color: #262626;
  color: #ffffff;
}

.dock-kbd {
  background: #161616;
  border: 1px solid #262626;
  color: #9e9e9e;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 0 3px;
  border-radius: 2px;
  line-height: 13px;
}

/* RESPONSIVE & DENSITY RULES FOR SHELL */
@media (max-width: 960px) {
  .studio-rail {
    width: 58px;
  }
  .studio-rail-brand {
    padding: 14px 0 10px 0 !important;
    justify-content: center;
  }
  .brand-logo-img {
    width: 28px;
    height: 28px;
  }
  .studio-brand-text,
  .studio-nav-info {
    display: none !important;
  }
  .rail-hook-svg {
    display: none !important;
  }
  .studio-rail-nav {
    padding: 8px 0 !important;
    gap: 4px !important;
    align-items: center;
  }
  .studio-nav-item {
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    width: 40px !important;
    height: 38px !important;
    border-radius: 8px !important;
    margin: 0 auto;
    position: relative !important;
  }
  .studio-nav-item .icon-svg {
    margin-top: 0 !important;
  }
  .studio-nav-item .nav-tally-badge {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    margin-left: 0 !important;
    min-width: 13px !important;
    height: 13px !important;
    padding: 0 2px !important;
    border-radius: 7px !important;
    font-size: 8px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #000000 !important;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8) !important;
    z-index: 10;
  }
  .studio-nav-item .nav-tally-badge.badge-conflict {
    background: var(--status-red-text) !important;
  }
  .studio-nav-item .nav-tally-badge:not(.badge-conflict) {
    background: var(--text-main) !important;
  }

  /* Compact Avatar-Only Footer at Small Resolution */
  .studio-rail-footer {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 0 12px 0 !important;
    border-top: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .studio-rail-footer .pc {
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
  }
  .studio-rail-footer .pc .txt,
  .studio-rail-footer .pc .g {
    display: none !important;
  }
  .studio-rail-footer .pc .menu {
    left: 10px !important;
    width: 220px !important;
  }
}

body[data-density="glance"] .studio-rail { width: 52px; }
body[data-density="glance"] .studio-rail-brand { padding: 12px 0 8px 0 !important; justify-content: center; }
body[data-density="glance"] .studio-brand-text,
body[data-density="glance"] .studio-nav-info,
body[data-density="glance"] .telemetry-dock-center,
body[data-density="glance"] .topbar-telemetry-pill,
body[data-density="glance"] .topbar-ci-pill,
body[data-density="glance"] .topbar-error-pill,
body[data-density="glance"] .rail-hook-svg { display: none !important; }
body[data-density="glance"] .studio-rail-nav { padding: 6px 0 !important; gap: 3px !important; align-items: center; }
body[data-density="glance"] .studio-nav-item { justify-content: center !important; align-items: center !important; padding: 0 !important; width: 36px !important; height: 34px !important; border-radius: 6px !important; margin: 0 auto; position: relative !important; }
body[data-density="glance"] .studio-nav-item .icon-svg { margin-top: 0 !important; }
body[data-density="glance"] .studio-nav-item .nav-tally-badge { position: absolute !important; top: 2px !important; right: 2px !important; margin: 0 !important; min-width: 13px !important; height: 13px !important; padding: 0 2px !important; border-radius: 7px !important; font-size: 8px !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border: 1px solid #000000 !important; z-index: 10; }
body[data-density="glance"] .brand-logo-img { width: 24px; height: 24px; }
body[data-density="glance"] .topbar-repo-btn .topbar-kbd { display: none; }
body[data-density="glance"] .studio-rail-footer { display: flex !important; align-items: center; justify-content: center; padding: 6px 0 10px 0 !important; border-top: none !important; background: transparent !important; overflow: visible !important; }
body[data-density="glance"] .studio-rail-footer .pc { padding: 2px !important; background: transparent !important; border: none !important; width: auto !important; }
body[data-density="glance"] .studio-rail-footer .pc .txt,
body[data-density="glance"] .studio-rail-footer .pc .g { display: none !important; }
body[data-density="glance"] .studio-rail-footer .pc .menu { left: 8px !important; width: 220px !important; }

body[data-density="work"] .dock-author-label { max-width: 110px; }

body[data-density="deep"] .studio-rail { width: 210px; }
body[data-density="deep"] .studio-nav-label { font-size: 13px; }
body[data-density="deep"] .studio-nav-desc { font-size: 11px; }
body[data-density="deep"] .topbar-repo-btn { font-size: 13px; padding: 6px 14px; }
body[data-density="deep"] .topbar-branch-btn { font-size: 12px; padding: 3px 8px; }
body[data-density="deep"] .telemetry-dock-ticker { max-width: 800px; font-size: 12px; }
body[data-density="deep"] .dock-segment { font-size: 11px; }
body[data-density="deep"] .dock-author-label { max-width: 280px; font-size: 11px; }