:root {
  --accent-a: #ff2d7c;
  --accent-b: #35fff2;
  color: #f4f4ef;
  background: #030303;
  font-family:
    "Roboto Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.party {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  background: #030303;
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.youtube-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  opacity: var(--yt-bg-opacity, 0.34);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(1.2) contrast(1.08);
}

.youtube-backdrop.is-visible {
  display: block;
}

.youtube-backdrop iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.film {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 42%, transparent 0 36%, rgb(0 0 0 / 0.36) 66%, rgb(0 0 0 / 0.76) 100%),
    linear-gradient(180deg, rgb(0 0 0 / 0.16), transparent 24%, rgb(0 0 0 / 0.62));
  mix-blend-mode: screen;
  opacity: 0.8;
}

.strobe {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #fff;
  opacity: 0;
  mix-blend-mode: screen;
}

.smoke-layer {
  position: absolute;
  inset: -22%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  --smoke-drift-x: 0px;
  --smoke-drift-y: 0px;
  background:
    radial-gradient(ellipse at calc(12% + var(--smoke-drift-x)) calc(82% + var(--smoke-drift-y)), rgb(255 255 255 / 0.95) 0 9%, rgb(238 247 249 / 0.82) 17%, transparent 38%),
    radial-gradient(ellipse at calc(88% - var(--smoke-drift-x)) calc(84% + var(--smoke-drift-y)), rgb(255 255 255 / 0.9) 0 11%, rgb(220 238 244 / 0.76) 22%, transparent 42%),
    radial-gradient(ellipse at 50% 66%, rgb(255 255 255 / 0.86) 0 22%, rgb(236 246 247 / 0.62) 42%, transparent 66%),
    linear-gradient(180deg, transparent 0 10%, rgb(236 244 246 / 0.4) 34%, rgb(255 255 255 / 0.96) 72%, rgb(255 255 255 / 0.82));
  filter: blur(22px) saturate(0.75) contrast(1.08);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0) scale(1.08);
  transition: opacity 80ms linear;
}

.music-unlock {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 2px;
  background: rgb(0 0 0 / 0.44);
  color: rgb(255 255 255 / 0.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, background 120ms ease, color 120ms ease;
  backdrop-filter: blur(10px);
}

.music-unlock.is-visible {
  opacity: 0.72;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.music-unlock:hover,
.music-unlock:focus-visible {
  opacity: 1;
  background: #f4f4ef;
  color: #030303;
  outline: none;
}

.topbar {
  position: absolute;
  top: 28px;
  left: 22px;
  right: 22px;
  z-index: 6;
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 16px;
}

.mark {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.slots {
  display: none;
  justify-content: center;
  gap: 7px;
}

.grab-enabled .slots {
  display: flex;
}

.slot {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 2px;
  background: rgb(0 0 0 / 0.34);
  color: rgb(255 255 255 / 0.72);
}

.dance-mode-toggle,
.camera-mode-toggle,
.smoke-gun-toggle {
  position: absolute;
  right: 22px;
  z-index: 8;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 2px;
  background: rgb(0 0 0 / 0.38);
  color: rgb(255 255 255 / 0.76);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.72;
  backdrop-filter: blur(10px);
  overflow: visible;
}

.top-button-icon {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dance-mode-toggle {
  top: 28px;
}

.camera-mode-toggle {
  top: 28px;
  right: 68px;
}

.smoke-gun-toggle {
  top: 28px;
  right: 114px;
}

.dance-mode-toggle:hover,
.dance-mode-toggle:focus-visible,
.camera-mode-toggle:hover,
.camera-mode-toggle:focus-visible,
.camera-mode-toggle.is-active,
.smoke-gun-toggle:hover,
.smoke-gun-toggle:focus-visible,
.smoke-gun-toggle.is-active {
  opacity: 1;
  background: #f4f4ef;
  color: #030303;
}

.camera-mode-toggle.is-active,
.smoke-gun-toggle.is-active {
  border-color: var(--accent-b);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-b) 70%, transparent),
    0 0 22px color-mix(in srgb, var(--accent-b) 52%, transparent);
}

.slot.is-filled {
  color: #030303;
  background: #f4f4ef;
  box-shadow: 0 0 18px rgb(255 255 255 / 0.18);
}

.slot.is-active {
  border-color: var(--accent-b);
  box-shadow:
    0 0 0 1px var(--accent-b),
    0 0 22px color-mix(in srgb, var(--accent-b) 56%, transparent);
}

.view-controls {
  position: absolute;
  z-index: 6;
  left: 22px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  gap: 6px;
  width: 148px;
}

.view-controls button {
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 2px;
  background: rgb(0 0 0 / 0.42);
  color: rgb(255 255 255 / 0.76);
  font-size: 11px;
  font-weight: 800;
}

.view-controls button:hover,
.view-controls button.is-active {
  background: #f4f4ef;
  color: #030303;
}

.title-lock {
  position: absolute;
  z-index: 3;
  left: 24px;
  top: 88px;
  width: min(420px, calc(100vw - 48px));
  transform: none;
  text-align: left;
  pointer-events: none;
  mix-blend-mode: screen;
}

.title-lock p {
  margin: 0 0 12px;
  color: rgb(255 255 255 / 0.72);
  font-size: 12px;
}

.title-lock h1 {
  margin: 0;
  color: #fff;
  font-family:
    Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgb(255 255 255 / 0.54),
    0 0 46px color-mix(in srgb, var(--accent-b) 55%, transparent),
    0 0 74px color-mix(in srgb, var(--accent-a) 42%, transparent);
}

.creator {
  position: absolute;
  z-index: 7;
  right: 24px;
  top: 88px;
  width: min(392px, calc(100vw - 32px));
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 0.26);
  border-radius: 3px;
  background: rgb(0 0 0 / 0.72);
  box-shadow: 0 24px 90px rgb(0 0 0 / 0.58);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, opacity 160ms ease;
}

.ui-hidden .topbar,
.ui-hidden .view-controls,
.ui-hidden .title-lock {
  opacity: 0;
  pointer-events: none;
}

.ui-hidden .creator {
  opacity: 1;
  pointer-events: none;
  transform: translateX(calc(100% + 80px));
}

.ui-hidden .dance-mode-toggle,
.ui-hidden .camera-mode-toggle,
.ui-hidden .smoke-gun-toggle {
  opacity: 0.38;
}

.panel-head,
.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgb(255 255 255 / 0.78);
  font-size: 12px;
}

output {
  color: #fff;
  text-transform: uppercase;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: 10px 0;
}

.tab,
.mini-button,
.primary-action,
.file-action,
.swatch,
.terrain-card,
.character-card {
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.06);
  color: #f4f4ef;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.tab {
  min-height: 34px;
  font-size: 10px;
  gap: 2px;
  padding: 4px 2px;
}

.tab-icon {
  display: block;
  min-height: 13px;
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.tab-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab.is-active,
.mini-button.is-active,
.mini-button:hover,
.swatch.is-active,
.terrain-card.is-active,
.character-card:hover,
.character-card:focus-visible,
.primary-action,
.segmented button.is-active {
  background: #f4f4ef;
  color: #030303;
}

.primary-action:hover,
.file-action:hover {
  background: var(--accent-b);
  color: #030303;
}

.tab-panel {
  display: none;
  gap: 9px;
}

.tab-panel.is-active {
  display: grid;
}

.control-cluster {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 2px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-a) 12%, transparent), transparent),
    rgb(255 255 255 / 0.035);
}

.control-cluster > span {
  color: rgb(255 255 255 / 0.68);
  font-size: 10px;
  font-weight: 900;
}

.visualizer-controls > span,
.camera-cut-controls > span,
.layout-controls > span,
.solo-spotlight-controls > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.visualizer-controls output,
.camera-cut-controls output,
.layout-controls output,
.solo-spotlight-controls output {
  color: var(--accent-b);
  font-size: 10px;
  font-weight: 900;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.music-actions {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.music-actions button {
  min-width: 0;
  padding-inline: 6px;
}

.sfx-actions {
  grid-template-columns: repeat(3, 1fr);
}

.sfx-actions button {
  min-width: 0;
  padding-inline: 6px;
}

.visualizer-actions {
  grid-template-columns: 1.2fr 1fr;
}

.visualizer-actions button {
  min-width: 0;
  padding-inline: 6px;
}

.library-buttons,
.model-preset-buttons,
.layout-buttons,
.terrain-buttons,
.swatches {
  display: grid;
  gap: 6px;
}

.layout-buttons {
  grid-template-columns: repeat(3, 1fr);
}

.spotlight-target-buttons {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.solo-cut-buttons {
  grid-template-columns: 1.25fr repeat(7, 1fr);
}

.layout-buttons button,
.spotlight-target-buttons button {
  min-width: 0;
  padding-inline: 6px;
}

.spotlight-target-buttons button {
  min-height: 30px;
  color: rgb(255 255 255 / 0.58);
}

.spotlight-target-buttons button.is-filled {
  color: #f4f4ef;
  border-color: rgb(255 255 255 / 0.42);
}

.spotlight-target-buttons button.is-active {
  background: var(--accent-b);
  color: #030303;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-b) 42%, transparent);
}

.spotlight-target-buttons button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.dance-filter-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.dance-filter-buttons button {
  min-height: 28px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.76);
  font-size: 10px;
  font-weight: 800;
}

.dance-filter-buttons button:hover,
.dance-filter-buttons button.is-active {
  border-color: var(--accent-b);
  background: #f4f4ef;
  color: #030303;
}

.library-buttons {
  grid-template-columns: repeat(2, 1fr);
  max-height: 150px;
  overflow: auto;
  padding-right: 2px;
}

.model-preset-buttons {
  grid-template-columns: repeat(3, 1fr);
}

.swatches {
  grid-template-columns: repeat(4, 1fr);
}

.terrain-buttons {
  grid-template-columns: repeat(3, 1fr);
}

.terrain-card {
  min-height: 48px;
  gap: 4px;
  padding: 5px;
}

.terrain-card::before {
  content: "";
  width: 100%;
  height: 16px;
  border: 1px solid rgb(255 255 255 / 0.32);
  background:
    linear-gradient(135deg, var(--terrain-a), var(--terrain-b)),
    var(--terrain-a);
}

.terrain-card span {
  font-size: 10px;
}

.character-card {
  grid-template-columns: 46px 1fr;
  place-items: center start;
  min-height: 58px;
  padding: 6px;
  gap: 8px;
  text-align: left;
}

.character-thumb {
  width: 46px;
  height: 48px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.16), transparent),
    rgb(255 255 255 / 0.06);
}

.character-thumb.has-thumb {
  border-color: rgb(255 255 255 / 0.4);
  background-position: center top;
  background-size: cover;
}

.character-glyph {
  position: relative;
  width: 28px;
  height: 34px;
  opacity: 0.82;
}

.character-thumb.has-thumb .character-glyph {
  color: rgb(255 255 255 / 0.72);
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.9));
  mix-blend-mode: screen;
  opacity: 0.42;
}

.character-glyph::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.character-glyph::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 16px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: skewY(-18deg);
}

.character-card:hover .character-glyph,
.character-card:focus-visible .character-glyph {
  transform: rotate(-6deg);
}

.character-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.character-copy strong,
.character-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-copy strong {
  font-style: normal;
  font-size: 12px;
}

.character-copy em {
  color: rgb(255 255 255 / 0.62);
  font-size: 10px;
  font-style: normal;
}

.character-card:hover .character-copy em,
.character-card:focus-visible .character-copy em {
  color: rgb(0 0 0 / 0.72);
}

.character-preview-panel {
  display: grid;
  grid-template-columns: 102px 1fr;
  align-items: center;
  min-height: 102px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 2px;
  background:
    radial-gradient(circle at 22% 50%, rgb(53 255 242 / 0.18), transparent 42%),
    rgb(255 255 255 / 0.045);
}

#characterPreviewCanvas {
  width: 102px;
  height: 102px;
  display: block;
}

.character-preview-copy {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.character-preview-copy strong,
.character-preview-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-preview-copy strong {
  color: #fff;
  font-size: 13px;
}

.character-preview-copy span {
  color: rgb(255 255 255 / 0.62);
  font-size: 11px;
}

.swatch::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  border: 1px solid rgb(255 255 255 / 0.36);
  background: var(--swatch);
}

.file-action {
  position: relative;
  overflow: hidden;
}

.file-action input {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
}

.file-action-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.field {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 0.72);
  font-size: 11px;
}

.field > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-dot {
  position: relative;
  z-index: 5;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 50%;
  color: rgb(255 255 255 / 0.8);
  background: rgb(0 0 0 / 0.55);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  pointer-events: auto;
}

.info-tooltip {
  position: fixed;
  z-index: 30;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 9px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 2px;
  background: rgb(2 2 2 / 0.96);
  color: #fff;
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateY(5px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.info-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  padding: 0 10px;
}

.field input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--accent-a);
}

.field input[type="color"] {
  padding: 4px;
}

.danger {
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent-a) 54%, transparent);
  color: var(--accent-a);
  font-size: 11px;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}

.segmented button {
  min-height: 34px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.06);
  color: #f4f4ef;
  font-size: 11px;
  font-weight: 800;
}

.axis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  color: rgb(255 255 255 / 0.72);
  font-size: 11px;
}

.embed-shell {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(255 255 255 / 0.24);
  background: #050505;
}

.embed-shell.is-visible {
  display: block;
}

.embed-shell.is-audio-only {
  height: 2px;
  aspect-ratio: auto;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

.embed-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.track-info {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 2px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-b) 12%, transparent), transparent),
    rgb(255 255 255 / 0.055);
}

.track-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgb(255 255 255 / 0.58);
  font-size: 10px;
  font-weight: 900;
}

.track-info-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.track-info output {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.track-info-head output {
  color: var(--accent-b);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.track-title {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.track-artist {
  color: rgb(255 255 255 / 0.72);
  font-size: 11px;
  font-weight: 800;
}

.track-info.is-empty .track-title,
.track-info.is-empty .track-artist {
  color: rgb(255 255 255 / 0.42);
}

.local-audio-controls {
  display: none;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.055);
}

.local-audio-controls.is-visible {
  display: grid;
}

.local-audio-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 52px)) minmax(0, 68px) minmax(0, 76px) 1fr;
  align-items: center;
  gap: 6px;
}

.local-audio-row button {
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
}

.local-audio-row output {
  justify-self: end;
  color: rgb(255 255 255 / 0.78);
  font-size: 11px;
}

#localAudioSeek {
  width: 100%;
  accent-color: var(--accent-b);
}

.hotkey-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  color: rgb(255 255 255 / 0.72);
  font-size: 10px;
  font-weight: 800;
}

.hotkey-sheet span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 28px;
  padding: 4px 5px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.045);
}

kbd {
  min-width: 28px;
  padding: 2px 5px;
  border: 1px solid rgb(255 255 255 / 0.26);
  background: rgb(0 0 0 / 0.36);
  color: #fff;
  font: inherit;
  font-size: 10px;
  text-align: center;
}

.meter-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

@media (max-width: 820px) {
  .topbar {
    left: 14px;
    right: 14px;
    grid-template-columns: 1fr max-content;
  }

  .slots {
    display: none;
  }

  .title-lock {
    top: 86px;
    left: 14px;
    width: calc(100vw - 90px);
  }

  .title-lock h1 {
    font-size: 40px;
  }

  .creator {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 22px;
    width: auto;
    max-height: 45vh;
  }

  .tab-grid,
  .model-preset-buttons,
  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .library-buttons {
    grid-template-columns: repeat(2, 1fr);
    max-height: 160px;
  }

  .dance-filter-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .character-preview-panel {
    grid-template-columns: 96px 1fr;
    min-height: 96px;
  }

  #characterPreviewCanvas {
    width: 96px;
    height: 96px;
  }

  .field {
    grid-template-columns: 1fr;
  }

  .view-controls {
    left: 14px;
    right: auto;
    top: auto;
    bottom: 14px;
    width: 138px;
  }

  .hotkey-sheet {
    grid-template-columns: 1fr;
  }

  .dance-mode-toggle {
    right: 14px;
    top: 28px;
    width: 36px;
    height: 36px;
  }

  .camera-mode-toggle {
    right: 58px;
    top: 28px;
    width: 36px;
    height: 36px;
  }

  .smoke-gun-toggle {
    right: 102px;
    top: 28px;
    width: 36px;
    height: 36px;
  }
}
