:root {
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti", sans-serif;
  --ink: #071a36;
  --muted: #627086;
  --line: #d8e1ec;
  --app-bg: #eef3f8;
  --accent: #10b981;
  --accent-2: #f59e0b;
  --deep: #04132e;
  --soft: #eaf7ff;
  --card-bg: rgba(248, 252, 255, 0.95);
  --card-text: #06203f;
  --card-muted: #385474;
  --card-border: rgba(255, 255, 255, 0.72);
  --hero-text: #fbfdff;
  --hero-muted: rgba(248, 252, 255, 0.9);
  --pill-text: #ffffff;
  --contact-text: #ffffff;
  --contact-muted: rgba(234, 247, 255, 0.9);
  --qr-text: #18325a;
  --placeholder-bg: rgba(16, 185, 129, 0.16);
  --tag-text: rgba(191, 233, 245, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  font-family: var(--font-zh);
  background: var(--app-bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 400px;
  height: 100vh;
  overflow: hidden;
}

.layer-panel,
.settings-panel {
  height: 100vh;
  overflow: auto;
  background: #f8fbff;
  padding: 20px;
}

.layer-panel {
  border-right: 1px solid var(--line);
}

.settings-panel {
  border-left: 1px solid var(--line);
}

.workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 28px;
}

.panel-title h1,
.topbar h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel-title p,
.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar-actions,
.button-grid {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-wrap {
  display: grid;
  place-items: start center;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(45deg, rgba(15, 23, 42, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 23, 42, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.05) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.poster-canvas {
  position: relative;
  width: min(48vw, 540px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  color: white;
  isolation: isolate;
  flex: none;
  container-type: inline-size;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.poster-canvas.free-height {
  aspect-ratio: auto;
  min-height: calc(min(48vw, 540px) * 16 / 9);
}

.poster-canvas.exporting {
  width: 1080px;
  min-height: 1920px;
}

.poster-canvas.exporting:not(.free-height) {
  height: 1920px;
}

.poster-bg,
.poster-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.poster-bg {
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.poster-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 12% 84%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 28%),
    radial-gradient(circle at 90% 35%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 30%),
    linear-gradient(180deg, rgba(2, 12, 31, 0.58) 0%, rgba(7, 27, 56, 0.34) 35%, rgba(6, 19, 43, 0.08) 65%, rgba(4, 13, 32, 0.54) 100%),
    linear-gradient(90deg, rgba(3, 12, 30, 0.3), transparent 54%);
}

.poster-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 8cqw 7.4cqw;
}

.poster-section {
  display: grid;
  gap: 1.75cqw;
}

.poster-section + .poster-section {
  margin-top: 7.1cqw;
}

.poster-section:last-child {
  margin-top: auto;
}

.poster-canvas.free-height .poster-section:last-child {
  margin-top: 7.1cqw;
}

.poster-block {
  position: relative;
}

.selected-block {
  outline: 2px solid rgba(96, 165, 250, 0.95);
  outline-offset: 3px;
}

.focus-pulse {
  animation: focusPulse 720ms ease;
  transform-origin: center;
}

@keyframes focusPulse {
  0% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

.logo-block img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--accent);
  padding: 1.1cqw 2.3cqw;
  color: var(--pill-text);
  font-size: clamp(15px, 3.15cqw, 34px);
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.topic-pill i {
  flex: none;
  color: #ffffff;
  font-size: 1em;
  line-height: 1;
}

.topic-pill span {
  min-width: 0;
  color: #ffffff;
}

.text-h1 {
  width: 88%;
  margin: 0;
  font-size: clamp(34px, 7.04cqw, 76px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--hero-text);
  text-shadow: 3px 5px 0 rgba(0, 0, 0, 0.32);
  white-space: pre-line;
}

.text-h2 {
  margin: 0;
  font-size: clamp(20px, 3.75cqw, 40px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--hero-text);
  white-space: pre-line;
}

.text-h3 {
  margin: 0;
  font-size: clamp(17px, 3cqw, 32px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--hero-text);
  white-space: pre-line;
}

.text-body {
  width: 90%;
  margin: 0;
  font-size: clamp(15px, 2.75cqw, 30px);
  font-weight: 500;
  line-height: 1.48;
  color: var(--hero-muted);
  white-space: pre-line;
}

.highlight-card {
  display: grid;
  grid-template-columns: 7.22cqw 1fr;
  gap: 2.9cqw;
  align-items: start;
  min-height: 15.55cqw;
  padding: 3.3% 3.7% 3.1% 3.1%;
  border: 1px solid var(--card-border);
  border-radius: 2.6cqw;
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: 0 22px 48px rgba(3, 19, 45, 0.16);
}

.highlight-icon {
  display: grid;
  place-items: center;
  width: 7.22cqw;
  height: 7.22cqw;
  border-radius: 2.04cqw;
  background: var(--icon-color);
  color: #052247;
}

.highlight-icon i {
  font-size: 3.8cqw;
  line-height: 1;
}

.highlight-card small {
  display: block;
  margin-bottom: 0.93cqw;
  font-size: clamp(12px, 2.22cqw, 24px);
  font-weight: 850;
  color: color-mix(in srgb, var(--accent) 70%, #7c2d12);
}

.highlight-card h3,
.image-block-copy h3 {
  margin: 0;
  font-size: clamp(17px, 2.96cqw, 32px);
  font-weight: 850;
  line-height: 1.18;
  color: var(--card-text);
}

.highlight-card p,
.image-block-copy p {
  margin: 1.2cqw 0 0;
  font-size: clamp(14px, 2.31cqw, 25px);
  line-height: 1.43;
  color: var(--card-muted);
}

.image-block {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 2.6cqw;
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: 0 22px 48px rgba(3, 19, 45, 0.16);
}

.image-block img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--placeholder-bg);
}

.image-placeholder {
  display: grid;
  min-height: 27cqw;
  place-items: center;
  background: var(--placeholder-bg);
  color: var(--card-muted);
  font-size: clamp(14px, 2.31cqw, 25px);
  font-weight: 750;
}

.image-block-copy {
  padding: 2.7cqw 3.3cqw 3cqw;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3.15cqw;
  min-height: 30.18cqw;
  padding: 3.52cqw;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 3.15cqw;
  background: color-mix(in srgb, var(--deep) 86%, transparent);
  box-shadow: 0 28px 70px rgba(1, 14, 39, 0.34);
  backdrop-filter: blur(12px);
}

.contact-card > div:first-child {
  min-width: 0;
}

.contact-card h2 {
  display: flex;
  align-items: center;
  gap: 1.3cqw;
  margin: 0 0 1.67cqw;
  font-size: clamp(18px, 3.05cqw, 33px);
  font-weight: 850;
  line-height: 1.22;
  color: var(--contact-text);
}

.contact-card h2 i,
.contact-card h2 strong {
  color: var(--accent-2);
}

.contact-card p {
  margin: 0;
  font-size: clamp(15px, 2.5cqw, 27px);
  line-height: 1.55;
  color: var(--contact-muted);
  white-space: pre-line;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.48cqw;
  margin-top: 2.59cqw;
  font-size: clamp(12px, 2.04cqw, 22px);
  color: var(--tag-text);
}

.tag-row span::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
}

.qr-card {
  display: grid;
  width: 22.8cqw;
  justify-self: end;
  align-self: center;
  padding: 2.04cqw;
  border-radius: 2.41cqw;
  background: rgba(255, 255, 255, 0.95);
  color: var(--qr-text);
  place-items: center;
  text-align: center;
  box-shadow: 0 18px 42px rgba(2, 14, 34, 0.22);
}

.qr-card img {
  width: 18.7cqw;
  height: 18.7cqw;
  object-fit: contain;
}

.qr-card span {
  display: block;
  margin-top: 1.02cqw;
  font-size: clamp(12px, 2.04cqw, 22px);
  font-weight: 650;
  color: var(--qr-text);
}

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

.panel-section:first-child {
  padding-top: 0;
}

.panel-section h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 850;
  color: #10213f;
}

.field-label {
  display: block;
  margin: 12px 0 7px;
  font-size: 12px;
  font-weight: 750;
  color: #59677c;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

select {
  appearance: none;
  padding-right: 38px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.primary-button,
.ghost-button,
.small-button,
.icon-button,
.drag-handle,
.block-drag-handle {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd6e3;
  padding: 0 14px;
  background: #fff;
  color: #14233c;
  font-size: 14px;
  font-weight: 750;
}

.primary-button {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.icon-button,
.drag-handle,
.block-drag-handle {
  display: grid;
  width: 34px;
  min-height: 34px;
  place-items: center;
  padding: 0;
}

.drag-handle,
.block-drag-handle {
  cursor: grab;
}

.full {
  width: 100%;
  margin-top: 10px;
}

.export-button {
  margin-top: 10px;
}

.export-link {
  display: grid;
  min-height: 38px;
  place-items: center;
  margin-top: 8px;
  text-decoration: none;
}

.export-link[hidden] {
  display: none;
}

.export-status {
  margin: 8px 0 0;
  color: #627086;
  font-size: 12px;
  line-height: 1.45;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 14px;
  color: #233450;
  font-size: 14px;
  font-weight: 700;
}

.toggle-row input {
  width: 16px;
  height: 16px;
}

.section-list {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.global-settings {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.global-section {
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px 12px;
}

.global-section summary {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: #10213f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.global-section summary::-webkit-details-marker {
  display: none;
}

.global-section summary::after {
  content: "⌄";
  color: #728198;
  font-size: 14px;
  transition: transform 140ms ease;
}

.global-section[open] summary {
  margin-bottom: 10px;
}

.global-section[open] summary::after {
  transform: rotate(180deg);
}

.global-section .button-grid + .button-grid {
  margin-top: 8px;
}

.background-picker-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd6e3;
  border-radius: 8px;
  background: #fff;
  color: #20324d;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
  padding: 0 11px;
}

.background-picker-button:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.background-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
  padding: 16px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.background-dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
}

.background-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.background-dialog-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.background-thumb,
.background-upload-tile {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #fff;
  color: #20324d;
  font-size: 12px;
  font-weight: 750;
  padding: 8px;
}

.background-thumb {
  text-align: left;
}

.background-thumb img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  object-fit: cover;
  background: #e5edf6;
}

.background-thumb.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.background-upload-tile {
  margin-top: 10px;
  min-height: 84px;
  place-items: center;
  cursor: pointer;
}

.background-upload-tile input {
  display: none;
}

.layer-section {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 2px 0 4px;
  transform: translateY(0) scale(1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  will-change: transform;
}

.layer-section:hover {
  border-color: transparent;
  box-shadow: none;
}

.layer-section.active-section {
  background: #f2f6fb;
}

.layer-section-head {
  display: grid;
  grid-template-columns: 24px 1fr 28px;
  gap: 4px;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 0 4px;
  cursor: default;
}

.layer-section-head:hover {
  background: #eef4fb;
}

.layer-section-head .drag-handle {
  width: 24px;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: #8b99aa;
}

.layer-section-head .drag-handle:hover {
  color: #2563eb;
}

.layer-section-title {
  display: flex;
  min-height: 26px;
  align-items: center;
  color: #10213f;
  font-size: 12px;
  font-weight: 800;
}

.layer-head-actions {
  display: grid;
  grid-template-columns: 28px;
  gap: 6px;
  align-items: center;
}

.layer-blocks {
  display: grid;
  gap: 1px;
  margin: 2px 0 0 24px;
}

.layer-block-row {
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  gap: 4px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 0 4px;
  transform: translateY(0) scale(1);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
  will-change: transform;
}

.layer-block-row:hover {
  border-color: transparent;
  background: #eef4fb;
  box-shadow: none;
}

.block-drag-handle {
  width: 22px;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: #8b99aa;
}

.block-drag-handle:hover {
  background: transparent;
  color: #2563eb;
}

.layer-block-row.active {
  border-color: transparent;
  background: #dbeafe;
  box-shadow: none;
}

.layer-section.is-pressing,
.layer-block-row.is-pressing {
  transform: translateY(1px) scale(0.988);
}

.layer-section.is-dragging,
.layer-block-row.is-dragging {
  z-index: 12;
  border-color: #2563eb;
  opacity: 0.86;
  transform: translateY(-1px) scale(1.006);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.layer-section.is-drag-over,
.layer-block-row.is-drag-over {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: inset 3px 0 0 #2563eb;
}

.section-list.block-dragging .layer-block-row {
  cursor: grabbing;
}

.layer-block {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px;
  align-items: center;
  min-height: 26px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #20324d;
  text-align: left;
  font-size: 12px;
  padding: 3px 2px;
}

.layer-block:hover {
  background: rgba(37, 99, 235, 0.06);
}

.layer-block span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-block-delete {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b99aa;
}

.layer-block-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.layer-toolbar {
  position: sticky;
  top: 0;
  z-index: 16;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: -2px -2px 8px;
  border-bottom: 1px solid #e3ebf4;
  background: #fff;
  padding: 0 0 8px;
}

.layer-toolbar-actions {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
}

.layer-type-picker {
  position: relative;
  min-width: 0;
}

.layer-type-picker[open] {
  z-index: 30;
}

.layer-current-type {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 30px;
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    #fff;
  padding: 5px 34px 5px 9px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  list-style: none;
  outline: none;
  cursor: pointer;
}

.layer-current-type::-webkit-details-marker {
  display: none;
}

.layer-current-type:focus-visible {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.layer-current-type i,
.layer-type-option i {
  color: #243a5e;
  font-size: 15px;
  line-height: 1;
}

.layer-current-type span,
.layer-type-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-type-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  max-height: min(420px, calc(100vh - 130px));
  overflow: auto;
  border: 1px solid #c8d4e3;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.layer-type-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 6px 8px;
  color: #10213f;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.layer-type-option:hover,
.layer-type-option:focus-visible {
  background: #eef4fb;
  outline: none;
}

.layer-type-option.active {
  background: #dbeafe;
  color: #0f2c65;
}

.layer-type-option.active i {
  color: #2563eb;
}

.layer-tool-button {
  width: 30px;
  min-height: 30px;
  color: #233450;
}

.block-editor {
  display: grid;
  gap: 2px;
}

.block-editor-empty {
  border: 1px dashed #c9d5e3;
  border-radius: 8px;
  padding: 18px;
  color: #6a788b;
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  align-items: end;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .layer-panel,
  .settings-panel {
    height: auto;
    border: 0;
  }

  .workspace {
    order: -1;
  }

  .poster-canvas {
    width: min(86vw, 540px);
  }
}

@media (max-width: 640px) {
  .workspace,
  .layer-panel,
  .settings-panel {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-wrap {
    padding: 12px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions button {
    flex: 1;
  }
}
