/* Showstopper-specific overrides. Layout comes from gun-family/manual.css. */
.lab-panel h2 { color: #ffb44a; }
select:focus, button:hover { border-color: #ffb44a; color: #ffb44a; }
.spec-note { color: #718196; }

.lab-panel input[type="range"] {
  width: 100%;
  accent-color: #ffb44a;
}

.keyframe-editor {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ffffff12;
}

.keyframe-editor[hidden] {
  display: none;
}

.keyframe-editor h3 {
  margin: 0;
  color: #ffcf8a;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.keyframe-editor input,
.keyframe-editor select,
.export-panel textarea,
.lab-panel input[type="number"] {
  width: 100%;
  min-height: 30px;
  border: 1px solid #55e7ff25;
  border-radius: 6px;
  background: #10182a;
  color: #eefcff;
}

.export-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ffffff12;
}

.export-panel textarea {
  min-height: 128px;
  resize: vertical;
  padding: 8px;
  font: 10px/1.35 Consolas, monospace;
  letter-spacing: 0;
}

.timeline-panel {
  position: fixed;
  z-index: 8;
  left: calc(50% + min(50vw,28.125vh) + 268px);
  top: 12px;
  width: 150px;
  max-height: calc(100vh - 24px);
  padding: 14px;
  border: 1px solid #55e7ff35;
  border-radius: 16px;
  background: #070c19f2;
  box-shadow: 0 12px 40px #0009,0 0 28px #55e7ff12;
  backdrop-filter: blur(10px);
}

.timeline-panel h2 {
  margin: 0 0 12px;
  color: #ffb44a;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.timeline-panel label {
  display: grid;
  gap: 5px;
  margin: 9px 0;
  color: #9eafc3;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.timeline-toolbar,
.timeline-transport {
  display: grid;
  gap: 6px;
}

.timeline-toolbar {
  grid-template-columns: 1fr 48px 58px;
  margin: 8px 0 10px;
}

.timeline-transport {
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 10px;
}

.timeline-toolbar button,
.timeline-toolbar select,
.timeline-transport button {
  min-height: 30px;
  padding: 5px 6px;
  border-radius: 7px;
  font-size: .72rem;
}

.timeline-toolbar select {
  width: 100%;
  border: 1px solid #55e7ff25;
  background: #10182a;
  color: #eefcff;
  font-size: .66rem;
}

.timeline-toolbar button:disabled {
  opacity: .42;
  cursor: default;
}

.timeline-scroll {
  position: relative;
  height: min(540px, calc(100vh - 150px));
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #020716b5;
}

.timeline-track {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.timeline-line {
  position: absolute;
  top: 20px;
  bottom: 20px;
  width: 2px;
  transform: translateX(-50%);
}

.timeline-line::after {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  color: #8b9bb4;
  font: 8px/1 Consolas, monospace;
  letter-spacing: 0;
  content: attr(data-label);
}

.timeline-line--camera {
  left: 24%;
  background: linear-gradient(180deg, #ffb44a, #55e7ff);
  box-shadow: 0 0 12px #55e7ff66;
}

.timeline-line--attack {
  left: 44%;
  background: linear-gradient(180deg, #88ff9a, #ff6a6a);
  box-shadow: 0 0 12px #88ff9a55;
}

.timeline-line--timewarp {
  left: 64%;
  background: linear-gradient(180deg, #ffffff, #a58bff);
  box-shadow: 0 0 12px #a58bff66;
}

.timeline-line--scrubber {
  left: 84%;
  background: linear-gradient(180deg, #ffffff, #ffb44a);
  box-shadow: 0 0 12px #ffb44a66;
}

.timeline-scrubber {
  position: absolute;
  left: 84%;
  width: 17px;
  height: 9px;
  transform: translate(-50%, 50%);
  border: 1px solid #ffffffcc;
  border-radius: 3px;
  background: #ffb44a;
  box-shadow: 0 0 16px #ffb44aaa;
  cursor: ns-resize;
  z-index: 2;
}

.timeline-dot {
  position: absolute;
  left: 24%;
  width: 15px;
  height: 15px;
  transform: translate(-50%, 50%);
  border: 2px solid #ffcf8a;
  border-radius: 50%;
  background: #10182a;
  box-shadow: 0 0 12px #ffb44a66;
  cursor: grab;
}

.timeline-dot[data-selected="true"] {
  border-color: #ffffff;
  background: #ffb44a;
  box-shadow: 0 0 20px #ffb44acc;
}

.timeline-dot[data-locked="true"] {
  border-color: #55e7ff;
  background: #55e7ff;
  box-shadow: 0 0 18px #55e7ffaa;
  cursor: default;
}

.timeline-dot--startAttack,
.timeline-dot--stopAttack {
  left: 44%;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  cursor: ns-resize;
}

.timeline-dot--timeWarp {
  left: 64%;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border-color: #a58bff;
  background: #1b1838;
  box-shadow: 0 0 14px #a58bff77;
  cursor: ns-resize;
}

.timeline-dot--timeWarp::after {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #d9e7ef;
  font: 9px/1 Consolas, monospace;
  letter-spacing: 0;
  content: attr(data-scale);
}

.timeline-dot--startAttack {
  border-color: #88ff9a;
  background: #12321b;
  box-shadow: 0 0 14px #88ff9a77;
}

.timeline-dot--stopAttack {
  border-color: #ff6a6a;
  background: #351414;
  box-shadow: 0 0 14px #ff6a6a77;
}

.timeline-dot--startAttack::after,
.timeline-dot--stopAttack::after {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #d9e7ef;
  font: 9px/1 Consolas, monospace;
  letter-spacing: 0;
}

.timeline-dot--startAttack::after {
  content: "ATK";
}

.timeline-dot--stopAttack::after {
  content: "END";
}

.timeline-dot:active {
  cursor: grabbing;
}

.timeline-zero,
.timeline-end {
  position: absolute;
  left: 8px;
  color: #8b9bb4;
  font: 10px/1 Consolas, monospace;
  letter-spacing: .1em;
}

.timeline-zero {
  bottom: 14px;
}

.timeline-end {
  top: 14px;
}

.timeline-menu {
  position: fixed;
  z-index: 20;
  display: grid;
  min-width: 124px;
  padding: 5px;
  border: 1px solid #ffb44a55;
  border-radius: 8px;
  background: #070c19fa;
  box-shadow: 0 12px 30px #000b, 0 0 18px #ffb44a22;
}

.timeline-menu[hidden] {
  display: none;
}

.timeline-menu button {
  justify-content: flex-start;
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  text-align: left;
}

.bank-slot {
  position: absolute;
  z-index: 12;
  top: 92px;
  left: 50%;
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 8px;
  min-width: 138px;
  padding: 7px 10px;
  transform: translateX(-50%);
  border: 1px solid #ffb44a44;
  border-radius: 8px;
  background: #090b15d9;
  box-shadow: 0 0 18px #ff7a1a22, inset 0 0 16px #ffb44a12;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.bank-slot span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffdf85;
  border: 1px solid #ffb44a55;
  text-shadow: 0 0 10px #ffb44a;
  box-shadow: inset 0 0 12px #ffb44a22;
}

.bank-slot strong {
  color: #ffe8b5;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bank-slot[data-state="empty"] {
  opacity: .45;
  filter: saturate(.4);
  cursor: default;
}

.bank-slot[aria-disabled="true"] {
  cursor: default;
}
