:root {
  color-scheme: light;
  --paper: #fffaf3;
  --ink: #2c2824;
  --muted: #746b62;
  --line: #d9ccc0;
  --button: #315f6a;
  --button-ink: #ffffff;
  --surface: #f7efe4;
  --surface-2: #fffdf9;
  --accent: #b45545;
  --bloom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23d69386'%3E%3Cellipse cx='32' cy='12' rx='8' ry='13'/%3E%3Cellipse cx='32' cy='52' rx='8' ry='13'/%3E%3Cellipse cx='12' cy='32' rx='13' ry='8'/%3E%3Cellipse cx='52' cy='32' rx='13' ry='8'/%3E%3Cellipse cx='18' cy='18' rx='9' ry='13' transform='rotate(-45 18 18)'/%3E%3Cellipse cx='46' cy='18' rx='9' ry='13' transform='rotate(45 46 18)'/%3E%3Cellipse cx='46' cy='46' rx='9' ry='13' transform='rotate(135 46 46)'/%3E%3Cellipse cx='18' cy='46' rx='9' ry='13' transform='rotate(-135 18 46)'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='10' fill='%23c46a57'/%3E%3Ccircle cx='32' cy='32' r='4.2' fill='%23fff7ef'/%3E%3C/svg%3E");
  --logo-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(28 24)' opacity='.18'%3E%3Ccircle cx='32' cy='32' r='30' fill='%23f6e4dd'/%3E%3Cpath d='M32 6c7 9 10 16 10 26s-3 17-10 26c-7-9-10-16-10-26S25 15 32 6Z' fill='%23d69386' opacity='.42'/%3E%3Cpath d='M6 32c9-7 16-10 26-10s17 3 26 10c-9 7-16 10-26 10s-17-3-26-10Z' fill='%23d69386' opacity='.42'/%3E%3Ccircle cx='32' cy='32' r='11' fill='%23c46a57' opacity='.52'/%3E%3Ccircle cx='32' cy='32' r='5' fill='%23fff7ef' opacity='.92'/%3E%3C/g%3E%3Cg transform='translate(142 116)' opacity='.14'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23f4dfd7'/%3E%3Cpath d='M24 4c5 7 8 13 8 20s-3 13-8 20c-5-7-8-13-8-20S19 11 24 4Z' fill='%23d69386' opacity='.45'/%3E%3Cpath d='M4 24c7-5 13-8 20-8s13 3 20 8c-7 5-13 8-20 8s-13-3-20-8Z' fill='%23d69386' opacity='.45'/%3E%3Ccircle cx='24' cy='24' r='8.5' fill='%23c46a57' opacity='.5'/%3E%3Ccircle cx='24' cy='24' r='3.6' fill='%23fff7ef' opacity='.9'/%3E%3C/g%3E%3Cg transform='translate(74 148)' opacity='.1'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23f1ddd3'/%3E%3Cpath d='M20 2c4 6 6 11 6 18s-2 12-6 18c-4-6-6-11-6-18S16 8 20 2Z' fill='%23d69386' opacity='.42'/%3E%3Cpath d='M2 20c6-4 11-6 18-6s12 2 18 6c-6 4-11 6-18 6S8 24 2 20Z' fill='%23d69386' opacity='.42'/%3E%3Ccircle cx='20' cy='20' r='6.5' fill='%23c46a57' opacity='.42'/%3E%3Ccircle cx='20' cy='20' r='2.6' fill='%23fff7ef' opacity='.88'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(214, 147, 134, 0.11), transparent 18%),
    radial-gradient(circle at 92% 8%, rgba(49, 95, 106, 0.08), transparent 16%),
    linear-gradient(180deg, #f8f2ea 0%, var(--surface) 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--logo-pattern);
  background-repeat: repeat;
  background-size: 240px 240px;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 204, 192, 0.92);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94) 0%, rgba(246, 239, 230, 0.98) 100%);
  box-shadow: 0 12px 26px rgba(82, 60, 44, 0.08);
  overflow: hidden;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  background-image: var(--bloom);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
}

.topbar::before {
  top: -12px;
  right: 180px;
  width: 68px;
  height: 68px;
  transform: rotate(10deg);
}

.topbar::after {
  bottom: -18px;
  left: 220px;
  width: 54px;
  height: 54px;
  transform: rotate(-14deg);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdfb 0%, #f4e8df 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 6px 16px rgba(82, 60, 44, 0.1);
  overflow: hidden;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.view-switch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(217, 204, 192, 0.95);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.view-switch button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.view-switch button.selected {
  background: linear-gradient(180deg, #ffffff 0%, #f2e6d8 100%);
  color: #254f59;
  box-shadow: 0 4px 10px rgba(82, 60, 44, 0.08);
}

.brand-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px 8px 0;
  border-left: 1px solid rgba(217, 204, 192, 0.8);
}

.brand-name {
  display: inline-flex;
  align-items: center;
  color: #254f59;
  font-size: clamp(1.08rem, 2.3vw, 1.72rem);
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-bloom {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background-image: var(--bloom);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.64;
}

h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.panel h2,
.photo-panel h2,
.gallery-panel h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel h2::before,
.upload-title::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background-image: var(--bloom);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.58;
}

.upload-title::before {
  margin-right: 2px;
  vertical-align: -2px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
}

.gallery-page {
  display: grid;
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 8px;
}

.gallery-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 204, 192, 0.92);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94) 0%, rgba(246, 239, 230, 0.98) 100%);
  box-shadow: 0 12px 26px rgba(82, 60, 44, 0.08);
  position: relative;
  overflow: hidden;
}

.gallery-page-header::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px auto;
  width: 78px;
  height: 78px;
  background-image: var(--bloom);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
}

.gallery-page-copy {
  min-width: 0;
}

.page-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-page-copy h2 {
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
}

.gallery-page-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.gallery-page-tools {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-filter,
.gallery-modal-folder {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.gallery-filter select,
.gallery-modal-folder select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 4px 8px;
  font: inherit;
  font-weight: 700;
}

.controls {
  display: grid;
  align-content: start;
  gap: 10px;
}

.upload-tile,
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: 0 10px 24px rgba(82, 60, 44, 0.08);
  position: relative;
  overflow: hidden;
}

.upload-tile::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto -10px -10px auto;
  width: 46px;
  height: 46px;
  background-image: var(--bloom);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
}

.upload-tile {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 20px;
  color: var(--button);
  border-color: rgba(49, 95, 106, 0.55);
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1e8 100%);
}

.upload-tile.drag-ready {
  border-color: var(--button);
  background: #eaf4f2;
}

.upload-title {
  font-size: 1.18rem;
  font-weight: 800;
}

.upload-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-tile input {
  width: 100%;
  margin-top: 8px;
}

.panel {
  padding: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}

.segmented:first-of-type {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented button,
.ghost-action,
.primary-action,
.shape-option {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
}

.segmented button.selected,
.shape-option.selected {
  border-color: var(--button);
  background: #dcecef;
  color: #173c45;
}

.primary-action {
  min-width: 124px;
  border-color: var(--button);
  background: var(--button);
  color: var(--button-ink);
  box-shadow: 0 8px 16px rgba(49, 95, 106, 0.18);
}

.ghost-action {
  width: 100%;
  margin-top: 10px;
  background: #fff9f1;
}

.ghost-action.compact {
  width: auto;
  min-width: 124px;
  margin-top: 0;
  padding: 0 14px;
}

.ghost-action:disabled,
.primary-action:disabled,
.segmented button:disabled,
.shape-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

.shape-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 7px 9px;
}

.shape-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  background: currentColor;
  opacity: 0.84;
}

.shape-icon.circle {
  border-radius: 50%;
}

.shape-icon.square {
  border-radius: 2px;
}

.shape-icon.rounded {
  border-radius: 9px;
}

.shape-icon.hexagon {
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

.shape-icon.diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dimension-grid.single {
  grid-template-columns: 1fr;
  margin-top: 8px;
}

.dimension-grid label,
.slider-row,
.toggle-row {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.toggle-row {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin-top: 8px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--button);
}

.dimension-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  color: var(--ink);
}

.number-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  align-items: stretch;
}

.number-stepper.compact {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.stepper-buttons {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}

.stepper-button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #fffdf8 0%, #f4eadd 100%);
  color: var(--button);
  font-weight: 900;
  line-height: 1;
  padding: 0;
  min-height: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  touch-action: manipulation;
}

.stepper-button:hover {
  background: linear-gradient(180deg, #fff 0%, #efe1d1 100%);
}

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

.slider-row {
  margin-top: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--button);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  color: #8f8378;
  font-size: 0.68rem;
  font-weight: 750;
}

.preview-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.photo-panel {
  margin: 0;
  padding: 10px;
}

.photo-panel h2 {
  margin-bottom: 8px;
}

.photo-panel .slider-row {
  margin-top: 7px;
}

.photo-panel .ghost-action {
  min-height: 36px;
  margin-top: 8px;
}

.hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  color: var(--muted);
  font-weight: 700;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.view-controls label {
  font-weight: 750;
}

.view-controls select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 4px 8px;
  font: inherit;
  font-weight: 700;
}

.readout-row {
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 700;
}

.page-wrap {
  display: grid;
  place-items: center;
  overflow: auto;
  min-height: 0;
  width: 100%;
  max-width: 816px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ded4;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(45, 34, 24, 0.16);
  touch-action: none;
}

.gallery-panel {
  padding: 10px;
}

.gallery-panel::after {
  inset: 10px auto auto -8px;
  transform: rotate(-10deg);
}

.photo-panel::after {
  inset: -12px 12px auto auto;
  transform: rotate(8deg);
}

.gallery-grid {
  display: grid;
  gap: 8px;
}

.gallery-grid-home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-empty {
  padding: 10px 4px 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdfb;
  box-shadow: 0 6px 14px rgba(82, 60, 44, 0.06);
}

.gallery-thumb-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(82, 60, 44, 0.08);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: #efe4d7;
  object-fit: cover;
}

.gallery-meta {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.gallery-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.gallery-info {
  color: var(--muted);
  font-size: 0.8rem;
}

.gallery-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gallery-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.gallery-folder-select {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.gallery-folder-select select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 4px 6px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(44, 40, 36, 0.42);
}

.gallery-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 860px);
  max-height: min(86vh, 920px);
  margin: 4vh auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(217, 204, 192, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f0e6 100%);
  box-shadow: 0 20px 54px rgba(45, 34, 24, 0.28);
}

.gallery-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.gallery-modal-card img {
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(217, 204, 192, 0.7);
}

.gallery-modal-body {
  display: grid;
  gap: 12px;
}

.gallery-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.gallery-modal-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
}

.gallery-modal-info {
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-modal-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 750;
}

.gallery-modal-actions .danger {
  border-color: rgba(180, 85, 69, 0.45);
  color: #9d4338;
}

.mobile-actions {
  display: none;
}

@media (max-width: 860px) {
  .app-shell {
    padding: 12px;
  }

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

  .top-actions {
    display: none;
  }

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

  .gallery-page-header {
    align-items: start;
    flex-direction: column;
  }

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

  .controls {
    order: 2;
  }

  .preview-column {
    order: 1;
  }

  .page-wrap {
    min-height: 52vh;
    padding: 10px;
  }

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

  .mobile-actions .ghost-action.compact {
    width: 100%;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .brand-name {
    font-size: 1.02rem;
    letter-spacing: 0.03em;
  }

  .brand-wordmark {
    padding-right: 6px;
  }
}

@media (orientation: landscape) and (max-width: 1180px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    margin-bottom: 10px;
  }

  .workspace {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 14px;
  }

  .page-wrap {
    min-height: 0;
    padding: 12px;
  }

  .hint-row {
    min-height: 28px;
  }

  .preview-column {
    gap: 10px;
  }

  .gallery-grid-full {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (orientation: landscape) and (min-width: 900px) {
  .gallery-grid-full {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mobile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .number-stepper {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .number-stepper.compact {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .stepper-button {
    min-height: 20px;
  }

  .gallery-grid-home,
  .gallery-grid-full {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: white;
  }

  .topbar,
  .controls,
  .hint-row,
  .mobile-actions,
  .gallery-page,
  .gallery-modal,
  .view-switch {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .preview-column,
  .page-wrap {
    display: block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: white;
    overflow: visible;
  }

  canvas {
    box-shadow: none;
  }
}
