.stampmaker-online-stamp-editor {
  --bg: #edf2ff;
  --shell: rgba(255, 255, 255, 0.78);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --panel-muted: rgba(241, 245, 255, 0.9);
  --line: rgba(148, 163, 184, 0.3);
  --line-strong: rgba(99, 102, 241, 0.26);
  --text: #14213d;
  --muted: #5f6f93;
  --primary: #315efb;
  --primary-strong: #2148d8;
  --primary-soft: rgba(49, 94, 251, 0.12);
  --success: #19a561;
  --danger: #dc4d64;
  --shadow-lg: 0 24px 60px rgba(31, 41, 55, 0.14);
  --shadow-md: 0 14px 32px rgba(31, 41, 55, 0.1);
  --shadow-sm: 0 6px 18px rgba(31, 41, 55, 0.08);
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(49, 94, 251, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #eef3ff 0%, #e4ebfb 100%);
}

.stampmaker-online-stamp-editor.is-shortcode {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .stampmaker-online-stamp-editor.is-shortcode {
    overflow-x: hidden;
  }
}

.stampmaker-online-stamp-editor * {
  box-sizing: border-box;
}

.stampmaker-online-stamp-editor label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.stampmaker-online-stamp-editor input,
.stampmaker-online-stamp-editor select,
.stampmaker-online-stamp-editor textarea,
.stampmaker-online-stamp-editor button {
  font: inherit;
}

.stampmaker-online-stamp-editor input,
.stampmaker-online-stamp-editor select,
.stampmaker-online-stamp-editor textarea {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stampmaker-online-stamp-editor input:focus,
.stampmaker-online-stamp-editor select:focus,
.stampmaker-online-stamp-editor textarea:focus {
  outline: none;
  border-color: rgba(49, 94, 251, 0.55);
  box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.12);
}

.stampmaker-online-stamp-editor button {
  border: 1px solid rgba(49, 94, 251, 0.22);
  background: linear-gradient(180deg, #4471ff 0%, #315efb 100%);
  color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.stampmaker-online-stamp-editor button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(49, 94, 251, 0.22);
}

.stampmaker-online-stamp-editor button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .hidden {
  display: none;
}

.stampmaker-online-stamp-editor .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stampmaker-online-stamp-editor .app-shell {
  width: min(1360px, 100%);
  max-width: 1360px;
  margin: 0 auto 22px;
  min-height: calc(100vh - 44px);
  background: var(--shell);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

body.home .home-page {
  padding-top: 0;
}

.smo-stamp-seo-content {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px 34px;
  color: #14213d;
}

.smo-stamp-seo-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #dbe7ff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(49, 94, 251, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.smo-stamp-seo-eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2457f5;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.smo-stamp-seo-card h2,
.smo-stamp-seo-card h3,
.smo-stamp-seo-card p {
  margin: 0;
}

.smo-stamp-seo-card h2 {
  max-width: 880px;
  color: #0f1f3d;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  line-height: 1.05;
}

.smo-stamp-seo-card h3 {
  color: #0f1f3d;
  font-size: 1.15rem;
}

.smo-stamp-seo-card p,
.smo-stamp-seo-card li {
  max-width: 960px;
  color: #52627f;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.65;
}

.smo-stamp-seo-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.smo-stamp-seo-card li {
  padding: 12px 14px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.smo-stamp-seo-faq {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.smo-stamp-seo-faq strong {
  color: #10213f;
  font-size: 0.98rem;
}

.smo-stamp-seo-card .smo-stamp-seo-disclaimer {
  color: #71809a;
  font-size: 0.88rem;
}

.stampmaker-online-stamp-editor .user-strip {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 0;
  background: transparent;
}

.stampmaker-online-stamp-editor .current-user-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 94, 251, 0.14);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  line-height: 1.2;
  appearance: none;
}

.stampmaker-online-stamp-editor .current-user-label.guest-login-trigger {
  cursor: pointer;
}

.stampmaker-online-stamp-editor .current-user-label.guest-login-trigger:hover,
.stampmaker-online-stamp-editor .current-user-label.guest-login-trigger:focus-visible {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(49, 94, 251, 0.18);
  transform: translateY(-1px);
}

.stampmaker-online-stamp-editor .current-user-wallet {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 94, 251, 0.14);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.stampmaker-online-stamp-editor .current-user-wallet p {
  margin: 0;
}

.stampmaker-online-stamp-editor .wallet-topup-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 94, 251, 0.14);
  color: var(--primary-strong);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.stampmaker-online-stamp-editor .wallet-topup-inline input {
  width: 74px;
  height: 30px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.stampmaker-online-stamp-editor .wallet-topup-inline button {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 16px 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #17327f 0%, #315efb 56%, #4f86ff 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 20px 36px rgba(32, 63, 174, 0.28);
}

.stampmaker-online-stamp-editor .brand {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stampmaker-online-stamp-editor .editor-topbar {
  padding: 12px 14px;
}

.stampmaker-online-stamp-editor .editor-brand {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.stampmaker-online-stamp-editor .toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.stampmaker-online-stamp-editor .toolbar-actions > * {
  flex: 0 0 auto;
}

.stampmaker-online-stamp-editor .toolbar-search {
  display: flex;
  align-items: center;
  margin: 0;
  min-width: 240px;
  max-width: 300px;
}

.stampmaker-online-stamp-editor .toolbar-search input {
  min-width: 240px;
  height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
}

.stampmaker-online-stamp-editor .toolbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.stampmaker-online-stamp-editor #template-owner-select,
.stampmaker-online-stamp-editor #editor-owner-select,
.stampmaker-online-stamp-editor #save-category-select,
.stampmaker-online-stamp-editor .editor-category-select {
  min-width: 150px;
  max-width: 190px;
  height: 42px;
}

.stampmaker-online-stamp-editor #editor-page .toolbar-actions {
  gap: 6px;
  flex: 1 1 auto;
}

.stampmaker-online-stamp-editor #back-to-templates-btn,
.stampmaker-online-stamp-editor #save-template-btn,
.stampmaker-online-stamp-editor #new-template-btn {
  white-space: nowrap;
}

.stampmaker-online-stamp-editor .editor-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.stampmaker-online-stamp-editor .editor-save-row > * {
  flex: 0 1 auto;
  min-width: 0;
}

.stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select,
.stampmaker-online-stamp-editor #editor-page .editor-save-row #save-category-select,
.stampmaker-online-stamp-editor #editor-page .editor-save-row .editor-category-select {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  line-height: normal;
  display: block;
}

.stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select {
  flex-basis: 160px;
  max-width: 190px;
}

.stampmaker-online-stamp-editor #template-owner-select.hidden,
.stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select.hidden {
  display: none !important;
}

.stampmaker-online-stamp-editor #editor-page .editor-save-row #save-category-select,
.stampmaker-online-stamp-editor #editor-page .editor-save-row .editor-category-select {
  flex: 1 1 180px;
  max-width: 240px;
}

.stampmaker-online-stamp-editor #editor-page .editor-save-row #back-to-templates-btn,
.stampmaker-online-stamp-editor #editor-page .editor-save-row #save-template-btn {
  flex: 0 0 auto;
}

.stampmaker-online-stamp-editor #editor-page .editor-save-row #history-actions {
  flex: 0 0 auto;
}

.stampmaker-online-stamp-editor .green-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #23c36e 0%, #139a55 100%);
  border-color: rgba(18, 140, 77, 0.36);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(25, 165, 97, 0.24);
}

.stampmaker-online-stamp-editor .small {
  min-height: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text);
  box-shadow: none;
}

.stampmaker-online-stamp-editor .history-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.stampmaker-online-stamp-editor .history-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-strong);
}

.stampmaker-online-stamp-editor .history-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .history-btn .history-arrow-icon {
  overflow: visible;
}

.stampmaker-online-stamp-editor .history-btn .history-arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .history-btn .history-head {
  fill: currentColor;
  stroke: none;
}

.stampmaker-online-stamp-editor .history-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stampmaker-online-stamp-editor .draft-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 150px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stampmaker-online-stamp-editor .draft-status[hidden],
.stampmaker-online-stamp-editor .draft-status:empty {
  display: none !important;
}

.stampmaker-online-stamp-editor .topbar-ghost-btn,
.stampmaker-online-stamp-editor .topbar-save-btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .topbar-ghost-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.stampmaker-online-stamp-editor .topbar-save-btn {
  background: linear-gradient(180deg, #ffffff 0%, #dce8ff 100%);
  color: var(--primary-strong);
  border-color: rgba(255, 255, 255, 0.44);
}

.stampmaker-online-stamp-editor .elements-trigger-btn {
  display: none;
}

.stampmaker-online-stamp-editor .toolbar {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 10px 14px;
  background: rgba(31, 64, 166, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(32, 63, 174, 0.18);
}

.stampmaker-online-stamp-editor #editor-page .toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stampmaker-online-stamp-editor #editor-page .toolbar > .icon-actions {
  grid-column: 1;
  grid-row: 1;
}

.stampmaker-online-stamp-editor #editor-page .toolbar > .snap-tools {
  grid-column: 2;
  grid-row: 1;
}

.stampmaker-online-stamp-editor #editor-page .toolbar > .mobile-history-slot {
  display: none;
}

.stampmaker-online-stamp-editor .left-icons,
.stampmaker-online-stamp-editor .center-icons,
.stampmaker-online-stamp-editor .icon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stampmaker-online-stamp-editor .center-icons,
.stampmaker-online-stamp-editor .icon-actions {
  justify-content: center;
}

.stampmaker-online-stamp-editor .icon-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 0;
  width: 100%;
}

.stampmaker-online-stamp-editor .tool-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  padding: 0;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .tool-icon.active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.stampmaker-online-stamp-editor .shape-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stampmaker-online-stamp-editor .shape-tool-icon svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.stampmaker-online-stamp-editor .category-action-icon svg {
  width: 20px;
  height: 20px;
}

.stampmaker-online-stamp-editor .category-action-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .category-action-icon.danger-icon {
  color: var(--danger);
}

.stampmaker-online-stamp-editor .shape-tool-icon svg circle,
.stampmaker-online-stamp-editor .shape-tool-icon svg rect,
.stampmaker-online-stamp-editor .shape-tool-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .shape-tool-icon#shape-filter-all-btn svg circle:last-of-type {
  fill: currentColor;
  stroke: none;
  opacity: 0.9;
}

.stampmaker-online-stamp-editor .icon-actions button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .icon-actions .toolbar-action-btn {
  width: 72px;
  min-width: 72px;
  height: 64px;
  min-height: 64px;
  padding: 6px 6px;
  border-radius: 16px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}

.stampmaker-online-stamp-editor .icon-actions .toolbar-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.stampmaker-online-stamp-editor .icon-actions .toolbar-btn-icon svg {
  width: 20px;
  height: 20px;
}

.stampmaker-online-stamp-editor .icon-actions .toolbar-btn-icon svg path,
.stampmaker-online-stamp-editor .icon-actions .toolbar-btn-icon svg circle,
.stampmaker-online-stamp-editor .icon-actions .toolbar-btn-icon svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .icon-actions .toolbar-btn-label {
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
}

.stampmaker-online-stamp-editor .snap-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.stampmaker-online-stamp-editor .toolbar-preview-actions {
  display: contents;
}

.stampmaker-online-stamp-editor .toolbar-preview-actions .plate-size,
.stampmaker-online-stamp-editor .toolbar-preview-actions .plate-frame-toggle,
.stampmaker-online-stamp-editor .toolbar-preview-actions .download-btn {
  min-height: 44px;
  height: 44px;
  border-radius: 14px;
  white-space: nowrap;
}

.stampmaker-online-stamp-editor .toolbar-preview-actions .download-btn {
  min-width: 116px;
  padding: 0 14px;
}

.stampmaker-online-stamp-editor .toolbar-preview-actions .plate-size {
  order: -1;
}

.stampmaker-online-stamp-editor .toolbar-preview-actions .plate-frame-toggle {
  order: 0;
}

.stampmaker-online-stamp-editor .toolbar-preview-actions .download-btn {
  order: 10;
}

.stampmaker-online-stamp-editor .snap-tool-btn {
  width: auto;
  min-width: 70px;
  height: 44px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.stampmaker-online-stamp-editor .snap-tool-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.stampmaker-online-stamp-editor .snap-tool-btn svg path,
.stampmaker-online-stamp-editor .snap-tool-btn svg rect,
.stampmaker-online-stamp-editor .snap-tool-btn svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .snap-tool-btn.active {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.stampmaker-online-stamp-editor .snap-tool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stampmaker-online-stamp-editor .snap-guide-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 1.4;
  stroke-dasharray: 6 4;
  opacity: 0.92;
  vector-effect: non-scaling-stroke;
}

.stampmaker-online-stamp-editor .snap-guide-center-x,
.stampmaker-online-stamp-editor .snap-guide-center-y {
  stroke: #f59e0b;
}

.stampmaker-online-stamp-editor .interactive-text-handle-layer {
  pointer-events: none;
}

.stampmaker-online-stamp-editor .interactive-text-radius-guide,
.stampmaker-online-stamp-editor .interactive-text-radius-arm,
.stampmaker-online-stamp-editor .interactive-text-rotate-arm {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 1.35;
  stroke-dasharray: 4 5;
  opacity: 0.78;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.stampmaker-online-stamp-editor .interactive-text-radius-guide {
  cursor: grab;
  opacity: 0.72;
  pointer-events: visibleStroke;
  stroke-width: 1.2;
}

.stampmaker-online-stamp-editor .interactive-text-radius-guide:active {
  cursor: grabbing;
}

.stampmaker-online-stamp-editor .interactive-text-radius-hit {
  cursor: grab;
  fill: none;
  opacity: 0;
  pointer-events: stroke;
  stroke: #000000;
}

.stampmaker-online-stamp-editor .interactive-text-radius-hit:active {
  cursor: grabbing;
}

.stampmaker-online-stamp-editor .preview-touch-hit-target,
.stampmaker-online-stamp-editor .interactive-text-handle-hit {
  opacity: 0;
  cursor: grab;
}

.stampmaker-online-stamp-editor .preview-touch-hit-target:active,
.stampmaker-online-stamp-editor .interactive-text-handle-hit:active {
  cursor: grabbing;
}

.stampmaker-online-stamp-editor .interactive-text-handle-hit {
  fill: #000000;
  stroke: none;
  pointer-events: all;
}

.stampmaker-online-stamp-editor .interactive-text-rotate-arm {
  stroke: #ea580c;
}

.stampmaker-online-stamp-editor .interactive-text-handle {
  cursor: grab;
  filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.22));
  pointer-events: auto;
}

.stampmaker-online-stamp-editor .interactive-text-handle:active {
  cursor: grabbing;
}

.stampmaker-online-stamp-editor .interactive-text-handle-disc {
  fill: rgba(255, 255, 255, 0.96);
  stroke: #1d4ed8;
  stroke-width: 2.3;
  vector-effect: non-scaling-stroke;
}

.stampmaker-online-stamp-editor .interactive-text-handle > line,
.stampmaker-online-stamp-editor .interactive-text-handle-mark {
  fill: none;
  stroke: #1d4ed8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.stampmaker-online-stamp-editor .interactive-text-handle-start .interactive-text-handle-disc {
  fill: #dbeafe;
  stroke: #1d4ed8;
}

.stampmaker-online-stamp-editor .interactive-text-handle-start .interactive-text-handle-mark {
  fill: #1d4ed8;
}

.stampmaker-online-stamp-editor .interactive-text-handle-radius .interactive-text-handle-disc {
  fill: #dcfce7;
  stroke: #16a34a;
}

.stampmaker-online-stamp-editor .interactive-text-handle-radius .interactive-text-handle-mark {
  fill: #16a34a;
  stroke: #16a34a;
}

.stampmaker-online-stamp-editor .interactive-text-handle-rotate {
  cursor: alias;
}

.stampmaker-online-stamp-editor .interactive-text-handle-rotate .interactive-text-handle-disc {
  fill: #ffedd5;
  stroke: #f97316;
}

.stampmaker-online-stamp-editor .interactive-text-rotate-mark {
  stroke: #ea580c;
}

.stampmaker-online-stamp-editor .inline-preview-text-editor {
  position: absolute;
  z-index: 18;
  min-height: 42px;
  max-height: 210px;
  padding: 10px 12px;
  border: 2px solid #2563eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  color: #111827;
  line-height: 1.24;
  outline: none;
  resize: both;
  text-align: center;
  transform: translate(-50%, -50%);
}

.stampmaker-online-stamp-editor .inline-preview-text-editor:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 18px 40px rgba(15, 23, 42, 0.24);
}

.stampmaker-online-stamp-editor .templates-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px 12px;
  min-height: 430px;
  --template-list-height: clamp(430px, calc(100vh - 286px), 720px);
  --template-list-height: clamp(430px, calc(100dvh - 286px), 720px);
}

.stampmaker-online-stamp-editor .mobile-template-category-picker {
  display: none;
}

.stampmaker-online-stamp-editor .recent-projects-panel {
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid rgba(49, 94, 251, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.94) 100%);
  box-shadow: var(--shadow-md);
}

.stampmaker-online-stamp-editor .recent-projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stampmaker-online-stamp-editor .recent-projects-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stampmaker-online-stamp-editor .recent-projects-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stampmaker-online-stamp-editor .recent-projects-header span {
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.stampmaker-online-stamp-editor .recent-projects-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stampmaker-online-stamp-editor .recent-project-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.stampmaker-online-stamp-editor .recent-project-card:hover {
  border-color: rgba(49, 94, 251, 0.32);
  transform: translateY(-1px);
}

.stampmaker-online-stamp-editor .recent-project-card.is-draft {
  border-color: rgba(245, 158, 11, 0.48);
  background: linear-gradient(180deg, #fffdf8 0%, #fff7dd 100%);
}

.stampmaker-online-stamp-editor .recent-project-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: #315efb;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .recent-project-card.is-draft .recent-project-badge {
  background: #f59e0b;
}

.stampmaker-online-stamp-editor .recent-project-thumb {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 15px;
  background: linear-gradient(180deg, #fefeff 0%, #eff4ff 100%);
  overflow: hidden;
}

.stampmaker-online-stamp-editor .recent-project-thumb svg {
  width: 90%;
  height: 90%;
}

.stampmaker-online-stamp-editor .recent-project-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.stampmaker-online-stamp-editor .recent-project-copy strong {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stampmaker-online-stamp-editor .recent-project-copy small,
.stampmaker-online-stamp-editor .recent-project-copy em {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.stampmaker-online-stamp-editor .recent-project-action {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(49, 94, 251, 0.1);
  color: var(--primary-strong);
  font-size: 0.7rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .left-category-list,
.stampmaker-online-stamp-editor .template-list-scroll,
.stampmaker-online-stamp-editor .templates-grid,
.stampmaker-online-stamp-editor .left-panel,
.stampmaker-online-stamp-editor .center-panel,
.stampmaker-online-stamp-editor .right-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.stampmaker-online-stamp-editor .left-category-list {
  height: var(--template-list-height);
  overflow: auto;
}

.stampmaker-online-stamp-editor .template-list-scroll {
  min-height: 430px;
  overflow: visible;
}

.stampmaker-online-stamp-editor .right-panel-toggle-btn {
  display: none;
}

.stampmaker-online-stamp-editor .left-category-list ul {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.stampmaker-online-stamp-editor .left-category-list li {
  padding: 11px 14px;
  cursor: pointer;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.stampmaker-online-stamp-editor .left-category-list li:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
  transform: translateX(2px);
}

.stampmaker-online-stamp-editor .left-category-list li.active {
  background: linear-gradient(180deg, #edf3ff 0%, #dbe7ff 100%);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(49, 94, 251, 0.18);
}

.stampmaker-online-stamp-editor .left-category-list li.category-skeleton {
  min-height: 42px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(49, 94, 251, 0.1), rgba(255, 255, 255, 0.35)),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  background-size: 220% 100%, 100% 100%;
}

.stampmaker-online-stamp-editor .templates-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  min-height: 430px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 247, 255, 0.94));
}

.stampmaker-online-stamp-editor .template-list-scroll .templates-grid {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.stampmaker-online-stamp-editor .templates-grid.tiles-view {
  grid-template-columns: 1fr;
}

.stampmaker-online-stamp-editor .template-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.stampmaker-online-stamp-editor .template-item.active {
  border-color: rgba(49, 94, 251, 0.34);
  box-shadow: 0 14px 30px rgba(49, 94, 251, 0.16);
}

.stampmaker-online-stamp-editor .template-skeleton-card {
  pointer-events: none;
}

.stampmaker-online-stamp-editor .template-skeleton-line {
  display: block;
  min-height: 15px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(49, 94, 251, 0.1), rgba(255, 255, 255, 0.35)),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  background-size: 220% 100%, 100% 100%;
}

.stampmaker-online-stamp-editor .template-skeleton-name {
  width: 74%;
}

.stampmaker-online-stamp-editor .template-skeleton-meta {
  width: 92%;
}

.stampmaker-online-stamp-editor .template-skeleton-action {
  min-height: 27px;
  color: transparent;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(49, 94, 251, 0.1), rgba(255, 255, 255, 0.35)),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  background-size: 220% 100%, 100% 100%;
}

.stampmaker-online-stamp-editor .template-item.pending-download-template {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #e8f0ff 100%);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
  position: relative;
}

.stampmaker-online-stamp-editor .template-item.autosave-draft-template {
  border-color: rgba(245, 158, 11, 0.62);
  background: linear-gradient(180deg, #fffdf6 0%, #fff4d6 100%);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.18);
  position: relative;
}

.stampmaker-online-stamp-editor .template-item.recent-project-template {
  border-color: rgba(34, 197, 94, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf3 100%);
  box-shadow: 0 18px 38px rgba(34, 197, 94, 0.14);
  position: relative;
}

.stampmaker-online-stamp-editor .template-item.pending-download-template::before {
  content: "Saved stamp";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.stampmaker-online-stamp-editor .template-item.autosave-draft-template::before {
  content: "Draft";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.stampmaker-online-stamp-editor .template-item.recent-project-template::before {
  content: "Recent";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.2);
}

.stampmaker-online-stamp-editor .template-item .thumb {
  position: relative;
  margin-bottom: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #fefeff 0%, #eff4ff 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.stampmaker-online-stamp-editor .template-item .thumb:not(.template-thumb-placeholder)::after {
  content: "stampmaker.online";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 165%;
  transform: translate(-50%, -50%) rotate(-28deg);
  color: rgba(49, 94, 251, 0.055);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.stampmaker-online-stamp-editor .template-item .thumb svg {
  position: relative;
  z-index: 0;
  width: 90%;
  height: 90%;
}

.stampmaker-online-stamp-editor .template-thumb-img {
  position: relative;
  z-index: 0;
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}

.stampmaker-online-stamp-editor .template-thumb-placeholder {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(49, 94, 251, 0.08), rgba(255, 255, 255, 0.34)),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  background-size: 220% 100%, 100% 100%;
}

.stampmaker-online-stamp-editor .template-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stampmaker-online-stamp-editor .template-title-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.stampmaker-online-stamp-editor .template-name {
  min-width: 0;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stampmaker-online-stamp-editor .template-item small {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stampmaker-online-stamp-editor .template-actions-row {
  display: none;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.stampmaker-online-stamp-editor .template-item.active .template-actions-row {
  display: flex;
}

.stampmaker-online-stamp-editor .template-actions-row button {
  flex: 1 1 74px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 0.73rem;
  line-height: 1.2;
  border-radius: 10px;
  box-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stampmaker-online-stamp-editor .templates-grid:not(.tiles-view) .template-title-row {
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.stampmaker-online-stamp-editor .templates-grid:not(.tiles-view) .template-actions-row {
  justify-content: flex-start;
}

.stampmaker-online-stamp-editor .templates-grid:not(.tiles-view) .template-item.active .template-actions-row {
  display: flex;
}

.stampmaker-online-stamp-editor .templates-grid:not(.tiles-view) .template-item small {
  font-size: 0.72rem;
}

.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
}

.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-item .thumb {
  width: 82px;
  height: 82px;
  margin-bottom: 0;
}

.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-item small {
  font-size: 0.76rem;
}

.stampmaker-online-stamp-editor .template-open-btn {
  background: linear-gradient(180deg, #315efb 0%, #244be0 100%);
  color: #fff;
  border-color: rgba(49, 94, 251, 0.32);
}

.stampmaker-online-stamp-editor .template-edit-btn {
  background: linear-gradient(180deg, #f7faff 0%, #ebf2ff 100%);
  color: var(--primary-strong);
  border-color: rgba(49, 94, 251, 0.16);
}

.stampmaker-online-stamp-editor .template-delete-btn {
  background: linear-gradient(180deg, #fff7f8 0%, #ffe8eb 100%);
  color: var(--danger);
  border-color: rgba(220, 77, 100, 0.16);
}

.stampmaker-online-stamp-editor .template-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 4px 2px;
}

.stampmaker-online-stamp-editor .template-pagination span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.stampmaker-online-stamp-editor .template-pagination button {
  min-width: 104px;
  padding: 7px 12px;
  border-radius: 12px;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .template-bottom {
  margin: 0 16px 16px;
  padding: 14px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.stampmaker-online-stamp-editor .template-bottom label {
  max-width: 340px;
}

.stampmaker-online-stamp-editor .category-manage {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.stampmaker-online-stamp-editor .category-edit-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  max-height: 140px;
  overflow: auto;
}

.stampmaker-online-stamp-editor .category-section-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary-strong);
  margin-top: 4px;
}

.stampmaker-online-stamp-editor .category-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--panel-strong);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 8px 10px;
  border-radius: 14px;
}

.stampmaker-online-stamp-editor .category-edit-row button {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: var(--primary-strong);
  border-color: rgba(148, 163, 184, 0.2);
  padding: 4px 8px;
  margin-left: 4px;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .editor-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr) 350px;
  gap: 12px;
  padding: 14px 16px 12px;
  min-height: 530px;
}

.stampmaker-online-stamp-editor .left-panel,
.stampmaker-online-stamp-editor .right-panel {
  width: 350px;
  min-width: 350px;
  max-width: 350px;
}

.stampmaker-online-stamp-editor .left-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.stampmaker-online-stamp-editor .right-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}

.stampmaker-online-stamp-editor .setup-box {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.stampmaker-online-stamp-editor .filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.stampmaker-online-stamp-editor .filter-tabs button {
  min-height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f5ff 100%);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.stampmaker-online-stamp-editor .filter-tabs button.active {
  background: linear-gradient(180deg, #315efb 0%, #234ce0 100%);
  color: #fff;
  border-color: rgba(49, 94, 251, 0.4);
}

.stampmaker-online-stamp-editor .elements-list {
  list-style: none;
  padding: 8px;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: visible;
}

.stampmaker-online-stamp-editor .elements-list li {
  padding: 10px 10px 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  position: relative;
  overflow: visible;
}

.stampmaker-online-stamp-editor .elements-list li.active {
  background: linear-gradient(180deg, #edf3ff 0%, #dde7ff 100%);
  border-color: rgba(49, 94, 251, 0.24);
  box-shadow: 0 10px 20px rgba(49, 94, 251, 0.08);
  z-index: 4;
}

.stampmaker-online-stamp-editor .elements-list li.locked {
  border-color: rgba(245, 158, 11, 0.34);
}

.stampmaker-online-stamp-editor .elements-list li.hidden-element {
  opacity: 0.62;
}

.stampmaker-online-stamp-editor .elements-list button {
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--primary-strong);
  padding: 4px 8px;
  font-size: 0.8rem;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .element-row-info {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.stampmaker-online-stamp-editor .element-row-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}

.stampmaker-online-stamp-editor .element-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.stampmaker-online-stamp-editor .element-row-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.stampmaker-online-stamp-editor .element-row-badge.locked {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.stampmaker-online-stamp-editor .element-row-badge.hidden {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.stampmaker-online-stamp-editor .element-row-right,
.stampmaker-online-stamp-editor .element-row-inline-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stampmaker-online-stamp-editor .element-row-inline-actions button {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.stampmaker-online-stamp-editor .element-row-actions {
  position: relative;
  z-index: 6;
}

.stampmaker-online-stamp-editor .element-row-actions summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-strong);
  cursor: pointer;
  user-select: none;
}

.stampmaker-online-stamp-editor .element-row-actions summary::-webkit-details-marker {
  display: none;
}

.stampmaker-online-stamp-editor .element-row-menu {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  z-index: 5;
  transform: translateY(-50%);
  white-space: nowrap;
}

.stampmaker-online-stamp-editor .element-row-actions:not([open]) .element-row-menu {
  display: none;
}

.stampmaker-online-stamp-editor .element-row-menu button {
  min-width: 0;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.stampmaker-online-stamp-editor .element-state-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stampmaker-online-stamp-editor .element-state-toolbar button {
  min-height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .element-state-toolbar button.active {
  background: linear-gradient(180deg, #172554 0%, #1d4ed8 100%);
  border-color: rgba(37, 99, 235, 0.55);
  color: #ffffff;
}

.stampmaker-online-stamp-editor .element-state-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.stampmaker-online-stamp-editor .center-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  position: sticky;
  top: 16px;
  align-self: start;
  background-color: #fbfdff;
  background-image:
    linear-gradient(rgba(176, 184, 196, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 184, 196, 0.24) 1px, transparent 1px),
    linear-gradient(rgba(210, 216, 226, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 216, 226, 0.34) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 6px 6px, 6px 6px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  overflow: hidden;
  max-height: calc(100vh - 32px);
}

.stampmaker-online-stamp-editor .preview-zoom-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.stampmaker-online-stamp-editor .preview-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stampmaker-online-stamp-editor .preview-zoom-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .preview-zoom-value {
  min-width: 64px;
  padding: 0 8px;
  text-align: center;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .preview-canvas-lock-btn {
  min-width: 58px;
  padding: 0 10px;
  font-weight: 800;
  white-space: nowrap;
}

.stampmaker-online-stamp-editor .preview-canvas-lock-btn.active {
  background: #102a56;
  border-color: #102a56;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 42, 86, 0.22);
}

.stampmaker-online-stamp-editor #editor-page.canvas-locked .lightburn-preview-wrap {
  cursor: default;
}

.stampmaker-online-stamp-editor .preview-wrap {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  max-height: calc(100vh - 124px);
}

.stampmaker-online-stamp-editor .lightburn-preview-wrap {
  min-height: 500px;
  background: transparent;
  touch-action: pan-y;
}

.stampmaker-online-stamp-editor #lightburn-preview-svg {
  width: 98%;
  height: auto;
  max-width: 740px;
  max-height: 740px;
  background: transparent;
  transform-origin: center center;
  transition: transform 140ms ease;
  overflow: visible;
}

.stampmaker-online-stamp-editor .selected-title {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  padding: 12px 14px;
  font-weight: 800;
  min-height: 48px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.stampmaker-online-stamp-editor .controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
  padding: 10px;
  min-height: 520px;
}

.stampmaker-online-stamp-editor .controls label {
  font-size: 0.78rem;
}

.stampmaker-online-stamp-editor .control-field {
  display: grid;
  grid-template-columns: minmax(72px, 0.85fr) minmax(0, 1.8fr);
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.stampmaker-online-stamp-editor .control-label,
.stampmaker-online-stamp-editor .slider-label {
  min-width: 0;
  color: #52617a;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stampmaker-online-stamp-editor .control-textarea {
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: stretch;
}

.stampmaker-online-stamp-editor .slider-control {
  display: grid;
  grid-template-columns: minmax(72px, 0.85fr) minmax(0, 1.8fr);
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.stampmaker-online-stamp-editor .slider-title {
  display: block;
  min-width: 0;
}

.stampmaker-online-stamp-editor .slider-title span,
.stampmaker-online-stamp-editor .slider-row span {
  display: none;
}

.stampmaker-online-stamp-editor .slider-title .slider-label {
  display: block;
}

.stampmaker-online-stamp-editor .slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 6px;
  align-items: center;
}

.stampmaker-online-stamp-editor .slider-control input[type="range"] {
  width: 100%;
}

.stampmaker-online-stamp-editor .right-panel textarea {
  min-height: 82px;
}

.stampmaker-online-stamp-editor .bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.stampmaker-online-stamp-editor .plate-size {
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(49, 94, 251, 0.16);
  border-radius: 16px;
  padding: 10px 14px;
  color: var(--primary-strong);
  font-weight: 700;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .plate-size strong {
  color: var(--primary-strong);
}

.stampmaker-online-stamp-editor .plate-frame-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid rgba(49, 94, 251, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: var(--primary-strong);
  font-weight: 800;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .plate-frame-toggle-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0.9;
}

.stampmaker-online-stamp-editor .plate-frame-toggle.is-off {
  border-color: rgba(100, 116, 139, 0.24);
  background: #f8fafc;
  color: #64748b;
}

.stampmaker-online-stamp-editor .plate-frame-toggle.is-off .plate-frame-toggle-icon {
  position: relative;
}

.stampmaker-online-stamp-editor .plate-frame-toggle.is-off .plate-frame-toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 2px;
  height: 24px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.stampmaker-online-stamp-editor .download-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.stampmaker-online-stamp-editor .download-btn {
  min-width: 190px;
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: 16px;
}

.stampmaker-online-stamp-editor .download-options-card {
  width: min(900px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  gap: 14px;
}

.stampmaker-online-stamp-editor .credit-topup-card {
  width: min(680px, calc(100vw - 32px));
  gap: 14px;
}

.stampmaker-online-stamp-editor .download-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.stampmaker-online-stamp-editor .download-package-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  color: #102a6b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stampmaker-online-stamp-editor .download-package-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(49, 94, 251, 0.16);
}

.stampmaker-online-stamp-editor .credit-topup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stampmaker-online-stamp-editor .download-option-btn {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  text-align: left;
  border-radius: 16px;
  min-height: 142px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(49, 94, 251, 0.2);
  color: var(--text);
  box-shadow: none;
}

.stampmaker-online-stamp-editor .download-package-option-btn {
  grid-template-rows: auto 1fr auto auto;
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  border-color: rgba(14, 165, 233, 0.32);
}

.stampmaker-online-stamp-editor .download-package-option-btn .download-package-formats {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.stampmaker-online-stamp-editor .credit-package-btn {
  display: grid;
  gap: 8px;
  text-align: left;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: var(--text);
  box-shadow: none;
}

.stampmaker-online-stamp-editor .download-option-btn strong {
  color: var(--primary-strong);
  font-size: 0.96rem;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .credit-package-btn strong {
  color: #047857;
  font-size: 1.2rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .credit-package-btn .credit-package-name {
  color: #064e3b;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.stampmaker-online-stamp-editor .credit-package-btn .credit-package-bonus {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  font-size: 0.74rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .credit-package-btn .credit-package-expiry {
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .download-option-btn span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.stampmaker-online-stamp-editor .credit-package-btn span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.stampmaker-online-stamp-editor .download-option-btn em {
  font-style: normal;
  color: #1e40d8;
  font-size: 0.82rem;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .credit-package-btn em {
  font-style: normal;
  color: #065f46;
  font-size: 0.94rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .coupon-redeem-box {
  display: grid;
  gap: 8px;
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.stampmaker-online-stamp-editor .coupon-redeem-box label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .coupon-redeem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.stampmaker-online-stamp-editor .coupon-redeem-row input {
  width: 100%;
  min-height: 42px;
  text-transform: uppercase;
}

.stampmaker-online-stamp-editor .coupon-redeem-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .coupon-redeem-status.success {
  color: #047857;
}

.stampmaker-online-stamp-editor .coupon-redeem-status.error {
  color: #dc2626;
}

.stampmaker-online-stamp-editor .coupon-redeem-status.pending {
  color: #1e40d8;
}

@media (max-width: 760px) {
  .stampmaker-online-stamp-editor .download-options-card {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  .stampmaker-online-stamp-editor .download-options-grid {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .download-option-btn {
    min-height: 0;
  }

  .stampmaker-online-stamp-editor .credit-topup-grid {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .coupon-redeem-row {
    grid-template-columns: 1fr;
  }
}

.stampmaker-online-stamp-editor .svg-image-picker-card {
  width: min(1480px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: min(900px, calc(100vh - 24px));
  min-height: 0;
  max-height: calc(100vh - 24px);
  gap: 8px;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: 18px;
  overflow: hidden;
  --svg-image-grid-columns: 6;
}

.stampmaker-online-stamp-editor .svg-image-picker-card .modal-title {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.stampmaker-online-stamp-editor .svg-image-picker-list,
.stampmaker-online-stamp-editor .svg-image-picker-card .modal-cancel-btn {
  grid-column: 1 / -1;
}

.stampmaker-online-stamp-editor .svg-image-picker-card .modal-cancel-btn {
  justify-self: end;
}

.stampmaker-online-stamp-editor .svg-image-picker-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.45fr) minmax(138px, 0.2fr);
  gap: 8px;
  align-items: end;
}

.stampmaker-online-stamp-editor .svg-image-search,
.stampmaker-online-stamp-editor .svg-image-category,
.stampmaker-online-stamp-editor .svg-image-grid-control,
.stampmaker-online-stamp-editor .svg-image-local-upload {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stampmaker-online-stamp-editor .svg-image-search input,
.stampmaker-online-stamp-editor .svg-image-category select,
.stampmaker-online-stamp-editor .svg-image-local-upload input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  outline: none;
  padding: 0 12px;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stampmaker-online-stamp-editor .svg-image-grid-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.stampmaker-online-stamp-editor .svg-image-grid-btn {
  min-height: 36px;
  padding: 0 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(49, 94, 251, 0.18);
  color: var(--primary-strong);
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .svg-image-grid-btn.active {
  background: linear-gradient(180deg, #4471ff 0%, #315efb 100%);
  color: #ffffff;
  border-color: rgba(49, 94, 251, 0.52);
}

.stampmaker-online-stamp-editor .svg-image-search input:focus,
.stampmaker-online-stamp-editor .svg-image-category select:focus,
.stampmaker-online-stamp-editor .svg-image-local-upload input:focus {
  border-color: rgba(48, 91, 229, 0.52);
  box-shadow: 0 0 0 4px rgba(48, 91, 229, 0.12);
}

.stampmaker-online-stamp-editor .svg-image-local-upload {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px dashed rgba(49, 94, 251, 0.28);
  border-radius: 15px;
  background: rgba(239, 246, 255, 0.72);
}

.stampmaker-online-stamp-editor .svg-image-local-upload small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.stampmaker-online-stamp-editor .svg-image-picker-list {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  -webkit-overflow-scrolling: touch;
}

.stampmaker-online-stamp-editor .svg-image-picker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(49, 94, 251, 0.12);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.78);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .svg-image-picker-summary small {
  color: var(--muted);
  font-weight: 800;
}

.stampmaker-online-stamp-editor .svg-image-choice-grid {
  display: grid;
  grid-template-columns: repeat(var(--svg-image-grid-columns, 6), minmax(0, 1fr));
  gap: 7px;
}

.stampmaker-online-stamp-editor .svg-image-choice {
  display: grid;
  gap: 0;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(49, 94, 251, 0.18);
  color: var(--primary-strong);
  box-shadow: none;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.stampmaker-online-stamp-editor .svg-image-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.stampmaker-online-stamp-editor .svg-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.stampmaker-online-stamp-editor .svg-image-choice strong,
.stampmaker-online-stamp-editor .svg-image-choice small,
.stampmaker-online-stamp-editor .svg-image-picker-empty {
  font-size: 0.68rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stampmaker-online-stamp-editor .svg-image-choice strong {
  display: none;
}

.stampmaker-online-stamp-editor .svg-image-choice small {
  display: none;
}

.stampmaker-online-stamp-editor .svg-image-picker-empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  text-align: center;
}

.stampmaker-online-stamp-editor .svg-image-load-more {
  position: sticky;
  bottom: 0;
  z-index: 1;
  width: 100%;
  margin-top: 10px;
  min-height: 38px;
  border-radius: 13px;
  font-weight: 800;
}

.stampmaker-online-stamp-editor .text-style-toolbar {
  display: grid;
  grid-template-columns: minmax(76px, 90px) repeat(6, minmax(34px, 1fr)) 42px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.text-style-toolbar select,
.stampmaker-online-stamp-editor .text-style-toolbar input[type="number"] {
  height: 30px;
  padding: 3px 5px;
  font-size: 0.78rem;
}

.stampmaker-online-stamp-editor .text-style-toolbar input[type="number"] {
  width: 100%;
  min-width: 76px;
}

.stampmaker-online-stamp-editor .text-style-toolbar .compatible-font-select {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  font-weight: 700;
}

.stampmaker-online-stamp-editor .text-style-toolbar button {
  min-height: 28px;
  padding: 0;
  font-weight: 800;
  font-size: 0.76rem;
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.stampmaker-online-stamp-editor .text-style-toolbar button.active {
  background: linear-gradient(180deg, #315efb 0%, #234ce0 100%);
  color: #fff;
  border-color: rgba(49, 94, 251, 0.34);
}

.stampmaker-online-stamp-editor .text-style-toolbar .italic-toggle-btn {
  font-style: italic;
}

.stampmaker-online-stamp-editor .text-style-toolbar input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
}

.stampmaker-online-stamp-editor .smart-text-fit-btn {
  min-height: 34px;
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, #eef5ff 0%, #dfeaff 100%);
  color: var(--primary-strong);
  font-weight: 900;
}

.stampmaker-online-stamp-editor .text-style-toolbar .smart-text-fit-btn {
  width: auto;
  min-height: 28px;
  margin: 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.stampmaker-online-stamp-editor .text-style-toolbar .smart-text-fit-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .quick-actions {
  display: grid;
  gap: 0;
  margin-bottom: 6px;
}

.stampmaker-online-stamp-editor .quick-actions-label {
  display: none;
}

.stampmaker-online-stamp-editor .quick-actions-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.stampmaker-online-stamp-editor .quick-actions-row button {
  min-height: 28px;
  padding: 2px 4px;
  font-size: 0.71rem;
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.stampmaker-online-stamp-editor .modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 10000;
}

.stampmaker-online-stamp-editor .modal.hidden {
  display: none;
}

.stampmaker-online-stamp-editor .modal-card {
  width: min(800px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.24);
  display: grid;
  gap: 16px;
  position: relative;
}

.stampmaker-online-stamp-editor .modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  font-size: 1.2rem;
  line-height: 1;
}

.stampmaker-online-stamp-editor .modal-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
}

.stampmaker-online-stamp-editor .category-modal-card {
  width: min(440px, calc(100vw - 32px));
}

.stampmaker-online-stamp-editor .category-modal-field {
  display: grid;
  gap: 8px;
}

.stampmaker-online-stamp-editor .category-modal-field input,
.stampmaker-online-stamp-editor .category-modal-field select {
  width: 100%;
}

.stampmaker-online-stamp-editor .category-robot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
}

.stampmaker-online-stamp-editor .category-robot-question {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: var(--text);
  font-weight: 800;
}

.stampmaker-online-stamp-editor .category-robot-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.stampmaker-online-stamp-editor .category-robot-help.error {
  color: #dc2626;
}

.stampmaker-online-stamp-editor .category-robot-help.success {
  color: #15803d;
}

.stampmaker-online-stamp-editor .modal-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stampmaker-online-stamp-editor .modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stampmaker-online-stamp-editor .shape-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stampmaker-online-stamp-editor .shape-choice-btn {
  min-height: 74px;
  border-radius: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: var(--primary-strong);
  border-color: rgba(49, 94, 251, 0.14);
}

.stampmaker-online-stamp-editor .shape-choice-btn svg {
  width: 28px;
  height: 28px;
}

.stampmaker-online-stamp-editor .shape-choice-btn svg circle,
.stampmaker-online-stamp-editor .shape-choice-btn svg rect,
.stampmaker-online-stamp-editor .shape-choice-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stampmaker-online-stamp-editor .shape-choice-btn span {
  font-size: 0.84rem;
  line-height: 1.1;
}

.stampmaker-online-stamp-editor .modal-cancel-btn {
  justify-self: end;
  min-width: 96px;
}

.stampmaker-online-stamp-editor .left-panel-overlay {
  display: none;
}

@media (max-width: 980px) {
  .stampmaker-online-stamp-editor .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .stampmaker-online-stamp-editor .toolbar-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .stampmaker-online-stamp-editor .toolbar-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 220px;
  }

  .stampmaker-online-stamp-editor .toolbar-search input {
    min-width: 0;
    width: 100%;
  }

  .stampmaker-online-stamp-editor .toolbar,
  .stampmaker-online-stamp-editor .templates-content,
  .stampmaker-online-stamp-editor .editor-grid {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .left-panel,
  .stampmaker-online-stamp-editor .right-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .stampmaker-online-stamp-editor .center-panel {
    position: static;
    top: auto;
  }

  .stampmaker-online-stamp-editor .templates-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .stampmaker-online-stamp-editor .shape-picker-grid {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .editor-category-select,
  .stampmaker-online-stamp-editor #template-owner-select,
  .stampmaker-online-stamp-editor #editor-owner-select,
  .stampmaker-online-stamp-editor #save-category-select {
    min-width: 0;
    max-width: none;
    flex: 1 1 180px;
  }

  .stampmaker-online-stamp-editor .bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .stampmaker-online-stamp-editor .download-actions {
    justify-content: stretch;
  }
}

@media (max-width: 1000px) {
  .stampmaker-online-stamp-editor {
    background:
      radial-gradient(circle at top left, rgba(49, 94, 251, 0.09), transparent 34%),
      linear-gradient(180deg, #eef3ff 0%, #e7eefc 100%);
  }

  .stampmaker-online-stamp-editor .app-shell {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    backdrop-filter: none;
  }

  .stampmaker-online-stamp-editor .user-strip {
    padding: 10px 12px 0;
  }

  .stampmaker-online-stamp-editor .current-user-label {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
  }

  .stampmaker-online-stamp-editor .current-user-wallet {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
  }

  .stampmaker-online-stamp-editor .wallet-topup-inline {
    width: 100%;
    justify-content: center;
  }

  .stampmaker-online-stamp-editor .topbar,
  .stampmaker-online-stamp-editor .toolbar,
  .stampmaker-online-stamp-editor .template-bottom,
  .stampmaker-online-stamp-editor .bottom-bar {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 18px;
  }

  .stampmaker-online-stamp-editor .topbar {
    gap: 12px;
    padding: 14px;
  }

  .stampmaker-online-stamp-editor .brand {
    font-size: 1.28rem;
    text-align: center;
  }

  .stampmaker-online-stamp-editor .editor-brand {
    font-size: 1.06rem;
  }

  .stampmaker-online-stamp-editor .toolbar-actions {
    gap: 10px;
  }

  .stampmaker-online-stamp-editor .toolbar-actions > * {
    flex: 1 1 100%;
  }

  .stampmaker-online-stamp-editor .toolbar-actions > .draft-status {
    flex: 1 1 auto;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-toolbar-actions > .draft-status {
    flex: 0 0 auto;
    justify-content: center;
    max-width: min(74vw, 220px);
    min-height: 34px;
    margin-inline: auto;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-toolbar-actions > .editor-save-row {
    flex: 1 1 100%;
  }

  .stampmaker-online-stamp-editor .toolbar-search,
  .stampmaker-online-stamp-editor .toolbar-search input,
  .stampmaker-online-stamp-editor #template-owner-select,
  .stampmaker-online-stamp-editor #editor-owner-select,
  .stampmaker-online-stamp-editor #save-category-select,
  .stampmaker-online-stamp-editor .editor-category-select,
  .stampmaker-online-stamp-editor #new-template-btn,
  .stampmaker-online-stamp-editor #go-edit-btn,
  .stampmaker-online-stamp-editor #back-to-templates-btn,
  .stampmaker-online-stamp-editor #save-template-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row {
    display: grid;
    grid-template-columns: minmax(0, min(74vw, 230px));
    justify-content: center;
    justify-items: center;
    align-items: center;
    width: 100%;
    gap: 7px;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #back-to-templates-btn,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-template-btn,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-category-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row .editor-category-select {
    width: auto;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.72rem;
    line-height: normal;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #back-to-templates-btn {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    justify-content: center;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: none;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-category-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row .editor-category-select {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    max-width: none;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-template-btn {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select.hidden + #save-category-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select.hidden + .editor-category-select {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    width: 100%;
  }

  .stampmaker-online-stamp-editor .toolbar-search input,
  .stampmaker-online-stamp-editor #template-owner-select,
  .stampmaker-online-stamp-editor #editor-owner-select,
  .stampmaker-online-stamp-editor #save-category-select,
  .stampmaker-online-stamp-editor .editor-category-select,
  .stampmaker-online-stamp-editor .elements-trigger-btn,
  .stampmaker-online-stamp-editor .green-btn,
  .stampmaker-online-stamp-editor .small,
  .stampmaker-online-stamp-editor .topbar-ghost-btn,
  .stampmaker-online-stamp-editor .topbar-save-btn {
    min-height: 46px;
    height: 46px;
  }

  .stampmaker-online-stamp-editor .history-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #back-to-templates-btn,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-template-btn,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-category-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row .editor-category-select {
    min-height: 40px;
    height: 40px;
    line-height: normal;
  }

  .stampmaker-online-stamp-editor .toolbar {
    gap: 10px;
    padding: 12px;
  }

  .stampmaker-online-stamp-editor #template-page .toolbar {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .left-icons,
  .stampmaker-online-stamp-editor .center-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .stampmaker-online-stamp-editor .snap-tools {
    justify-content: center;
    flex-wrap: wrap;
  }

  .stampmaker-online-stamp-editor .snap-tool-btn {
    flex: 1 1 120px;
  }

  .stampmaker-online-stamp-editor .tool-icon {
    width: 48px;
    height: 48px;
  }

  .stampmaker-online-stamp-editor .templates-content,
  .stampmaker-online-stamp-editor .editor-grid {
    padding: 10px;
    gap: 10px;
  }

  .stampmaker-online-stamp-editor .templates-content {
    grid-template-columns: 1fr;
    --template-list-height: clamp(360px, calc(100vh - 320px), 620px);
    --template-list-height: clamp(360px, calc(100dvh - 320px), 620px);
  }

  .stampmaker-online-stamp-editor .mobile-template-category-picker {
    display: grid;
    order: 1;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow-md);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .stampmaker-online-stamp-editor .mobile-template-category-picker select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 800;
    text-transform: none;
  }

  .stampmaker-online-stamp-editor .recent-projects-panel {
    margin: 10px;
    border-radius: 18px;
  }

  .stampmaker-online-stamp-editor .recent-projects-list {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .recent-projects-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stampmaker-online-stamp-editor .left-category-list {
    display: none;
  }

  .stampmaker-online-stamp-editor .template-list-scroll {
    order: 2;
  }

  .stampmaker-online-stamp-editor .templates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: none;
  }

  .stampmaker-online-stamp-editor .template-item {
    border-radius: 16px;
    padding: 8px;
  }

  .stampmaker-online-stamp-editor .template-item .thumb {
    border-radius: 12px;
  }

  .stampmaker-online-stamp-editor .editor-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(170px, 0.92fr);
    grid-template-areas:
      "preview controls";
    align-items: start;
  }

  .stampmaker-online-stamp-editor .center-panel {
    grid-area: preview;
    order: 1;
    position: sticky;
    top: 8px;
    z-index: 6;
    max-height: calc(100vh - 16px);
    min-height: 0;
  }

  .stampmaker-online-stamp-editor .left-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, calc(100vw - 20px));
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: hidden;
    z-index: 42;
    border-radius: 24px 0 0 24px;
    transform: translateX(108%);
    transition: transform 180ms ease;
  }

  .stampmaker-online-stamp-editor #editor-page.show-elements-panel .left-panel {
    transform: translateX(0);
  }

  .stampmaker-online-stamp-editor .right-panel {
    grid-area: controls;
    order: 2;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: calc(100dvh - 132px);
    min-height: min(520px, calc(100dvh - 132px));
    max-height: calc(100dvh - 132px);
    overflow: hidden;
    z-index: 5;
  }

  .stampmaker-online-stamp-editor .elements-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 12px;
    bottom: 16px;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(49, 94, 251, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    color: transparent;
    font-size: 0;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    z-index: 96;
    flex: 0 0 auto;
  }

  .stampmaker-online-stamp-editor .elements-trigger-btn::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #2f5cf6;
    box-shadow:
      0 -5px 0 #2f5cf6,
      0 5px 0 #2f5cf6;
  }

  .stampmaker-online-stamp-editor #editor-page.show-elements-panel .elements-trigger-btn {
    background: linear-gradient(180deg, #2f5cf6 0%, #1e40d8 100%);
    border-color: rgba(47, 92, 246, 0.34);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.3);
  }

  .stampmaker-online-stamp-editor #editor-page.show-elements-panel .elements-trigger-btn::before {
    background: #fff;
    box-shadow:
      0 -5px 0 #fff,
      0 5px 0 #fff;
  }

  .stampmaker-online-stamp-editor .left-panel-overlay {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(2px);
    z-index: 41;
  }

  .stampmaker-online-stamp-editor .editor-topbar {
    position: relative;
    z-index: 88;
  }

  .stampmaker-online-stamp-editor #editor-page.show-elements-panel .editor-topbar {
    z-index: 88;
  }

  .stampmaker-online-stamp-editor #editor-page:not(.show-elements-panel) .left-panel-overlay {
    display: none;
  }

  .stampmaker-online-stamp-editor .preview-zoom-bar {
    justify-content: space-between;
  }

  .stampmaker-online-stamp-editor .preview-wrap,
  .stampmaker-online-stamp-editor .lightburn-preview-wrap {
    min-height: 100%;
    max-height: none;
    padding: 6px;
  }

  .stampmaker-online-stamp-editor #lightburn-preview-svg {
    width: 100%;
    height: auto;
    max-width: min(46vw, 270px);
    max-height: none;
  }

  .stampmaker-online-stamp-editor .filter-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 0;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    gap: 4px;
    padding: 8px;
  }

  .stampmaker-online-stamp-editor .filter-tabs button {
    min-height: 34px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .stampmaker-online-stamp-editor .elements-list {
    height: 100%;
    max-height: none;
    padding: 4px 6px 6px;
    overflow-y: auto;
    overflow-x: visible;
    gap: 6px;
  }

  .stampmaker-online-stamp-editor .elements-list li {
    align-items: flex-start;
    padding: 8px 8px 8px 10px;
    border-radius: 12px;
    gap: 6px;
  }

  .stampmaker-online-stamp-editor .element-row-title {
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .stampmaker-online-stamp-editor .element-row-right {
    align-items: flex-start;
  }

  .stampmaker-online-stamp-editor .element-row-inline-actions {
    gap: 4px;
  }

  .stampmaker-online-stamp-editor .element-row-inline-actions button {
    padding: 4px 6px;
    font-size: 0.68rem;
  }

  .stampmaker-online-stamp-editor .element-row-actions summary {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .stampmaker-online-stamp-editor .element-row-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: 18px;
    flex-wrap: wrap;
    width: min(260px, calc(100vw - 28px));
    justify-content: stretch;
    white-space: normal;
    padding: 10px;
    gap: 8px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    z-index: 20;
  }

  .stampmaker-online-stamp-editor .element-row-menu button {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
    font-size: 0.8rem;
  }

  .stampmaker-online-stamp-editor .selected-title {
    min-height: 0;
    font-size: 0.96rem;
  }

  .stampmaker-online-stamp-editor .controls {
    min-height: 0;
    padding: 10px;
    height: 100%;
    max-height: 100%;
    overflow: auto;
  }

  .stampmaker-online-stamp-editor .text-style-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
  }

  .stampmaker-online-stamp-editor .text-style-toolbar select {
    grid-column: 1 / -1;
    min-height: 40px;
    border-radius: 12px;
  }

  .stampmaker-online-stamp-editor .text-style-toolbar input[type="number"] {
    min-height: 40px;
    border-radius: 12px;
  }

  .stampmaker-online-stamp-editor .text-style-toolbar input[type="color"] {
    width: 100%;
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  .stampmaker-online-stamp-editor .text-style-toolbar button {
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .stampmaker-online-stamp-editor .text-style-toolbar > :nth-child(2),
  .stampmaker-online-stamp-editor .text-style-toolbar > :nth-child(7) {
    grid-column: span 1;
  }

  .stampmaker-online-stamp-editor .slider-row {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .slider-control input[type="range"] {
    min-height: 36px;
  }

  .stampmaker-online-stamp-editor .quick-actions-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stampmaker-online-stamp-editor .plate-size {
    width: 100%;
    text-align: center;
  }

  .stampmaker-online-stamp-editor .download-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .stampmaker-online-stamp-editor .download-actions button,
  .stampmaker-online-stamp-editor .download-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .stampmaker-online-stamp-editor .shape-picker-grid {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .svg-image-choice-grid {
    gap: 6px;
  }

  .stampmaker-online-stamp-editor .svg-image-picker-card {
    width: min(720px, calc(100vw - 10px));
    max-width: calc(100vw - 10px);
    height: calc(100vh - 10px);
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 7px;
  }

  .stampmaker-online-stamp-editor .svg-image-picker-controls {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor .svg-image-grid-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stampmaker-online-stamp-editor .svg-image-picker-list {
    max-height: none;
  }

  .stampmaker-online-stamp-editor .svg-image-choice {
    padding: 5px;
    border-radius: 11px;
  }

  .stampmaker-online-stamp-editor .svg-image-choice strong {
    display: none;
  }

  .stampmaker-online-stamp-editor .svg-image-choice small {
    display: none;
  }

  .stampmaker-online-stamp-editor .svg-image-picker-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .stampmaker-online-stamp-editor .svg-image-thumb {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .stampmaker-online-stamp-editor .shape-choice-btn {
    min-height: 86px;
  }

  .stampmaker-online-stamp-editor .editor-toolbar-actions {
    padding-right: 74px;
  }
}

@media (max-width: 1000px) and (orientation: landscape) {
  .stampmaker-online-stamp-editor .app-shell {
    min-height: 100vh;
  }

  .stampmaker-online-stamp-editor .editor-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
    grid-template-areas:
      "preview controls";
    align-items: start;
  }

  .stampmaker-online-stamp-editor .center-panel {
    position: sticky;
    top: 8px;
    max-height: calc(100vh - 16px);
  }

  .stampmaker-online-stamp-editor .left-panel {
    width: min(320px, calc(100vw - 28px));
  }

  .stampmaker-online-stamp-editor .right-panel {
    height: calc(100dvh - 108px);
    min-height: min(440px, calc(100dvh - 108px));
    max-height: calc(100dvh - 108px);
  }

  .stampmaker-online-stamp-editor .controls {
    height: 100%;
    max-height: 100%;
  }

  .stampmaker-online-stamp-editor .preview-wrap,
  .stampmaker-online-stamp-editor .lightburn-preview-wrap {
    min-height: 100%;
  }

  .stampmaker-online-stamp-editor #lightburn-preview-svg {
    max-width: min(38vw, 280px);
  }
}

@media (min-width: 1001px) and (max-width: 1180px) {
  .stampmaker-online-stamp-editor .app-shell {
    width: min(100%, 1000px);
  }

  .stampmaker-online-stamp-editor .toolbar {
    grid-template-columns: 160px 1fr 160px;
  }

  .stampmaker-online-stamp-editor .templates-content {
    grid-template-columns: 210px 1fr;
  }

  .stampmaker-online-stamp-editor .templates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stampmaker-online-stamp-editor .editor-grid {
    grid-template-columns: 280px minmax(0, 1fr) 300px;
  }

  .stampmaker-online-stamp-editor .left-panel {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }

  .stampmaker-online-stamp-editor .right-panel {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }

  .stampmaker-online-stamp-editor .icon-actions .toolbar-action-btn {
    width: 68px;
    min-width: 68px;
    height: 60px;
    min-height: 60px;
    font-size: 0.65rem;
  }

  .stampmaker-online-stamp-editor .preview-wrap,
  .stampmaker-online-stamp-editor .lightburn-preview-wrap {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .stampmaker-online-stamp-editor .topbar,
  .stampmaker-online-stamp-editor .toolbar,
  .stampmaker-online-stamp-editor .template-bottom,
  .stampmaker-online-stamp-editor .bottom-bar {
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 16px;
  }

  .stampmaker-online-stamp-editor .brand {
    font-size: 1.12rem;
  }

  .stampmaker-online-stamp-editor .templates-grid {
    grid-template-columns: 1fr !important;
  }

  .stampmaker-online-stamp-editor .tool-icon {
    width: 44px;
    height: 44px;
  }

  .stampmaker-online-stamp-editor .editor-grid {
    grid-template-columns: minmax(0, 1fr) 140px;
  }

  .stampmaker-online-stamp-editor .left-panel {
    width: min(280px, calc(100vw - 18px));
  }

  .stampmaker-online-stamp-editor .icon-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stampmaker-online-stamp-editor .snap-tool-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }

  .stampmaker-online-stamp-editor .icon-actions .toolbar-action-btn {
    width: calc(50% - 4px);
    min-width: calc(50% - 4px);
    height: 68px;
  }

  .stampmaker-online-stamp-editor .preview-wrap,
  .stampmaker-online-stamp-editor .lightburn-preview-wrap {
    min-height: 190px;
  }

  .stampmaker-online-stamp-editor #lightburn-preview-svg {
    max-width: min(48vw, 220px);
  }

  .stampmaker-online-stamp-editor .quick-actions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stampmaker-online-stamp-editor .element-row-menu {
    width: min(220px, 78vw);
  }

  .stampmaker-online-stamp-editor .text-style-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .stampmaker-online-stamp-editor .text-style-toolbar button,
  .stampmaker-online-stamp-editor .text-style-toolbar input[type="number"],
  .stampmaker-online-stamp-editor .text-style-toolbar input[type="color"],
  .stampmaker-online-stamp-editor .text-style-toolbar select {
    min-height: 38px;
    height: 38px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1000px) and (orientation: landscape) {
  .stampmaker-online-stamp-editor .editor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.92fr);
    align-items: stretch;
  }

  .stampmaker-online-stamp-editor .right-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: calc(100dvh - 24px);
    min-height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    align-self: stretch;
  }

  .stampmaker-online-stamp-editor .controls {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
}

@media (max-width: 1000px) {
  .stampmaker-online-stamp-editor #editor-page {
    min-height: 100dvh;
    padding-bottom: calc(clamp(230px, 42dvh, 390px) + env(safe-area-inset-bottom, 0px) + 22px);
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    overflow: visible;
    margin: 8px 10px 0;
    padding: 8px;
    position: relative;
    z-index: 24;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar > .icon-actions {
    grid-column: 1;
    grid-row: 1;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar > .mobile-history-slot {
    display: flex;
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar > .snap-tools {
    grid-column: 1;
    grid-row: 2;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar::-webkit-scrollbar {
    display: none;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions,
  .stampmaker-online-stamp-editor #editor-page .center-icons,
  .stampmaker-online-stamp-editor #editor-page .mobile-history-slot,
  .stampmaker-online-stamp-editor #editor-page .snap-tools {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    color: var(--text);
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .stampmaker-online-stamp-editor #editor-page .snap-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .stampmaker-online-stamp-editor #editor-page .mobile-history-slot .history-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .stampmaker-online-stamp-editor #editor-page .mobile-history-slot .history-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-action-btn,
  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn {
    width: auto;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding: 5px 4px;
    border-radius: 14px;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: none;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-action-primary,
  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn.active {
    color: var(--primary-strong);
    background: linear-gradient(180deg, #eef5ff 0%, #dce8ff 100%);
    border-color: rgba(49, 94, 251, 0.28);
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-icon,
  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn svg {
    width: 18px;
    height: 18px;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-label,
  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn span {
    font-size: 0.58rem;
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-icon svg path,
  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-icon svg circle,
  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-icon svg rect,
  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn svg path,
  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn svg rect,
  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn svg circle {
    stroke: currentColor;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "preview" !important;
    align-items: start;
    min-height: 0;
    padding: 8px 10px 0;
  }

  .stampmaker-online-stamp-editor #editor-page .center-panel {
    grid-area: preview;
    order: 1;
    position: sticky;
    top: 6px;
    z-index: 18;
    width: 100%;
    max-height: none;
    min-height: 0;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  }

  .stampmaker-online-stamp-editor #editor-page .preview-zoom-bar {
    min-height: 34px;
    margin-bottom: 4px;
  }

  .stampmaker-online-stamp-editor #editor-page .preview-zoom-btn,
  .stampmaker-online-stamp-editor #editor-page .preview-zoom-value,
  .stampmaker-online-stamp-editor #editor-page .preview-canvas-lock-btn {
    height: 34px;
    min-height: 34px;
    border-radius: 12px;
  }

  .stampmaker-online-stamp-editor #editor-page .preview-canvas-lock-btn {
    min-width: 50px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .stampmaker-online-stamp-editor #editor-page .preview-wrap,
  .stampmaker-online-stamp-editor #editor-page .lightburn-preview-wrap {
    min-height: clamp(260px, 50dvh, 500px);
    max-height: clamp(260px, 50dvh, 500px);
    overflow: auto;
  }

  .stampmaker-online-stamp-editor #editor-page #lightburn-preview-svg {
    width: auto;
    height: auto;
    max-width: min(98vw, 760px);
    max-height: calc(clamp(260px, 50dvh, 500px) - 12px);
  }

  .stampmaker-online-stamp-editor #editor-page .right-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    width: auto;
    min-width: 0;
    max-width: none;
    height: clamp(230px, 42dvh, 390px);
    min-height: clamp(230px, 42dvh, 390px);
    max-height: clamp(230px, 42dvh, 390px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: visible;
    border-radius: 24px 24px 18px 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
    box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
    transition:
      height 180ms ease,
      min-height 180ms ease,
      max-height 180ms ease,
      box-shadow 180ms ease;
  }

  .stampmaker-online-stamp-editor #editor-page .right-panel::before {
    display: none;
  }

  .stampmaker-online-stamp-editor #editor-page .right-panel-toggle-btn {
    position: absolute;
    left: 10px;
    top: 8px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(49, 94, 251, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    color: #2f5cf6;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    cursor: pointer;
  }

  .stampmaker-online-stamp-editor #editor-page .right-panel-toggle-btn::before {
    content: "";
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(2px) rotate(-135deg);
    transition: transform 160ms ease;
  }

  .stampmaker-online-stamp-editor #editor-page.mobile-sheet-expanded .right-panel-toggle-btn::before {
    transform: translateY(-2px) rotate(45deg);
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .right-panel-toggle-btn {
    display: none;
  }

  .stampmaker-online-stamp-editor #editor-page .selected-title {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 14px 10px 56px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0;
    background: transparent;
    font-size: 0.9rem;
    cursor: ns-resize;
    touch-action: none;
  }

  .stampmaker-online-stamp-editor #editor-page .controls {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: auto;
    padding: 10px 12px 16px;
    gap: 8px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    grid-row: 2;
  }

  .stampmaker-online-stamp-editor #editor-page .controls label,
  .stampmaker-online-stamp-editor #editor-page .slider-control {
    font-size: 0.76rem;
  }

  .stampmaker-online-stamp-editor #editor-page .controls textarea {
    min-height: 64px;
  }

  .stampmaker-online-stamp-editor #editor-page .slider-control {
    padding: 7px 8px;
    border-radius: 14px;
  }

  .stampmaker-online-stamp-editor #editor-page .slider-row {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .stampmaker-online-stamp-editor #editor-page .slider-row input[type="number"] {
    min-height: 34px;
    height: 34px;
  }

  .stampmaker-online-stamp-editor #editor-page .slider-control input[type="range"] {
    min-height: 30px;
  }

  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar {
    display: grid;
    grid-template-columns: minmax(76px, 90px) repeat(6, minmax(34px, 1fr)) 42px;
    align-items: center;
    gap: 6px;
    padding: 8px;
    overflow: visible;
    border-radius: 16px;
  }

  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar select {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar button,
  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar input[type="number"],
  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar input[type="color"],
  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar select {
    min-height: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar input[type="number"] {
    width: 100%;
    min-width: 76px;
  }

  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar button,
  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar input[type="color"] {
    width: 100%;
    min-width: 0;
  }

  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar .smart-text-fit-btn {
    width: 100%;
    min-width: 0;
  }

  .stampmaker-online-stamp-editor #editor-page .quick-actions-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .stampmaker-online-stamp-editor #editor-page .bottom-bar {
    margin-bottom: calc(clamp(230px, 42dvh, 390px) + env(safe-area-inset-bottom, 0px) + 18px);
  }

  .stampmaker-online-stamp-editor #editor-page.mobile-sheet-dragging .right-panel {
    transition: none;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 18px);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .right-panel {
    height: 82px;
    min-height: 82px;
    max-height: 82px;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .selected-title {
    justify-content: center;
    padding-bottom: 12px;
    text-align: center;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .controls {
    display: none;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .bottom-bar {
    margin-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded {
    padding-bottom: calc(clamp(340px, 72dvh, 640px) + env(safe-area-inset-bottom, 0px) + 18px);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .right-panel {
    height: clamp(340px, 72dvh, 640px);
    min-height: clamp(340px, 72dvh, 640px);
    max-height: clamp(340px, 72dvh, 640px);
    box-shadow: 0 -22px 58px rgba(15, 23, 42, 0.28);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .bottom-bar {
    margin-bottom: calc(clamp(340px, 72dvh, 640px) + env(safe-area-inset-bottom, 0px) + 18px);
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 18px);
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .right-panel {
    height: 78px;
    min-height: 78px;
    max-height: 78px;
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .selected-title {
    justify-content: center;
    padding-bottom: 12px;
    text-align: center;
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .controls {
    display: none;
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .bottom-bar {
    margin-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .stampmaker-online-stamp-editor #editor-page .elements-trigger-btn {
    bottom: calc(clamp(230px, 42dvh, 390px) + env(safe-area-inset-bottom, 0px) + 18px);
    z-index: 96;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .elements-trigger-btn {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .elements-trigger-btn {
    bottom: calc(clamp(340px, 72dvh, 640px) + env(safe-area-inset-bottom, 0px) + 18px);
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .elements-trigger-btn {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .stampmaker-online-stamp-editor #editor-page .left-panel {
    z-index: 112;
  }

  .stampmaker-online-stamp-editor #editor-page.show-elements-panel .left-panel {
    z-index: 112;
  }

  .stampmaker-online-stamp-editor #editor-page.show-elements-panel .elements-trigger-btn {
    z-index: 114;
  }

  .stampmaker-online-stamp-editor #editor-page .left-panel-overlay {
    z-index: 108;
  }
}

@media (max-width: 1000px) and (orientation: landscape) {
  .stampmaker-online-stamp-editor #editor-page {
    padding-bottom: calc(clamp(190px, 48dvh, 300px) + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page .topbar,
  .stampmaker-online-stamp-editor #editor-page .toolbar {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .stampmaker-online-stamp-editor #editor-page .center-panel {
    top: 4px;
  }

  .stampmaker-online-stamp-editor #editor-page .preview-wrap,
  .stampmaker-online-stamp-editor #editor-page .lightburn-preview-wrap {
    min-height: clamp(185px, 48dvh, 330px);
    max-height: clamp(185px, 48dvh, 330px);
  }

  .stampmaker-online-stamp-editor #editor-page #lightburn-preview-svg {
    max-height: calc(clamp(185px, 48dvh, 330px) - 12px);
  }

  .stampmaker-online-stamp-editor #editor-page .right-panel {
    height: clamp(190px, 48dvh, 300px);
    min-height: clamp(190px, 48dvh, 300px);
    max-height: clamp(190px, 48dvh, 300px);
  }

  .stampmaker-online-stamp-editor #editor-page .bottom-bar {
    margin-bottom: calc(clamp(190px, 48dvh, 300px) + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page .elements-trigger-btn {
    bottom: calc(clamp(190px, 48dvh, 300px) + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .right-panel {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .bottom-bar {
    margin-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .elements-trigger-btn {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded {
    padding-bottom: calc(clamp(240px, 70dvh, 420px) + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .right-panel {
    height: clamp(240px, 70dvh, 420px);
    min-height: clamp(240px, 70dvh, 420px);
    max-height: clamp(240px, 70dvh, 420px);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .bottom-bar {
    margin-bottom: calc(clamp(240px, 70dvh, 420px) + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .elements-trigger-btn {
    bottom: calc(clamp(240px, 70dvh, 420px) + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px) + 14px);
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .bottom-bar {
    margin-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .elements-trigger-btn {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 1000px) {
  .stampmaker-online-stamp-editor #editor-page {
    overflow-x: hidden;
    padding-bottom: 0 !important;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element {
    padding-bottom: calc(clamp(230px, 42dvh, 390px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded {
    padding-bottom: calc(clamp(340px, 72dvh, 640px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) {
    padding-bottom: 0 !important;
  }

  .stampmaker-online-stamp-editor #editor-page .bottom-bar,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .bottom-bar,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .bottom-bar,
  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .bottom-bar {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1000px) and (orientation: landscape) {
  .stampmaker-online-stamp-editor #editor-page.has-selected-element {
    padding-bottom: calc(clamp(190px, 48dvh, 300px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px) + 10px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded {
    padding-bottom: calc(clamp(240px, 70dvh, 420px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
  }
}

.stampmaker-online-stamp-editor .right-panel,
.stampmaker-online-stamp-editor .controls,
.stampmaker-online-stamp-editor .controls *,
.stampmaker-online-stamp-editor .text-style-toolbar,
.stampmaker-online-stamp-editor .quick-actions,
.stampmaker-online-stamp-editor .quick-actions-row {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.stampmaker-online-stamp-editor .controls {
  overflow-x: hidden;
}

.stampmaker-online-stamp-editor .controls textarea,
.stampmaker-online-stamp-editor .controls select,
.stampmaker-online-stamp-editor .controls input {
  max-width: 100%;
}

.stampmaker-online-stamp-editor .right-panel textarea {
  width: 100%;
  resize: vertical;
}

.stampmaker-online-stamp-editor .text-style-toolbar,
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar {
  width: 100%;
  grid-template-columns: minmax(68px, 1.25fr) repeat(3, minmax(42px, 1fr)) !important;
  overflow: hidden;
}

.stampmaker-online-stamp-editor .text-style-toolbar .compatible-font-select,
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar .compatible-font-select,
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar select {
  grid-column: 1 / -1;
  width: 100%;
}

.stampmaker-online-stamp-editor .text-style-toolbar input[type="number"],
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar input[type="number"] {
  width: 100%;
  min-width: 0;
}

.stampmaker-online-stamp-editor .text-style-toolbar button,
.stampmaker-online-stamp-editor .text-style-toolbar input[type="color"],
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar button,
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar input[type="color"] {
  width: 100%;
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.stampmaker-online-stamp-editor .quick-actions-row,
.stampmaker-online-stamp-editor #editor-page .quick-actions-row {
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)) !important;
}

.stampmaker-online-stamp-editor .quick-actions-row button,
.stampmaker-online-stamp-editor #editor-page .quick-actions-row button {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stampmaker-online-stamp-editor .mobile-control-elements {
  display: grid;
  gap: 10px;
}

.stampmaker-online-stamp-editor .mobile-control-elements-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stampmaker-online-stamp-editor .mobile-control-elements-list {
  display: grid;
  gap: 8px;
}

.stampmaker-online-stamp-editor .mobile-control-element-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(49, 94, 251, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.stampmaker-online-stamp-editor .mobile-control-element-btn.hidden-element {
  opacity: 0.68;
}

.stampmaker-online-stamp-editor .mobile-control-element-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.stampmaker-online-stamp-editor .mobile-control-element-badges {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stampmaker-online-stamp-editor .mobile-control-element-badges span {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(49, 94, 251, 0.1);
  color: var(--primary-strong);
  font-size: 0.68rem;
  font-weight: 900;
}

.stampmaker-online-stamp-editor .text-style-toolbar,
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar {
  grid-template-columns: 72px repeat(4, minmax(38px, 1fr)) 44px !important;
  grid-auto-flow: row;
  overflow: visible;
}

.stampmaker-online-stamp-editor .text-style-toolbar .compatible-font-select,
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar .compatible-font-select,
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar select {
  grid-column: 1 / -1 !important;
  min-height: 38px;
  height: 38px;
  display: block;
}

.stampmaker-online-stamp-editor .text-style-toolbar input[type="number"],
.stampmaker-online-stamp-editor #editor-page .text-style-toolbar input[type="number"] {
  min-width: 0 !important;
}

.stampmaker-online-stamp-editor #editor-page .preview-actions-bar .plate-size,
.stampmaker-online-stamp-editor #editor-page .preview-actions-bar .download-btn {
  min-height: 38px;
}

@media (max-width: 1000px) {
  .stampmaker-online-stamp-editor #editor-page {
    --mobile-control-panel-height: 400px;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    width: 100%;
    order: 2;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .plate-size {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    text-align: left;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .plate-frame-toggle {
    width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .download-btn {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .stampmaker-online-stamp-editor #editor-page .snap-tools {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .stampmaker-online-stamp-editor #editor-page .snap-tools .toolbar-preview-actions {
    grid-column: 1 / -1;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .plate-size,
  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .plate-frame-toggle,
  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .download-btn {
    height: 48px;
    min-height: 48px;
    font-size: 0.66rem;
  }

  .stampmaker-online-stamp-editor #editor-page .bottom-bar {
    display: none !important;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded,
  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) {
    padding-bottom: calc(var(--mobile-control-panel-height) + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element .right-panel,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .right-panel,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .right-panel,
  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .right-panel {
    display: grid !important;
    height: var(--mobile-control-panel-height) !important;
    min-height: var(--mobile-control-panel-height) !important;
    max-height: var(--mobile-control-panel-height) !important;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .stampmaker-online-stamp-editor #editor-page .right-panel-toggle-btn {
    display: none !important;
  }

  .stampmaker-online-stamp-editor #editor-page .selected-title,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .selected-title,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .selected-title {
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 14px;
    cursor: default;
    touch-action: auto;
    text-align: left;
  }

  .stampmaker-online-stamp-editor #editor-page.has-selected-element .controls,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .controls,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .controls,
  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .controls {
    display: grid !important;
  }

  .stampmaker-online-stamp-editor #editor-page .elements-trigger-btn,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-collapsed .elements-trigger-btn,
  .stampmaker-online-stamp-editor #editor-page.has-selected-element.mobile-sheet-expanded .elements-trigger-btn {
    bottom: calc(var(--mobile-control-panel-height) + env(safe-area-inset-bottom, 0px) + 18px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page:not(.has-selected-element) .elements-trigger-btn {
    bottom: calc(var(--mobile-control-panel-height) + env(safe-area-inset-bottom, 0px) + 18px) !important;
  }

  .stampmaker-online-stamp-editor #editor-page .text-style-toolbar,
  .stampmaker-online-stamp-editor .text-style-toolbar {
    grid-template-columns: 68px repeat(3, minmax(42px, 1fr)) !important;
    gap: 6px;
    overflow: visible;
  }

  .stampmaker-online-stamp-editor .download-options-card {
    width: min(760px, calc(100vw - 18px));
    max-height: calc(100dvh - 18px);
    padding: 46px 14px 14px;
  }

  .stampmaker-online-stamp-editor .download-options-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }

  .stampmaker-online-stamp-editor .download-option-btn {
    min-height: 126px;
    padding: 10px;
  }
}

.stampmaker-online-stamp-editor .slider-row,
.stampmaker-online-stamp-editor #editor-page .slider-row {
  grid-template-columns: minmax(0, 1fr) minmax(76px, 84px);
}

.stampmaker-online-stamp-editor .slider-row input[type="number"],
.stampmaker-online-stamp-editor #editor-page .slider-row input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stampmaker-online-stamp-editor .slider-row input[type="number"]::-webkit-outer-spin-button,
.stampmaker-online-stamp-editor .slider-row input[type="number"]::-webkit-inner-spin-button,
.stampmaker-online-stamp-editor #editor-page .slider-row input[type="number"]::-webkit-outer-spin-button,
.stampmaker-online-stamp-editor #editor-page .slider-row input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

@media (min-width: 1001px) and (max-width: 1280px) {
  .stampmaker-online-stamp-editor #editor-page .toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar > .icon-actions {
    width: auto;
    overflow: visible;
    flex: 0 0 auto;
    gap: 6px;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-action-btn {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 5px 4px;
    gap: 4px;
    border-radius: 14px;
    font-size: 0.56rem;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-icon {
    width: 20px;
    height: 20px;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-icon svg {
    width: 18px;
    height: 18px;
  }

  .stampmaker-online-stamp-editor #editor-page .icon-actions .toolbar-btn-label {
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .stampmaker-online-stamp-editor #editor-page .snap-tools {
    width: 100%;
    min-width: 0;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions {
    flex: 1 1 230px;
    min-width: 0;
    gap: 6px;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .plate-size {
    flex: 1 1 136px;
    min-width: 0;
    max-width: 170px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .stampmaker-online-stamp-editor #editor-page .toolbar-preview-actions .download-btn {
    flex: 0 1 96px;
    min-width: 86px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn {
    flex: 1 1 48px;
    min-width: 0;
    height: 44px;
    padding: 5px 4px;
    gap: 4px;
    font-size: 0.58rem;
  }

  .stampmaker-online-stamp-editor #editor-page .snap-tool-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 1000px) {
  .stampmaker-online-stamp-editor #editor-page .editor-topbar {
    display: grid;
    grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-brand {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    text-align: left;
    font-size: clamp(0.9rem, 2.4vw, 1.06rem);
    line-height: 1.08;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-toolbar-actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-toolbar-actions > .draft-status {
    justify-self: start;
    max-width: 100%;
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-toolbar-actions > .editor-save-row {
    width: 100%;
    min-width: 0;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    justify-content: stretch;
    justify-items: stretch;
    align-items: center;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #back-to-templates-btn,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-template-btn,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-category-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row .editor-category-select {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 0.68rem;
    line-height: normal;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #back-to-templates-btn {
    grid-column: 1;
    grid-row: 1;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-template-btn {
    grid-column: 2;
    grid-row: 1;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select {
    grid-column: 1;
    grid-row: 2;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #save-category-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row .editor-category-select {
    grid-column: 2;
    grid-row: 2;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select.hidden + #save-category-select,
  .stampmaker-online-stamp-editor #editor-page .editor-save-row #editor-owner-select.hidden + .editor-category-select {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .stampmaker-online-stamp-editor #editor-page .editor-topbar {
    grid-template-columns: 1fr;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-brand {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
  }

  .stampmaker-online-stamp-editor #editor-page .editor-toolbar-actions {
    grid-column: 1;
  }

  .smo-stamp-seo-content {
    padding: 0 10px 24px;
  }

  .smo-stamp-seo-card {
    border-radius: 22px;
  }

  .smo-stamp-seo-card ul {
    grid-template-columns: 1fr;
  }
}
