:root {
  color-scheme: light;
  --bg: #f4f7fa;
  --bg-soft: #eef3f7;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #eef3f7;
  --line: #d8e0e9;
  --line-soft: #e7edf3;
  --text: #172230;
  --muted: #5f7083;
  --muted-2: #8492a2;
  --lime: #8ed11f;
  --lime-ink: #162006;
  --cyan: #158da2;
  --danger: #d94a61;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgb(39 58 78 / 14%);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

body {
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

code,
kbd,
.mono {
  font-family: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgb(20 34 52 / 4%);
  color: #314155;
  font-size: 0.92em;
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-color: #c4cfda;
  border-radius: 5px;
  background: var(--panel);
  color: #4f5f72;
  font-size: 10px;
}

.app {
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 27px;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 72% -20%, rgb(111 215 232 / 13%), transparent 42%),
    linear-gradient(180deg, #fbfdff, #f4f7fa 60%);
}

html.desktop .app {
  grid-template-rows: minmax(0, 1fr) 27px;
}

html.desktop .topbar {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 248px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(114 172 16 / 24%);
  border-radius: 11px;
  background: linear-gradient(145deg, rgb(142 209 31 / 18%), rgb(142 209 31 / 5%));
  color: #6da80d;
  box-shadow: inset 0 1px rgb(255 255 255 / 80%);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-title {
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.brand-subtitle {
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.runtime-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chip {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  color: #526276;
  font-size: 10px;
  white-space: nowrap;
}

.chip-hot {
  border-color: rgb(114 172 16 / 24%);
  background: rgb(142 209 31 / 11%);
  color: #568609;
}

.chip-muted {
  color: var(--muted-2);
}

.topbar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-ghost {
  border-color: var(--line);
  background: var(--panel);
  color: #3f4f62;
}

.button-ghost:hover {
  border-color: #bcc9d6;
  background: var(--panel-3);
}

.button-primary {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 0 0 1px rgb(114 172 16 / 25%), 0 8px 24px rgb(114 172 16 / 12%);
}

.button-primary:hover {
  background: #a1df3f;
}

.workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 294px;
  min-height: 0;
}

.sidebar,
.inspector {
  min-width: 0;
  background: rgb(255 255 255 / 82%);
}

.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
}

.panel-heading,
.inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-heading {
  padding: 18px 15px 12px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 17px;
  font-weight: 690;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.count {
  display: grid;
  min-width: 23px;
  height: 21px;
  padding: 0 6px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10px;
}

.search-wrap {
  padding: 0 12px 12px;
}

.search {
  width: 100%;
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-size: 11px;
}

.search::placeholder {
  color: var(--muted-2);
}

.search:focus {
  border-color: rgb(114 172 16 / 42%);
  box-shadow: 0 0 0 3px rgb(142 209 31 / 10%);
}

.project-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 0 10px 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5df transparent;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--line);
  background: rgb(25 48 74 / 3.5%);
}

.project-card.active {
  border-color: rgb(114 172 16 / 25%);
  background: linear-gradient(135deg, rgb(142 209 31 / 12%), rgb(142 209 31 / 3%));
}

.project-card.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--lime);
  content: "";
}

.project-thumb {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgb(21 141 162 / 9%), transparent),
    #fff;
  color: var(--cyan);
  font-size: 17px;
}

.project-card.active .project-thumb {
  border-color: rgb(114 172 16 / 25%);
  color: #6da80d;
}

.project-name {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-meta {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--line-soft);
}

.drop-mini {
  padding: 11px;
  border: 1px dashed #c8d3df;
  border-radius: 9px;
  background: #fbfdff;
}

.drop-mini strong,
.drop-mini span {
  display: block;
}

.drop-mini strong {
  font-size: 10.5px;
  font-weight: 600;
}

.drop-mini span {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.45;
}

.text-button {
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.text-button:hover {
  color: var(--text);
}

.stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgb(99 143 178 / 13%), transparent 55%),
    #f8fafc;
  isolation: isolate;
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgb(31 54 79 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(31 54 79 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
  pointer-events: none;
}

.stage.grid-off::before {
  display: none;
}

.stage.transparent {
  background:
    linear-gradient(45deg, #e3e9f0 25%, transparent 25%),
    linear-gradient(-45deg, #e3e9f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e3e9f0 75%),
    linear-gradient(-45deg, transparent 75%, #e3e9f0 75%),
    #fbfdff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

#spine-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
}

#spine-canvas:active {
  cursor: grabbing;
}

.stage-empty {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  text-align: center;
  pointer-events: none;
}

.stage-empty.hidden {
  display: none;
}

.stage-empty > * {
  pointer-events: auto;
}

.empty-orbit {
  position: relative;
  width: 98px;
  height: 98px;
  margin-bottom: 22px;
}

.empty-orbit::before,
.empty-orbit::after,
.empty-orbit span {
  position: absolute;
  border: 1px solid rgb(114 172 16 / 24%);
  border-radius: 50%;
  content: "";
}

.empty-orbit::before {
  inset: 12px;
  animation: orbit-pulse 2.4s ease-in-out infinite;
}

.empty-orbit::after {
  inset: 28px;
  border-color: rgb(21 141 162 / 25%);
}

.empty-orbit span:nth-child(1) {
  top: 9px;
  left: 43px;
  width: 10px;
  height: 10px;
  border: 0;
  background: var(--lime);
  box-shadow: 0 0 18px rgb(142 209 31 / 45%);
}

.empty-orbit span:nth-child(2) {
  right: 7px;
  bottom: 24px;
  width: 7px;
  height: 7px;
  border: 0;
  background: var(--cyan);
}

.empty-orbit span:nth-child(3) {
  bottom: 19px;
  left: 13px;
  width: 5px;
  height: 5px;
  border: 0;
  background: #9aa8b7;
}

@keyframes orbit-pulse {
  0%,
  100% { transform: scale(0.94); opacity: 0.55; }
  50% { transform: scale(1); opacity: 1; }
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stage-empty p {
  max-width: 430px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.empty-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.stage-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow);
  color: #334459;
  font-size: 11px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #d5dee8;
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.stage-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 55%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 86%);
  color: #334459;
  font-size: 10px;
  backdrop-filter: blur(12px);
}

.live-dot,
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgb(142 209 31 / 55%);
}

.stage-version {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--muted-2);
}

.canvas-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(12px);
}

.icon-button,
.zoom-readout {
  height: 25px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #58697c;
  cursor: pointer;
}

.icon-button {
  width: 25px;
  font-size: 15px;
}

.zoom-readout {
  min-width: 43px;
  padding: 0 4px;
  font-size: 9.5px;
}

.icon-button:hover,
.zoom-readout:hover {
  background: rgb(25 48 74 / 6%);
  color: var(--text);
}

.tool-separator {
  width: 1px;
  height: 13px;
  margin: 0 2px;
  background: var(--line);
}

.transport {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 55px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 12px 40px rgb(39 58 78 / 12%);
  backdrop-filter: blur(18px);
}

.play-button {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.play-button:hover {
  background: #a1df3f;
}

.transport-main {
  flex: 1;
  min-width: 100px;
}

.transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.animation-name {
  font-size: 10.5px;
  font-weight: 620;
}

.time-readout {
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.timeline {
  width: 100%;
  height: 3px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, var(--lime) var(--progress, 0%), #dbe3eb var(--progress, 0%));
  cursor: pointer;
}

.timeline::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--lime), 0 2px 7px rgb(39 58 78 / 20%);
}

.speed-control {
  display: grid;
  grid-template-columns: auto 56px 28px;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 9px;
}

.speed-control input {
  width: 56px;
  accent-color: var(--lime);
}

.speed-control output {
  color: #425267;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.toggle-label input {
  accent-color: var(--lime);
}

.drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgb(244 247 250 / 70%);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.drop-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  padding: 30px 46px;
  border: 1px dashed rgb(114 172 16 / 50%);
  border-radius: 17px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 0 60px rgb(114 172 16 / 12%);
  text-align: center;
}

.drop-card strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.drop-card span {
  color: var(--muted);
  font-size: 10.5px;
}

.drop-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  background: rgb(142 209 31 / 13%);
  color: #6da80d;
  font-size: 20px;
}

.inspector {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-soft);
}

.inspector-head {
  align-items: center;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.fps-pill {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5d6b7c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
}

.inspector-scroll {
  flex: 1;
  min-height: 0;
  padding: 4px 14px 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5df transparent;
}

.section {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section:last-child {
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.section-heading span {
  color: var(--muted-2);
  font-size: 9px;
}

.animation-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.animation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #425267;
  cursor: pointer;
  text-align: left;
  font-size: 10.5px;
}

.animation-item:hover {
  background: rgb(25 48 74 / 4%);
}

.animation-item.active {
  border-color: rgb(114 172 16 / 22%);
  background: rgb(142 209 31 / 10%);
  color: #456c08;
}

.animation-play {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
}

.animation-item.active .animation-play {
  border-color: rgb(114 172 16 / 30%);
  background: rgb(142 209 31 / 13%);
  color: #669f09;
}

.animation-duration {
  margin-left: auto;
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
}

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

.skin-card {
  position: relative;
  min-height: 51px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgb(21 141 162 / 9%), transparent 55%),
    #fff;
  color: #405166;
  cursor: pointer;
  text-align: left;
  font-size: 10px;
}

.skin-card:hover {
  border-color: #b8c6d4;
}

.skin-card.active {
  border-color: rgb(114 172 16 / 40%);
  background:
    radial-gradient(circle at 100% 0%, rgb(142 209 31 / 17%), transparent 60%),
    #fbfff5;
  color: #466d08;
}

.skin-swatch {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 5px;
  border: 1px solid rgb(37 62 88 / 14%);
  border-radius: 5px;
  background: conic-gradient(from 20deg, #c8f35a, #6fd7e8, #8f9dff, #f3a2c5, #c8f35a);
}

.skin-card.active .skin-swatch {
  border-color: rgb(114 172 16 / 45%);
}

.display-options {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  color: #4b5c70;
  cursor: pointer;
  font-size: 10px;
}

.switch-row input {
  display: none;
}

.switch-row i {
  position: relative;
  width: 28px;
  height: 16px;
  border: 1px solid #c9d3de;
  border-radius: 999px;
  background: #e8edf2;
  transition: background 140ms ease, border-color 140ms ease;
}

.switch-row i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #98a5b4;
  content: "";
  transition: transform 140ms ease, background 140ms ease;
}

.switch-row input:checked + i {
  border-color: rgb(114 172 16 / 35%);
  background: rgb(142 209 31 / 24%);
}

.switch-row input:checked + i::after {
  background: #6da80d;
  transform: translateX(12px);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.meta-grid div {
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fafcfe;
}

.meta-grid dt {
  color: var(--muted-2);
  font-size: 8.5px;
}

.meta-grid dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: #405166;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-path {
  margin-top: 8px;
  padding: 7px 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 13px;
  border-top: 1px solid var(--line-soft);
  background: #fbfdff;
  color: var(--muted-2);
  font-size: 9px;
}

.statusbar > span {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
}

.status-dot.busy {
  background: #d99a15;
  box-shadow: 0 0 8px rgb(217 154 21 / 45%);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 8px rgb(217 74 97 / 45%);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 40px;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.toast {
  max-width: 390px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 97%);
  box-shadow: var(--shadow);
  color: #3b4b5f;
  font-size: 10.5px;
  line-height: 1.5;
  animation: toast-in 160ms ease both;
  backdrop-filter: blur(12px);
}

.toast.error {
  border-color: rgb(217 74 97 / 35%);
  background: #fff8f9;
  color: #a82f44;
}

.toast.success {
  border-color: rgb(114 172 16 / 28%);
  background: #fbfff6;
  color: #496f08;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(4px); }
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr) 268px;
  }

  .runtime-chips .chip:nth-child(4) {
    display: none;
  }

  .topbar {
    gap: 12px;
  }
}

@media (max-width: 880px) {
  html,
  body {
    overflow: auto;
  }

  .app {
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: 100%;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .runtime-chips {
    order: 3;
    width: 100%;
    overflow: auto;
  }

  .workspace {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .project-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .project-card {
    flex: 0 0 220px;
  }

  .sidebar-footer {
    display: none;
  }

  .stage {
    min-height: 560px;
  }

  .inspector {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .statusbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 30px;
    padding: 6px 12px;
  }

  .status-tip {
    display: none !important;
  }
}
