@font-face {
  font-family: 'Noto Sans SC';
  src: url('/assets/fonts/noto-sans-sc-v40.88.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f4f1ec;
  --panel: #fbf8f4;
  --panel-alt: #f1ece5;
  --text: #2c2925;
  --muted: #746d63;
  --line: #ddd4c8;
  --accent: #1482c5;
  --accent-dark: #0e659a;
  --accent-warm: #79b9e1;
  --slider-active: #69b1ff;
  --accent-rgb: 20, 130, 197;
  --shadow: 0 20px 60px rgba(10, 20, 40, 0.08);
  --icon-global-color: #4a4a4a;
}

html[data-ui-theme="dark"] {
  color-scheme: dark;
}

body[data-ui-theme="dark"] {
  --bg: #0b1119;
  --panel: #111927;
  --panel-alt: #172131;
  --text: #e5edf8;
  --muted: #95a3b8;
  --line: #243244;
  --accent: #5f8cff;
  --accent-dark: #86a8ff;
  --accent-warm: #9db8ff;
  --slider-active: #7fa2ff;
  --accent-rgb: 95, 140, 255;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --icon-global-color: #c8d4e5;
  background:
    radial-gradient(920px 460px at 8% -8%, rgba(var(--accent-rgb), 0.16), transparent 62%),
    radial-gradient(780px 360px at 96% -12%, rgba(32, 59, 94, 0.22), transparent 58%),
    #0b1119;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(var(--accent-rgb), 0.12), transparent 62%),
    radial-gradient(780px 360px at 96% -12%, rgba(107, 83, 63, 0.12), transparent 58%),
    var(--bg);
}

html,
body,
#root {
  height: 100%;
}

.layout-shell {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-shell > .canvas-shell {
  flex: 1;
  min-height: 0;
}

.layout-shell > .app-shell {
  flex: 1;
  min-height: 0;
}

.theme-grid {
  position: relative;
  min-height: 100vh;
}

.seo-home {
  flex: 1;
  overflow: auto;
  padding: 18px 28px 94px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
}

.seo-home-story-shell {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.seo-home-story-row {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
  min-height: 468px;
}

.seo-home-story-row.reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
}

.seo-home-story-row.reverse .seo-home-story-copy {
  order: 2;
}

.seo-home-story-row.reverse .seo-home-story-visual {
  order: 1;
}

.seo-home-story-copy {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.seo-home-story-copy h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #233548;
}

.seo-home-story-copy h1.is-primary {
  font-size: clamp(26px, 3.2vw, 42px);
}

.seo-home-story-copy p {
  margin: 0;
  max-width: 34rem;
  color: #6b7b8d;
  font-size: 15px;
  line-height: 1.8;
}

.seo-home-story-visual {
  min-width: 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-home-story-image {
  width: min(100%, 560px);
  max-height: 540px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: none;
  background: transparent;
}

.seo-home-story-placeholder {
  width: min(100%, 640px);
  min-height: 460px;
  border-radius: 32px;
  padding: 32px;
  background:
    radial-gradient(480px 260px at 12% 20%, rgba(var(--accent-rgb), 0.18), transparent 72%),
    linear-gradient(145deg, #f7fafc, #eef3f9);
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 18px;
  align-items: end;
}

.seo-home-story-placeholder .placeholder-chip {
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  color: #1e3a56;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-home-story-placeholder .placeholder-panel {
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(236,242,248,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 18px 32px rgba(15, 23, 42, 0.08);
}

.seo-home-story-placeholder .placeholder-panel.primary {
  min-height: 320px;
  transform: rotate(-6deg);
}

.seo-home-story-placeholder .placeholder-panel.secondary {
  min-height: 380px;
}

.seo-home-story-placeholder .placeholder-panel.tertiary {
  min-height: 300px;
  transform: rotate(8deg);
}

.page-loading-indicator {
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(20, 130, 197, 0.16);
  border-top-color: #1482c5;
  border-right-color: #5fa8d8;
  box-shadow: 0 10px 24px rgba(20, 130, 197, 0.14);
  animation: page-loading-spin 0.9s linear infinite;
}

.inline-loading-indicator {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-loading-indicator .page-loading-spinner {
  width: 36px;
  height: 36px;
}

.list-loading-indicator {
  min-height: 88px;
}

.button-loading-indicator {
  min-height: 0;
  width: auto;
}

.button-loading-indicator .page-loading-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  box-shadow: none;
}

.marketing-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 10px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.marketing-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #7a8798;
}

.marketing-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.marketing-footer-links-label {
  font-size: 13px;
  font-weight: 600;
  color: #6a7787;
}

.marketing-footer-link,
.marketing-footer-link:visited,
.marketing-footer-link:hover,
.marketing-footer-link:active {
  font-size: 14px;
  font-weight: 700;
  color: #31465c;
  text-decoration: none;
}

.marketing-footer-link:hover {
  color: #1482c5;
}

.marketing-footer-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

@keyframes page-loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .marketing-footer-inner {
    padding: 16px 8px 6px;
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-footer-copy {
    text-align: left;
  }
}

.seo-home-story-row.theme-dark .seo-home-story-copy h1,
.seo-home-story-row.theme-dark .seo-home-story-copy p {
  color: #f8fafc;
}

.seo-home-story-row.theme-dark .seo-home-eyebrow {
  background: rgba(255,255,255,0.12);
  color: #f8fafc;
}

.seo-home-story-row.theme-dark .seo-home-story-visual,
.seo-home-story-row.theme-dark .seo-home-story-copy {
  position: relative;
}

.seo-home-story-row.theme-dark {
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(145deg, #0f172a, #111827);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.16);
}

.seo-home-story-row.theme-soft {
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(244,248,252,0.9), rgba(255,255,255,0.96));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.seo-home-hero {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(var(--accent-rgb), 0.14), transparent 72%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,248,252,0.94));
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.seo-home-hero-copy,
.seo-home-hero-panel,
.faq-hero,
.faq-section,
.faq-cta {
  min-width: 0;
}

.seo-home-eyebrow,
.seo-home-kicker,
.faq-eyebrow,
.faq-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-home-hero h1 {
  margin: 16px 0 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 10.5em;
  color: #233548;
}

.seo-home-hero p {
  margin: 16px 0 0;
  font-size: 15px;
  color: #6f7f90;
  line-height: 1.75;
  max-width: 42rem;
}

.seo-home-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.seo-home-actions .btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.seo-home-actions .btn-primary {
  background: #155dfc;
  border-color: #155dfc;
  color: #fff;
}

.seo-home-actions .btn-primary:hover {
  background: #1247c8;
  border-color: #1247c8;
}

.seo-home-actions .btn-outline {
  background: #edf4ff;
  border-color: #d3e3ff;
  color: #1247c8;
}

.seo-home-actions .btn-outline:hover {
  background: #dfeeff;
  border-color: #bfd7ff;
  color: #0f3ca7;
}

.seo-home-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-home-stat {
  min-height: 108px;
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.seo-home-stat strong {
  font-size: 26px;
  line-height: 1.1;
  color: #102538;
}

.seo-home-stat span {
  margin: 0;
  color: #667386;
  line-height: 1.5;
  font-size: 14px;
}

.seo-home-hero-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.seo-home-preview-card {
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  padding: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.seo-home-preview-card.primary {
  background: linear-gradient(180deg, #163047, #0f2438);
  color: #fff;
}

.seo-home-preview-card.primary h2 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.18;
}

.seo-home-preview-card.primary ul {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

.seo-home-preview-kicker,
.seo-home-preview-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.seo-home-preview-label {
  color: #102538;
}

.seo-home-preview-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-home-preview-stack p {
  margin: 10px 0 0;
  color: #607086;
  line-height: 1.6;
}

.seo-home-section,
.seo-home-cta {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  background: rgba(255,255,255,0.86);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
}

.seo-home-section-head,
.faq-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 20px;
}

.seo-home-section-head h2,
.seo-home-cta h2,
.faq-hero h1,
.faq-section-head h2,
.faq-cta h2 {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.seo-home-section-head p,
.seo-home-cta p,
.faq-hero p,
.faq-section-head p,
.faq-cta p {
  margin: 0;
  max-width: 34rem;
  color: #677386;
  line-height: 1.72;
  font-size: 15px;
}

.seo-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.seo-home-feature-card,
.seo-home-workflow-card,
.seo-home-scenario-card {
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  padding: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.seo-home-feature-card h3,
.seo-home-workflow-card h3,
.seo-home-scenario-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.seo-home-feature-card p,
.seo-home-workflow-card p,
.seo-home-scenario-card p {
  margin: 0;
  color: #637185;
  line-height: 1.68;
  font-size: 14px;
}

.seo-home-feature-value,
.seo-home-workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef6fc;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-home-workflow-grid,
.seo-home-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.seo-home-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-page-shell {
  flex: 1;
  overflow: auto;
  padding: 32px 28px 94px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.faq-page {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-page.compact {
  max-width: none;
}

.faq-hero,
.faq-section,
.faq-cta {
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  padding: 28px;
  box-shadow: none;
}

.faq-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.faq-collapse-list {
  display: grid;
  gap: 12px;
}

.faq-collapse-item {
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.faq-collapse-item[open] {
  box-shadow: none;
}

.faq-collapse-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  font-weight: 700;
  position: relative;
}

.faq-collapse-item summary::-webkit-details-marker {
  display: none;
}

.faq-collapse-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-collapse-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-collapse-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef6fc;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.faq-collapse-question {
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
}

.faq-collapse-answer {
  padding: 0 20px 20px 70px;
  color: #637185;
  line-height: 1.76;
  font-size: 14px;
}

.faq-collapse-answer p {
  margin: 0;
}

.faq-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.faq-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-workbench-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr);
  background: #fff;
  transition: grid-template-columns 0.24s ease;
}

.app-workbench-shell > .app-workbench-sidebar {
  width: 260px;
  min-width: 0;
}

.app-workbench-shell > .app-workbench-sidebar.collapsed {
  width: 72px;
}

.app-workbench-sidebar {
  background: #f7f9fc;
  border-right: none;
  padding: 0 12px 12px;
  overflow: visible;
  scrollbar-gutter: stable;
  transition: width 0.2s ease;
  display: flex;
  flex-direction: column;
}

.app-workbench-sidebar-footer {
  flex: 0 0 auto;
  padding: 12px 4px 0;
  display: flex;
  justify-content: flex-start;
}

.app-workbench-sidebar.collapsed .app-workbench-sidebar-footer {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.app-workbench-theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #ffffff;
  color: #22354a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.app-workbench-theme-toggle:hover {
  transform: translateY(-1px);
  background: #eef4fb;
  border-color: #bfd4ea;
}

.app-workbench-sidebar.collapsed {
  width: 72px;
}

.app-workbench-sidebar-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 12px;
}

.app-workbench-sidebar-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.app-workbench-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  color: #111827;
  text-decoration: none;
}

.app-workbench-brand .brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-workbench-brand:visited,
.app-workbench-brand:hover,
.app-workbench-brand:active {
  color: #111827;
  text-decoration: none;
}

.app-workbench-sidebar-toggle {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-workbench-sidebar-toggle:hover {
  background: #e9eef5;
  color: #111111;
}

.app-workbench-group {
  margin-bottom: 2px;
}

.app-workbench-group-title {
  margin: 0 6px 8px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a3;
  font-weight: 700;
}

.app-workbench-links {
  display: grid;
  gap: 4px;
}

.app-workbench-link {
  border: none;
  background: transparent;
  border-radius: 10px;
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2f3747;
  cursor: pointer;
  text-align: left;
}

.app-workbench-link:hover {
  background: #dce2ea;
}

.app-workbench-link.active {
  background: #cfd7e3;
  color: #1f2937;
  font-weight: 600;
}

.app-workbench-link-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
}

.app-workbench-link.active .app-workbench-link-icon {
  color: #111111;
}

.app-workbench-link-text {
  font-size: 14px;
  line-height: 1;
}

.app-workbench-sidebar.collapsed .app-workbench-sidebar-head {
  justify-content: center;
  margin: 0 0 12px;
}

.app-workbench-sidebar.collapsed .app-workbench-link {
  justify-content: center;
  padding: 0;
}

.app-workbench-sidebar.collapsed .app-workbench-separator {
  margin-left: 0;
  margin-right: 0;
}

.app-workbench-separator {
  margin: 10px 6px;
  border-bottom: 1px solid #edf2f7;
}

.app-workbench-sidebar-locale,
.app-workbench-user-menu {
  position: relative;
}

.app-workbench-locale-trigger {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

.app-workbench-locale-prefix {
  color: #6b7280;
}

.app-workbench-locale-value {
  color: #111827;
  font-weight: 600;
  max-width: 88px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-workbench-locale-trigger.collapsed {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.app-workbench-locale-menu {
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  bottom: auto;
  width: 180px;
  min-width: 180px;
  max-width: 220px;
}

.app-workbench-user-dropdown {
  left: 0;
  right: auto;
  bottom: calc(100% + 10px);
  top: auto;
}

.app-workbench-signin-btn {
  height: 38px;
  border-radius: 999px;
  min-width: 88px;
  padding: 0 18px;
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  box-shadow: none;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.app-workbench-content {
  min-width: 0;
  padding: 22px;
  overflow: auto;
  background: #fff;
  transition: all 0.24s ease;
}

.app-workbench-content > * {
  width: min(100%, 1600px);
  margin-left: auto;
  margin-right: auto;
}

.app-workbench-top-actions {
  position: fixed;
  top: 16px;
  right: 22px;
  width: auto;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  z-index: 80;
}

.app-workbench-top-trigger {
  height: 38px;
}

.app-workbench-locale-trigger.app-workbench-top-trigger {
  min-width: 156px;
}

.app-workbench-top-actions .topbar-lang-menu {
  padding: 8px;
  border-radius: 14px;
}

.app-workbench-top-actions .topbar-lang-option {
  min-height: 36px;
  border-radius: 10px;
  padding: 0 12px;
}

.app-workbench-user-dropdown-top {
  right: 0;
  left: auto;
  top: calc(100% + 10px);
  bottom: auto;
}

.app-workbench-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

.app-workbench-header-row {
  width: min(100%, 1600px);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-workbench-header-row h1,
.app-workbench-header-row h3 {
  margin: 0;
}

.app-workbench-header-row .app-workbench-top-actions {
  width: 0;
  margin: 0;
  flex: 0 0 auto;
}

.app-workbench-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.app-workbench-header-actions .app-workbench-top-actions {
  width: 0;
  margin: 0;
  flex: 0 0 auto;
}

.mockups-page {
  display: grid;
  gap: 14px;
}

.mockups-page-header {
  width: min(100%, 980px);
  margin: 0 auto;
}

.mockups-page-header h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: #111827;
}

body[data-ui-theme="dark"] .app-workbench-sidebar {
  background: #0f1725;
}

body[data-ui-theme="dark"] .app-workbench-brand,
body[data-ui-theme="dark"] .app-workbench-brand:visited,
body[data-ui-theme="dark"] .app-workbench-brand:hover,
body[data-ui-theme="dark"] .app-workbench-brand:active {
  color: #f3f7fd;
}

body[data-ui-theme="dark"] .app-workbench-sidebar-toggle {
  color: #d6e0ed;
}

body[data-ui-theme="dark"] .app-workbench-sidebar-toggle:hover {
  background: #182233;
  color: #ffffff;
}

body[data-ui-theme="dark"] .app-workbench-group-title {
  color: #6f8198;
}

body[data-ui-theme="dark"] .app-workbench-link {
  color: #c6d2e2;
}

body[data-ui-theme="dark"] .app-workbench-link:hover {
  background: #182233;
}

body[data-ui-theme="dark"] .app-workbench-link.active {
  background: #223149;
  color: #f6fbff;
}

body[data-ui-theme="dark"] .app-workbench-link-icon,
body[data-ui-theme="dark"] .app-workbench-link.active .app-workbench-link-icon {
  color: #f6fbff;
}

body[data-ui-theme="dark"] .app-workbench-separator {
  border-bottom-color: #1e2b3d;
}

body[data-ui-theme="dark"] .app-workbench-theme-toggle {
  border-color: #2a3a4f;
  background: #152031;
  color: #ffd16a;
}

body[data-ui-theme="dark"] .app-workbench-theme-toggle:hover {
  background: #1a2a40;
  border-color: #416286;
}

body[data-ui-theme="dark"] .app-workbench-content,
body[data-ui-theme="dark"] .cms-main,
body[data-ui-theme="dark"] .cms-content,
body[data-ui-theme="dark"] .studio-ant-shell .panel {
  background: #0f1725;
  color: #e6eef8;
}

body[data-ui-theme="dark"] .app-workbench-card h1,
body[data-ui-theme="dark"] .app-workbench-card h3,
body[data-ui-theme="dark"] .app-workbench-header-row h1,
body[data-ui-theme="dark"] .app-workbench-header-row h3,
body[data-ui-theme="dark"] .studio-ant-shell .panel-header h2 {
  color: #eef5ff;
}

body[data-ui-theme="dark"] .app-workbench-card p,
body[data-ui-theme="dark"] .studio-ant-shell .panel-label {
  color: #8ea0b7;
}

body[data-ui-theme="dark"] .mockups-search-input,
body[data-ui-theme="dark"] .user-avatar-button,
body[data-ui-theme="dark"] .user-dropdown,
body[data-ui-theme="dark"] .user-dropdown-lang-menu,
body[data-ui-theme="dark"] .toolbar-select-trigger,
body[data-ui-theme="dark"] .toolbar-select-menu,
body[data-ui-theme="dark"] .studio-ant-shell .field input,
body[data-ui-theme="dark"] .studio-ant-shell .field select,
body[data-ui-theme="dark"] .studio-ant-shell .field textarea,
body[data-ui-theme="dark"] .studio-ant-shell .field .studio-select,
body[data-ui-theme="dark"] .cms-skeleton-card {
  background: #152031;
  border-color: #243244;
  color: #e6eef8;
}

body[data-ui-theme="dark"] .mockups-search-input::placeholder {
  color: #6f8198;
}

body[data-ui-theme="dark"] .toolbar-select-trigger {
  background: #152031;
  border-color: #243244;
  color: #e6eef8;
}

body[data-ui-theme="dark"] .toolbar-select-trigger:hover {
  background: #192538;
  border-color: #35506f;
}

body[data-ui-theme="dark"] .toolbar-select-trigger:focus,
body[data-ui-theme="dark"] .toolbar-select-trigger:focus-visible {
  border-color: #5f8cff;
  box-shadow: 0 0 0 2px rgba(95, 140, 255, 0.18);
}

body[data-ui-theme="dark"] .toolbar-select-arrow {
  color: #92a8c2;
}

body[data-ui-theme="dark"] .toolbar-select-menu {
  background: #152031;
  border-color: #243244;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

body[data-ui-theme="dark"] .toolbar-select-option {
  color: #dce8f8;
}

body[data-ui-theme="dark"] .toolbar-select-option:hover {
  background: rgba(95, 140, 255, 0.14);
  color: #f3f7ff;
}

body[data-ui-theme="dark"] .toolbar-select-option.active {
  background: rgba(95, 140, 255, 0.22);
  color: #9db8ff;
}

body[data-ui-theme="dark"] .user-name,
body[data-ui-theme="dark"] .user-dropdown-inline-label,
body[data-ui-theme="dark"] .user-dropdown-lang-trigger,
body[data-ui-theme="dark"] .user-dropdown-link {
  color: #edf4ff;
}

body[data-ui-theme="dark"] .user-email,
body[data-ui-theme="dark"] .user-membership-expiry,
body[data-ui-theme="dark"] .user-dropdown-row,
body[data-ui-theme="dark"] .user-dropdown-link-danger {
  color: #9cb0c8;
}

body[data-ui-theme="dark"] .user-dropdown-actions,
body[data-ui-theme="dark"] .user-dropdown-section,
body[data-ui-theme="dark"] .user-dropdown-metrics {
  border-color: #243244;
}

body[data-ui-theme="dark"] .studio-ant-shell .panel-header,
body[data-ui-theme="dark"] .studio-ant-shell .tabs-scroll {
  border-color: #243244;
  box-shadow: none;
}

body[data-ui-theme="dark"] .cms-skeleton-line {
  background: linear-gradient(90deg, #162131 0%, #1c293c 50%, #162131 100%);
}

body[data-ui-theme="dark"] .topbar {
  background: rgba(11, 17, 25, 0.92);
  box-shadow:
    0 8px 20px -20px rgba(0, 0, 0, 0.75),
    0 12px 28px -30px rgba(0, 0, 0, 0.92);
}

body[data-ui-theme="dark"] .brand,
body[data-ui-theme="dark"] .nav-link,
body[data-ui-theme="dark"] .topbar-lang-trigger,
body[data-ui-theme="dark"] .topbar-lang-option {
  color: #d9e4f4;
}

body[data-ui-theme="dark"] .nav-link:hover,
body[data-ui-theme="dark"] .topbar-lang-option:hover {
  color: #ffffff;
  background: #1b2738;
}

body[data-ui-theme="dark"] .topbar-lang-caret,
body[data-ui-theme="dark"] .user-lang-caret {
  color: #92a6c1;
}

body[data-ui-theme="dark"] .topbar-lang-menu {
  border-color: #243244;
  background: #152031;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

body[data-ui-theme="dark"] .topbar-lang-option.active {
  background: rgba(var(--accent-rgb), 0.16);
  color: #cfe0ff;
}

body[data-ui-theme="dark"] .btn {
  color: #eaf2ff;
}

body[data-ui-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #5f8cff, #7d79ff);
  color: #f8fbff;
  box-shadow: 0 14px 30px rgba(95, 140, 255, 0.28);
}

body[data-ui-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #7099ff, #8d88ff);
}

body[data-ui-theme="dark"] .btn-ghost,
body[data-ui-theme="dark"] .btn-outline {
  border-color: #31415a;
  background: #152031;
  color: #d8e4f8;
}

body[data-ui-theme="dark"] .btn-outline {
  border-color: rgba(134, 168, 255, 0.4);
  color: #bcd0ff;
}

body[data-ui-theme="dark"] .btn-ghost:hover,
body[data-ui-theme="dark"] .btn-outline:hover {
  background: #1b2a3f;
  color: #f7fbff;
}

body[data-ui-theme="dark"] .seo-home,
body[data-ui-theme="dark"] .faq-page-shell,
body[data-ui-theme="dark"] .pricing-shell,
body[data-ui-theme="dark"] .app-workbench-shell,
body[data-ui-theme="dark"] .layout-shell {
  background: transparent;
}

body[data-ui-theme="dark"] .seo-home-story-copy h1,
body[data-ui-theme="dark"] .seo-home-story-copy p,
body[data-ui-theme="dark"] .seo-home-section-head h2,
body[data-ui-theme="dark"] .seo-home-cta h2,
body[data-ui-theme="dark"] .faq-hero h1,
body[data-ui-theme="dark"] .faq-section-head h2,
body[data-ui-theme="dark"] .faq-cta h2,
body[data-ui-theme="dark"] .pricing-hero-copy h1,
body[data-ui-theme="dark"] .pricing-plan-title-row h3,
body[data-ui-theme="dark"] .pricing-plan-price {
  color: #edf4ff;
}

body[data-ui-theme="dark"] .seo-home-story-copy p,
body[data-ui-theme="dark"] .seo-home-section-head p,
body[data-ui-theme="dark"] .seo-home-cta p,
body[data-ui-theme="dark"] .seo-home-feature-card p,
body[data-ui-theme="dark"] .seo-home-workflow-card p,
body[data-ui-theme="dark"] .seo-home-scenario-card p,
body[data-ui-theme="dark"] .faq-hero p,
body[data-ui-theme="dark"] .faq-section-head p,
body[data-ui-theme="dark"] .faq-cta p,
body[data-ui-theme="dark"] .faq-collapse-answer,
body[data-ui-theme="dark"] .pricing-hero-copy p,
body[data-ui-theme="dark"] .pricing-plan-description,
body[data-ui-theme="dark"] .pricing-plan-cycle {
  color: #97a9c2;
}

body[data-ui-theme="dark"] .seo-home-section,
body[data-ui-theme="dark"] .seo-home-cta,
body[data-ui-theme="dark"] .faq-hero,
body[data-ui-theme="dark"] .faq-section,
body[data-ui-theme="dark"] .faq-cta,
body[data-ui-theme="dark"] .pricing-hero-card,
body[data-ui-theme="dark"] .pricing-plan-card,
body[data-ui-theme="dark"] .faq-collapse-item {
  background: rgba(17, 25, 39, 0.82);
  border: 1px solid rgba(49, 65, 90, 0.7);
  box-shadow: none;
}

body[data-ui-theme="dark"] .seo-home-feature-card,
body[data-ui-theme="dark"] .seo-home-workflow-card,
body[data-ui-theme="dark"] .seo-home-scenario-card {
  background: linear-gradient(180deg, rgba(21, 32, 49, 0.96), rgba(15, 23, 37, 0.94));
  box-shadow: none;
}

body[data-ui-theme="dark"] .seo-home-feature-card h3,
body[data-ui-theme="dark"] .seo-home-workflow-card h3,
body[data-ui-theme="dark"] .seo-home-scenario-card h3,
body[data-ui-theme="dark"] .faq-collapse-question {
  color: #e8f0fc;
}

body[data-ui-theme="dark"] .seo-home-feature-value,
body[data-ui-theme="dark"] .seo-home-workflow-index,
body[data-ui-theme="dark"] .faq-collapse-index {
  background: rgba(var(--accent-rgb), 0.14);
  color: #bdd0ff;
}

body[data-ui-theme="dark"] .marketing-footer {
  border-top-color: rgba(148, 163, 184, 0.16);
  background: rgba(11, 17, 25, 0.92);
}

body[data-ui-theme="dark"] .marketing-footer-inner,
body[data-ui-theme="dark"] .marketing-footer-copy,
body[data-ui-theme="dark"] .marketing-footer-links-label,
body[data-ui-theme="dark"] .marketing-footer-link,
body[data-ui-theme="dark"] .marketing-footer-link:visited,
body[data-ui-theme="dark"] .marketing-footer-link:hover,
body[data-ui-theme="dark"] .marketing-footer-link:active {
  color: #8ea2bc;
}

body[data-ui-theme="dark"] .marketing-footer-link:hover {
  color: #dce9ff;
}

body[data-ui-theme="dark"] .pricing-billing-pill {
  border-color: #31415a;
  background: #131d2d;
}

body[data-ui-theme="dark"] .pricing-billing-pill button {
  color: #aebed4;
}

body[data-ui-theme="dark"] .pricing-billing-pill button.active {
  background: linear-gradient(135deg, #5f8cff, #7d79ff);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(95, 140, 255, 0.26);
}

body[data-ui-theme="dark"] .pricing-plan-badge,
body[data-ui-theme="dark"] .user-plan-badge {
  border-color: rgba(134, 168, 255, 0.28);
  background: rgba(95, 140, 255, 0.14);
  color: #c7d7ff;
}

body[data-ui-theme="dark"] .pricing-plan-old-price {
  color: #708099;
}

body[data-ui-theme="dark"] .pricing-plan-card.is-current {
  box-shadow: inset 0 0 0 1px rgba(134, 168, 255, 0.34);
}

body[data-ui-theme="dark"] .studio-ant-shell .panel-right,
body[data-ui-theme="dark"] .studio-style-scroll,
body[data-ui-theme="dark"] .studio-export-toolbar,
body[data-ui-theme="dark"] .studio-style-scroll .studio-module-section > .studio-module-title-row,
body[data-ui-theme="dark"] .studio-style-scroll .studio-module-section > .studio-inline-title-row,
body[data-ui-theme="dark"] .studio-style-scroll .studio-module-section > .studio-collapse-title,
body[data-ui-theme="dark"] .studio-style-scroll .studio-module-section > .studio-module-title {
  background: #0f1725;
}

body[data-ui-theme="dark"] .studio-export-toolbar {
  border-bottom-color: #243244;
}

body[data-ui-theme="dark"] .studio-module-section,
body[data-ui-theme="dark"] .studio-main-content-section {
  border-top-color: #243244;
}

body[data-ui-theme="dark"] .studio-ant-shell .panel-center::before,
body[data-ui-theme="dark"] .studio-ant-shell .panel-center::after {
  background: #243244;
}

body[data-ui-theme="dark"] .studio-mini-tab + .studio-mini-tab {
  border-left-color: #243244;
}

body[data-ui-theme="dark"] .studio-module-title,
body[data-ui-theme="dark"] .studio-collapse-title,
body[data-ui-theme="dark"] .studio-shadow-switch-title,
body[data-ui-theme="dark"] .studio-switch-row,
body[data-ui-theme="dark"] .studio-crop-dialog-title {
  color: #e8f0fc;
}

body[data-ui-theme="dark"] .studio-collapse-caret,
body[data-ui-theme="dark"] .studio-subtle-text,
body[data-ui-theme="dark"] .studio-crop-control-label,
body[data-ui-theme="dark"] .studio-crop-zoom-value,
body[data-ui-theme="dark"] .studio-crop-rotate-value,
body[data-ui-theme="dark"] .studio-crop-rotate-mark-label {
  color: #8ea0b7;
}

body[data-ui-theme="dark"] .studio-view-source-btn,
body[data-ui-theme="dark"] .studio-style-module .toolbar-input-with-affix.inspector-affix-input,
body[data-ui-theme="dark"] .studio-export-format-item,
body[data-ui-theme="dark"] .studio-mini-tabs,
body[data-ui-theme="dark"] .studio-mini-tab,
body[data-ui-theme="dark"] .studio-thumb-tile,
body[data-ui-theme="dark"] .studio-image-preview,
body[data-ui-theme="dark"] .studio-crop-dialog,
body[data-ui-theme="dark"] .studio-crop-dialog-stage,
body[data-ui-theme="dark"] .studio-crop-action-btn,
body[data-ui-theme="dark"] .studio-bg-recommend-item {
  background: #152031;
  border-color: #2a3a4f;
  color: #dbe6f7;
}

body[data-ui-theme="dark"] .studio-thumb-image-tile,
body[data-ui-theme="dark"] .studio-image-preview {
  background: #121b29;
}

body[data-ui-theme="dark"] .studio-thumb-remove {
  border-color: #31415a;
  background: #182335;
  color: #9eb0c7;
}

body[data-ui-theme="dark"] .studio-segmented,
body[data-ui-theme="dark"] .studio-segmented-inline {
  background: #172131;
}

body[data-ui-theme="dark"] .studio-segmented-item,
body[data-ui-theme="dark"] .studio-checkbox-item,
body[data-ui-theme="dark"] .studio-mini-tab {
  background: transparent;
  color: #aebcd0;
  border-color: transparent;
}

body[data-ui-theme="dark"] .studio-segmented-item.active {
  background: #223149;
  color: #dce8ff;
  box-shadow: inset 0 0 0 1px rgba(134, 168, 255, 0.18);
}

body[data-ui-theme="dark"] .studio-segmented-inline .studio-segmented-item:hover,
body[data-ui-theme="dark"] .studio-checkbox-item:hover,
body[data-ui-theme="dark"] .studio-mini-tab:hover {
  background: #1c2a40 !important;
  color: #eef5ff !important;
  border-color: #3a4f70 !important;
}

body[data-ui-theme="dark"] .studio-segmented-inline .studio-segmented-item.active,
body[data-ui-theme="dark"] .studio-checkbox-item.active,
body[data-ui-theme="dark"] .studio-mini-tab.active,
body[data-ui-theme="dark"] .studio-global-watermark-section .ant-switch.checked {
  background: linear-gradient(135deg, #5f8cff, #7d79ff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body[data-ui-theme="dark"] .studio-checkbox-item {
  border-color: #31415a;
  background: #152031;
}

body[data-ui-theme="dark"] .studio-ant-shell .btn-ghost:hover,
body[data-ui-theme="dark"] .studio-ant-shell .btn-ghost:active,
body[data-ui-theme="dark"] .studio-ant-shell .btn-outline:hover,
body[data-ui-theme="dark"] .studio-ant-shell .btn-outline:active {
  background: #1c2a40 !important;
  border-color: #3a4f70 !important;
  color: #eef5ff !important;
}

body[data-ui-theme="dark"] .studio-export-format-item.checked,
body[data-ui-theme="dark"] .studio-bg-recommend-item.active,
body[data-ui-theme="dark"] .studio-crop-action-btn.active {
  border-color: rgba(134, 168, 255, 0.42);
  background: rgba(95, 140, 255, 0.16);
  color: #dce8ff;
  box-shadow: none;
}

body[data-ui-theme="dark"] .studio-global-watermark-section .ant-switch {
  background: #31415a;
}

body[data-ui-theme="dark"] .studio-global-watermark-section .ant-switch .ant-switch-handle {
  background: #f7fbff;
}

body[data-ui-theme="dark"] .studio-wallpaper-image-style-controls input[type="range"]::-webkit-slider-runnable-track,
body[data-ui-theme="dark"] .studio-module-section .inspector-image-rotation-section input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(
    90deg,
    var(--slider-active) 0,
    var(--slider-active) var(--slider-progress, 0%),
    #32465f var(--slider-progress, 0%),
    #32465f 100%
  );
}

body[data-ui-theme="dark"] .studio-wallpaper-image-style-controls input[type="range"]::-moz-range-track,
body[data-ui-theme="dark"] .studio-module-section .inspector-image-rotation-section input[type="range"]::-moz-range-track {
  background: #32465f;
}

body[data-ui-theme="dark"] .studio-crop-dialog-head,
body[data-ui-theme="dark"] .studio-crop-dialog-actions {
  border-color: #243244;
}

body[data-ui-theme="dark"] .studio-crop-dialog-loading {
  background: rgba(15, 23, 37, 0.62);
  color: #dce8ff;
}

.mockups-toolbar {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.mockups-toolbar-top {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 630px) auto;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.mockups-toolbar-top .mockups-search-wrap {
  width: 100%;
}

.mockups-toolbar-top .app-workbench-top-actions {
  width: 0;
  margin: 0;
  flex: 0 0 auto;
}

.mockups-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mockups-batch-count {
  min-width: 54px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.mockups-search-wrap {
  position: relative;
  width: min(100%, 630px);
}

.mockups-search-input {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d9dde5;
  padding: 0 16px 0 42px;
  outline: none;
  background: #fff;
}

.mockups-search-input:focus {
  border-color: #91caff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.mockups-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .mockups-toolbar-top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .mockups-toolbar-top .app-workbench-top-actions {
    width: 0;
    justify-content: flex-end;
  }

  .app-workbench-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .app-workbench-header-actions {
    justify-content: space-between;
  }

  .app-workbench-header-row .app-workbench-top-actions {
    width: 0;
    justify-content: flex-end;
  }
}

.mockups-filter-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mockups-filter-item {
  position: relative;
}

.mockups-filter-trigger {
  min-width: 74px;
  max-width: 160px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  color: #262626;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mockups-filter-trigger:hover {
  border-color: #d6dbe3;
  color: #111827;
  background: #f8fafc;
}

.mockups-filter-trigger.active {
  border-color: #cfd6df;
  color: #111827;
  background: #eef2f6;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.16);
}

.mockups-filter-trigger-text {
  display: inline-block;
  max-width: 96px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mockups-filter-trigger-caret {
  font-size: 11px;
  line-height: 1;
  transform: translateY(1px);
}

.mockups-filter-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 380px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 112px 1fr;
  z-index: 20;
  overflow: hidden;
}

.mockups-filter-level1 {
  border-right: 1px solid #f0f0f0;
  padding: 10px 8px;
  background: #fafafa;
  display: grid;
  gap: 6px;
}

.mockups-filter-level1-item {
  height: 32px;
  border: none;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  padding: 0 10px;
  color: #595959;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mockups-filter-level1-item:hover {
  color: #111827;
  background: #f3f5f7;
}

.mockups-filter-level1-item.active {
  background: #eef2f6;
  color: #111827;
  font-weight: 600;
}

.mockups-filter-level1-item.selected {
  background: #e2e8f0;
  color: #111827;
  font-weight: 600;
}

.mockups-filter-level2 {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.mockups-filter-option {
  height: 30px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #595959;
  font-size: 13px;
  transition: all 0.2s ease;
}

.mockups-filter-option:hover {
  border-color: #d6dbe3;
  color: #111827;
  background: #f8fafc;
}

.mockups-filter-option.active {
  border-color: #cfd6df;
  color: #111827;
  background: #eef2f6;
  font-weight: 600;
}

body[data-ui-theme="dark"] .mockups-filter-trigger {
  border-color: #2d3a4d;
  background: #152031;
  color: #e7effa;
}

body[data-ui-theme="dark"] .mockups-filter-trigger:hover {
  border-color: #3b4d68;
  color: #ffffff;
  background: #1a283b;
}

body[data-ui-theme="dark"] .mockups-filter-trigger.active {
  border-color: rgba(134, 168, 255, 0.38);
  color: #ffffff;
  background: #1d2a3f;
  box-shadow: 0 0 0 2px rgba(95, 140, 255, 0.18);
}

body[data-ui-theme="dark"] .mockups-filter-panel {
  background: #121b29;
  border-color: #263347;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.34),
    0 8px 20px rgba(0, 0, 0, 0.22);
}

body[data-ui-theme="dark"] .mockups-filter-level1 {
  border-right-color: #263347;
  background: #172131;
}

body[data-ui-theme="dark"] .mockups-filter-level1-item {
  color: #9fb0c6;
}

body[data-ui-theme="dark"] .mockups-filter-level1-item:hover {
  color: #edf4ff;
  background: #202d42;
}

body[data-ui-theme="dark"] .mockups-filter-level1-item.active {
  background: #24344d;
  color: #f6fbff;
}

body[data-ui-theme="dark"] .mockups-filter-level1-item.selected {
  background: rgba(95, 140, 255, 0.18);
  color: #dce8ff;
}

body[data-ui-theme="dark"] .mockups-filter-option {
  border-color: #31415a;
  background: #182335;
  color: #b8c7da;
}

body[data-ui-theme="dark"] .mockups-filter-option:hover {
  border-color: #456085;
  color: #ffffff;
  background: #1e2d43;
}

body[data-ui-theme="dark"] .mockups-filter-option.active {
  border-color: rgba(134, 168, 255, 0.42);
  color: #eef4ff;
  background: rgba(95, 140, 255, 0.16);
}

.mockups-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.mockups-color-dot.red { background: #ef4444; }
.mockups-color-dot.orange { background: #f97316; }
.mockups-color-dot.yellow { background: #eab308; }
.mockups-color-dot.green { background: #22c55e; }
.mockups-color-dot.blue { background: #3b82f6; }
.mockups-color-dot.purple { background: #a855f7; }
.mockups-color-dot.black { background: #111827; }
.mockups-color-dot.white { background: #ffffff; }

.mockups-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  gap: 12px;
  justify-content: flex-start;
}

.mockups-card {
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
}

.mockups-card.batch-mode {
  border-radius: 12px;
}

.mockups-card.selected .mockups-card-cover {
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.28);
}

.mockups-card-cover {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f8fc;
  aspect-ratio: 3 / 4;
  position: relative;
}

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

.mockups-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(15, 23, 42, 0.38);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.mockups-card-check.active {
  background: #1677ff;
  border-color: #1677ff;
}

.mockups-card-favorite {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, opacity 160ms ease;
}

.mockups-card-favorite:hover {
  transform: scale(1.06);
}

.mockups-card-favorite.active {
  color: #facc15;
}

.mockups-card-favorite.active .iconpark-wrap svg,
.mockups-card-favorite.active .iconpark-wrap svg * {
  fill: #facc15 !important;
  stroke: #e0b100 !important;
}

.mockups-card-favorite:disabled {
  opacity: 0.6;
  cursor: wait;
}

.mockups-card-favorite.bump {
  animation: mockupsFavoritePop 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mockups-card-favorite-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.45);
  transform-origin: center;
}

.mockups-card-favorite.bump .mockups-card-favorite-icon {
  animation: mockupsFavoriteIconPop 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mockupsFavoritePop {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.14); }
  75% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes mockupsFavoriteIconPop {
  0% { transform: scale(0.86); }
  45% { transform: scale(1.22); }
  75% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.mockups-card-name {
  margin-top: 6px;
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ai-image-page {
  display: grid;
  gap: 18px;
}

.ai-image-header-row {
  align-items: end;
}

.ai-image-header-copy {
  margin: 6px 0 0;
  max-width: 720px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.ai-image-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 272px;
  gap: 16px;
  align-items: start;
}

.ai-image-params,
.ai-image-result,
.ai-image-history {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.98) 100%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.ai-image-params,
.ai-image-history {
  padding: 22px;
}

.ai-image-result {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.ai-image-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-image-panel-head.compact {
  margin-bottom: 10px;
}

.ai-image-panel-kicker {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ai-image-credit-pill,
.ai-image-history-link {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.ai-image-upload-row {
  margin-top: 16px;
}

.ai-image-upload-btn {
  border: none;
  border-radius: 16px;
  background: #eef2ff;
  color: #243b68;
  height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ai-image-upload-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.ai-image-reference-card {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  position: relative;
}

.ai-image-reference-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ai-image-clear-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: none;
  border-radius: 999px;
  padding: 0 10px;
  height: 28px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.ai-image-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ai-image-field-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.ai-image-label {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-image-textarea,
.ai-image-select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}

.ai-image-textarea {
  min-height: 248px;
  resize: vertical;
  padding: 16px 18px;
  line-height: 1.6;
  margin-top: 18px;
}

.ai-image-select {
  height: 46px;
  padding: 0 14px;
}

.ai-image-chip-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-image-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2f466e;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.ai-image-generate-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 18px;
  margin-top: 18px;
  background: linear-gradient(135deg, #23457d 0%, #3a67b1 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(35, 69, 125, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ai-image-generate-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ai-image-generate-credit {
  font-size: 14px;
  opacity: 0.9;
}

.ai-image-hint {
  margin-top: 12px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.ai-image-result-stage {
  position: relative;
  min-height: 620px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(191,219,254,0.5), transparent 32%),
    linear-gradient(180deg, #fcfdff 0%, #f7f9fc 100%);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-image-result-main {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: contain;
  background: #f8fafc;
}

.ai-image-result-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  backdrop-filter: blur(18px);
  padding: 14px 16px;
}

.ai-image-result-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.ai-image-result-specs {
  margin-top: 4px;
  color: rgba(255,255,255,0.74);
  font-size: 12px;
}

.ai-image-empty-state {
  max-width: 420px;
  padding: 24px;
  text-align: center;
  display: grid;
  gap: 10px;
  color: #6b7280;
  line-height: 1.6;
}

.ai-image-empty-state strong {
  color: #111827;
  font-size: 18px;
}

.ai-image-variant-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-image-variant-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.ai-image-variant-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.ai-image-variant-card span {
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.ai-image-history-list {
  display: grid;
  gap: 12px;
}

.ai-image-history-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.ai-image-history-card.active {
  border-color: #9db5da;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ai-image-history-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.ai-image-history-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ai-image-history-copy strong,
.ai-image-history-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-image-history-copy strong {
  color: #111827;
  font-size: 13px;
}

.ai-image-history-copy span {
  color: #6b7280;
  font-size: 12px;
}

.ai-image-history-empty {
  border: 1px dashed #d1d5db;
  border-radius: 18px;
  padding: 18px 16px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

body[data-ui-theme="dark"] .ai-image-header-copy,
body[data-ui-theme="dark"] .ai-image-credit-pill,
body[data-ui-theme="dark"] .ai-image-history-link,
body[data-ui-theme="dark"] .ai-image-hint,
body[data-ui-theme="dark"] .ai-image-history-copy span,
body[data-ui-theme="dark"] .ai-image-empty-state {
  color: #9aa4b2;
}

body[data-ui-theme="dark"] .ai-image-params,
body[data-ui-theme="dark"] .ai-image-result,
body[data-ui-theme="dark"] .ai-image-history,
body[data-ui-theme="dark"] .ai-image-variant-card,
body[data-ui-theme="dark"] .ai-image-history-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(148, 163, 184, 0.16);
}

body[data-ui-theme="dark"] .ai-image-panel-kicker,
body[data-ui-theme="dark"] .ai-image-label,
body[data-ui-theme="dark"] .ai-image-history-copy strong,
body[data-ui-theme="dark"] .ai-image-empty-state strong {
  color: #f8fafc;
}

body[data-ui-theme="dark"] .ai-image-upload-btn,
body[data-ui-theme="dark"] .ai-image-chip {
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
}

body[data-ui-theme="dark"] .ai-image-textarea,
body[data-ui-theme="dark"] .ai-image-select,
body[data-ui-theme="dark"] .ai-image-reference-card,
body[data-ui-theme="dark"] .ai-image-result-stage {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
}

@media (max-width: 1380px) {
  .ai-image-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .ai-image-history {
    grid-column: 1 / -1;
  }

  .ai-image-history-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ai-image-shell {
    grid-template-columns: 1fr;
  }

  .ai-image-field-grid,
  .ai-image-variant-grid,
  .ai-image-history-list {
    grid-template-columns: 1fr 1fr;
  }

  .ai-image-result-stage,
  .ai-image-result-main {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .ai-image-field-grid,
  .ai-image-variant-grid,
  .ai-image-history-list {
    grid-template-columns: 1fr;
  }

  .ai-image-params,
  .ai-image-result,
  .ai-image-history {
    padding: 16px;
    border-radius: 20px;
  }
}

.mockups-toolbar-top-single {
  grid-template-columns: minmax(0, 1fr);
}

.batch-export-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
}

.batch-export-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.batch-export-panel {
  position: relative;
  width: min(860px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e5ebf3;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.batch-export-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.batch-export-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.batch-export-head p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.batch-export-section {
  display: grid;
  gap: 12px;
}

.batch-export-section-head,
.batch-export-format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch-export-chip-list,
.batch-export-source-list {
  display: grid;
  gap: 10px;
}

.batch-export-chip-list {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.batch-export-template-chip {
  min-height: 68px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fbff;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-export-template-chip img {
  width: 44px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.batch-export-template-chip span {
  font-size: 13px;
  color: #1f2937;
  line-height: 1.5;
}

.batch-export-upload {
  display: grid;
  gap: 6px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fbff;
  padding: 18px;
  cursor: pointer;
}

.batch-export-upload input {
  display: none;
}

.batch-export-upload span {
  font-weight: 700;
  color: #0f172a;
}

.batch-export-upload small {
  color: #64748b;
}

.batch-export-source-item {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.batch-export-source-list {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.batch-export-source-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #e9eff7;
}

.batch-export-source-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.batch-export-source-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.batch-export-source-remove:hover {
  transform: scale(1.06);
  background: rgba(15, 23, 42, 0.72);
}

.batch-export-source-remove:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.batch-export-source-meta {
  display: grid;
  gap: 4px;
}

.batch-export-source-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #0f172a;
}

.batch-export-source-size {
  font-size: 12px;
  color: #64748b;
}

.batch-export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.batch-task-page {
  display: grid;
  gap: 18px;
}

.batch-task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.batch-task-tabs {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.batch-task-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 0;
  height: auto;
  padding: 2px 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.batch-task-tab:hover {
  color: #334155;
}

.batch-task-tab.active {
  color: #155eef;
  border-bottom-color: #155eef;
}

.batch-task-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-task-check-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
}

.batch-task-list {
  display: grid;
  gap: 12px;
}

.batch-task-card {
  border-radius: 18px;
  border: 1px solid #e5ebf3;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.batch-task-card.selected {
  border-color: #155eef;
  border-width: 2px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12), 0 12px 30px rgba(15, 23, 42, 0.08);
}

.batch-task-card:hover {
  border-color: #cdd8eb;
}

.batch-task-card-head,
.batch-task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.batch-task-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.batch-task-thumb-grid {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 74px;
  display: grid;
  gap: 2px;
  background: #eef2f7;
  border: 1px solid #dde5f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.batch-task-thumb-grid.single {
  grid-template-columns: 1fr;
}

.batch-task-thumb-grid.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.batch-task-thumb-grid.grid-9 {
  grid-template-columns: repeat(3, 1fr);
}

.batch-task-thumb-cell,
.batch-task-thumb-placeholder {
  min-width: 0;
  min-height: 0;
  background: #f8fafc;
}

.batch-task-thumb-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.batch-task-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 20px;
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(111, 125, 255, 0.14)),
    #f8fafc;
}

.batch-task-title-row,
.batch-task-subline,
.batch-task-counts,
.batch-task-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.batch-task-subline,
.batch-task-counts,
.batch-task-step {
  color: #64748b;
  font-size: 13px;
}

.batch-task-status {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #eef4ff;
  color: #155eef;
}

.batch-task-status.status-cancelled {
  background: #f3f4f6;
  color: #475467;
}

.batch-task-status.status-failed,
.batch-task-status.status-completed_with_errors {
  background: #fff1f1;
  color: #d92d20;
}

.batch-task-delete {
  border: none;
  background: transparent;
  color: #98a2b3;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.batch-task-delete:hover {
  color: #475467;
}

.batch-task-progress-text {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
}

.batch-task-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
}

.batch-task-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1677ff, #6f7dff);
}

.studio-batch-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.studio-batch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.56);
  backdrop-filter: blur(8px);
}

.studio-batch-modal-panel {
  position: relative;
  width: min(1460px, calc(100vw - 28px));
  height: min(860px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(20, 130, 197, 0.08), transparent 28%),
    linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

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

.studio-batch-modal-head h3 {
  margin: 0;
  color: #10233a;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.studio-batch-close {
  border: 0;
  background: transparent;
  padding: 0;
  color: #65748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.studio-batch-close:hover {
  color: #10233a;
}

.studio-batch-close:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.studio-batch-steps {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}

.studio-batch-step {
  display: block;
  min-width: 0;
}

.studio-batch-step-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.studio-batch-step .ant-steps-item-container {
  min-height: 56px;
  padding: 10px 22px 10px 16px;
  background: #f3f5f9;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 16px 50%);
}

.studio-batch-step:first-child .ant-steps-item-container {
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
}

.studio-batch-step:last-child .ant-steps-item-container {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 16px 50%);
}

.studio-batch-step:only-child .ant-steps-item-container {
  clip-path: inset(0 round 16px);
}

.studio-batch-step .ant-steps-item-title,
.studio-batch-step .ant-steps-item-description {
  display: block;
}

.studio-batch-step .ant-steps-item-title {
  color: #8590a1;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.studio-batch-step .ant-steps-item-description {
  color: #9aa4b4;
  font-size: 11px;
  line-height: 1.25;
}

.studio-batch-step.active .ant-steps-item-container {
  background: linear-gradient(180deg, #2b78e5, #2a72dd);
  box-shadow: none;
}

.studio-batch-step.active .ant-steps-item-title,
.studio-batch-step.active .ant-steps-item-description {
  color: #fff;
}

.studio-batch-step.done .ant-steps-item-container {
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(43, 120, 229, 0.22);
}

.studio-batch-step.done .ant-steps-item-title {
  color: #2b78e5;
}

.studio-batch-step.done .ant-steps-item-description {
  color: #6d93ca;
}

.studio-batch-body {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.studio-batch-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.studio-batch-toolbar-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-batch-search-wrap {
  width: min(100%, 420px);
  flex: 0 1 420px;
  min-height: 40px;
}

.studio-batch-filter-wrap {
  flex: 1 1 420px;
  justify-content: flex-start;
  gap: 8px;
}

.studio-batch-source-tabs {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.studio-batch-source-tabs-inner {
  flex: 1 1 auto;
  min-width: 0;
}

.studio-batch-limit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .studio-batch-search-wrap {
    width: min(100%, 360px);
    flex-basis: 360px;
  }
}

@media (max-width: 860px) {
  .studio-batch-search-wrap,
  .studio-batch-filter-wrap {
    width: 100%;
    flex: 1 1 100%;
  }
}

.studio-batch-template-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.studio-batch-template-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.studio-batch-template-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.26),
    0 10px 20px rgba(20, 130, 197, 0.08);
}

.studio-batch-template-card img,
.studio-batch-template-placeholder {
  width: 100%;
  aspect-ratio: 10 / 16;
  border-radius: 7px;
  background: #edf3fb;
  object-fit: cover;
}

.studio-batch-template-card strong {
  color: #17283c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-batch-template-card.selected {
  background: rgba(20, 130, 197, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(20, 130, 197, 0.34),
    0 10px 24px rgba(20, 130, 197, 0.1);
}

.studio-batch-template-check {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1482c5;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.studio-batch-pagination {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.studio-batch-pagination-text {
  color: #667892;
  font-size: 12px;
  font-weight: 600;
}

.studio-batch-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 10px;
}

.studio-batch-upload-dropzone {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  background: rgba(20, 130, 197, 0.05);
  text-align: center;
  color: #59708e;
}

.studio-batch-upload-dropzone.uploading {
  border: 1px solid rgba(20, 130, 197, 0.28);
  background: linear-gradient(135deg, rgba(20, 130, 197, 0.12), rgba(20, 130, 197, 0.04));
  cursor: wait;
}

.studio-batch-upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.studio-batch-upload-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1482c5;
  color: #fff;
}

.studio-batch-upload-dropzone.uploading .studio-batch-upload-icon {
  background: #e8f4fb;
  color: #1482c5;
}

.studio-batch-upload-dropzone strong {
  color: #18304f;
  font-size: 13px;
  font-weight: 700;
}

.studio-batch-upload-dropzone small {
  max-width: 120px;
  color: #6f8199;
  font-size: 11px;
  line-height: 1.4;
}

.studio-batch-source-list {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  align-content: start;
}

.studio-batch-source-item,
.studio-batch-empty,
.studio-batch-review-card,
.studio-batch-review-list {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.studio-batch-source-item {
  padding: 6px;
}

.studio-batch-source-card {
  display: grid;
  gap: 6px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.studio-batch-source-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.studio-batch-source-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eef7;
}

.studio-batch-source-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-batch-source-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.studio-batch-source-remove:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.72);
}

.studio-batch-source-remove:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.studio-batch-source-meta {
  display: grid;
  gap: 2px;
}

.studio-batch-source-item strong,
.studio-batch-review-card strong,
.studio-batch-review-list h4 {
  display: block;
  color: #1b2c43;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-batch-source-item span,
.studio-batch-review-card span {
  color: #7687a0;
  font-size: 11px;
}

.studio-batch-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #788aa3;
  font-size: 14px;
}

.studio-batch-review {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.studio-batch-review-card {
  padding: 18px;
}

.studio-batch-review-card strong {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.studio-batch-review-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.studio-batch-review-list > div {
  padding: 18px 20px;
}

.studio-batch-review-list > div + div {
  border-left: 1px solid rgba(17, 24, 39, 0.08);
}

.studio-batch-review-list ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #5f738f;
  font-size: 13px;
  line-height: 1.8;
}

.studio-batch-success {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.studio-batch-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1482c5 0%, #5d8bff 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(20, 130, 197, 0.22);
}

.studio-batch-success h4 {
  margin: 18px 0 8px;
  color: #18283d;
  font-size: 26px;
  font-weight: 800;
}

.studio-batch-success p {
  margin: 0;
  max-width: 440px;
  color: #6a7d95;
  font-size: 14px;
  line-height: 1.8;
}

.studio-batch-success-task {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 130, 197, 0.08);
  color: #1482c5;
  font-size: 13px;
  font-weight: 700;
}

.studio-batch-success-actions,
.studio-batch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.studio-batch-success-actions {
  margin-top: 22px;
}

.studio-batch-foot {
  padding-top: 4px;
}

body[data-ui-theme="dark"] .studio-batch-modal-panel {
  background:
    radial-gradient(circle at top left, rgba(95, 140, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #121b29 0%, #101927 100%);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

body[data-ui-theme="dark"] .studio-batch-limit {
  color: #8fb1ff;
}

body[data-ui-theme="dark"] .studio-batch-success-task {
  background: rgba(95, 140, 255, 0.14);
  color: #8fb1ff;
}

body[data-ui-theme="dark"] .studio-batch-modal-head h3,
body[data-ui-theme="dark"] .studio-batch-template-card strong,
body[data-ui-theme="dark"] .studio-batch-source-item strong,
body[data-ui-theme="dark"] .studio-batch-review-card strong,
body[data-ui-theme="dark"] .studio-batch-review-list h4,
body[data-ui-theme="dark"] .studio-batch-success h4,
body[data-ui-theme="dark"] .studio-batch-upload-dropzone strong,
body[data-ui-theme="dark"] .studio-batch-selected-head strong {
  color: #edf3ff;
}

body[data-ui-theme="dark"] .studio-batch-close {
  color: #93a6c4;
}

body[data-ui-theme="dark"] .studio-batch-close:hover {
  color: #eef5ff;
}

body[data-ui-theme="dark"] .studio-batch-template-card span,
body[data-ui-theme="dark"] .studio-batch-source-item span,
body[data-ui-theme="dark"] .studio-batch-review-card span,
body[data-ui-theme="dark"] .studio-batch-empty,
body[data-ui-theme="dark"] .studio-batch-upload-dropzone small,
body[data-ui-theme="dark"] .studio-batch-review-list ul {
  color: #93a6c4;
}

body[data-ui-theme="dark"] .studio-batch-step,
body[data-ui-theme="dark"] .studio-batch-search,
body[data-ui-theme="dark"] .studio-batch-template-card,
body[data-ui-theme="dark"] .studio-batch-source-item,
body[data-ui-theme="dark"] .studio-batch-empty,
body[data-ui-theme="dark"] .studio-batch-review-card,
body[data-ui-theme="dark"] .studio-batch-review-list,
body[data-ui-theme="dark"] .studio-batch-selected-strip {
  border-color: #233346;
  background: rgba(19, 27, 40, 0.92);
}

body[data-ui-theme="dark"] .studio-batch-template-card.selected,
body[data-ui-theme="dark"] .studio-batch-upload-dropzone {
  background: rgba(95, 140, 255, 0.1);
}

body[data-ui-theme="dark"] .studio-batch-source-card:hover {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

body[data-ui-theme="dark"] .studio-batch-source-preview {
  background: #223349;
}

body[data-ui-theme="dark"] .studio-batch-source-remove {
  background: rgba(2, 6, 23, 0.68);
}

body[data-ui-theme="dark"] .studio-batch-source-remove:hover {
  background: rgba(2, 6, 23, 0.82);
}

body[data-ui-theme="dark"] .studio-batch-step .ant-steps-item-container {
  background: #182233;
  box-shadow: inset 0 0 0 1px rgba(143, 177, 255, 0.08);
}

body[data-ui-theme="dark"] .studio-batch-step .ant-steps-item-title {
  color: #8c97aa;
}

body[data-ui-theme="dark"] .studio-batch-step .ant-steps-item-description {
  color: #707e97;
}

body[data-ui-theme="dark"] .studio-batch-step.active .ant-steps-item-container {
  background: linear-gradient(180deg, #5f8cff, #527ef3);
  box-shadow: none;
}

body[data-ui-theme="dark"] .studio-batch-step.active .ant-steps-item-title,
body[data-ui-theme="dark"] .studio-batch-step.active .ant-steps-item-description {
  color: #ffffff;
}

body[data-ui-theme="dark"] .studio-batch-step.done .ant-steps-item-container {
  background: rgba(95, 140, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(95, 140, 255, 0.18);
}

body[data-ui-theme="dark"] .studio-batch-step.done .ant-steps-item-title {
  color: #99b7ff;
}

body[data-ui-theme="dark"] .studio-batch-step.done .ant-steps-item-description {
  color: #7f99cd;
}

body[data-ui-theme="dark"] .studio-batch-template-placeholder {
  background: #1a2638;
}

body[data-ui-theme="dark"] .studio-batch-template-card {
  box-shadow: inset 0 0 0 1px rgba(143, 177, 255, 0.1);
}

body[data-ui-theme="dark"] .studio-batch-template-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(143, 177, 255, 0.18),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

body[data-ui-theme="dark"] .studio-batch-template-card.selected {
  box-shadow:
    inset 0 0 0 1px rgba(95, 140, 255, 0.34),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

body[data-ui-theme="dark"] .mockups-card-favorite {
  background: transparent;
  color: #ffffff;
}

body[data-ui-theme="dark"] .mockups-card-favorite.active {
  color: #ffffff;
}

body[data-ui-theme="dark"] .mockups-page-header h3 {
  color: #e6edf7;
}

body[data-ui-theme="dark"] .studio-batch-selected-chip {
  background: rgba(95, 140, 255, 0.16);
  color: #a8c0ff;
}

body[data-ui-theme="dark"] .studio-batch-pagination-text {
  color: #93a6c4;
}

body[data-ui-theme="dark"] .studio-batch-template-check {
  background: rgba(13, 19, 31, 0.9);
  color: #8fb1ff;
}

body[data-ui-theme="dark"] .studio-batch-upload-icon {
  background: #5f8cff;
  color: #fff;
}

body[data-ui-theme="dark"] .studio-batch-review-list > div + div {
  border-left-color: #233346;
}

@media (max-width: 980px) {
  .studio-batch-modal {
    padding: 18px;
  }

  .studio-batch-modal-panel {
    width: calc(100vw - 36px);
    height: calc(100vh - 36px);
    padding: 22px;
  }

  .studio-batch-template-grid,
  .studio-batch-review {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-batch-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .studio-batch-step,
  .studio-batch-step:first-child,
  .studio-batch-step:last-child,
  .studio-batch-step:only-child {
    clip-path: inset(0 round 16px);
  }

  .studio-batch-upload-layout,
  .studio-batch-review-list {
    grid-template-columns: 1fr;
  }

  .studio-batch-review-list > div + div {
    border-left: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
  }
}

@media (max-width: 720px) {
  .studio-batch-steps,
  .studio-batch-template-grid,
  .studio-batch-review {
    grid-template-columns: 1fr;
  }

  .studio-batch-modal-head,
  .studio-batch-toolbar,
  .studio-batch-foot,
  .studio-batch-success-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

body[data-ui-theme="dark"] .mockups-batch-count,
body[data-ui-theme="dark"] .batch-export-head p,
body[data-ui-theme="dark"] .batch-export-upload small,
body[data-ui-theme="dark"] .batch-export-source-size,
body[data-ui-theme="dark"] .batch-task-subline,
body[data-ui-theme="dark"] .batch-task-counts,
body[data-ui-theme="dark"] .batch-task-step {
  color: #8ea0b7;
}

body[data-ui-theme="dark"] .mockups-card.selected .mockups-card-cover {
  box-shadow: 0 0 0 2px rgba(95, 140, 255, 0.34);
}

body[data-ui-theme="dark"] .batch-export-panel,
body[data-ui-theme="dark"] .batch-export-template-chip,
body[data-ui-theme="dark"] .batch-export-upload,
body[data-ui-theme="dark"] .batch-export-source-item,
body[data-ui-theme="dark"] .batch-task-card {
  background: #152031;
  border-color: #243244;
  color: #e6eef8;
}

body[data-ui-theme="dark"] .batch-task-progress-text,
body[data-ui-theme="dark"] .batch-export-upload span,
body[data-ui-theme="dark"] .batch-export-template-chip span,
body[data-ui-theme="dark"] .batch-export-source-name {
  color: #eef5ff;
}

body[data-ui-theme="dark"] .batch-export-source-preview {
  background: #223349;
}

body[data-ui-theme="dark"] .batch-export-source-remove {
  background: rgba(2, 6, 23, 0.66);
}

body[data-ui-theme="dark"] .batch-export-source-remove:hover {
  background: rgba(2, 6, 23, 0.8);
}

body[data-ui-theme="dark"] .batch-task-tab {
  color: #8ea0b7;
}

body[data-ui-theme="dark"] .batch-task-tab:hover {
  color: #d2deef;
}

body[data-ui-theme="dark"] .batch-task-tab.active {
  color: #dce8ff;
  border-bottom-color: #8fb1ff;
}

body[data-ui-theme="dark"] .batch-task-progress-bar {
  background: #25344a;
}

.app-workbench-card h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  color: #111827;
}

.app-workbench-card p {
  margin: 10px 0 0;
  color: #556070;
  line-height: 1.6;
}

.app-workbench-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

@media (max-width: 900px) {
  .seo-home {
    padding: 16px;
  }

  .seo-home-story-shell {
    gap: 28px;
  }

  .seo-home-story-row,
  .seo-home-story-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: unset;
    padding: 24px 20px;
  }

  .seo-home-story-row.reverse .seo-home-story-copy,
  .seo-home-story-row.reverse .seo-home-story-visual {
    order: initial;
  }

  .seo-home-story-copy h1,
  .seo-home-story-copy h1.is-primary {
    font-size: 36px;
  }

  .seo-home-story-copy p {
    font-size: 15px;
  }

  .seo-home-story-visual,
  .seo-home-story-placeholder {
    min-height: 320px;
  }

  .seo-home-hero {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .seo-home-hero h1 {
    font-size: 34px;
  }

  .seo-home-stats,
  .seo-home-preview-stack,
  .seo-home-feature-grid,
  .seo-home-workflow-grid,
  .seo-home-scenario-grid {
    grid-template-columns: 1fr;
  }

  .seo-home-section,
  .seo-home-cta,
  .faq-page-shell {
    padding: 16px;
  }

  .seo-home-section,
  .seo-home-cta,
  .faq-hero,
  .faq-section,
  .faq-cta {
    padding: 20px;
  }

  .seo-home-section-head,
  .faq-section-head,
  .seo-home-cta,
  .faq-hero,
  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-collapse-answer {
    padding-left: 20px;
  }

  .app-workbench-shell {
    grid-template-columns: 1fr;
  }

  .app-workbench-sidebar {
    border-bottom: 1px solid #dde3ea;
  }
}


.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background: #fff;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow:
    0 8px 20px -20px rgba(0, 0, 0, 0.42),
    0 12px 28px -30px rgba(0, 0, 0, 0.55);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 600;
}

.brand-link,
.brand-link:visited,
.brand-link:hover,
.brand-link:active {
  justify-self: start;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(130deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
}

.nav {
  display: flex;
  gap: 18px;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-lang {
  position: relative;
}

.topbar-lang-trigger {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-lang-caret {
  color: #6b7280;
  font-size: 11px;
}

.topbar-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 120px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 40;
}

.topbar-lang-option {
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  text-align: left;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
}

.topbar-lang-option:hover {
  background: #f1f5f9;
}

.topbar-lang-option.active {
  background: #eaf2ff;
  color: #1d4ed8;
  font-weight: 600;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2f7;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.app-workbench-top-actions .user-avatar-button {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.app-workbench-signin-btn:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-lg {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.topbar-user-menu {
  position: relative;
}

.user-avatar-button {
  border: 1px solid #d8dee8;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.user-avatar-button:hover {
  border-color: #bcc7d8;
}

.user-avatar-button-placeholder {
  cursor: default;
}

.user-avatar-placeholder {
  background: linear-gradient(90deg, #eef2f7 0%, #e5eaf2 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: wmAvatarPulse 1.2s ease-in-out infinite;
}

@keyframes wmAvatarPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 330px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 18px 18px 14px;
  display: grid;
  gap: 14px;
  z-index: 40;
}

.user-dropdown-main {
  display: grid;
  gap: 4px;
}

.user-dropdown-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan-badge {
  height: 30px;
  min-width: 68px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #d6e0f4;
  background: #eef3ff;
  color: #4f6697;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.user-email {
  margin-top: 0;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-membership-expiry {
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
}

.user-dropdown-metrics {
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
  padding: 12px 0;
}

.user-dropdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #1f2937;
  font-size: 13px;
}

.user-dropdown-row strong {
  font-size: 18px;
  font-weight: 700;
}

.user-dropdown-lang {
  padding: 0;
}

.user-lang-value {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.user-lang-caret {
  color: #6b7280;
  margin-left: 4px;
}

.user-dropdown-links {
  display: grid;
  gap: 4px;
  border-top: 1px solid #edf1f7;
  padding-top: 10px;
}

.user-dropdown-link {
  text-decoration: none;
  border: none;
  background: transparent;
  color: #111827;
  text-align: left;
  padding: 8px 0;
  font-size: 15px;
  cursor: pointer;
}

.user-dropdown-link:hover {
  color: #2b4d85;
}

.user-dropdown-link-danger {
  color: #1f2937;
}

.user-dropdown-actions {
  border-top: 1px solid #edf1f7;
  padding-top: 10px;
}

.user-dropdown-section {
  border-top: 1px solid #edf1f7;
  padding-top: 10px;
}

.user-dropdown-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-dropdown-inline-label {
  font-size: 14px;
  color: #111827;
}

.user-dropdown-inline-action {
  position: relative;
}

.user-dropdown-lang-trigger {
  border: none;
  background: transparent;
  color: #111827;
  height: 32px;
  padding: 0 2px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.user-dropdown-lang-value {
  max-width: 110px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-dropdown-lang-menu {
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  min-width: 160px;
}


.nav-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

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

.token-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.token-bar input {
  width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
}

.btn {
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.22);
  border-radius: 10px;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #fff;
}

.btn-danger {
  border: 1px solid #ef4444;
  color: #ef4444;
  background: #fff;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 12, 24, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal {
  position: relative;
  width: min(448px, calc(100% - 24px));
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e3e8f2;
  box-shadow:
    0 20px 48px rgba(8, 14, 34, 0.28),
    0 8px 18px rgba(8, 14, 34, 0.16);
  padding: 16px 32px 28px;
  display: grid;
  gap: 14px;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.2px;
}

.auth-modal-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f3f7;
  color: #4b5563;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  background: #e6eaf1;
}

.auth-modal-close-floating {
  position: absolute;
  top: 14px;
  right: 16px;
}

.auth-modal-tabs {
  --auth-tab-index: 0;
  display: grid;
  gap: 10px;
}

.auth-modal-tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.auth-modal-tab {
  border: none;
  background: transparent;
  color: #8b97ab;
  border-radius: 0;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-modal-tab.active {
  color: #111827;
}

.auth-modal-tab-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.auth-modal-tab-indicator {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / 2);
  border-radius: inherit;
  background: #2a4f8c;
  transform: translateX(calc(var(--auth-tab-index) * 100%));
  transition: transform 0.24s ease;
}

.auth-modal-form {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.auth-modal-form form {
  display: grid;
  gap: 10px;
}

.auth-modal .field {
  gap: 8px;
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.auth-modal .field input,
.auth-modal .field select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  font-size: 14px;
  color: #111827;
  padding: 0 16px;
}

.auth-modal .field input:focus,
.auth-modal .field select:focus {
  outline: none;
  border-color: #97abd1;
  box-shadow: 0 0 0 3px rgba(42, 79, 140, 0.14);
}

.auth-modal-actions {
  display: grid;
  gap: 8px;
}

.auth-modal-actions-stack {
  grid-template-columns: 1fr;
}

.auth-modal-primary-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #2a4f8c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(42, 79, 140, 0.24);
}

.auth-modal-primary-btn:hover {
  background: #244373;
}

.auth-modal .btn-primary {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #2a4f8c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(42, 79, 140, 0.24);
}

.auth-modal .btn-primary:hover {
  background: #244373;
}

.auth-modal-secondary-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #d3dbea;
  color: #36548b;
  background: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.auth-modal-secondary-btn:hover {
  background: #f8faff;
}

.auth-modal .btn-outline {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #d3dbea;
  color: #36548b;
  background: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.auth-modal .btn-outline:hover {
  background: #f8faff;
}

.auth-modal-actions .btn {
  width: 100%;
}

.auth-modal-link-btn {
  border: none;
  background: transparent;
  color: #2a4f8c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 0;
  cursor: pointer;
}

.auth-modal-link-btn:hover {
  text-decoration: underline;
}

.auth-modal-link-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-modal-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  justify-content: center;
}

.auth-modal-separator::before,
.auth-modal-separator::after {
  display: none;
}

.auth-google-button-slot {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.auth-google-button-slot > div,
.auth-google-button-slot iframe {
  max-width: 100%;
}

.auth-modal .btn:disabled {
  opacity: 0.72;
}

.auth-modal-hint {
  border: 1px solid #dce8ff;
  background: #f5f8ff;
  color: #2b4575;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-modal-back-link {
  justify-self: flex-start;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .auth-modal {
    width: min(448px, calc(100% - 16px));
    border-radius: 20px;
    padding: 14px 16px 18px;
    gap: 12px;
  }

  .auth-modal-tab-track {
    height: 5px;
  }

  .auth-modal .field {
    gap: 8px;
    font-size: 12px;
  }

  .auth-modal .field input,
  .auth-modal .field select {
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
    padding: 0 14px;
  }

  .auth-modal .btn-primary,
  .auth-modal-primary-btn {
    min-height: 46px;
    font-size: 15px;
  }

  .auth-modal .btn-outline,
  .auth-modal-secondary-btn {
    min-height: 42px;
    font-size: 14px;
  }

  .auth-modal-link-btn,
  .auth-modal-separator,
  .auth-modal-hint {
    font-size: 13px;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 1.1fr;
  height: 100%;
  min-height: 0;
}

.studio-ant-shell {
  grid-template-columns: min-content 1fr 400px;
  gap: 0;
  padding: 0;
  background: transparent;
  transition: grid-template-columns 0.24s ease;
}

.studio-ant-shell > .app-workbench-sidebar {
  width: 260px;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.studio-ant-shell > .app-workbench-sidebar.collapsed {
  width: 72px;
}

.studio-ant-shell > .app-workbench-sidebar .app-workbench-sidebar-head {
  margin-bottom: 12px;
}

.studio-ant-shell .panel {
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.studio-ant-shell .panel-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-ant-shell .panel-label {
  color: #8c8c8c;
  letter-spacing: 0;
  text-transform: none;
}

.studio-ant-shell .panel-header h2 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.studio-ant-shell .tabs-scroll {
  border-bottom: none;
  padding: 0 16px;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 6px 14px -16px rgba(0, 0, 0, 0.35);
}

.studio-ant-shell .tab {
  height: 44px;
  padding: 0 12px;
  color: #595959;
  white-space: nowrap;
  flex: 0 0 auto;
}

.studio-ant-shell .tab.active {
  color: #1677ff;
}

.studio-ant-shell .tab.active::after {
  height: 2px;
  background: #1677ff;
}

.studio-ant-shell .panel-body {
  padding: 12px 16px;
}

.studio-ant-shell .panel-right .panel-body {
  padding: 8px 10px 8px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
}

.studio-ant-shell .panel-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.studio-ant-shell #templateList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.studio-ant-shell #templateList .template-card {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  gap: 8px;
  outline: none;
}

.studio-ant-shell #templateList .card-media {
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  overflow: hidden;
  background: #f3f4f6;
}

.studio-ant-shell #templateList .card-media img {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.studio-ant-shell #templateList .template-card.active {
  outline: none;
}

.studio-ant-shell #templateList .card-name {
  font-size: 13px;
  line-height: 1.3;
  color: #262626;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-ant-shell .card-badge.card-badge-vip {
  top: 6px;
  right: 6px;
  border-radius: 999px;
  height: 22px;
  padding: 0 7px;
  background: linear-gradient(180deg, #f9d66f 0%, #e4b849 100%);
  color: #3b2d00;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  font-size: 10px;
  font-weight: 700;
}

.studio-ant-shell .card-badge.card-badge-vip .badge-icon {
  font-size: 10px;
}

.studio-ant-shell .panel-footer {
  border-top: 1px solid #f0f0f0;
  padding: 12px 16px;
}

.studio-ant-shell .btn {
  border-radius: 6px;
}

.studio-ant-shell .btn-ghost,
.studio-ant-shell .btn-outline {
  border: 1px solid #d9d9d9;
  background: #fff;
}

.studio-ant-shell .btn-primary {
  background: #1677ff;
  box-shadow: none;
}

.studio-ant-shell .btn-primary:hover {
  background: #4096ff;
}

.studio-ant-shell .field input,
.studio-ant-shell .field select,
.studio-ant-shell .field textarea,
.studio-ant-shell .config-save input {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.studio-ant-shell .field .studio-select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M884 256h-75c-5 0-10 2-14 6L512 598 229 262a20 20 0 0 0-14-6h-75c-11 0-17 13-10 22l367 436c8 9 22 9 30 0l367-436c7-9 1-22-10-22z' fill='%2399a1b3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 10px 10px;
  color: #262626;
  font-size: 13px;
  line-height: 1;
  padding: 0 34px 0 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.studio-ant-shell .field .studio-select:hover {
  border-color: #4096ff;
}

.studio-ant-shell .field .studio-select:focus,
.studio-ant-shell .field .studio-select:focus-visible {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.studio-ant-shell .accordion details {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fff;
}

.studio-ant-shell .preview-frame {
  border: none;
  background: transparent;
}

.studio-ant-shell .panel-center .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
  border-bottom: none;
  gap: 12px;
}

.studio-top-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studio-back-btn {
  min-width: 76px;
  height: 34px;
  border: none;
  background: transparent;
  color: #262626;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  cursor: pointer;
  font-size: 13px;
}

.studio-back-btn:hover {
  color: #111111;
}

.studio-back-btn-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.studio-breadcrumb {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.studio-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.studio-breadcrumb-link {
  border: none;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.studio-breadcrumb-link:hover {
  color: #4096ff;
}

.studio-breadcrumb-current {
  color: #8c8c8c;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.studio-breadcrumb-sep {
  color: #bfbfbf;
  margin: 0 8px;
  font-size: 12px;
}

.studio-ant-shell .panel-center {
  position: relative;
  border-left: none;
  border-right: none;
}

.studio-ant-shell .panel-center::before,
.studio-ant-shell .panel-center::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #f0f0f0;
  pointer-events: none;
  z-index: 2;
}

.studio-ant-shell .panel-center::before {
  left: 0;
}

.studio-ant-shell .panel-center::after {
  right: 0;
}

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

.panel-right {
  border-right: none;
}

.panel-header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.panel-header h2 {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
}

.panel-body {
  padding: 18px 22px;
  overflow: auto;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

.panel-footer {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tabs-scroll {
  display: flex;
  gap: 10px;
  padding: 12px 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab {
  border: none;
  background: transparent;
  padding: 6px 2px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  position: relative;
}

.tab.active {
  color: var(--text);
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
}

.studio-template-tabs-wrap {
  margin: -4px 0 14px;
  border-bottom: none;
  box-shadow: 0 6px 14px -16px rgba(0, 0, 0, 0.35);
}

.studio-template-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  padding-bottom: 0;
}

.studio-template-tab {
  border: none;
  background: transparent;
  padding: 10px 16px 9px;
  color: #595959;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  min-width: 0;
  text-align: left;
  flex: 0 0 auto;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.studio-template-tab.active {
  color: #1677ff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  border-bottom-color: #1677ff;
}

.studio-template-tab-text {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-template-tab-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #1677ff;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.studio-style-module .accordion details {
  margin-bottom: 10px;
}

.studio-style-empty {
  min-height: 240px;
}

.studio-style-module {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.studio-export-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 12px 14px 10px 6px;
  background: #fff;
  border-bottom: 1px solid #e7edf5;
  display: grid;
  gap: 8px;
}

.studio-export-toolbar-actions {
  width: 100%;
}

.studio-export-toolbar-actions .btn {
  width: 100%;
}

.studio-export-toolbar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.studio-toolbar-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: currentColor;
  flex: 0 0 auto;
}

.studio-export-secondary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  align-items: stretch;
  flex-wrap: nowrap;
}

.studio-export-secondary-actions .btn {
  width: 100%;
}

.studio-style-scroll {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-left: 6px;
  padding-right: 14px;
  padding-bottom: 24px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  direction: rtl;
}

.studio-style-scroll > .studio-module-section,
.studio-style-scroll > .studio-main-content-extra {
  direction: ltr;
}

.studio-style-module .toolbar-field.inspector-affix-field {
  width: 100%;
}

.studio-style-module .toolbar-input-with-affix.inspector-affix-input {
  width: 100%;
  height: var(--toolbar-control-height, 36px);
  box-sizing: border-box;
  border: 1px solid #d4dae3;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 0 28px 0 28px;
}

.studio-style-module .toolbar-input-with-affix.inspector-affix-input.no-suffix {
  padding-right: 10px;
}

.studio-style-module .toolbar-input-with-affix.inspector-affix-input.with-stepper,
.studio-style-module .toolbar-input-with-affix.inspector-affix-input.no-suffix.with-stepper {
  padding-right: 40px;
}

.studio-style-module .toolbar-field.inspector-affix-field.has-stepper .inspector-number-stepper {
  right: 1px;
}

.studio-style-module .toolbar-field.inspector-affix-field.has-stepper.has-suffix-stepper .inspector-number-stepper {
  right: 22px;
}

.studio-module-section {
  border-top: 1px solid #f0f0f0;
  padding: 14px 0;
  display: grid;
  gap: 12px;
}

.studio-style-scroll .studio-module-section > .studio-module-title-row,
.studio-style-scroll .studio-module-section > .studio-inline-title-row,
.studio-style-scroll .studio-module-section > .studio-collapse-title,
.studio-style-scroll .studio-module-section > .studio-module-title {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  padding-top: 4px;
  padding-bottom: 8px;
}

.studio-module-section.first {
  border-top: none;
  padding-top: 8px;
}

.studio-main-content-section {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.studio-main-content-extra {
  display: grid;
  gap: 18px;
  padding-top: 0;
  padding-bottom: 10px;
  border-top: none;
}

.studio-module-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.studio-module-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.studio-view-source-btn {
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
}

.studio-inline-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.studio-inline-title-row .studio-module-title {
  flex: 0 0 auto;
  white-space: nowrap;
}

.studio-inline-title-options {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.studio-sample-module-toggle {
  flex: 0 0 auto;
  width: auto;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 600;
}

.studio-subtle-text {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.studio-segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
  padding: 4px;
  background: #f5f7fb;
  border-radius: 10px;
}

.studio-segmented-item {
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.studio-segmented-item.active {
  background: #ffffff;
  color: #1677ff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.studio-segmented-inline {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 2px;
  overflow-x: auto;
  background: #f5f7fb;
}

.studio-segmented-inline .studio-segmented-item {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.studio-segmented-inline .studio-segmented-item:hover {
  background: #f2f7ff;
  border-color: #bdd7ff;
  color: #1454cc;
}

.studio-segmented-inline .studio-segmented-item.active {
  background: #1677ff;
  border-color: #1677ff;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.24);
}

.studio-checkbox-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.studio-checkbox-group-inline {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  width: auto;
  overflow-x: auto;
}

.studio-checkbox-group-inline .studio-checkbox-item {
  width: auto;
  min-width: 0;
  padding: 0 10px;
  flex: 0 0 auto;
}

.studio-checkbox-item {
  appearance: none;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.88);
  border-radius: 6px;
  padding: 0 6px;
  min-height: 28px;
  line-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.studio-checkbox-item:hover {
  border-color: #4096ff;
  color: #4096ff;
}

.studio-checkbox-item.active {
  border-color: #1677ff;
  background: #1677ff;
  color: #ffffff;
}

.studio-checkbox-item:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.24);
  outline-offset: 1px;
}

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

.studio-ant-shell .studio-form-grid .field input,
.studio-ant-shell .studio-form-grid .field select {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
}

.field-span-2 {
  grid-column: span 2;
}

.studio-wallpaper-slots {
  display: grid;
  gap: 12px;
}

.studio-wallpaper-slot-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.studio-thumb-tile {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border: 1px solid #d4dae3;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #6b7280;
  cursor: pointer;
}

.studio-thumb-upload-tile {
  border-style: dashed;
}

.studio-thumb-upload-tile.uploading {
  border-color: rgba(20, 130, 197, 0.55);
  background: #eef8ff;
  color: #1482c5;
  cursor: wait;
}

.studio-upload-text-btn.uploading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1482c5;
  cursor: wait;
}

.studio-thumb-image-tile {
  overflow: visible;
  background: #f8fafc;
}

.studio-thumb-image-tile .inspector-image-preview {
  width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.studio-thumb-remove {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 14px;
  height: 14px;
  border: 1px solid #d4dae3;
  border-radius: 999px;
  background: #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  z-index: 3;
}

.studio-thumb-crop-tile {
  border: none;
  background: transparent;
  padding: 0;
}

.studio-thumb-crop-tile:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.studio-bg-recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.studio-bg-recommend-item {
  height: 26px;
  border: 1px solid #d4dae3;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.studio-bg-recommend-item.active {
  border-color: #1677ff;
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.2);
}

.studio-module-inline-toggle {
  width: auto;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 500;
}

.studio-wallpaper-preview-card {
  padding: 0;
  position: relative;
}

.studio-wallpaper-preview-card .inspector-image-preview {
  width: 100%;
  height: 100%;
}

.studio-wallpaper-image-style-controls {
  display: grid;
  gap: 10px;
}

.studio-shadow-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-shadow-switch-title {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.studio-wallpaper-image-style-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  height: 18px;
}

.studio-wallpaper-image-style-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--slider-active) 0,
    var(--slider-active) var(--slider-progress, 0%),
    #dbe2ea var(--slider-progress, 0%),
    #dbe2ea 100%
  );
}

.studio-wallpaper-image-style-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  margin-top: -7px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.32);
}

.studio-wallpaper-image-style-controls input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dbe2ea;
}

.studio-wallpaper-image-style-controls input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--slider-active);
}

.studio-wallpaper-image-style-controls input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.32);
}

.studio-module-section .inspector-image-rotation-section input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  height: 18px;
}

.studio-module-section .inspector-image-rotation-section input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--slider-active) 0,
    var(--slider-active) var(--slider-progress, 0%),
    #dbe2ea var(--slider-progress, 0%),
    #dbe2ea 100%
  );
}

.studio-module-section .inspector-image-rotation-section input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  margin-top: -7px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.32);
}

.studio-module-section .inspector-image-rotation-section input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dbe2ea;
}

.studio-module-section .inspector-image-rotation-section input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--slider-active);
}

.studio-module-section .inspector-image-rotation-section input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.32);
}

.studio-image-preview {
  border-radius: 8px;
  background: #f7f8fa;
  border: 1px solid #eceff4;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9ca3af;
  font-size: 12px;
}

.studio-image-preview.small {
  min-height: 72px;
}

.studio-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.studio-inline-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.studio-inline-actions.studio-export-secondary-actions {
  display: grid;
}

.studio-inline-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(20, 130, 197, 0.22);
  border-top-color: #1482c5;
  animation: studio-inline-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

@keyframes studio-inline-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.studio-export-format-radios {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.studio-export-format-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  cursor: pointer;
  gap: 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.studio-export-format-item input {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.studio-export-format-item.checked {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.studio-export-actions {
  width: 100%;
}

.studio-export-actions .btn {
  width: 100%;
}

.studio-export-settings-section {
  padding-bottom: 8px;
}

.studio-mini-tabs {
  display: flex;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.studio-mini-tab {
  flex: 1 1 0;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  min-height: 34px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.studio-mini-tab + .studio-mini-tab {
  border-left: 1px solid #e5e7eb;
}

.studio-mini-tab.active {
  background: #1677ff;
  color: #fff;
}

.studio-watermark-editor {
  display: grid;
  gap: 10px;
}

.studio-crop-dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  display: grid;
  place-items: center;
  z-index: 2200;
  padding: 20px;
}

.studio-crop-dialog {
  width: min(1160px, calc(100vw - 40px));
  height: min(760px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.26);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.studio-crop-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e7edf5;
}

.studio-crop-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.studio-crop-dialog-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.studio-crop-dialog-stage-wrap {
  position: relative;
  padding: 14px 16px 12px;
  min-height: 0;
}

.studio-crop-dialog-stage {
  width: 100%;
  height: 100%;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #eef2f7;
  display: block;
  cursor: move;
  object-fit: contain;
}

.studio-crop-dialog-loading {
  position: absolute;
  inset: 14px 16px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.studio-crop-dialog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 0 16px 12px;
}

.studio-crop-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-crop-control-label {
  min-width: 48px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.studio-crop-mini-btn {
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1;
}

.studio-crop-zoom-value,
.studio-crop-rotate-value {
  font-size: 12px;
  color: #374151;
  font-weight: 600;
  min-width: 52px;
}

.studio-crop-rotate-group input[type="range"] {
  flex: 1 1 auto;
  min-width: 260px;
}

.studio-crop-rotate-group {
  align-items: flex-start;
}

.studio-crop-rotate-slider-wrap {
  flex: 1 1 auto;
  min-width: 260px;
  display: grid;
  gap: 6px;
}

.studio-crop-rotate-slider-wrap input[type="range"] {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.studio-crop-rotate-marks {
  position: relative;
  height: 24px;
}

.studio-crop-rotate-mark-item {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 3px;
}

.studio-crop-rotate-mark-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #b9c3d4;
}

.studio-crop-rotate-mark-dot.active {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.studio-crop-rotate-mark-label {
  font-size: 10px;
  line-height: 1;
  color: #8a94a7;
  user-select: none;
}

.studio-crop-action-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
}

.studio-crop-action-btn.active {
  border-color: rgba(var(--accent-rgb), 0.62);
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.12);
}

.studio-crop-control-actions {
  justify-content: flex-end;
}

.studio-crop-dialog-actions {
  border-top: 1px solid #e7edf5;
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.studio-collapse-title {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.studio-collapse-caret {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8c8c8c;
  line-height: 1;
}

.studio-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  width: 100%;
}

.studio-switch-row input {
  margin: 0;
}

.studio-collapse-switch-row {
  cursor: default;
}

.studio-collapse-switch {
  flex: 0 0 auto;
}

.studio-global-watermark-section .ant-switch {
  width: 44px;
  height: 22px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  position: relative;
  display: inline-block;
}

.studio-global-watermark-section .ant-switch .ant-switch-handle {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 2px;
  left: 2px;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.studio-global-watermark-section .ant-switch.checked {
  background: #1677ff;
}

.studio-global-watermark-section .ant-switch.checked .ant-switch-handle {
  left: 24px;
}

.studio-border-preset-row {
  display: block;
}

.studio-border-preset-controls,
.studio-border-preset-preview {
  min-width: 0;
}

.studio-border-preset-controls .studio-segmented {
  height: 100%;
}

.studio-border-preview {
  display: none !important;
}

.studio-island-preset-row {
  display: block;
}

.studio-island-preset-controls,
.studio-island-preset-preview {
  min-width: 0;
}

.studio-island-preset-controls .studio-segmented {
  height: 100%;
}

.studio-island-preview {
  display: none !important;
}

.studio-preset-preview,
.studio-border-preset-preview,
.studio-island-preset-preview {
  display: none !important;
}

/* Homepage studio: keep layout, remove visual interaction effects */
.studio-ant-shell *,
.studio-ant-shell *::before,
.studio-ant-shell *::after {
  animation: none !important;
  transition: none !important;
}

.studio-ant-shell .btn:hover,
.studio-ant-shell .btn:active,
.studio-ant-shell .btn:focus-visible,
.studio-ant-shell .studio-template-tab:hover,
.studio-ant-shell .studio-template-tab:active,
.studio-ant-shell .studio-checkbox-item:hover,
.studio-ant-shell .studio-checkbox-item:active,
.studio-ant-shell .studio-mini-tab:hover,
.studio-ant-shell .studio-mini-tab:active,
.studio-ant-shell .studio-segmented-item:hover,
.studio-ant-shell .studio-segmented-item:active,
.studio-ant-shell #templateList .template-card:hover,
.studio-ant-shell #templateList .template-card:active,
.studio-ant-shell .inspector-image-hover-upload:hover,
.studio-ant-shell .inspector-image-hover-upload:active,
.studio-ant-shell .studio-view-source-btn:hover,
.studio-ant-shell .studio-view-source-btn:active,
.studio-ant-shell .studio-collapse-title:hover,
.studio-ant-shell .studio-collapse-title:active {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.studio-ant-shell .btn-primary:hover,
.studio-ant-shell .btn-primary:active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.studio-ant-shell .btn-ghost:hover,
.studio-ant-shell .btn-ghost:active,
.studio-ant-shell .btn-outline:hover,
.studio-ant-shell .btn-outline:active {
  background: #fff !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.studio-ant-shell .studio-template-tab:hover,
.studio-ant-shell .studio-template-tab:active,
.studio-ant-shell .studio-segmented-item:hover,
.studio-ant-shell .studio-segmented-item:active,
.studio-ant-shell .studio-checkbox-item:hover,
.studio-ant-shell .studio-checkbox-item:active,
.studio-ant-shell .studio-mini-tab:hover,
.studio-ant-shell .studio-mini-tab:active {
  background: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
}

.studio-ant-shell .studio-mini-tab.active,
.studio-ant-shell .studio-mini-tab.active:hover,
.studio-ant-shell .studio-mini-tab.active:active {
  background: #1677ff !important;
  color: #fff !important;
  border-color: #1677ff !important;
}

.studio-ant-shell #templateList .template-card:hover,
.studio-ant-shell #templateList .template-card:active {
  border-color: var(--line) !important;
}

.studio-ant-shell .inspector-image-preview-card:hover .inspector-image-hover-upload {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Wallpaper preview keeps upload-on-hover interaction */
.studio-ant-shell .studio-wallpaper-preview-card .inspector-image-hover-upload {
  opacity: 0;
  pointer-events: none;
}

.studio-ant-shell .studio-wallpaper-preview-card:hover .inspector-image-hover-upload {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.studio-ant-shell .panel-left .panel-body,
.studio-style-scroll,
.studio-ant-shell .tabs-scroll {
  scrollbar-width: thin;
  scrollbar-color: #b7beca transparent;
}

/* Hide scrollbar in right style module, keep scroll behavior */
.studio-style-scroll {
  scrollbar-width: none;
}

.studio-style-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.studio-ant-shell .panel-left .panel-body::-webkit-scrollbar,
.studio-style-scroll::-webkit-scrollbar,
.studio-ant-shell .tabs-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.studio-ant-shell .panel-left .panel-body::-webkit-scrollbar-thumb,
.studio-style-scroll::-webkit-scrollbar-thumb,
.studio-ant-shell .tabs-scroll::-webkit-scrollbar-thumb {
  background: #b7beca;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.studio-style-scroll::-webkit-scrollbar-thumb:hover {
  background: #95a0b2;
  background-clip: padding-box;
}

.studio-ant-shell .panel-left .panel-body::-webkit-scrollbar-track,
.studio-style-scroll::-webkit-scrollbar-track,
.studio-ant-shell .tabs-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Restore interaction visuals for Main Content controls */
.studio-ant-shell .studio-main-content-section .studio-segmented-item,
.studio-ant-shell .studio-main-content-section .studio-checkbox-item {
  border: 1px solid transparent !important;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.studio-ant-shell .studio-main-content-section .studio-segmented-item:hover {
  background: #f2f7ff !important;
  border-color: #bdd7ff !important;
  color: #1454cc !important;
}

.studio-ant-shell .studio-main-content-section .studio-segmented-item:active {
  background: #e7f0ff !important;
  border-color: #93c5fd !important;
  color: #0f4fbf !important;
  box-shadow: inset 0 1px 3px rgba(17, 24, 39, 0.12) !important;
}

.studio-ant-shell .studio-main-content-section .studio-segmented-item.active {
  background: #1677ff !important;
  border-color: #1677ff !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.28) !important;
}

.studio-ant-shell .studio-main-content-section .studio-segmented-item.active:active {
  background: #0f67e6 !important;
  border-color: #0f67e6 !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(22, 119, 255, 0.2) !important;
}

.studio-ant-shell .studio-main-content-section .studio-checkbox-item:hover {
  border-color: #4096ff !important;
  background: #f2f7ff !important;
  color: #1d4ed8 !important;
}

.studio-ant-shell .studio-main-content-section .studio-checkbox-item.active {
  border-color: #1677ff !important;
  background: #1677ff !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.28) !important;
}

.studio-ant-shell .studio-main-content-section .studio-segmented-item:focus-visible,
.studio-ant-shell .studio-main-content-section .studio-checkbox-item:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.25) !important;
  outline-offset: 1px !important;
}

.template-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  margin-bottom: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 8px;
}

.template-card.active {
  outline: 2px solid rgba(var(--accent-rgb), 0.5);
}

.template-card.locked {
  opacity: 0.7;
}

.card-media {
  position: relative;
}

.card-media img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(21, 28, 67, 0.9);
  color: #fff;
  font-size: 11px;
  padding: 4px 6px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.card-name {
  font-size: 13px;
}

.preview-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  border: 1px dashed rgba(var(--accent-rgb), 0.22);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel-header-preview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-header-preview .studio-top-nav {
  flex: 1 1 auto;
}

.panel-header-preview .studio-preview-header-actions {
  margin-left: auto;
}

.studio-preview-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.studio-preview-source-btn {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
}

.studio-preview-save-btn {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.studio-preview-save-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 1;
}

.preview-canvas {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  display: block;
  box-shadow: var(--shadow);
}

.preview-placeholder {
  position: absolute;
  color: var(--muted);
  font-size: 13px;
}

.accordion details {
  border: 1px solid var(--line);
  background: var(--panel-alt);
  margin-bottom: 12px;
  padding: 8px 12px;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-content {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
}

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

.field-preview {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
}

.field-preview img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
}

.tab-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-pill {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 12px;
  font-size: 12px;
}

.tab-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.config-save {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.config-save input {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cms-shell {
  min-height: 0;
  height: 100%;
}

.cms-shell > .app-workbench-sidebar {
  width: 260px;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.cms-shell > .app-workbench-sidebar.collapsed {
  width: 72px;
}

.cms-sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.theme-freepik {
  --bg: #f4f1ec;
  --panel: #fbf8f4;
  --panel-alt: #f1ece5;
  --text: #2c2925;
  --muted: #746d63;
  --line: #ddd4c8;
  --accent: #1482c5;
  --accent-dark: #0e659a;
  --accent-warm: #79b9e1;
  --slider-active: #69b1ff;
  --accent-rgb: 20, 130, 197;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.theme-freepik .cms-shell {
  grid-template-columns: 250px 1fr;
  height: 100vh;
}

.theme-freepik .cms-sidebar {
  background: #fbfbfc;
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  gap: 14px;
  display: flex;
  flex-direction: column;
}

.theme-freepik .cms-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

.theme-freepik .cms-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.theme-freepik .project-select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.theme-freepik .project-dot {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.theme-freepik .chevron {
  margin-left: auto;
  color: var(--muted);
}

.theme-freepik .cms-nav {
  display: grid;
  gap: 14px;
}

.theme-freepik .nav-group {
  display: grid;
  gap: 6px;
}

.theme-freepik .nav-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 6px 0 2px;
}

.theme-freepik .nav-item {
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.theme-freepik .nav-item:hover {
  background: #f1f5f9;
}

.theme-freepik .nav-item.active {
  background: #e0ecff;
  color: var(--accent);
}

.theme-freepik .nav-item.ghost {
  color: var(--muted);
}

.theme-freepik .nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
}

.theme-freepik .sidebar-card {
  margin-top: auto;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 14px;
}

.theme-freepik .card-title {
  font-size: 12px;
  color: var(--accent-warm);
  margin: 0 0 6px;
}

.theme-freepik .card-text {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.theme-freepik .sidebar-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.theme-freepik .footer-icon {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.theme-freepik .cms-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-freepik .cms-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-freepik .cms-breadcrumb {
  font-size: 13px;
  color: var(--muted);
}

.theme-freepik .cms-content {
  padding: 24px;
  overflow: auto;
}

.theme-freepik .cms-header {
  border-bottom: none;
  margin-bottom: 16px;
}

.theme-freepik .cms-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.theme-freepik .cms-card {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.theme-freepik .cms-table table {
  font-size: 13px;
}

.theme-freepik .cms-table tr:hover td {
  background: #f8fafc;
}

.theme-freepik .btn-primary {
  background: var(--accent);
  border-radius: 7px;
}

.theme-freepik .btn-ghost {
  border-radius: 7px;
}

.side-item {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.side-item.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.cms-content {
  padding: 20px;
  background: #fff;
  height: 100%;
  overflow: auto;
}

.cms-main {
  min-width: 0;
  background: #fff;
}

.cms-skeleton-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cms-skeleton-content {
  display: grid;
  gap: 18px;
}

.cms-skeleton-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cms-skeleton-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.cms-skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: cms-skeleton-shimmer 1.2s linear infinite;
}

.cms-skeleton-line.title {
  width: 180px;
  height: 28px;
}

.cms-skeleton-line.action {
  width: 132px;
  height: 36px;
}

.cms-skeleton-line.w-40 {
  width: 40%;
}

.cms-skeleton-line.w-72 {
  width: 72%;
}

.cms-skeleton-line.w-100 {
  width: 100%;
}

@keyframes cms-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111827;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
  z-index: 2000;
}

.cms-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.cms-grid-materials {
  grid-template-columns: minmax(0, 1fr);
}

.cms-grid.cms-grid-controls {
  grid-template-columns: minmax(240px, 0.85fr) minmax(520px, 1.6fr);
}

.cms-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
}

.widget-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.widget-picker {
  margin-top: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widget-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  border-radius: 5px;
}

.widget-card.selected {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.widget-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.widget-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.widget-sub {
  font-size: 11px;
  color: var(--muted);
}

.widget-tag {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel-alt);
}

.widget-preview {
  border: 1px dashed var(--line);
  background: #fafafa;
  border-radius: 5px;
  padding: 10px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-actions {
  display: flex;
  justify-content: flex-end;
}

.widget-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.widget-config {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-alt);
  font-size: 12px;
  box-sizing: border-box;
}

.widget-config-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.widget-config label {
  display: grid;
  gap: 4px;
}

.widget-config input,
.widget-config select,
.widget-config textarea {
  width: 100%;
  box-sizing: border-box;
}

.input-unit {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 6px;
  align-items: center;
}

.widget-config-details {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.widget-config-details summary {
  cursor: pointer;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-alt);
}

.widget-config-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.summary-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.widget-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.range-input {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.range-input input {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.field-tip {
  margin-top: 4px;
  display: inline-block;
  font-size: 12px;
  color: #8a94a6;
}

.ant-btn {
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ant-btn-outline {
  background: #fff;
}

.ant-icon {
  font-size: 12px;
  color: #6b7280;
}

.ant-input {
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12px;
  background: #fff;
  width: 100%;
}

.ant-input-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.ant-input-icon input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 12px;
}

.ant-input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 6px 8px;
  background: #fff;
  width: 100%;
  gap: 6px;
}

.ant-input-suffix input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 12px;
}

.ant-input-suffix .suffix {
  font-size: 11px;
  color: var(--muted);
}

.ant-select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  height: 36px;
  padding: 0 32px 0 11px;
  font-size: 13px;
  color: #262626;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M884 256h-75c-5 0-10 2-14 6L512 598 229 262a20 20 0 0 0-14-6h-75c-11 0-17 13-10 22l367 436c8 9 22 9 30 0l367-436c7-9 1-22-10-22z' fill='%2399a1b3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 10px 10px;
  width: 100%;
}

.ant-select:hover {
  border-color: #4096ff;
}

.ant-select:focus,
.ant-select:focus-visible {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.ant-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ant-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
}

.ant-color {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.ant-switch {
  position: relative;
  width: 34px;
  height: 18px;
  background: #e5e7eb;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.2s ease;
}

.ant-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ant-switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: none;
  transition: left 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ant-switch.checked {
  background: var(--accent);
}

.ant-switch.checked .ant-switch-handle {
  left: 18px;
}

.ant-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.ant-slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

.ant-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #d9d9d9;
  border-radius: 999px;
}

.ant-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: -4px;
}

.slider-value {
  font-size: 11px;
  color: var(--muted);
  min-width: 28px;
  text-align: right;
}

.cms-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cms-table th,
.cms-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.cms-table .thumb {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.btn-link {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  margin-right: 8px;
}

.cms-detail {
  font-size: 13px;
  color: var(--muted);
}

.cms-section {
  display: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.detail-image {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.detail-image-large {
  width: 220px;
  height: 140px;
}

.detail-section {
  margin-top: 12px;
}

.detail-section pre {
  background: var(--panel-alt);
  padding: 10px;
  border: 1px solid var(--line);
  max-height: 160px;
  overflow: auto;
  font-size: 11px;
}

.cms-divider {
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.cms-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}

.checks-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.checks-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checks-group {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.checks-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.cms-config {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel-alt);
}

.file-input {
  margin-top: 6px;
  font-size: 12px;
}

.config-tree {
  display: grid;
  gap: 14px;
  font-size: 12px;
  color: var(--text);
}

.tree-group > label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.tree-children {
  padding-left: 16px;
  display: grid;
  gap: 6px;
  border-left: 1px dashed var(--line);
  margin-left: 4px;
}

.tree-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.cms-form {
  display: grid;
  gap: 10px;
}

.cms-form > label {
  display: grid;
  gap: 6px;
}

.cms-canvas-block {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  background: #f8fafc;
}

.cms-canvas-title {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}

.cms-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.cms-form input {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cms-form textarea {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
}

.cms-form select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.element-fields {
  margin-bottom: 12px;
}

.element-title {
  font-weight: 600;
  margin-bottom: 6px;
}

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

.element-grid.single-widget {
  grid-template-columns: 1fr;
}

.cms-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

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

.cms-form-inline input {
  width: 100%;
  min-width: 0;
}

.cms-pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cms-pricing-form {
  display: grid;
  gap: 12px;
}

.cms-pricing-form .field {
  display: grid;
  gap: 6px;
}

.cms-pricing-form .field .ant-input,
.cms-pricing-form .field .ant-select {
  width: 100%;
}

.cms-section-plain {
  display: grid;
  gap: 14px;
}

.cms-materials-section {
  width: 100%;
  margin: 0 auto;
}

.cms-materials-header {
  justify-content: flex-start;
  gap: 18px;
}

.cms-materials-header h3 {
  margin: 0;
}

.cms-materials-table-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

.cms-materials-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cms-homepage-title-cell {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.cms-homepage-title-cell strong {
  font-size: 14px;
  color: #111827;
  line-height: 1.5;
}

.cms-homepage-title-cell span {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.cms-materials-table {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.cms-materials-table table {
  width: auto;
  min-width: 1060px;
  margin: 0 auto;
}

.cms-table-plain {
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.cms-table-plain table {
  border-collapse: collapse;
}

.cms-table-plain th,
.cms-table-plain td {
  background: transparent;
}

.cms-table-plain thead th {
  border-top: none;
}

.cms-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.cms-materials-section .cms-pagination {
  justify-content: center;
}

.cms-pagination-text {
  font-size: 13px;
  color: #6b7280;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 0;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-head-copy {
  display: grid;
  gap: 4px;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: #111827;
}

.modal-head-copy p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.modal-close {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.cms-material-modal .cms-form {
  gap: 0;
}

.cms-modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 24px 24px;
}

.cms-material-modal .field {
  display: grid;
  gap: 8px;
}

.cms-homepage-modal {
  width: min(980px, calc(100vw - 48px));
}

.cms-material-modal .field > span {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.cms-material-modal .field-span-2 {
  grid-column: span 2;
}

.cms-material-modal .field input,
.cms-material-modal .field select,
.cms-material-modal .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 12px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cms-material-modal .field textarea {
  resize: vertical;
  min-height: 140px;
}

.cms-homepage-i18n-note {
  grid-column: 1 / -1;
  align-content: start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid rgba(20, 130, 197, 0.16);
}

.cms-homepage-i18n-note > span {
  flex: 0 0 auto;
}

.cms-homepage-i18n-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
}

.cms-homepage-form-layout {
  display: grid;
  gap: 0;
  padding: 20px 24px 24px;
}

.cms-homepage-form-section {
  display: grid;
  gap: 16px;
  padding: 18px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cms-homepage-form-section + .cms-homepage-form-section {
  border-top: 1px solid #e7edf5;
}

.cms-homepage-form-section.compact {
  gap: 12px;
  padding-bottom: 16px;
}

.cms-homepage-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cms-homepage-section-head h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #0f172a;
}

.cms-homepage-section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.cms-homepage-form-section .cms-modal-form-grid {
  padding: 0;
}

.cms-homepage-form-section .cms-modal-form-grid.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-homepage-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cms-homepage-media-card {
  display: grid;
  gap: 12px;
  padding: 8px 0 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cms-homepage-media-head {
  display: grid;
  gap: 4px;
}

.cms-homepage-media-head strong {
  font-size: 13px;
  color: #0f172a;
}

.cms-homepage-media-head span {
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.cms-homepage-media-card input {
  margin-top: 2px;
}

.cms-material-modal .field input:focus,
.cms-material-modal .field select:focus,
.cms-material-modal .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.14);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f0f0;
  background: #ffffff;
}

.cms-studio-upload-row {
  gap: 10px;
  align-items: center;
}

.cms-studio-upload-tile {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 10px;
}

.cms-studio-upload-tile .file-input,
.cms-batch-upload-trigger .file-input {
  display: none;
}

.cms-studio-upload-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}

.cms-studio-image-tile {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 10px;
  overflow: visible;
}

.cms-studio-image-tile .inspector-image-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 980px) {
  .cms-homepage-form-section .cms-modal-form-grid.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-homepage-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cms-homepage-modal {
    width: min(100vw - 24px, 860px);
  }

  .cms-homepage-form-layout {
    padding: 16px;
  }

  .cms-homepage-form-section .cms-modal-form-grid,
  .cms-homepage-form-section .cms-modal-form-grid.compact-grid {
    grid-template-columns: 1fr;
  }

  .cms-homepage-form-section .field-span-2 {
    grid-column: span 1;
  }
}

.cms-studio-thumb-remove {
  right: -7px;
  top: -7px;
  width: 16px;
  height: 16px;
}

.cms-batch-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.cms-batch-upload-trigger:hover {
  color: #111827;
}

.cms-template-upload-row {
  margin-top: 4px;
}

.cms-upload-meta {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  word-break: break-all;
}

.cms-upload-meta-plain {
  margin-top: 0;
  min-height: 22px;
  padding: 8px 0 0;
}

.cms-batch-upload-panel {
  display: grid;
  gap: 18px;
  padding: 20px 24px 24px;
}

.cms-batch-upload-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cms-batch-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px dashed #d0d7e2;
  border-radius: 12px;
  background: #fafcff;
  color: #475569;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.cms-batch-upload-trigger:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.cms-switch-title {
  font-size: 13px;
  color: #374151;
}

.cms-batch-upload-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px;
  max-height: 420px;
  overflow: auto;
}

.cms-batch-upload-item {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #ffffff;
}

.cms-batch-upload-thumb {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}

.cms-batch-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-batch-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
}

.cms-batch-upload-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: cms-spin 0.8s linear infinite;
}

.cms-batch-upload-overlay-text {
  font-size: 11px;
  font-weight: 600;
}

.cms-batch-upload-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
  width: 100%;
  justify-items: center;
}

.cms-batch-upload-name {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  word-break: break-word;
}

.cms-batch-upload-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
}

.cms-batch-upload-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1677ff 0%, #36a3ff 100%);
  transition: width 0.2s ease;
}

.cms-batch-upload-status {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

.cms-batch-upload-status.done {
  color: #16a34a;
}

.cms-batch-upload-status.error {
  color: #dc2626;
}

@keyframes cms-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cms-batch-empty {
  padding: 24px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.cms-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.cms-switch-label {
  font-size: 13px;
  color: #475569;
}

.pricing-shell {
  flex: 1;
  padding: 32px 24px 94px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pricing-shell-pixelkoi {
  flex: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  align-content: start;
}

.pricing-hero-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.pricing-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pricing-hero-copy h1 {
  margin: 0;
  font-size: 35px;
  color: #111827;
}

.pricing-hero-copy p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.pricing-billing-pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #d6deeb;
  background: #f1f5fb;
}

.pricing-billing-pill button {
  border: none;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.pricing-billing-pill button.active {
  background: #2f5ba0;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(47, 91, 160, 0.28);
}

.pricing-coupon-wrap {
  display: flex;
  justify-content: flex-end;
}

.pricing-coupon-field {
  min-width: 280px;
  max-width: 420px;
}

.pricing-shell-pixelkoi .field {
  gap: 6px;
  font-size: 12px;
}

.pricing-shell-pixelkoi .field input,
.pricing-shell-pixelkoi .field select {
  border: 1px solid #d5dce9;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

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

.pricing-plan-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: grid;
  gap: 12px;
  min-height: 370px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.pricing-plan-card.is-current {
  box-shadow: 0 0 0 2px rgba(70, 112, 186, 0.16), 0 16px 40px rgba(15, 23, 42, 0.06);
}

.pricing-plan-card.is-recommended {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.pricing-plan-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pricing-plan-title-row h3 {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.pricing-plan-description {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.pricing-plan-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cfe0fb;
  background: #edf4ff;
  color: #355ea2;
  font-size: 11px;
  font-weight: 600;
}

.pricing-plan-price {
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #111827;
}

.pricing-plan-currency {
  font-size: 18px;
  font-weight: 700;
}

.pricing-plan-major {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.pricing-plan-minor {
  font-size: 26px;
  font-weight: 700;
}

.pricing-plan-cycle {
  margin-left: 6px;
  font-size: 14px;
  color: #6b7280;
}

.pricing-plan-discount-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-plan-old-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: line-through;
  color: #9ca3af;
}

.pricing-plan-old-price .pricing-plan-major {
  font-size: 30px;
}

.pricing-plan-old-price .pricing-plan-minor {
  font-size: 18px;
}

.pricing-plan-new-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-plan-discount-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 600;
}

.pricing-plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
}

.pricing-plan-btn {
  margin-top: auto;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 600;
}

.pricing-plan-btn.is-disabled {
  cursor: default;
  opacity: 1;
}

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

.pricing-info-card {
  background: #fff;
  border: 1px solid #dfe5f1;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.pricing-info-title {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-info-card h3 {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

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

.pricing-inline-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pricing-cta-btn,
.pricing-ghost-btn {
  min-height: 40px;
  border-radius: 10px;
}

.points-balance {
  font-size: 12px;
  color: #64748b;
}

.ledger-list {
  display: grid;
  gap: 8px;
}

.ledger-item {
  border: 1px solid #e5ecf5;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.amount-plus {
  color: #059669;
  font-weight: 600;
}

.amount-minus {
  color: #dc2626;
  font-weight: 600;
}

.order-status {
  font-size: 12px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #d1d5db;
  color: #374151;
}

.order-status.paid {
  border-color: #10b981;
  color: #047857;
}

.order-status.pending {
  border-color: #f59e0b;
  color: #b45309;
}

.pricing-hint {
  border: 1px solid #d5e4ff;
  background: #f2f7ff;
  color: #244373;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.pricing-hint-floating {
  position: sticky;
  bottom: 14px;
  z-index: 5;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0;
}

@media (max-width: 1200px) {
  .pricing-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pricing-shell {
    padding: 20px 12px 40px;
  }

  .pricing-hero-card {
    padding: 14px;
  }

  .pricing-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-coupon-wrap {
    justify-content: stretch;
  }

  .pricing-coupon-field {
    min-width: 0;
    max-width: none;
  }

  .pricing-plan-grid,
  .pricing-info-grid,
  .pricing-form-grid {
    grid-template-columns: 1fr;
  }

  .pricing-plan-major {
    font-size: 32px;
  }
}

.canvas-shell {
  position: relative;
  background: #f6f1ef;
  flex: 1 1 auto;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

.canvas-left-rail {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  z-index: 4;
  flex: 0 0 auto;
  align-self: stretch;
  height: 100vh;
}

.canvas-sidebar,
.canvas-inspector {
  position: fixed;
  top: 126px;
  width: 300px;
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d3d9e2;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(4px);
  padding: 20px 20px 18px;
  display: grid;
  gap: 12px;
  height: fit-content;
  overflow-y: auto;
  overflow-x: visible;
  z-index: 30;
}

.canvas-side-nav {
  position: relative;
  top: auto;
  left: auto;
  width: 76px;
  max-height: none;
  height: 100%;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  justify-content: flex-start;
  z-index: 1;
}

.side-nav-item {
  width: 100%;
  position: relative;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border-radius: 0;
  cursor: pointer;
  color: #5f6b7f;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  margin: 0 auto 12px;
  appearance: none;
  -webkit-appearance: none;
  border-left: 2px solid transparent;
}

.side-nav-unsaved-dot {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.side-nav-item:last-child {
  margin-bottom: 0;
}

.side-nav-item .nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  background: transparent;
  border: none;
  font-size: 14px;
  color: #c26a1a;
  transition: transform 0.2s ease, color 0.2s ease;
}

.side-nav-item .nav-icon .iconpark-wrap,
.side-nav-item .nav-icon .iconpark-wrap svg {
  width: 18px;
  height: 18px;
}

.side-nav-item:hover {
  color: #223047;
  background: #edf1f6;
}

.side-nav-item:hover .nav-icon {
  transform: translateY(-1px);
  color: #a3530f;
}

.side-nav-item.active {
  background: #e9f2ff;
  color: #1e5ba5;
  border-left-color: #2f6fb6;
}

.side-nav-item.active .nav-icon {
  color: var(--accent);
}

.side-nav-item .nav-label {
  width: 100%;
  text-align: center;
  line-height: 1.2;
}

.canvas-sidebar {
  position: relative;
  top: auto;
  left: auto;
  width: 304px;
  max-height: none;
  height: 100%;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: width 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
  z-index: 1;
}

.canvas-inspector {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 360px;
  height: 100%;
  max-height: none;
  background: #ffffff;
  border: none;
  border-left: 1px solid #d3d9e2;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: visible;
  z-index: 20;
  transition: width 0.2s ease, padding 0.2s ease;
}

.canvas-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.canvas-panel-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.canvas-panel-collapse-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.canvas-panel-collapse-btn:hover {
  color: var(--accent-dark);
  background: transparent;
}

.canvas-left-rail .canvas-sidebar .canvas-panel-collapse-btn {
  display: none;
}

.canvas-inspector.collapsed {
  width: 0;
  min-width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
  gap: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.canvas-inspector.collapsed .canvas-panel-head {
  justify-content: center;
}

.canvas-inspector.collapsed .canvas-panel-head h3 {
  display: none;
}

.canvas-sidebar.collapsed {
  width: 0;
  min-width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.canvas-sidebar-handle {
  position: absolute;
  top: 50%;
  left: calc(72px + 304px - 12px);
  transform: translateY(-50%);
  width: 24px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.canvas-sidebar-handle.collapsed {
  left: calc(72px - 12px);
}

.canvas-sidebar-handle:hover {
  color: #374151;
  border-color: #cfd5df;
}

.canvas-inspector-handle {
  position: absolute;
  top: 50%;
  right: calc(360px - 12px);
  transform: translateY(-50%);
  width: 24px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 21;
}

.canvas-inspector-handle.collapsed {
  right: 8px;
}

.canvas-inspector-handle:hover {
  color: #374151;
}

.canvas-inspector h3 {
  margin: 0;
}

.inspector-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.inspector-file-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.canvas-inspector .inspector-file-toggle {
  width: 100%;
  justify-content: space-between;
}

.inspector-file-toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b93a8;
}

.inspector-file-actions-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.canvas-inspector .inspector-file-actions-body .btn {
  width: 100%;
  justify-content: flex-start;
}

.canvas-inspector .inspector-file-actions-body .export-settings-wrap {
  width: 100%;
  display: flex;
}

.canvas-inspector .inspector-file-actions-body .btn-export-single {
  width: 100%;
}

.canvas-inspector .inspector-quick-actions .btn {
  width: 100%;
  justify-content: flex-start;
}

.canvas-inspector .inspector-quick-actions .toolbar-control-wrap {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
}

.layer-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.layer-panel-inline {
  position: static;
  bottom: auto;
  right: auto;
  width: 100%;
  max-height: none;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.layer-panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.layer-panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.layer-panel-select-toggle {
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #4f5971;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

.layer-panel-select-toggle.active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-dark);
}

.layer-panel-clear-btn {
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #4f5971;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

.layer-panel-clear-btn:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-dark);
}

.layer-panel-actions {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.layer-panel-actions button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #4f5971;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px;
  cursor: pointer;
}

.layer-panel-actions button:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
}

.layer-panel-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.layer-panel-list {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-items: stretch;
}

.layer-panel-inline .layer-panel-list {
  max-height: none;
  min-height: 0;
  flex: 1 1 auto;
  height: auto;
}

.panel-block-layers {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-top: none;
  padding-top: 0;
}

.panel-block-layers .layer-panel {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.layer-panel-footer {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}

.layer-panel-clear-btn-bottom {
  width: 100%;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #4f5971;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.layer-panel-clear-btn-bottom:hover {
  border-color: rgba(var(--accent-rgb), 0.52);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-dark);
}

.layer-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 4px;
}

.layer-item {
  width: 100%;
  max-width: none;
  min-width: 0;
  border: none;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: grab;
  box-sizing: border-box;
}

.layer-item:active {
  cursor: grabbing;
}

.layer-item.select-mode {
  cursor: default;
}

.layer-item.select-mode:active {
  cursor: default;
}

.layer-group-row {
  background: #f8fafd;
}

.layer-child-row {
  padding-left: 28px;
}

.layer-check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  flex: 0 0 16px;
}

.layer-check-wrap input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.layer-group-caret {
  width: 12px;
  flex: 0 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.layer-group-caret.collapsed {
  transform: rotate(-90deg);
}

.layer-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #8b93a8;
  flex: 0 0 44px;
}

.layer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer-item-name {
  flex: 1;
  width: auto;
  max-width: none;
  min-width: 0;
  display: block;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-item:hover {
  background: #f6f8fc;
}

.layer-item.active {
  background: rgba(var(--accent-rgb), 0.12);
}

.layer-item.drag-over {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}

.canvas-sidebar h2 {
  font-size: 18px;
  margin: 0;
}

.panel-block {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  align-content: start;
}

.panel-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.panel-block h3 {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.panel-quick-actions {
  grid-template-columns: 1fr;
}

.panel-quick-actions .btn {
  width: 100%;
  justify-content: flex-start;
}

.panel-quick-actions .export-settings-wrap {
  width: 100%;
  display: flex;
}

.panel-quick-actions .btn-export-single {
  width: 100%;
}

.image-panel-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.image-tools-flat-section {
  display: grid;
  gap: 8px;
}

.image-tools-flat-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.image-tools-flat-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 2px;
}

.file-template-section {
  display: grid;
  gap: 8px;
}

.file-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.file-template-add-btn {
  height: 28px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #4f5971;
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.file-template-add-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.06);
}

.file-template-list {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
}

.file-template-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-template-item {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
}

.file-template-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.file-template-item.active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
}

.file-template-name {
  font-size: 12px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-template-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  flex: 0 0 6px;
}

.file-template-name > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-template-delete-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8b93a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 24px;
}

.file-template-delete-btn:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.file-template-empty {
  color: #9aa3b2;
  font-size: 12px;
  padding: 8px 4px;
}

.file-template-more-btn {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #4f5971;
  font-size: 12px;
  font-weight: 600;
  height: 32px;
  cursor: pointer;
}

.file-template-more-btn:hover:not(:disabled) {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent-dark);
}

.file-template-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.file-size-controls {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 8px;
  align-items: center;
  box-sizing: border-box;
}

.file-size-controls .toolbar-select-wrap.file-size-select-row {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
}

.file-size-select-row .toolbar-select-trigger {
  border: 1px solid #d4dae3;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.file-size-menu {
  background: #fff;
  border: 1px solid #d4dae3;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.file-size-dim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.file-size-dim-row .toolbar-field {
  width: 100%;
  min-width: 0;
}

.canvas-sidebar .file-size-dim-row .toolbar-input,
.canvas-sidebar .file-size-dim-row .toolbar-input-with-affix {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #d4dae3;
  border-radius: 10px;
  padding-left: 24px;
  padding-right: 24px;
  font-size: 12px;
}

.file-size-dim-row .toolbar-field-prefix,
.file-size-dim-row .toolbar-field-suffix {
  font-size: 10px;
  color: #9ca3af;
}

.file-size-controls .toolbar-field {
  width: 100%;
  min-width: 0;
}

.file-size-controls .toolbar-input-with-affix {
  width: 100%;
  min-width: 0;
}

.file-size-dim-row .toolbar-x {
  justify-self: center;
}

.file-size-controls .toolbar-field-suffix {
  right: 8px;
}

.file-size-controls .toolbar-field-prefix {
  left: 8px;
}

.file-panel-header {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.file-panel-title-wrap {
  min-width: 0;
}

.file-panel-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
}

.file-panel-title-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-unsaved-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex: 0 0 auto;
}

.file-panel-title-input {
  width: 100%;
  height: 30px;
  border: none;
  border-bottom: 1px solid #d9d9d9;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  color: var(--text);
  padding: 0 2px;
}

.file-panel-title-input:focus {
  outline: none;
  border-bottom: 1px solid #1677ff;
  box-shadow: none;
}

.file-panel-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.file-title-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
}

.file-title-icon-btn .toolbar-btn-icon {
  width: 22px;
  font-size: 20px;
}

.file-title-icon-btn:hover {
  color: #374151;
}

.file-title-icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.file-export-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.file-export-actions .btn {
  min-width: 0;
  height: 34px;
  padding-left: 6px;
  padding-right: 6px;
}

.file-export-actions .toolbar-btn-label {
  gap: 4px;
  font-size: 12px;
}

.export-settings-inline {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.export-settings-inline .export-settings-group > .toolbar-select-wrap.file-size-select-row {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-bottom: 14px;
}

.export-settings-inline .export-settings-group + .export-settings-group {
  margin-top: 18px;
}

.btn-export-file {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

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

.nav-pill {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}

.nav-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.canvas-panel-body {
  flex: 1;
  display: grid;
  gap: 12px;
  overflow: hidden;
  align-content: start;
}

.canvas-panel-body.layers-mode {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.canvas-panel-body.materials-mode {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.canvas-panel-body.templates-mode {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.canvas-template-toolbar {
  display: flex;
  align-items: center;
}

.canvas-template-create-btn {
  width: 100%;
  justify-content: center;
}

.canvas-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 6px;
  align-items: start;
  align-content: start;
}

.canvas-tabs .tab-pill {
  border: 1px solid var(--line);
  background: #fff;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border-radius: 7px;
}

.canvas-tabs .tab-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.canvas-tabs.canvas-tabs-ant {
  display: flex;
  align-items: flex-end;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.canvas-tabs.canvas-tabs-ant .ant-tab-pill {
  height: 36px;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  min-width: 52px;
  justify-content: center;
}

.canvas-tabs.canvas-tabs-ant .ant-tab-pill.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: transparent;
}

.canvas-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
  content-visibility: auto;
  contain-intrinsic-size: 480px;
}

.panel-block-materials {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.panel-block-templates {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-block-materials .canvas-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  scrollbar-width: thin;
  scrollbar-color: #c5c7ce transparent;
}

.panel-block-templates .canvas-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.panel-block-materials .canvas-list::-webkit-scrollbar {
  width: 6px;
}

.panel-block-materials .canvas-list::-webkit-scrollbar-track {
  background: transparent;
}

.panel-block-materials .canvas-list::-webkit-scrollbar-thumb {
  background: #c5c7ce;
  border-radius: 999px;
}

.panel-block-materials .canvas-list::-webkit-scrollbar-thumb:hover {
  background: #afb3bd;
}

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

.material-grid {
  display: block;
  width: 100%;
  column-count: 2;
  column-gap: 8px;
  column-fill: balance;
}

.material-grid > * {
  display: block;
  width: 100%;
  min-width: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.template-card,
.material-card {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
}

.template-grid .template-card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: left;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.template-card img,
.material-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #f3f4f6;
}

.material-grid .material-card {
  display: block;
  width: calc(100% - 12px);
  max-width: none;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 6px auto 14px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.material-grid-preset .material-card {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 8px;
}

.material-grid .material-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 6px;
  border: none;
  background: transparent;
  object-fit: contain;
}

.material-grid .material-preview-empty {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #f3f4f6;
}

.material-grid .material-meta {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-top: 4px;
}

.material-grid .material-name {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-grid .template-level {
  font-size: 12px;
  color: #6b7280;
  flex: 0 0 auto;
}

.template-grid .template-card img {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
  display: block;
}

.template-grid .template-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 5px;
  background: #f3f4f6;
}

.template-grid .template-meta {
  justify-content: flex-start;
  min-width: 0;
}

.template-grid .template-name {
  width: 100%;
  text-align: left;
  font-weight: 400;
  line-height: 1.35;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vip-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(180deg, #f9d66f 0%, #e4b849 100%);
  color: #3b2d00;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.template-card.locked,
.material-card.locked {
  opacity: 0.7;
}

.template-meta,
.material-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.template-level {
  font-size: 11px;
  color: var(--muted);
}

.lock-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}

.list-hint {
  padding: 8px 4px;
  font-size: 12px;
  color: var(--muted);
}

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

.canvas-sidebar input,
.canvas-inspector input,
.canvas-inspector textarea,
.canvas-inspector select,
.canvas-sidebar select {
  width: 100%;
  border: 1px solid #d4dae3;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  background: #fff;
}

.canvas-sidebar input[type="range"],
.canvas-inspector input[type="range"],
.canvas-toolbar input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  height: 18px;
}

.canvas-sidebar input[type="range"]::-webkit-slider-runnable-track,
.canvas-inspector input[type="range"]::-webkit-slider-runnable-track,
.canvas-toolbar input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--slider-active) 0,
    var(--slider-active) var(--slider-progress, 0%),
    #dbe2ea var(--slider-progress, 0%),
    #dbe2ea 100%
  );
}

.canvas-sidebar input[type="range"]::-webkit-slider-thumb,
.canvas-inspector input[type="range"]::-webkit-slider-thumb,
.canvas-toolbar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  margin-top: -7px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.32);
}

.canvas-sidebar input[type="range"]::-moz-range-track,
.canvas-inspector input[type="range"]::-moz-range-track,
.canvas-toolbar input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dbe2ea;
}

.canvas-sidebar input[type="range"]::-moz-range-progress,
.canvas-inspector input[type="range"]::-moz-range-progress,
.canvas-toolbar input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--slider-active);
}

.canvas-sidebar input[type="range"]::-moz-range-thumb,
.canvas-inspector input[type="range"]::-moz-range-thumb,
.canvas-toolbar input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.32);
}

.canvas-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: block;
  transition: margin-right 0.2s ease;
}

.canvas-main.with-inspector {
  margin-right: 360px;
}

.canvas-file-tabs {
  position: relative;
  z-index: 80;
  width: 100%;
  padding: 12px 24px 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f5f5f5;
}

.canvas-file-tabs-track {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}

.canvas-file-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
  max-width: 220px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-bottom-color: #e5e7eb;
  border-radius: 8px 8px 0 0;
  background: #fafafa;
  color: #262626;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
  transform: translateY(1px);
}

.canvas-file-tab:hover {
  color: #1677ff;
}

.canvas-file-tab.active {
  border-color: #d9d9d9;
  border-bottom-color: #ffffff;
  background: #fff;
  color: #1677ff;
  transform: translateY(0);
}

.canvas-file-tab-main {
  min-width: 0;
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.canvas-file-dirty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fa8c16;
  flex: 0 0 6px;
}

.canvas-file-tab-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
}

.canvas-file-tab-input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 12px;
  padding: 0;
}

.canvas-file-tab-close {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
}

.canvas-file-tab-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #595959;
}

.canvas-file-tab-add {
  width: 36px;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-bottom-color: #e5e7eb;
  border-radius: 8px 8px 0 0;
  background: #fafafa;
  color: #595959;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.canvas-file-tab-add:hover {
  color: #1677ff;
}

.canvas-toolbar {
  position: fixed;
  top: 132px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 25;
  white-space: nowrap;
  overflow: visible;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.toolbar-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.toolbar-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--toolbar-control-height, 36px);
}

.toolbar-field-prefix,
.toolbar-field-suffix {
  position: absolute;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  color: #9ca3af;
  pointer-events: none;
}

.toolbar-field-prefix {
  left: 10px;
  font-weight: 700;
}

.toolbar-field-suffix {
  right: 10px;
  font-weight: 500;
}

.toolbar-zoom {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 12px;
}

.toolbar-zoom-value {
  min-width: 54px;
  text-align: center;
  color: #111827;
  font-weight: 600;
  font-size: 16px;
}

.toolbar-zoom-btn {
  border: none;
  background: transparent;
  color: #374151;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  width: 20px;
  cursor: pointer;
}

.toolbar-zoom-btn:hover {
  color: #111827;
}

.canvas-zoom-dock {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  pointer-events: auto;
}

.canvas-zoom-btn {
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.canvas-zoom-btn:hover {
  color: #111827;
}

.canvas-zoom-btn:active {
  opacity: 0.72;
}

.canvas-center-btn {
  width: 28px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid #e7ddd9;
  border-radius: 0;
}

.canvas-focus-zoom-btn {
  width: 28px;
  border-radius: 0;
}

.canvas-zoom-value {
  min-width: 48px;
  text-align: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  color: #374151;
}

.toolbar-x {
  font-weight: 600;
  color: #111827;
}

.toolbar-input {
  width: 90px;
  height: var(--toolbar-control-height, 36px);
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.canvas-sidebar .file-panel-title-input {
  border: none;
  border-bottom: 1px solid #d9d9d9;
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  box-shadow: none;
}

.canvas-sidebar .file-panel-title-input:focus {
  border: none;
  border-bottom: 1px solid #1677ff;
  box-shadow: none;
}

/* Force all icon colors in canvas page to a single global color */
.canvas-shell .toolbar-btn-icon,
.canvas-shell .nav-icon,
.canvas-shell .menu-icon,
.canvas-shell .canvas-zoom-btn,
.canvas-shell .canvas-panel-collapse-btn,
.canvas-shell .file-title-icon-btn,
.canvas-shell .layer-item-thumb,
.canvas-shell .layer-group-caret,
.canvas-shell .iconpark-wrap {
  color: var(--icon-global-color) !important;
}

.toolbar-input:hover {
  border-color: #aeb8c8;
}

.toolbar-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.14);
}

.toolbar-input[type="number"] {
  -moz-appearance: textfield;
}

.toolbar-input[type="number"]::-webkit-outer-spin-button,
.toolbar-input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.toolbar-input-with-affix {
  width: 118px;
  padding-left: 30px;
  padding-right: 30px;
}

.toolbar-size .toolbar-input-with-affix {
  width: 102px;
}

.toolbar-select {
  display: none;
}

.toolbar-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 228px;
  min-width: 228px;
  max-width: 228px;
  flex: 0 0 228px;
}

.toolbar-size .toolbar-select-wrap {
  width: 196px;
  min-width: 196px;
  max-width: 196px;
  flex: 0 0 196px;
}

.toolbar-control-wrap {
  width: auto;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
}

.toolbar-select-trigger {
  width: 100%;
  height: var(--toolbar-control-height, 36px);
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  padding: 0 34px 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.toolbar-control-trigger {
  width: auto;
  min-width: 118px;
}

.toolbar-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: #8b93a8;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.toolbar-select-trigger:hover {
  border-color: #9aa3bb;
  background: #fff;
}

.toolbar-select-trigger:focus,
.toolbar-select-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.14);
}

.toolbar-select-wrap.open .toolbar-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.toolbar-select-menu {
  min-width: 0;
  max-height: min(560px, calc(100vh - 120px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding: 6px;
  z-index: 60;
  display: grid;
  gap: 2px;
}

.toolbar-control-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 170px;
  z-index: 90;
}

.toolbar-select-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.toolbar-select-menu-floating {
  position: fixed;
  z-index: 120;
  width: auto;
}

.toolbar-select-option {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}

.toolbar-select-option:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.toolbar-select-option.active {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-dark);
}

.toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.canvas-toolbar .btn {
  height: var(--toolbar-control-height, 36px);
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.canvas-toolbar .btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.canvas-toolbar .btn-ghost:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--accent-dark);
}

.canvas-toolbar .btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.toolbar-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toolbar-btn-icon {
  width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: currentColor;
}

.btn-export {
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.export-settings-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-export-single {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-right: 0;
  min-width: auto;
}

.btn-export-single:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.92);
  border-color: rgba(var(--accent-rgb), 0.92);
}

.canvas-toolbar .btn-primary.btn-export-single:hover:not(:disabled),
.canvas-toolbar .btn-primary.btn-export-single:active:not(:disabled),
.canvas-toolbar .btn-primary.btn-export-single:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-export-single .toolbar-btn-label {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
}

.export-settings-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 34px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  margin-left: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
}

.export-settings-trigger-icon:hover,
.export-settings-trigger-icon.active {
  background: rgba(255, 255, 255, 0.26);
}

.export-settings-trigger-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 1px;
}

.export-settings-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 246px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(25, 30, 45, 0.16);
  z-index: 50;
}

.export-settings-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.export-settings-group + .export-settings-group {
  margin-top: 10px;
}

.export-settings-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.export-format-radios {
  display: inline-flex;
  gap: 8px;
}

.export-format-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.export-format-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.export-format-item.checked {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
}

.canvas-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background-color: #eef2f7;
}

.canvas-grid {
  position: absolute;
  inset: -200vmax;
  background-image:
    linear-gradient(45deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.06) 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
  pointer-events: none;
  z-index: 0;
}

.canvas-history-dock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.canvas-template-save-dock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.canvas-history-btn {
  height: 28px;
  min-width: 62px;
  height: 28px;
  border: none;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
}

.canvas-history-btn:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.06);
}

.canvas-history-btn:disabled {
  color: #c0c7d3;
  cursor: not-allowed;
}

.canvas-history-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 260px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.canvas-history-panel-title {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.canvas-history-panel-list {
  overflow: auto;
}

.canvas-history-panel-item {
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  border: none;
  border-bottom: 1px solid #f3f4f8;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  color: #0f172a;
}

.canvas-history-panel-item:last-child {
  border-bottom: none;
}

.canvas-history-panel-item:hover {
  background: #f1f5f9;
}

.canvas-history-panel-item .history-step-index {
  color: #64748b;
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}

.canvas-history-panel-item .history-step-label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-stage {
  position: relative;
  display: inline-flex;
  transform-origin: center center;
  z-index: 2;
}

.canvas-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.studio-canvas-guides {
  inset: auto;
}

.canvas-rotation-axis-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.canvas-rotation-axis-overlay .axis-origin {
  position: absolute;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.65);
}

.canvas-rotation-axis-overlay .axis-line {
  position: absolute;
  height: 2px;
  transform-origin: 0 50%;
  border-radius: 999px;
  opacity: 0.9;
}

.canvas-rotation-axis-overlay .axis-line.axis-x {
  background: #ef4444;
}

.canvas-rotation-axis-overlay .axis-line.axis-y {
  background: #10b981;
}

.canvas-rotation-axis-overlay .axis-line.axis-z {
  background: #3b82f6;
}

.canvas-rotation-axis-overlay .axis-label {
  position: absolute;
  transform: translate(6px, -8px);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

.canvas-rotation-axis-overlay .axis-label.axis-x {
  color: #dc2626;
}

.canvas-rotation-axis-overlay .axis-label.axis-y {
  color: #059669;
}

.canvas-rotation-axis-overlay .axis-label.axis-z {
  color: #2563eb;
}

.canvas-selection-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.canvas-selection-outline {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(199, 209, 224, 0.9);
}

.canvas-selection-outline.active {
  border-color: #c7d1e0;
}

.canvas-selection-outline-svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.canvas-selection-outline-poly {
  fill: none;
  stroke: rgba(199, 209, 224, 0.9);
  stroke-width: 1;
}

.canvas-selection-outline-svg.active .canvas-selection-outline-poly {
  stroke: #c7d1e0;
}

.canvas-selection-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c7d1e0;
  box-sizing: border-box;
}

.canvas-selection-rotate-arc {
  position: absolute;
  box-sizing: border-box;
  border-style: solid;
  border-color: #111827;
  border-radius: 50%;
}

.canvas-selection-rotate-arc.corner-tl {
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.canvas-selection-rotate-arc.corner-tr {
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.canvas-selection-rotate-arc.corner-br {
  border-left-color: transparent;
  border-top-color: transparent;
}

.canvas-selection-rotate-arc.corner-bl {
  border-right-color: transparent;
  border-top-color: transparent;
}

.guide-line {
  position: absolute;
  background: rgba(var(--accent-rgb), 0.9);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.35);
}

.guide-line.vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.guide-line.horizontal {
  left: 0;
  right: 0;
  height: 1px;
}

.canvas-stage canvas {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  cursor: grab;
}

.canvas-crop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.canvas-crop-frame {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #1677ff;
  background: transparent;
  pointer-events: auto;
  user-select: none;
  cursor: grab;
  overflow: visible;
}

.canvas-crop-frame:active {
  cursor: grabbing;
}

.canvas-crop-source-image {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  max-width: none;
  max-height: none;
  object-fit: fill;
  opacity: 0.96;
}

.canvas-crop-selection {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45);
  background: transparent;
  cursor: move;
  z-index: 2;
}

.canvas-crop-selection.free-mode {
  border-color: transparent;
  box-shadow: none;
}

.canvas-crop-canvas-mask-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.canvas-crop-canvas-mask-svg path {
  fill: rgba(15, 23, 42, 0.4);
}

.canvas-crop-top-actions {
  position: absolute;
  min-width: 0;
  height: 56px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  z-index: 12;
  pointer-events: auto;
  box-sizing: border-box;
}

.canvas-crop-zoom-btn {
  position: relative;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #c8d3e2;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.canvas-crop-zoom-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent-dark);
}

.canvas-crop-zoom-btn .toolbar-btn-icon {
  width: 18px;
  font-size: 18px;
}

.canvas-crop-inline-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #c8d3e2;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.canvas-crop-inline-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent-dark);
}

.canvas-crop-inline-btn.active {
  border-color: rgba(var(--accent-rgb), 0.65);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-dark);
}

.canvas-crop-inline-btn.complete {
  border-color: transparent;
  background: transparent;
  color: var(--accent-dark);
  box-shadow: none;
}

.canvas-crop-inline-btn.complete:hover {
  border-color: transparent;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-dark);
}

.canvas-crop-inline-btn.complete:active {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent-dark);
}

.canvas-crop-inline-btn.complete[disabled],
.canvas-crop-inline-btn.complete[aria-busy="true"] {
  background: rgba(var(--accent-rgb), 0.08);
  color: rgba(15, 23, 42, 0.45);
  cursor: wait;
  opacity: 1;
}

.canvas-crop-inline-btn.plain {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.canvas-crop-inline-btn.plain:hover {
  border-color: transparent;
  background: rgba(148, 163, 184, 0.1);
  color: #0f172a;
}

.canvas-crop-inline-btn-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.canvas-crop-inline-divider {
  width: 1px;
  height: 26px;
  margin: 0 2px;
  background: rgba(203, 213, 225, 0.95);
}

.canvas-crop-handle {
  position: absolute;
  border: 1px solid rgba(15, 23, 42, 0.35);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.canvas-crop-handle.free {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #1677ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  cursor: move;
  z-index: 6;
}

.canvas-crop-free-polygon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.canvas-crop-free-polygon polygon {
  fill: transparent;
  stroke: transparent;
}

.canvas-crop-handle.tl {
  width: 10px;
  height: 10px;
  left: -5px;
  top: -5px;
  border-radius: 2px;
  cursor: nwse-resize;
}

.canvas-crop-handle.tr {
  width: 10px;
  height: 10px;
  right: -5px;
  top: -5px;
  border-radius: 2px;
  cursor: nesw-resize;
}

.canvas-crop-handle.bl {
  width: 10px;
  height: 10px;
  left: -5px;
  bottom: -5px;
  border-radius: 2px;
  cursor: nesw-resize;
}

.canvas-crop-handle.br {
  width: 10px;
  height: 10px;
  right: -5px;
  bottom: -5px;
  border-radius: 2px;
  cursor: nwse-resize;
}

.canvas-crop-handle.ml {
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 34px;
  border-radius: 2px;
  cursor: ew-resize;
}

.canvas-crop-handle.mr {
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 34px;
  border-radius: 2px;
  cursor: ew-resize;
}

.canvas-crop-handle.tm {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 8px;
  border-radius: 2px;
  cursor: ns-resize;
}

.canvas-crop-handle.bm {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 8px;
  border-radius: 2px;
  cursor: ns-resize;
}

.canvas-crop-rotate-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: grab;
  z-index: 3;
}

.canvas-crop-rotate-handle:active {
  cursor: grabbing;
}

.canvas-crop-rotate-handle.rtl {
  left: -34px;
  top: -34px;
  transform: rotate(-135deg);
}

.canvas-crop-rotate-handle.rtr {
  right: -34px;
  top: -34px;
  transform: rotate(-45deg);
}

.canvas-crop-rotate-handle.rbl {
  left: -34px;
  bottom: -34px;
  transform: rotate(135deg);
}

.canvas-crop-rotate-handle.rbr {
  right: -34px;
  bottom: -34px;
  transform: rotate(45deg);
}

.canvas-crop-rotate-hit {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: grab;
  background: transparent;
  z-index: 2;
}

.canvas-crop-rotate-hit.rtl {
  left: -40px;
  top: -40px;
}

.canvas-crop-rotate-hit.rtr {
  right: -40px;
  top: -40px;
}

.canvas-crop-rotate-hit.rbl {
  left: -40px;
  bottom: -40px;
}

.canvas-crop-rotate-hit.rbr {
  right: -40px;
  bottom: -40px;
}

.canvas-deform-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.canvas-deform-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.canvas-deform-top-actions {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.canvas-deform-zoom-btn {
  position: relative;
  pointer-events: auto;
  height: 46px;
  padding: 0 20px;
  border: 1px solid #d3dceb;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.canvas-deform-zoom-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent-dark);
}

.canvas-deform-inline-btn {
  pointer-events: auto;
  height: 46px;
  padding: 0 18px;
  border: 1px solid #d3dceb;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.canvas-deform-inline-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent-dark);
}

.canvas-deform-inline-btn.primary {
  border-color: rgba(var(--accent-rgb), 0.9);
  background: var(--accent);
  color: #fff;
}

.canvas-deform-inline-btn.primary:hover {
  border-color: rgba(var(--accent-rgb), 1);
  background: var(--accent-dark);
  color: #fff;
}

.canvas-deform-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.canvas-deform-polygon {
  fill: rgba(22, 119, 255, 0.08);
  stroke: #1677ff;
  stroke-width: 2;
  pointer-events: auto;
  cursor: move;
}

.canvas-deform-handle,
.deform-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1677ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  cursor: move;
  pointer-events: auto;
  z-index: 4;
}

.canvas-text-editor {
  position: absolute;
  border: 1px solid var(--accent);
  background: #fff;
  color: #111827;
  padding: 4px 6px;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  z-index: 20;
}

.canvas-context-menu {
  position: fixed;
  z-index: 2000;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 4px;
  min-width: 210px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.canvas-context-menu button,
.canvas-context-menu .menu-item {
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #111827;
}

.menu-label {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-text {
  min-width: 0;
}

.menu-shortcut {
  margin-left: auto;
  color: #97a0b4;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.menu-icon {
  width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  flex: 0 0 14px;
}

.iconpark-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--icon-global-color);
}

.iconpark-wrap svg {
  display: block;
}

.iconpark-placeholder {
  width: 1em;
  height: 1em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
}

.canvas-context-menu button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.canvas-context-menu button:disabled .menu-shortcut {
  color: #c3cad6;
}

.canvas-context-menu button:hover,
.canvas-context-menu .menu-item:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-radius: 5px;
}

.menu-item.has-sub {
  position: relative;
}

.menu-item.has-sub::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 10px;
  height: 100%;
}

.menu-item.has-sub .submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: none;
  min-width: 210px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 2001;
}

.menu-item.has-sub:hover .submenu,
.menu-item.has-sub .submenu:hover,
.menu-item.has-sub:focus-within .submenu {
  display: grid;
  gap: 4px;
}

.menu-item.has-sub .submenu button {
  padding: 8px 10px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

.menu-item.has-sub .submenu button:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-radius: 5px;
}

.canvas-popup-mask {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2500;
  pointer-events: auto;
}

.canvas-popup {
  min-width: 260px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.canvas-popup.success {
  border-color: rgba(22, 163, 74, 0.3);
}

.canvas-popup.loading {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.canvas-popup.error {
  border-color: rgba(245, 158, 11, 0.45);
}

.canvas-popup-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.canvas-popup.success .canvas-popup-icon {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.canvas-popup.loading .canvas-popup-icon {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-dark);
}

.canvas-popup.error .canvas-popup-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.canvas-popup-text {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}

.canvas-dialog {
  width: min(92vw, 420px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.24);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.canvas-dialog.crop-dialog {
  width: min(94vw, 1200px);
  padding: 40px 0 40px;
}

.canvas-dialog.crop-dialog .canvas-dialog-close {
  border: none;
  background: transparent;
  box-shadow: none;
}

.canvas-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canvas-dialog.crop-dialog .canvas-dialog-head,
.canvas-dialog.crop-dialog .canvas-dialog-actions {
  margin: 0;
  padding: 0;
}

.canvas-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.canvas-dialog-close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
}

.canvas-dialog-close:hover {
  color: #111827;
  border-color: #cbd5e1;
}

.canvas-dialog-body {
  display: grid;
  gap: 12px;
}

.canvas-dialog-desc {
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
}

.canvas-dialog-label {
  font-size: 12px;
  color: #6b7280;
}

.canvas-dialog-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.canvas-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

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

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

.crop-preview-stage {
  position: relative;
  max-width: 100%;
  background-color: #f3f4f6;
  background-image:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}

.canvas-crop-inline-zoom {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.canvas-crop-inline-zoom-panel {
  position: relative;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-crop-inline-zoom-panel .crop-preview-stage {
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
}

.canvas-crop-inline-zoom-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 8;
}

.canvas-crop-inline-zoom-toolbar .crop-preview-origin-meta,
.canvas-crop-inline-zoom-toolbar .crop-preview-reset-btn {
  position: static;
}

.crop-preview-reset-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  height: 30px;
  min-width: 62px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(2px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crop-preview-reset-btn:hover {
  background: rgba(15, 23, 42, 0.72);
}

.crop-preview-reset-btn.active {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(var(--accent-rgb), 0.45);
}

.crop-preview-origin-meta {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}

.crop-preview-image {
  position: absolute;
  display: block;
  object-fit: cover;
}

.crop-selection {
  position: absolute;
  border: 2px solid #1677ff;
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.5);
  cursor: move;
}

.deform-selection-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.deform-selection-polygon {
  fill: rgba(22, 119, 255, 0.08);
  stroke: #1677ff;
  stroke-width: 2;
  pointer-events: auto;
  cursor: move;
}

.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1677ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.crop-handle.free {
  transform: translate(-50%, -50%);
  cursor: move;
}

.crop-free-polygon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.crop-free-polygon polygon {
  fill: rgba(22, 119, 255, 0.16);
  stroke: #1677ff;
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.crop-handle.tl {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.crop-handle.tr {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.crop-handle.bl {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.crop-handle.br {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.crop-preview-meta {
  font-size: 12px;
  color: #6b7280;
}

.crop-dialog-info-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.crop-dialog-aligned {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.crop-dialog-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crop-dialog-actions-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.crop-dialog-actions-inner .btn {
  min-width: 104px;
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 0 20px;
}

.crop-dialog-actions-inner .btn-primary {
  min-width: 148px;
}

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

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

.deform-meta-item {
  border: 1px solid #d9e1ee;
  border-radius: 8px;
  background: #fbfcfe;
  min-height: 78px;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.deform-meta-title {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  line-height: 1;
}

.deform-meta-input-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.deform-meta-axis {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.crop-meta-item {
  border: 1px solid #d9e1ee;
  border-radius: 8px;
  background: #fbfcfe;
  min-height: 44px;
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  align-content: center;
}

.crop-meta-key {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  line-height: 1;
}

.crop-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.crop-meta-input {
  width: 100%;
  height: 24px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

.crop-meta-input:focus {
  border: none;
  box-shadow: none;
}

.crop-aspect-presets {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 14px 16px;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  background: #f8fafd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.crop-aspect-btn {
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #374151;
  font-size: 12px;
  min-height: 56px;
  min-width: 0;
  padding: 8px 6px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
}

.crop-aspect-btn:hover {
  background: rgba(148, 163, 184, 0.12);
}

.crop-aspect-btn.active {
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.08);
}

.crop-aspect-shape-wrap {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
}

.crop-aspect-shape {
  display: inline-block;
  border: none;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.12);
}

.crop-aspect-shape.free {
  background: repeating-linear-gradient(
    45deg,
    rgba(148, 163, 184, 0.28),
    rgba(148, 163, 184, 0.28) 3px,
    rgba(148, 163, 184, 0.12) 3px,
    rgba(148, 163, 184, 0.12) 6px
  );
}

.crop-aspect-btn.active .crop-aspect-shape {
  background: rgba(var(--accent-rgb), 0.16);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}


.template-list {
  display: grid;
  gap: 8px;
}

.template-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
  background: #fff;
  text-align: left;
}

.template-item img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
}

.template-name {
  font-size: 12px;
  font-weight: 600;
}

.template-date {
  font-size: 11px;
  color: var(--muted);
}

.canvas-inspector .inspector {
  display: grid;
  gap: 8px;
  max-height: none;
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  overflow-x: visible;
  padding-right: 2px;
  padding-bottom: 24px;
}

.inspector-plain-control {
  display: grid;
  gap: 8px;
}

.inspector-image-replace-btn {
  width: 100%;
}

.inspector-image-actions {
  display: grid;
  gap: 8px;
}

.inspector-image-preview-card {
  width: 100%;
  height: 116px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafd;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.inspector-image-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background:
    linear-gradient(45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f7 75%),
    linear-gradient(-45deg, transparent 75%, #eef2f7 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.inspector-image-preview-empty {
  font-size: 12px;
  color: #6b7280;
}

.inspector-image-hover-upload {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(17, 24, 39, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.inspector-image-preview-card:hover .inspector-image-hover-upload {
  opacity: 1;
  pointer-events: auto;
}

.inspector-image-hover-upload .toolbar-btn-label {
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.inspector-image-actions-row {
  display: grid;
  gap: 8px;
  width: 100%;
  justify-content: stretch;
}

.inspector-image-actions-row.upload-row .inspector-image-replace-btn {
  width: 100%;
}

.inspector-image-actions-row.crop-row.single .inspector-image-replace-btn {
  width: 100%;
}

.inspector-image-actions-row.crop-row.cropping {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inspector-image-actions-row.crop-row.cropping .inspector-image-replace-btn {
  width: 100%;
}

.inspector-image-actions-row.deform-row.single .inspector-image-replace-btn {
  width: 100%;
}

.inspector-image-actions-row.deform-row.deforming {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inspector-image-actions-row.deform-row.deforming .inspector-image-replace-btn {
  width: 100%;
}

.inspector-image-actions-row.icon-only {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.inspector-image-actions-row.icon-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.icon-actions-spacer {
  flex: 1 1 auto;
}

.inspector-image-toggle-action .toolbar-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inspector-image-rotation-section {
  display: grid;
  gap: 10px;
}

.inspector-group-scale {
  display: grid;
  gap: 8px;
}

.inspector-rotation-item {
  display: grid;
  gap: 6px;
}

.inspector-rotation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-rotation-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
}

.inspector-rotation-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inspector-rotation-value {
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  min-width: 44px;
  text-align: right;
}

.inspector-rotation-reset {
  border: none;
  background: transparent;
  color: #6b7280;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.inspector-rotation-reset:hover {
  color: #111827;
}

.inspector-rotation-marks {
  position: relative;
  height: 18px;
  margin-top: -2px;
  color: #9ca3af;
  font-size: 10px;
  line-height: 1;
}

.inspector-rotation-marks span {
  position: absolute;
  text-align: center;
  padding-top: 6px;
}

.inspector-rotation-marks span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 4px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.inspector-image-icon-action {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.inspector-image-icon-action:hover {
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.26);
}

.inspector-image-icon-action.active {
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.inspector-image-icon-action:active {
  transform: scale(0.94);
}

.inspector-image-icon-action:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 1px;
}

.inspector-image-crop-entry {
  width: auto;
  min-width: 60px;
  padding: 0 10px;
  gap: 6px;
}

.inspector-image-crop-entry-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.inspector-pen-panel {
  display: grid;
  gap: 8px;
}

.inspector-border-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 0 0;
  border: none;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

.inspector-border-panel .toolbar-field.inspector-affix-field {
  background: #fff;
  border-color: #d9d9d9;
  border-radius: 10px;
  box-shadow: none;
}

.inspector-border-panel .toolbar-field.inspector-affix-field:hover {
  border-color: #4096ff;
}

.inspector-border-panel .toolbar-field.inspector-affix-field:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.inspector-border-color-cell {
  display: block;
}

.inspector-border-style-wrap {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}

.inspector-border-style-trigger {
  height: 42px;
  border-radius: 10px;
}

.inspector-border-style-menu {
  z-index: 140;
}

.border-prefix-icon {
  padding-left: 1px;
}

.border-mini-icon {
  width: 12px;
  height: 12px;
  border: 1.6px solid #9ca3af;
  border-radius: 2px;
  display: inline-block;
  box-sizing: border-box;
}

.inspector-pen-toggle {
  width: auto;
  min-height: 34px;
  padding: 0 10px;
  justify-content: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.inspector-pen-selection-list {
  display: grid;
  gap: 6px;
}

.inspector-pen-selection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
}

.inspector-pen-selection-item.clickable {
  cursor: pointer;
}

.inspector-pen-selection-item.clickable:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.06);
}

.inspector-pen-selection-item.active {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.12);
}

.inspector-pen-selection-name {
  min-width: 0;
  font-size: 12px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-pen-selection-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inspector-pen-selection-actions button {
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  color: #4f5971;
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}

.inspector-pen-selection-actions button:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent-dark);
}

.inspector-pen-selection-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inspector-image-actions .toolbar-btn-label {
  white-space: nowrap;
}

.btn-upload-ant {
  height: 38px;
  border: 1px dashed #d0d7e2;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-upload-ant .toolbar-btn-label {
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}

.btn-upload-ant .toolbar-btn-icon {
  color: #6b7280;
}

.btn-upload-ant:hover {
  border-color: rgba(var(--accent-rgb), 0.62);
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.06);
}

.btn-upload-ant:hover .toolbar-btn-icon {
  color: var(--accent);
}

.inspector-font-select {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 120;
}

.text-font-rotation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 8px;
}

.text-font-rotation-row .inspector-font-select {
  width: 100%;
}

.canvas-inspector .inspector-text-rotation-field {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.inspector-font-select-menu {
  min-width: 280px;
  z-index: 260;
}

.inspector-font-select-menu-floating {
  position: fixed;
  z-index: 2600;
}

.canvas-inspector .inspector-title {
  font-size: 12px;
}

.canvas-inspector label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.canvas-inspector input,
.canvas-inspector textarea,
.canvas-inspector select {
  font-size: 11px;
}

.canvas-inspector .toggle {
  font-size: 11px;
}

.inspector-switch-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inspector-switch-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
}

.inspector-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  line-height: 1;
}

.inspector-pill-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.inspector-pill-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inspector-pill-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.inspector-pill-switch.checked {
  background: var(--accent);
}

.inspector-pill-switch.checked .inspector-pill-knob {
  transform: translateX(20px);
}

.canvas-inspector .icon-toggle {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.canvas-inspector .icon-toggle input {
  display: none;
}

.canvas-inspector .icon-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.canvas-inspector .icon-toggle.checked {
  background: rgba(var(--accent-rgb), 0.14);
  color: #2b3150;
}

.canvas-inspector .icon-toggle-button {
  width: 100%;
}

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

.text-size-style-row,
.text-size-lineheight-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.text-style-icon-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.text-style-icon-row-next {
  margin-top: 2px;
}

.text-style-icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.text-style-icon-toggle input {
  display: none;
}

.text-style-icon-toggle:hover {
  color: #111827;
  background: rgba(var(--accent-rgb), 0.08);
}

.text-style-icon-toggle.checked {
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.12);
}

.text-case-icon {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.2px;
}

.cp-wrap {
  position: relative;
  width: 100%;
}

.cp-trigger {
  width: 100%;
  height: 36px;
  border: 1px solid #d4dae3;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  cursor: pointer;
}

.cp-trigger-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex: 0 0 18px;
}

.cp-trigger-text {
  font-size: 12px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  min-width: 260px;
  border: 1px solid #d4dae3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
  z-index: 90;
  overflow: hidden;
}

.cp-pop.cp-pop-floating {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
}

.cp-head {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.cp-head-title {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.cp-row {
  padding: 12px 16px 10px;
  display: grid;
  grid-template-columns: 92px 1fr 30px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #eef1f5;
}

.cp-mode-select-wrap {
  width: 92px;
  min-width: 0;
  max-width: 92px;
  flex: 0 0 92px;
}

.cp-mode-select-trigger {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 9px 0 10px;
  border-radius: 7px;
  font-size: 12px;
}

.cp-mode-select-menu {
  width: 92px;
  min-width: 92px;
  top: calc(100% + 4px);
}

.cp-hex-input {
  height: 30px;
  border: 1px solid #d4dae3;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 12px;
  text-transform: uppercase;
}

.cp-icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 7px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
}

.cp-close-btn {
  border: none;
  background: transparent;
}

.cp-sub-row {
  padding: 0 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-sub-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.cp-view-toggle {
  display: inline-flex;
  gap: 6px;
}

.cp-view-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cp-view-btn.active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
}

.cp-view-icon {
  display: inline-flex;
  line-height: 0;
}

.cp-view-preview {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.cp-grid-icon {
  font-size: 13px;
  line-height: 1;
}

.cp-space-wrap {
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: stretch;
}

.cp-sv {
  position: relative;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
}

.cp-sv-white,
.cp-sv-black {
  position: absolute;
  inset: 0;
}

.cp-sv-white {
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.cp-sv-black {
  background: linear-gradient(0deg, #000, rgba(0, 0, 0, 0));
}

.cp-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.cp-hue {
  margin: 0;
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 150px;
  border: none;
  padding: 0;
  background: transparent;
}

.cp-pop .cp-hue::-webkit-slider-runnable-track {
  width: 14px;
  height: 150px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to bottom, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.cp-pop .cp-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #111827;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.cp-pop .cp-hue::-moz-range-track {
  width: 14px;
  height: 150px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to bottom, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.cp-pop .cp-hue::-moz-range-progress {
  background: transparent;
}

.cp-pop .cp-hue::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #111827;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.cp-alpha-row {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 24px 1fr 52px;
  gap: 8px;
  align-items: center;
}

.cp-alpha-clear {
  width: 24px;
  height: 24px;
  border: 1px solid #d4dae3;
  border-radius: 6px;
  background: #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
}

.cp-alpha-track {
  position: relative;
  height: 14px;
  border: 1px solid #d4dae3;
  border-radius: 6px;
  background:
    conic-gradient(from 90deg at 1px 1px, #e5e7eb 25%, #ffffff 0 50%, #e5e7eb 0 75%, #ffffff 0)
    0 0 / 12px 12px;
  overflow: hidden;
}

.cp-alpha-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cp-alpha-gradient, linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.cp-alpha {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.cp-pop .cp-alpha::-webkit-slider-runnable-track {
  border: none;
  background: transparent;
}

.cp-pop .cp-alpha::-moz-range-track {
  border: none;
  background: transparent;
}

.cp-alpha::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #111827;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.cp-alpha::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #111827;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.cp-alpha-value {
  height: 24px;
  border: 1px solid #d4dae3;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #4b5563;
}

.cp-section {
  border-top: 1px solid #eef1f5;
  padding: 10px 16px 12px;
}

.cp-section-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 6px;
}

.cp-swatch-grid {
  display: grid;
  grid-template-columns: repeat(8, 26px);
  gap: 5px;
}

.cp-swatch-grid-large {
  padding: 0 16px 12px;
}

.cp-swatch {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 3px;
  cursor: pointer;
  background: #fff;
}

.cp-swatch-add {
  color: #6b7280;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-swatch-add.active {
  color: #111827;
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
}

.canvas-inspector .inspector-textarea {
  min-height: 108px;
  line-height: 1.4;
  resize: vertical;
}

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

.inspector-affix-field {
  width: 100%;
}

.canvas-inspector .inspector-affix-input {
  width: 100%;
  height: var(--toolbar-control-height, 36px);
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 0 28px 0 28px;
  -moz-appearance: textfield;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.canvas-inspector .inspector-affix-input:hover {
  border-color: #aeb8c8;
}

.canvas-inspector .inspector-affix-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.14);
}

.canvas-inspector .inspector-affix-input.no-suffix {
  padding-right: 10px;
}

.canvas-inspector .inspector-affix-input.with-stepper {
  padding-right: 40px;
}

.canvas-inspector .inspector-affix-input.no-suffix.with-stepper {
  padding-right: 40px;
}

.inspector-affix-field.has-stepper .inspector-number-stepper {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border-left: 1px solid #d4dae3;
  border-radius: 0 6px 6px 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.inspector-affix-field.has-stepper.has-suffix-stepper .inspector-number-stepper {
  right: 22px;
}

.inspector-affix-field.has-stepper:hover .inspector-number-stepper,
.inspector-affix-field.has-stepper:focus-within .inspector-number-stepper {
  opacity: 1;
  pointer-events: auto;
}

.inspector-affix-field.has-stepper.has-suffix-stepper .toolbar-field-suffix {
  right: 8px;
}

.inspector-number-stepper button {
  width: 100%;
  height: 50%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #7a8292;
  font-size: 0;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.inspector-number-stepper button:hover {
  background: #eef2f7;
  color: #374151;
}

.inspector-number-stepper button + button {
  border-top: 1px solid #dfe4ec;
}

.stepper-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.stepper-arrow-up {
  border-bottom: 5px solid #7a8292;
}

.stepper-arrow-down {
  border-top: 5px solid #7a8292;
}

.inspector-number-stepper button:hover .stepper-arrow-up {
  border-bottom-color: #374151;
}

.inspector-number-stepper button:hover .stepper-arrow-down {
  border-top-color: #374151;
}

.canvas-inspector .inspector-font-size-field {
  width: 100%;
  max-width: none;
}

.canvas-inspector .inspector-image-rotation-field {
  width: calc(50% - 4px);
  max-width: calc(50% - 4px);
}

.canvas-inspector .inspector-affix-input::-webkit-outer-spin-button,
.canvas-inspector .inspector-affix-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.canvas-inspector .inspector-font-size-field .toolbar-field-prefix {
  left: 8px;
  color: #97a0b4;
}

.font-size-prefix-h {
  font-size: 11px;
  font-weight: 700;
}

.canvas-inspector .inspector-blur-field .toolbar-field-prefix {
  left: 8px;
  color: #97a0b4;
  font-weight: 600;
  font-size: 10px;
}

.canvas-inspector .inspector-blur-field .inspector-affix-input {
  padding-left: 38px;
}

.inspector-shadow-inline-row {
  align-items: center;
}

.inspector-shadow-color-field {
  width: 100%;
}

.inspector-image-shape-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-image-scale-slider {
  margin-top: 6px;
  margin-bottom: 8px;
}

.inspector-image-scale-marks {
  width: 100%;
  margin-left: 0;
  margin-top: 0;
  font-size: 10px;
  color: #9ca3af;
  overflow: visible;
}

.inspector-corner-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: calc(50% - 4px);
  max-width: calc(50% - 4px);
}

.inspector-corner-block.inspector-corner-block-full {
  width: 100%;
  max-width: 100%;
}

.inspector-corner-radius-field {
  width: 100%;
}

.inspector-corner-radius-field .inspector-affix-input {
  padding-left: 28px;
}

.inspector-corner-toggle-pad {
  position: relative;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.corner-toggle-btn {
  position: absolute;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.corner-pos-tl {
  left: 2px;
  top: 2px;
}

.corner-pos-tr {
  right: 2px;
  top: 2px;
}

.corner-pos-br {
  right: 2px;
  bottom: 2px;
}

.corner-pos-bl {
  left: 2px;
  bottom: 2px;
}

.corner-arc {
  display: block;
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: currentColor;
  border-width: 0;
}

.corner-radius-prefix-icon {
  left: 7px;
}

.corner-radius-icon {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.corner-radius-icon .seg {
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1.6px solid #8f98aa;
}

.corner-radius-icon .seg.tl {
  left: 0;
  top: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 4px;
}

.corner-radius-icon .seg.tr {
  right: 0;
  top: 0;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 4px;
}

.corner-radius-icon .seg.br {
  right: 0;
  bottom: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 4px;
}

.corner-radius-icon .seg.bl {
  left: 0;
  bottom: 0;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 4px;
}

.corner-arc-tl {
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 6px;
}

.corner-arc-tr {
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 6px;
}

.corner-arc-br {
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 6px;
}

.corner-arc-bl {
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 6px;
}

.corner-toggle-btn:hover {
  color: #6b7280;
}

.corner-toggle-btn.checked {
  color: var(--accent);
}

.inspector-title {
  font-size: 13px;
  font-weight: 600;
}

.inspector-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inspector-element-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.inspector-element-name-display {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  line-height: 28px;
  border-bottom: 1px solid #d9d9d9;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
}

.inspector-element-name-display:hover {
  border-bottom-color: #bfc9d9;
}

.inspector-element-name-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  border: none;
  border-bottom: 1px solid #d9d9d9;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  color: var(--text);
  padding: 0 2px;
}

.inspector-element-name-input:focus {
  outline: none;
  border-bottom-color: #1677ff;
  box-shadow: none;
}

.inspector-element-name-save-btn {
  width: 30px;
  height: 30px;
}

.inspector-group-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.inspector-group-name-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
}

.inspector-group-name-display {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  line-height: 30px;
  border-bottom: 1px solid #d9d9d9;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
}

.inspector-group-name-display:hover {
  border-bottom-color: #bfc9d9;
}

.inspector-group-name-save-btn {
  width: 34px;
  height: 34px;
}

.inspector-main-image-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.inspector-main-image-switch {
  position: relative;
  width: 74px;
  height: 26px;
  border-radius: 999px;
  background: #cfd6e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.inspector-main-image-switch .ant-switch-inner {
  width: 100%;
  padding: 0 8px 0 28px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

.inspector-main-image-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inspector-main-image-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.inspector-main-image-switch.checked {
  background: #e8bb8f;
}

.inspector-main-image-switch.checked .inspector-main-image-knob {
  transform: translateX(48px);
}

.inspector-main-image-switch.checked .ant-switch-inner {
  padding: 0 28px 0 8px;
}

.inspector-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.divider {
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .canvas-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }
  .panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .cms-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-main-grid {
    grid-template-columns: 1fr;
  }
  .cms-form-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nav {
    flex-wrap: wrap;
  }
  .topbar-user {
    justify-content: flex-start;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid-upgraded {
    grid-template-columns: 1fr;
  }
  .pricing-form-grid {
    grid-template-columns: 1fr;
  }
  .cms-form-inline {
    grid-template-columns: 1fr;
  }
}

.canvas-simple-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}

.canvas-simple-switch-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.inspector-simple-switch-row {
  margin-left: auto;
}

.canvas-compact-switch {
  width: 32px;
  height: 18px;
  background: #d8dee9;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.canvas-compact-switch .ant-switch-handle {
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.canvas-compact-switch.checked {
  background: #e8bb8f;
}

.canvas-compact-switch.checked .ant-switch-handle {
  left: 16px;
}

.canvas-image-batch-settings {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.canvas-image-batch-link-field {
  margin-bottom: 0;
}
