:root {
  --ink: #f7f9ff;
  --muted: #9aa6bb;
  --dim: #657086;
  --bg: #06080d;
  --panel: rgba(17, 22, 32, .82);
  --panel-strong: rgba(20, 26, 38, .94);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .23);
  --accent: #45d6bc;
  --accent-2: #f0b85a;
  --rose: #ff4f7b;
  --shadow: 0 26px 80px rgba(0, 0, 0, .52);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea { font: inherit; }

button {
  color: inherit;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.isHidden { display: none !important; }

.authBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 12%, rgba(69, 214, 188, .16), transparent 32%),
    radial-gradient(circle at 86% 80%, rgba(240, 184, 90, .13), transparent 34%),
    linear-gradient(135deg, rgba(6, 8, 13, .92), rgba(10, 13, 21, .98));
  backdrop-filter: blur(18px);
}

.authCard {
  width: min(520px, 94vw);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 27, 39, .9), rgba(10, 14, 22, .86));
  box-shadow: var(--shadow);
}

.authBrand {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
}

.brandMark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  color: #06100f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(69, 214, 188, .18);
  font-weight: 900;
}

.authBrand span,
.inspectorHead span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
p { margin: 0; }

h1 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.08;
}

.authTabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.authTab {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.authTab:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.authTab.isActive { color: #07100f; background: var(--accent); }

.authForm {
  display: grid;
  gap: 14px;
}

.authFields {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  outline: 0;
}

textarea {
  min-height: 86px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(69, 214, 188, .72);
  box-shadow: 0 0 0 4px rgba(69, 214, 188, .12);
}

input[type="range"] {
  min-height: 24px;
  padding: 0;
  accent-color: var(--accent);
}

input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.authHint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.primaryAction,
.miniAction {
  min-height: 44px;
  border-radius: 10px;
  color: #06100f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 42px rgba(69, 214, 188, .16);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.primaryAction:hover,
.miniAction:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(69, 214, 188, .22);
}

.composer {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% -10%, rgba(69, 214, 188, .13), transparent 34%),
    linear-gradient(145deg, #070a10, #0c1018 50%, #05070b);
}

.composer.isLocked {
  filter: blur(2px);
  pointer-events: none;
}

.stageShell {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: center;
  background: #111620;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .8;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(rgba(69,214,188,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,214,188,.18) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 320px 320px, 320px 320px;
}

.stage::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 5%;
  bottom: 5%;
  z-index: 6;
  border: 1px dashed rgba(255,255,255,.18);
  pointer-events: none;
}

.canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111620;
}

.canvasElement {
  position: absolute;
  z-index: var(--z, 1);
  width: var(--w);
  height: var(--h);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  transform-origin: center center;
  opacity: var(--o, 1);
  user-select: none;
  touch-action: none;
}

.canvasElement.isLocked .content {
  outline: 2px dashed rgba(240,184,90,.8);
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.elText .content,
.elLink .content {
  padding: var(--content-pad-y, 18px) var(--content-pad-x, 22px);
  color: var(--text-color, #fff);
  background: var(--fill, transparent);
  font-family: var(--font-family, Inter, sans-serif);
  font-size: var(--font-size, 72px);
  font-weight: var(--font-weight, 800);
  line-height: var(--line-height, 1.08);
  text-align: var(--align, left);
  text-shadow: var(--text-shadow, none);
  -webkit-text-stroke: var(--text-stroke-width, 0) var(--text-stroke-color, transparent);
  paint-order: stroke fill;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.elText .content {
  display: block;
}

.elText .content[style*="--align:justify"] {
  text-align: justify;
  text-align-last: auto;
}

.elLink .content {
  display: flex;
  align-items: center;
  justify-content: var(--justify, center);
  border: 2px solid rgba(69,214,188,.68);
  border-radius: 16px;
  background: rgba(69,214,188,.12);
  color: #dffff8;
  font-size: var(--font-size, 42px);
}

.elImage .content {
  position: relative;
  border-radius: var(--media-radius, 0);
  box-shadow: var(--media-shadow, none);
}

.elImage .content::after,
.elVideo .content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--media-border-width, 0) var(--media-border-color, transparent);
  pointer-events: none;
}

.elVideo .content {
  position: relative;
  border-radius: var(--media-radius, 0);
  box-shadow: var(--media-shadow, none);
}

.elImage img,
.elVideo iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
}

.elVideo iframe {
  pointer-events: none;
}

.elShape .content {
  border: var(--stroke-width, 0) solid var(--stroke, transparent);
  border-radius: var(--shape-radius, 0);
  background: var(--fill, #45d6bc);
  box-shadow: var(--shape-shadow, none);
}

.shapeCircle .content { border-radius: 999px; }
.shapeLine .content { height: 8px; margin-top: calc(50% - 4px); border-radius: 999px; }
.shapeArrow .content {
  position: relative;
  height: 10px;
  margin-top: calc(50% - 5px);
  overflow: visible;
  border-radius: 999px;
}
.shapeArrow .content::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 32px solid var(--fill, #45d6bc);
  transform: translateY(-50%);
}

.shapeStar .content {
  border: 0;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.shapeAsterisk .content {
  border: 0;
  clip-path: polygon(45% 0%, 55% 0%, 55% 37%, 87% 18%, 93% 27%, 61% 45%, 100% 45%, 100% 55%, 61% 55%, 93% 73%, 87% 82%, 55% 63%, 55% 100%, 45% 100%, 45% 63%, 13% 82%, 7% 73%, 39% 55%, 0% 55%, 0% 45%, 39% 45%, 7% 27%, 13% 18%, 45% 37%);
}

.elShape.isPlaceholder .content {
  outline: 1px dashed rgba(255,255,255,.32);
  outline-offset: -1px;
}

.shapePlaceholderMark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.58);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

.videoEmpty,
.imageEmpty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: var(--muted);
  font-weight: 800;
}

.handle {
  position: absolute;
  z-index: 20;
  width: 18px;
  height: 18px;
  border: 2px solid #06100f;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,255,255,.22);
}

.canvasElement.isSelected::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 15;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(69,214,188,.28);
  pointer-events: none;
}

.canvasElement.isSelected .content {
  box-shadow: 0 0 0 1px rgba(69,214,188,.35), 0 0 28px rgba(69,214,188,.13);
}

.selectionLasso {
  position: absolute;
  z-index: 9999;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 1px solid rgba(69,214,188,.95);
  background: rgba(69,214,188,.12);
  pointer-events: none;
}

.moveHandle {
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  cursor: move;
}

.moveHandle::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #06100f;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-45deg);
}

.resizeHandle.nw { left: -9px; top: -9px; cursor: nwse-resize; }
.resizeHandle.ne { right: -9px; top: -9px; cursor: nesw-resize; }
.resizeHandle.sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
.resizeHandle.se { right: -9px; bottom: -9px; cursor: nwse-resize; }

.rotateHandle {
  left: 50%;
  top: -54px;
  border-radius: 999px;
  background: var(--accent-2);
  transform: translateX(-50%);
  cursor: grab;
}

.rotateHandle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 2px;
  height: 36px;
  background: var(--accent-2);
  transform: translateX(-50%);
}

.bottomHotspot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: 112px;
}

.bottomMenu {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 18, 28, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translate(-50%, 128px);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}

.bottomHotspot:hover + .bottomMenu,
.bottomMenu:hover {
  transform: translate(-50%, 0);
  opacity: 1;
}

.bottomMenu button {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 84px;
  height: 76px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.bottomMenu button:hover {
  transform: translateY(-3px);
  border-color: rgba(69,214,188,.58);
  background: rgba(69,214,188,.13);
}

.bottomMenu small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.toolIcon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.newIcon::before,
.newIcon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 999px;
}

.newIcon::before {
  width: 24px;
  height: 3px;
}

.newIcon::after {
  width: 3px;
  height: 24px;
}

.importIcon::before {
  content: "";
  width: 24px;
  height: 26px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(69,214,188,.22), transparent);
}

.importIcon::after {
  content: "P";
  position: absolute;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.templateIcon {
  border: 2px solid var(--accent);
  border-radius: 8px;
}

.templateIcon::before,
.templateIcon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: rgba(69,214,188,.12);
}

.templateIcon::before { transform: translate(-4px, -4px); }
.templateIcon::after { transform: translate(5px, 5px); }

.bgIcon {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--rose));
}
.imageIcon {
  border: 2px solid var(--accent);
  border-radius: 8px;
}
.imageIcon::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 8px;
  height: 12px;
  background: linear-gradient(135deg, transparent 45%, var(--accent) 46%);
}
.shapeIcon { border: 2px solid var(--accent); border-radius: 9px; }
.linkIcon::before { content: "↗"; }
.videoIcon {
  border: 2px solid var(--accent);
  border-radius: 999px;
}
.videoIcon::before {
  content: "";
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--accent);
}
.slideIcon {
  border: 2px solid var(--accent);
  border-radius: 6px;
}
.slideIcon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(69,214,188,.55);
  border-radius: 4px;
}
.saveIcon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: inset 0 -7px 0 rgba(69,214,188,.22);
}
.loadIcon::before {
  content: "";
  width: 24px;
  height: 18px;
  border: 2px solid var(--accent);
  border-top: 0;
  border-radius: 4px 4px 7px 7px;
}
.loadIcon::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 18px;
  height: 10px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.publishIcon::before { content: "↑"; }

.floatingInspector {
  position: fixed;
  left: 28px;
  top: 28px;
  z-index: 180;
  width: 340px;
  height: min(690px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}

.floatingInspector.isCollapsed {
  width: min(300px, calc(100vw - 24px));
  height: auto;
}

.floatingInspector.isCollapsed .inspectorHead {
  padding: 10px 12px;
  border-bottom: 0;
}

.floatingInspector.isCollapsed .inspectorBody {
  display: none;
}

.inspectorHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  cursor: grab;
}

.inspectorActions {
  display: flex;
  gap: 6px;
}

.inspectorHead strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.iconButton {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
}

.inspectorBody {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  scrollbar-color: rgba(69,214,188,.8) rgba(255,255,255,.08);
}

.controlGroup {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.controlTitle {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}

.alignGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alignGrid button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 10px;
  white-space: nowrap;
}

.segmented button,
.ghostButton {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.segmented button.isActive,
.ghostButton:hover {
  border-color: rgba(69,214,188,.7);
  color: #06100f;
  background: var(--accent);
}

.switchRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform .18s ease, background .18s ease;
}

.switch input:checked + span {
  transform: translateX(20px);
  background: var(--accent);
}

.buttonGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.projectList {
  display: grid;
  gap: 8px;
}

.projectRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.projectRow strong,
.projectRow span {
  display: block;
}

.templateList {
  display: grid;
  gap: 12px;
}

.templateCard {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.templateThumb {
  grid-row: span 3;
  width: 112px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: #080b12;
}

.templateThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.templateThumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

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

.templateMeta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.projectRow strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projectRow span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dangerButton:hover {
  border-color: rgba(255,79,123,.7);
  background: var(--rose);
}

.textPresetGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.textPresetGrid button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.textPresetGrid button.isActive,
.textPresetGrid button:hover {
  border-color: rgba(69,214,188,.7);
  color: #06100f;
  background: var(--accent);
}

.fontPicker {
  display: grid;
  gap: 8px;
}

.fontGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 2px;
}

.fontGrid button {
  min-height: 38px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fontGrid button.isActive {
  border-color: rgba(69,214,188,.7);
  color: #06100f;
  background: var(--accent);
}

.cornerGrid {
  display: grid;
  gap: 8px;
}

.cornerGrid label {
  gap: 4px;
}

.fileInput { display: none; }

.slideDock {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13,18,28,.52);
  opacity: .12;
  transform: translateX(-50%);
  transition: opacity .18s ease;
  backdrop-filter: blur(14px);
}

.slideDock:hover { opacity: 1; }

.slidePill {
  min-width: 36px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.slidePill.isActive {
  background: var(--accent);
  color: #06100f;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 122px;
  z-index: 300;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.toast.isVisible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .bottomMenu {
    width: calc(100vw - 24px);
    overflow-x: auto;
    justify-content: flex-start;
  }

  .bottomMenu button {
    flex: 0 0 76px;
    width: 76px;
  }

  .floatingInspector {
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
    height: calc(100vh - 24px);
  }
}
