:root {
  --sage: #a8bd90;
  --sage-strong: #8eaa75;
  --sage-soft: #dce8cf;
  --cream: #f3eddc;
  --cream-soft: #faf7ee;
  --card: #fffefa;
  --forest: #18301d;
  --forest-2: #26472d;
  --ink: #232820;
  --muted: #777a6d;
  --line: #e6e0d2;
  --danger: #a3544b;
  --danger-soft: #f7e7e3;
  --shadow-sm: 0 5px 16px rgba(36, 48, 30, .06);
  --shadow-md: 0 14px 36px rgba(36, 48, 30, .09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.01em;
}

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

button { -webkit-tap-highlight-color: transparent; }

.hidden { display: none !important; }
.mobile-only,
.mobile-nav { display: none; }

/* ---------- top / brand ---------- */
.topbar {
  min-height: 102px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sage);
  border: 0;
}

.brand-kicker {
  margin-bottom: 4px;
  color: rgba(24, 48, 29, .66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.topbar h1 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.14;
  font-weight: 750;
  letter-spacing: -.035em;
}

.topbar p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.version {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  vertical-align: middle;
}

.top-actions,
.toolbar-actions,
.page-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-actions { justify-content: flex-end; }

/* ---------- shared controls ---------- */
.btn,
.preset,
.quick-size-btn,
.scale-selected-btn,
.qty-selected-btn,
.mobile-nav-btn {
  appearance: none;
  -webkit-appearance: none;
}

.btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn.primary {
  background: var(--forest);
  color: #fff;
}

.topbar .btn.secondary {
  background: rgba(255,255,255,.72);
  color: var(--forest);
}

.topbar .btn.primary {
  background: var(--forest);
}

.btn.secondary { background: var(--card); }
.btn.small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.btn.full { width: 100%; }

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.button-plus {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -4px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.native-file-input {
  position: fixed !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- desktop shell ---------- */
.app-grid {
  display: grid;
  grid-template-columns: minmax(285px, 320px) minmax(520px, 1fr) minmax(310px, 350px);
  min-height: calc(100vh - 102px);
  background: var(--cream);
}

.panel {
  min-width: 0;
  padding: 18px;
  overflow: auto;
  background: var(--cream-soft);
}

.left-panel { border-right: 0; }
.right-panel { border-left: 0; }

.left-panel > section { min-width: 0; }

.right-panel section {
  margin-bottom: 14px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.right-panel section + section {
  margin-top: 0;
  padding-top: 18px;
  border-top: 0;
}

.panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -.025em;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title-row h2 { margin: 0; }

.mobile-photo-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mobile-import-actions {
  display: none;
}

.compat-batch-btn {
  justify-content: center;
  border: 1px solid rgba(55, 78, 47, .10);
  background: rgba(255,255,255,.72);
  color: var(--forest);
}

.duplicate-tip {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(168, 189, 144, .13);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.import-status {
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--forest-2);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}

.empty-hint {
  padding: 28px 18px;
  border: 1px dashed #d7d0bf;
  border-radius: 20px;
  background: rgba(255,255,255,.48);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- assets ---------- */
.asset-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
  border: 0;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: 100px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.asset-card-selected {
  box-shadow: 0 0 0 2px rgba(142,170,117,.55), var(--shadow-sm);
}

.asset-card-multi-selected {
  background: #f2f7ec;
  box-shadow: 0 0 0 2px var(--sage-strong), var(--shadow-sm);
}

.asset-card-flash { animation: cardFlash .9s ease; }
@keyframes cardFlash {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(55,78,47,.14); }
}

.asset-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 0;
  border-radius: 16px;
  background: var(--cream);
}

.asset-body { min-width: 0; }

.asset-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
}

.asset-name {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }

.asset-controls {
  display: grid;
  grid-template-columns: .8fr 1fr 1fr;
  gap: 6px;
  margin-top: 9px;
}

.asset-controls label,
.field label { min-width: 0; }

.asset-controls span,
.field > span,
.field label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
}

.asset-controls input,
.field input,
.field select,
select {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 9px;
  outline: none;
  background: #fbf9f2;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.asset-controls input:focus,
.field input:focus,
.field select:focus,
select:focus {
  border-color: var(--sage-strong);
  box-shadow: 0 0 0 3px rgba(168,189,144,.18);
  background: #fff;
}

.asset-lock,
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.asset-lock { margin-top: 9px; cursor: pointer; }
.asset-lock input,
.check-row input { accent-color: var(--forest); }

/* ---------- workspace ---------- */
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
}

.workspace-toolbar,
.selection-toolbar {
  margin: 14px 14px 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.workspace-toolbar {
  min-height: 62px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-toolbar strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.warning {
  margin-left: 8px;
  color: var(--danger);
  font-size: 11px;
}

.page-nav { justify-content: center; }
.page-nav select { min-width: 116px; }

.selection-toolbar {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.selection-status {
  font-size: 12px;
  color: var(--muted);
}
.selection-status strong { color: var(--forest); font-size: 15px; }

.selection-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.selection-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.selection-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.quick-size-btn,
.scale-selected-btn,
.qty-selected-btn {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.quick-size-btn:hover,
.scale-selected-btn:hover,
.qty-selected-btn:hover { background: var(--sage-soft); color: var(--forest); }

.custom-size-group label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-size-group label span { color: var(--muted); font-size: 10px; }
.custom-size-group input {
  width: 74px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  background: var(--cream-soft);
}

.selection-hint {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.preview-area {
  flex: 1;
  min-height: 0;
  margin: 14px;
  padding: 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  border-radius: var(--radius-xl);
  background: #e9e2cf;
  background-image: radial-gradient(rgba(24,48,29,.055) 1px, transparent 1px);
  background-size: 18px 18px;
}

.preview-placeholder {
  margin: auto;
  max-width: 430px;
  padding: 28px 30px;
  border: 0;
  border-radius: 24px;
  background: rgba(255,254,250,.78);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

.page-wrap { position: relative; }
.page-label {
  margin-bottom: 9px;
  color: rgba(35,40,32,.58);
  text-align: center;
  font-size: 11px;
  font-weight: 650;
}

.paper {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(48,50,39,.18);
}
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,.06);
}

.sticker {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  background: #f3f1e9;
  transition: outline-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.sticker:hover { box-shadow: inset 0 0 0 2px rgba(142,170,117,.68); }
.sticker.border-on { outline: 1px dashed rgba(57,67,53,.62); outline-offset: -1px; }
.sticker img { width: 100%; height: 100%; display: block; }

.sticker-selected {
  outline: 3px solid var(--forest) !important;
  outline-offset: 1px !important;
  z-index: 6 !important;
  box-shadow: 0 0 0 5px rgba(168,189,144,.28);
}
.sticker-selected::after {
  content: "✓";
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  pointer-events: none;
}

.cutmark {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.cutmark::before,
.cutmark::after { content: ""; position: absolute; background: #222; }
.cutmark::before { width: 10px; height: 1px; left: 0; top: 4px; }
.cutmark::after { width: 1px; height: 10px; left: 4px; top: 0; }

/* ---------- settings ---------- */
.field { display: block; margin-bottom: 12px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

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

.preset {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background .14s ease, transform .14s ease;
}
.preset:hover { transform: translateY(-1px); background: #ebe6d6; }
.preset.active { background: var(--sage-soft); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--sage-strong); }

.check-row { margin: 10px 0; }
.helper-text,
.print-note p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.helper-text { margin: -2px 0 12px; }
.print-note p { margin: 0; }

/* ---------- middle width ---------- */
@media (max-width: 1150px) and (min-width: 761px) {
  .app-grid { grid-template-columns: 290px minmax(500px, 1fr); }
  .right-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
    border: 0;
  }
  .right-panel section { margin: 0; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  body {
    min-width: 0;
    overflow-x: hidden;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    background: var(--cream);
  }

  .mobile-only { display: inline-flex; }

  .topbar {
    position: relative;
    min-height: 178px;
    padding: 22px 18px 36px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    background: var(--sage);
  }

  .brand-kicker {
    margin-bottom: 6px;
    color: rgba(24,48,29,.64);
    font-size: 9px;
  }

  .topbar h1 {
    font-size: 28px;
    line-height: 1.08;
    font-weight: 760;
  }

  .topbar p {
    margin-top: 7px;
    max-width: 320px;
    font-size: 13px;
    color: rgba(255,255,255,.82);
  }

  .top-actions {
    width: calc(100vw - 36px);
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .top-actions::-webkit-scrollbar { display: none; }
  .top-actions .btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 13px;
    font-size: 12px;
  }

  .app-grid { display: block; min-height: 0; }

  .left-panel,
  .workspace,
  .right-panel {
    display: none !important;
    width: 100%;
    max-width: 100%;
    min-height: calc(100dvh - 144px);
    margin-top: -22px;
    border-radius: 28px 28px 0 0;
    background: var(--cream);
  }

  body.mobile-view-assets .left-panel { display: block !important; }
  body.mobile-view-preview .workspace { display: flex !important; }
  body.mobile-view-settings .right-panel { display: block !important; }

  .left-panel,
  .right-panel {
    height: auto !important;
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 18px 14px 28px;
  }

  .workspace {
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 1px 0 20px;
  }

  /* floating bottom nav inspired by reference */
  .mobile-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 6px;
    border: 0;
    border-radius: 30px;
    background: var(--forest);
    box-shadow: 0 14px 30px rgba(24,48,29,.22);
  }

  .mobile-nav-btn {
    min-height: 48px;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: rgba(255,255,255,.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 650;
    touch-action: manipulation;
  }

  .mobile-nav-btn.active {
    color: #fff;
    background: rgba(255,255,255,.08);
  }

  .mobile-nav-icon {
    min-width: 22px;
    font-size: 19px;
    line-height: 1;
    font-weight: 500;
  }

  /* assets */
  .section-title-row {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: 0 0 10px;
    padding: 4px 0 8px;
    background: linear-gradient(var(--cream) 78%, rgba(243,237,220,0));
  }

  .section-title-row h2 { font-size: 19px; }

  .file-button {
    min-width: 112px;
    background: var(--forest);
    color: #fff;
  }

  .mobile-import-actions.mobile-only {
    display: flex;
    width: 100%;
    margin: 0 0 8px;
  }

  .compat-batch-btn {
    min-height: 42px;
    border-radius: 16px;
    font-size: 12px;
  }

  .mobile-photo-hint {
    display: block;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.6);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
  }

  .duplicate-tip {
    margin-bottom: 9px;
    padding: 9px 11px;
    border-radius: 15px;
    font-size: 10.5px;
  }

  .asset-list { gap: 9px; }
  .asset-card {
    grid-template-columns: 72px minmax(0,1fr);
    padding: 10px;
    border-radius: 22px;
  }
  .asset-thumb { width: 72px; height: 72px; border-radius: 17px; }
  .asset-name { font-size: 13px; }
  .asset-controls input { min-height: 42px; }
  .asset-lock { min-height: 30px; }
  .remove-btn { width: 36px; height: 36px; font-size: 20px; }

  /* preview cards */
  .workspace-toolbar,
  .selection-toolbar {
    margin: 14px 14px 0;
    border-radius: 22px;
  }

  .workspace-toolbar {
    min-height: 0;
    padding: 13px;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .workspace-toolbar > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    align-items: baseline;
  }
  .workspace-toolbar .warning { margin-left: 0; }

  .page-nav,
  .toolbar-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    justify-content: stretch;
  }
  .page-nav .btn,
  .toolbar-actions .btn { flex: 1 1 0; min-width: 0; }
  .page-nav select { flex: 1.25 1 0; min-width: 0; }

  #mobileMultiSelectBtn[aria-pressed="true"] {
    background: var(--forest);
    color: #fff;
  }

  .selection-toolbar {
    position: sticky;
    top: 8px;
    z-index: 14;
    padding: 11px;
    gap: 8px;
    align-items: stretch;
    max-height: 230px;
    overflow-y: auto;
  }
  .selection-status { width: 100%; }
  .selection-divider { display: none; }
  .selection-group {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .selection-group::-webkit-scrollbar { display: none; }
  .selection-group .btn,
  .quick-size-btn,
  .scale-selected-btn,
  .qty-selected-btn { flex: 0 0 auto; min-height: 38px; }
  .custom-size-group { overflow: visible; }
  .custom-size-group label { flex: 1 1 auto; }
  .custom-size-group input { min-width: 74px; width: 100%; }
  .selection-hint { display: none; }

  .preview-area {
    min-height: calc(100dvh - 310px);
    margin: 12px 14px 18px;
    padding: 12px 8px 20px;
    overflow: auto;
    border-radius: 26px;
    align-items: center;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .page-wrap { max-width: 100%; }
  .page-label { margin: 2px 0 7px; font-size: 10px; }
  .paper { max-width: 100%; box-shadow: 0 12px 28px rgba(48,50,39,.16); }
  .preview-placeholder { padding: 22px 18px; margin: 30px 10px; font-size: 12px; }
  .sticker { touch-action: manipulation; }
  .sticker-selected { outline-width: 2px !important; outline-offset: 1px !important; }

  /* settings as white cards */
  .right-panel section {
    margin: 0 0 12px;
    padding: 17px;
    border-radius: 22px;
  }
  .right-panel section + section { margin-top: 0; padding-top: 17px; }
  .right-panel h2 { font-size: 17px; }
  .field input,
  .field select,
  .right-panel select,
  .preset,
  .btn { min-height: 44px; }
  .preset-grid { gap: 8px; }
  .two-cols { gap: 8px; }

  /* avoid iOS zoom */
  input,
  select,
  textarea,
  button { font-size: 16px; }
  .asset-controls span,
  .field > span,
  .field label > span,
  .selection-label { font-size: 10px; }
  .asset-name,
  .asset-lock,
  .check-row,
  .helper-text,
  .print-note p { font-size: 12px; }
}

@media (max-width: 390px) {
  .topbar { min-height: 164px; padding-left: 15px; padding-right: 15px; }
  .topbar h1 { font-size: 25px; }
  .topbar p { font-size: 12px; }
  .top-actions { width: calc(100vw - 30px); }
  .left-panel, .right-panel, .workspace { margin-top: -20px; }
  .asset-card { grid-template-columns: 64px minmax(0,1fr); }
  .asset-thumb { width: 64px; height: 64px; }
  .asset-controls { gap: 4px; }
  .asset-controls input { padding-left: 5px; padding-right: 5px; }
}
