:root {
  color-scheme: dark;
  --ink: #f9f7fb;
  --muted: #a49ba9;
  --muted-strong: #c8beca;
  --bg: #0b090e;
  --panel: rgba(24, 20, 28, 0.82);
  --panel-strong: rgba(31, 25, 35, 0.94);
  --line: rgba(255, 255, 255, 0.085);
  --line-bright: rgba(255, 255, 255, 0.16);
  --pink: #ea68a3;
  --pink-soft: #ff9bc8;
  --peach: #f6a56f;
  --mint: #7be0bd;
  --warning: #f6c86f;
  --danger: #ff7c92;
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 1080px;
  height: 100%;
  min-height: 720px;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(234, 104, 163, 0.11), transparent 42%),
    linear-gradient(155deg, #0c0a0f 0%, #0b090d 50%, #08070a 100%);
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.06;
  pointer-events: none;
}

.ambient--one {
  top: -20vw;
  right: 2vw;
  background: var(--pink);
}

.ambient--two {
  bottom: -27vw;
  left: 18vw;
  background: var(--peach);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px);
}

.topbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 5px;
}

.brand-lockup,
.topbar__actions,
.canvas-title,
.toolbar-cluster,
.readiness-pill,
.button,
.toggle-button,
.pathbar,
.live-chip {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 13px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(234, 104, 163, 0.48);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, rgba(234, 104, 163, 0.34), rgba(246, 165, 111, 0.12));
  box-shadow: 0 0 26px rgba(234, 104, 163, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
}

.brand-mark__pixel {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--peach);
  box-shadow: -8px 8px 0 rgba(234, 104, 163, 0.42);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--pink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.topbar__actions {
  gap: 8px;
}

.readiness-pill {
  height: 34px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 700;
}

.status-dot,
.pathbar__status i,
.live-chip i,
.target-status {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(164, 155, 169, 0.09);
}

[data-state="checking"] .status-dot,
.pathbar__status[data-state="checking"] i,
.target-status[data-state="checking"] {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(246, 200, 111, 0.1);
  animation: pulse 1.2s ease-in-out infinite;
}

[data-state="ready"] .status-dot,
.pathbar__status[data-state="ready"] i,
.target-status[data-state="ready"],
.live-chip i {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(123, 224, 189, 0.1), 0 0 10px rgba(123, 224, 189, 0.35);
}

[data-state="missing"] .status-dot,
.pathbar__status[data-state="missing"] i,
.target-status[data-state="missing"] {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 124, 146, 0.1);
}

[data-state="local"] .status-dot,
.target-status[data-state="local"] {
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(234, 104, 163, 0.11);
}

.button,
.toggle-button {
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.toggle-button:hover {
  border-color: rgba(234, 104, 163, 0.42);
  background: rgba(234, 104, 163, 0.08);
}

.button:active,
.toggle-button:active {
  transform: translateY(1px);
}

.button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button--compact {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted-strong);
  font-size: 10px;
}

.button--primary {
  min-width: 0;
  flex: 1;
  border-color: rgba(234, 104, 163, 0.62);
  color: #fff;
  background: linear-gradient(135deg, #d94f90, var(--pink));
  box-shadow: 0 10px 26px rgba(234, 104, 163, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button--primary:hover {
  border-color: var(--pink-soft);
  background: linear-gradient(135deg, #e15998, #f078ae);
  box-shadow: 0 13px 32px rgba(234, 104, 163, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button--primary svg {
  fill: currentColor;
  stroke: none;
}

.studio {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 218px minmax(520px, 1fr) 256px;
  gap: 12px;
}

.library,
.inspector {
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.library {
  display: flex;
  flex-direction: column;
  padding: 11px;
}

.mode-switch {
  display: grid;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.21);
}

.mode-switch__button {
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mode-switch__button.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.library-section {
  min-height: 0;
  margin-top: 16px;
}

#alertsPanel {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 104, 163, 0.34) transparent;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
  font-size: 8px;
}

.target-list {
  display: grid;
  gap: 4px;
}

.target-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: stretch;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted-strong);
  background: transparent;
  transition: background 150ms ease, border-color 150ms ease;
}

.target-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.target-item.is-active {
  border-color: rgba(234, 104, 163, 0.24);
  color: #fff;
  background: linear-gradient(90deg, rgba(234, 104, 163, 0.13), rgba(234, 104, 163, 0.035));
  box-shadow: inset 2px 0 0 var(--pink);
}

.target-button {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 9px 8px 9px 11px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.target-icon {
  position: relative;
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.17);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.target-item.is-active .target-icon {
  border-color: rgba(234, 104, 163, 0.28);
  color: var(--pink-soft);
  background: rgba(234, 104, 163, 0.1);
}

.target-label {
  min-width: 0;
  flex: 1;
}

.target-label strong,
.target-label span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-label strong {
  font-size: 10px;
  font-weight: 730;
}

.target-label span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.target-status {
  align-self: center;
  margin-left: 2px;
}

.quick-play {
  display: grid;
  width: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-left: 1px solid transparent;
  border-radius: 0 11px 11px 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.quick-play:hover {
  color: #fff;
  background: rgba(234, 104, 163, 0.12);
}

.quick-play svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.library-note {
  margin: 12px 6px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.library-footer {
  display: grid;
  margin-top: auto;
  padding: 12px 5px 3px;
  border-top: 1px solid var(--line);
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  color: var(--muted);
  font-size: 8px;
}

.mini-key {
  display: grid;
  min-width: 19px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 5px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.05);
  font-size: 7px;
  font-weight: 800;
}

.workbench {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 58px minmax(0, 1fr) 39px;
  gap: 10px;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 16px;
}

.canvas-title {
  min-width: 0;
  gap: 10px;
}

.canvas-title__icon {
  width: 5px;
  height: 29px;
  border-radius: 999px;
  background: linear-gradient(var(--pink), var(--peach));
  box-shadow: 0 0 15px rgba(234, 104, 163, 0.42);
}

.toolbar-cluster {
  gap: 8px;
}

.select-control {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 7px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  font-weight: 700;
}

.select-control select {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
  font-weight: 760;
}

.select-control option {
  color: var(--ink);
  background: #1b171e;
}

.toggle-button {
  min-height: 34px;
  color: var(--muted-strong);
  font-size: 9px;
}

.toggle-button[aria-pressed="true"] {
  border-color: rgba(234, 104, 163, 0.4);
  color: #fff;
  background: rgba(234, 104, 163, 0.12);
}

.toggle-button__grid {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  background:
    linear-gradient(90deg, transparent 31%, currentColor 31%, currentColor 36%, transparent 36%, transparent 64%, currentColor 64%, currentColor 69%, transparent 69%),
    linear-gradient(transparent 31%, currentColor 31%, currentColor 36%, transparent 36%, transparent 64%, currentColor 64%, currentColor 69%, transparent 69%);
  opacity: 0.75;
}

.scale-badge {
  min-width: 72px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  text-align: right;
}

.stage-shell {
  position: relative;
  display: block;
  min-height: 0;
  overflow: auto;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 40%, rgba(234, 104, 163, 0.055), transparent 50%),
    #08070a;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 104, 163, 0.3) transparent;
}

.stage-shell::before {
  content: "";
  position: sticky;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  mask-image: radial-gradient(circle, #000 0%, transparent 76%);
}

.stage-fit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: #0d0b0f;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(234, 104, 163, 0.035);
  transform: translate(-50%, -50%);
}

.stage-shell[data-zoom="fixed"] .stage-fit {
  top: 20px;
  left: 20px;
  transform: none;
}

.stage-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: top left;
}

.stage-canvas iframe {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b090e;
}

.stage-shell[data-preview-kind="alert"] .stage-canvas iframe {
  background-color: #171219;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%);
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
  background-size: 32px 32px;
}

.safe-area {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: none;
  pointer-events: none;
}

.safe-area.is-visible {
  display: block;
}

.safe-area__action,
.safe-area__title {
  position: absolute;
  border: 2px solid rgba(246, 165, 111, 0.82);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(246, 165, 111, 0.025);
}

.safe-area__action {
  inset: 5%;
}

.safe-area__title {
  inset: 10%;
  border-color: rgba(234, 104, 163, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(234, 104, 163, 0.025);
}

.safe-area__action span,
.safe-area__title span {
  position: absolute;
  top: 7px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  color: #190e15;
  background: var(--peach);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.safe-area__title span {
  top: auto;
  bottom: 7px;
  color: #1d0d16;
  background: var(--pink);
}

.crosshair,
.thirds {
  position: absolute;
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.6);
}

.crosshair--horizontal {
  top: 50%;
  left: calc(50% - 24px);
  width: 48px;
  height: 1px;
}

.crosshair--vertical {
  top: calc(50% - 24px);
  left: 50%;
  width: 1px;
  height: 48px;
}

.thirds--one,
.thirds--two {
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent 5%, rgba(255, 255, 255, 0.26) 5%, rgba(255, 255, 255, 0.26) 95%, transparent 95%);
}

.thirds--one { left: 33.333%; }
.thirds--two { left: 66.666%; }

.thirds--three,
.thirds--four {
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.26) 5%, rgba(255, 255, 255, 0.26) 95%, transparent 95%);
}

.thirds--three { top: 33.333%; }
.thirds--four { top: 66.666%; }

.frame-loader {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted-strong);
  background: #0c0a0e;
  font-size: 22px;
  font-weight: 680;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.frame-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-orbit {
  width: 25px;
  height: 25px;
  border: 3px solid rgba(234, 104, 163, 0.18);
  border-top-color: var(--pink);
  border-radius: 999px;
  animation: spin 0.85s linear infinite;
}

.pathbar {
  min-width: 0;
  gap: 10px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--muted);
  font-size: 9px;
}

.pathbar__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-weight: 700;
}

.pathbar code {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: #b9afb9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pathbar__resolution {
  flex: 0 0 auto;
  color: #766d79;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.inspector {
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 104, 163, 0.3) transparent;
}

.inspector__header,
.readiness-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-chip {
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(123, 224, 189, 0.16);
  border-radius: 999px;
  color: #a9ddcc;
  background: rgba(123, 224, 189, 0.055);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-chip i {
  width: 5px;
  height: 5px;
}

.inspector-section {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.detail-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-card--wide {
  grid-column: 1 / -1;
}

.detail-card span,
.detail-card strong {
  display: block;
}

.detail-card span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
}

.detail-card strong {
  overflow: hidden;
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-card {
  display: flex;
  gap: 9px;
  margin-top: 13px;
  padding: 11px;
  border: 1px solid rgba(234, 104, 163, 0.13);
  border-radius: 11px;
  background: rgba(234, 104, 163, 0.045);
}

.tip-card__icon {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(234, 104, 163, 0.3);
  border-radius: 999px;
  color: var(--pink-soft);
  font-size: 9px;
  font-weight: 800;
}

.tip-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.form-row {
  margin-bottom: 11px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-strong);
  font-size: 8px;
  font-weight: 750;
}

.form-row input,
.form-row textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.2);
  font-size: 10px;
  transition: border-color 150ms ease, background 150ms ease;
}

.form-row input {
  height: 35px;
  padding: 0 10px;
}

.form-row textarea {
  min-height: 63px;
  padding: 9px 10px;
  resize: vertical;
}

.form-row input:hover,
.form-row textarea:hover,
.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(234, 104, 163, 0.34);
  background: rgba(234, 104, 163, 0.025);
}

.payload-preview {
  margin-top: 3px;
  padding: 9px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.14);
}

.payload-preview span,
.payload-preview code {
  display: block;
}

.payload-preview span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payload-preview code {
  overflow: hidden;
  color: var(--pink-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.readiness-card {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.readiness-card__heading .eyebrow {
  margin-bottom: 6px;
}

.readiness-card__heading strong {
  display: block;
  font-size: 10px;
}

#readinessFraction {
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.progress-track {
  height: 4px;
  margin: 11px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--peach));
  box-shadow: 0 0 12px rgba(234, 104, 163, 0.38);
  transition: width 260ms ease;
}

.readiness-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 22px;
  max-width: 360px;
  padding: 11px 15px;
  border: 1px solid rgba(234, 104, 163, 0.3);
  border-radius: 11px;
  color: #fff;
  background: rgba(30, 24, 33, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 24px rgba(234, 104, 163, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(9px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 10px;
  font-weight: 650;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (max-height: 790px) {
  .app-shell { padding: 12px; gap: 9px; }
  .topbar { min-height: 53px; }
  .brand-mark { width: 39px; height: 39px; }
  .studio { grid-template-columns: 205px minmax(500px, 1fr) 238px; gap: 9px; }
  .workbench { grid-template-rows: 52px minmax(0, 1fr) 36px; gap: 7px; }
  .canvas-toolbar { padding-block: 6px; }
  .target-button { padding-top: 7px; padding-bottom: 7px; }
  .inspector { padding: 13px; }
  .inspector-section { margin-top: 13px; padding-top: 13px; }
  .tip-card { margin-top: 9px; }
  .form-row { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
