/* Desenhar online — product mock layout (single toolbar card + canvas + bottom) */

/* ========== FULLSCREEN SHELL (beats fullscreen.css) ========== */
/*
 * Mock: soft page wash + draft strip + floating white card.
 * fullscreen.css forces full-bleed white — override with higher specificity.
 */
body.is-fullscreen .fs-workspace.draw-fs,
body.is-fullscreen .fs-workspace:has(#draw-app),
body.is-fullscreen .fs-workspace:has(.draw-app) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px;
  width: 100% !important;
  max-width: none !important;
  min-height: min(78vh, 920px) !important;
  margin: 0 !important;
  padding: 12px 16px 16px !important;
  box-sizing: border-box !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: #eef2f8 !important;
  position: relative;
}

html[data-theme="dark"] body.is-fullscreen .fs-workspace.draw-fs,
html[data-theme="dark"] body.is-fullscreen .fs-workspace:has(#draw-app) {
  background: #0b0e14 !important;
}

/* ========== DRAFT BANNER (outside card, like mock) ========== */
.draw-draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 14px;
  background: #e8f1ff;
  border: 1px solid #d0e2ff;
  color: #1e3a5f;
  font-size: 0.88rem;
  font-weight: 600;
  flex: 0 0 auto;
  box-shadow: none;
}

.draw-draft-banner[hidden] {
  display: none !important;
}

.draw-draft-ico {
  color: #3b82f6;
  font-size: 0.95rem;
  line-height: 1;
}

.draw-draft-msg {
  flex: 1 1 auto;
  min-width: 0;
}

.draw-draft-btn {
  appearance: none;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.draw-draft-btn:hover {
  background: #f8fbff;
}

.draw-draft-dismiss {
  color: #dc2626;
  border-color: #fecaca;
}

.draw-draft-dismiss:hover {
  background: #fef2f2;
}

html[data-theme="dark"] .draw-draft-banner {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
}

html[data-theme="dark"] .draw-draft-btn {
  background: #1a1f2a;
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

html[data-theme="dark"] .draw-draft-dismiss {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.draw-btn-sm {
  min-height: 32px !important;
  padding: 4px 10px !important;
  font-size: 0.8rem !important;
}

.draw-check {
  gap: 6px !important;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.draw-check input {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.draw-import-label {
  cursor: pointer;
  margin: 0;
}

/* Context menu */
.draw-ctx {
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.draw-ctx[hidden] {
  display: none !important;
}

.draw-ctx button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.draw-ctx button:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.draw-ctx hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 4px 2px;
}

html[data-theme="dark"] .draw-ctx {
  background: #1a1f2a;
  border-color: #2a3140;
}

html[data-theme="dark"] .draw-ctx button {
  color: #e2e8f0;
}

html[data-theme="dark"] .draw-ctx button:hover {
  background: #243044;
  color: #93c5fd;
}

/* ========== APP CARD ========== */
body.is-fullscreen .fs-workspace.draw-fs .draw-app,
body.is-fullscreen .fs-workspace:has(#draw-app) .draw-app,
.draw-app {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: min(70vh, 860px);
  height: min(72vh, 880px);
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--dica-body);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e4e9f2;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 32px rgba(15, 23, 42, 0.07);
  /* Drawesome classic barrel tokens */
  --tool-1: #c6c4bf;
  --tool-2: #eeedea;
  --tool-3: #ffffff;
  --tool-4: #f3f2ef;
  --tool-5: #dedcd7;
  --tool-6: #c4c2bd;
  --metal-1: #6f6d68;
  --metal-2: #bab8b3;
  --metal-3: #e4e2de;
  --metal-4: #a6a49f;
  --metal-5: #6a6863;
  --tool-collar: #413e3a;
}

html[data-theme="dark"] .draw-app,
html[data-theme="dark"] body.is-fullscreen .fs-workspace.draw-fs .draw-app {
  background: #151922;
  border-color: #2a3140;
  --tool-1: #232327;
  --tool-2: #34343a;
  --tool-3: #47474f;
  --tool-4: #3a3a41;
  --tool-5: #2a2a2f;
  --tool-6: #1f1f23;
  --metal-1: #34343a;
  --metal-2: #63636d;
  --metal-3: #83838e;
  --metal-4: #51515a;
  --metal-5: #2e2e34;
  --tool-collar: #101013;
}

/* ========== TOP TOOLBAR (top of card, mock style) ========== */
.draw-app .draw-topbar,
.draw-topbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px 8px;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
  z-index: 4;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 64px;
  max-height: none;
}

html[data-theme="dark"] .draw-topbar {
  background: #151922;
  border-color: #2a3140;
}

.draw-tools-sep {
  display: inline-block;
  width: 1px;
  height: 40px;
  flex: 0 0 auto;
  background: #e8edf4;
  margin: 0 2px;
}

.draw-tools-sep-soft {
  height: 28px;
  background: #eef2f7;
}

html[data-theme="dark"] .draw-tools-sep {
  background: #2a3140;
}

/* Modes */
.draw-modes {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
  flex: 0 0 auto;
}

.draw-mode {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 50px;
  padding: 7px 6px 6px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.draw-mode-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: inherit;
}

.draw-mode-ico svg {
  max-width: none !important;
  width: 20px !important;
  height: 20px !important;
  display: block;
}

.draw-mode-label {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draw-mode:hover:not(:disabled):not(.is-soon) {
  background: #f1f5f9;
  color: #0f172a;
}

.draw-mode.is-active {
  background: #e8f0ff;
  color: #1d4ed8;
  box-shadow: none;
}

/* When drawing with a pen, no mode is active — that's OK. Highlight select clearly. */
.draw-mode[data-mode="selecionar"].is-active {
  background: #e0ecff;
  color: #1d4ed8;
}

html[data-theme="dark"] .draw-mode:hover:not(:disabled):not(.is-soon) {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

html[data-theme="dark"] .draw-mode.is-active {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

.draw-mode.is-soon,
.draw-mode[data-soon="1"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.draw-mode:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.draw-app.is-mode-selecionar .draw-mode[data-mode="selecionar"],
.draw-mode[data-mode="selecionar"].is-active {
  color: #1d4ed8;
  background: #eaf2ff;
}

/* Pens */
.draw-pen-tray {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 2px 6px;
  min-height: 0;
  max-width: none;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef1f6;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 auto;
}

.draw-pen-tray.is-shapes {
  align-items: center;
  gap: 2px;
}

.draw-pen-tray.is-shapes .draw-shape-btn {
  width: 32px;
  height: 40px;
  align-items: center;
}

.draw-tray-sep {
  display: inline-block;
  width: 1px;
  height: 28px;
  margin: 0 4px;
  background: #e8edf4;
  align-self: center;
  flex: 0 0 auto;
}

html[data-theme="dark"] .draw-tray-sep {
  background: #2a3140;
}

.draw-pen-tray.is-hidden {
  display: none;
}

.draw-pen-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 1px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 44px;
  border-radius: 8px;
  transition: transform 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.draw-pen-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.draw-pen-btn.is-active {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.draw-pen-slot {
  display: block;
  line-height: 0;
  pointer-events: none;
  max-height: 44px;
  overflow: hidden;
}

.draw-app .draw-pen-icon,
.draw-pen-slot svg.draw-pen-icon {
  max-width: none !important;
  width: 30px !important;
  height: auto !important;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

/* Swatches */
.draw-swatch-panel {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.draw-swatches {
  display: grid;
  grid-template-columns: repeat(10, 22px);
  gap: 5px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf4;
}

.draw-swatches .draw-swatch {
  width: 22px;
  height: 22px;
}

html[data-theme="dark"] .draw-swatches {
  background: #12161f;
  border-color: #2a3140;
}

.draw-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.draw-swatch.is-light {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.draw-swatch.is-active {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.draw-swatch.is-transparent {
  background:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: #fff;
}

.draw-color-input {
  width: 22px;
  height: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  grid-column: span 1;
}

/* Sliders block: row 1 = tamanho/opacidade · row 2 = preencher/png/fundo (mock) */
.draw-app .draw-sliders,
.draw-sliders {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: 0;
  height: auto !important;
}

.draw-sliders-row {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px 14px;
  min-width: 0;
}

.draw-sliders-ranges {
  gap: 12px 16px;
}

.draw-sliders-opts {
  gap: 10px 12px;
}

/* Right-side panel: stroke / fill / grid (next to sliders, not under them) */
.draw-pro-panel {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.draw-pro-row {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
}

.draw-style-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.draw-chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 28px;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.draw-chip.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .draw-style-group {
  background: #1a1f2a;
  border-color: #2a3140;
}

html[data-theme="dark"] .draw-chip.is-active {
  background: #243044;
  color: #93c5fd;
}

.draw-app .draw-field,
.draw-field {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  width: auto !important;
  white-space: nowrap;
}

.draw-field-range {
  gap: 6px;
}

.draw-app .draw-field input[type="range"],
.draw-field input[type="range"] {
  width: 68px !important;
  max-width: 68px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #2563eb;
  writing-mode: horizontal-tb !important;
  appearance: auto;
  vertical-align: middle;
}

.draw-field-bg {
  gap: 6px;
}

/* Hide "Fundo" text label — pill select shows Pontilhado etc. (mock) */
.draw-field-bg > span:first-child {
  /* keep short label like mock */
  font-weight: 600;
  color: #64748b;
}

.draw-field-bg select,
.draw-app .draw-field select,
.draw-field select {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  padding: 0 10px !important;
  margin: 0 !important;
  cursor: pointer;
  width: auto !important;
}

html[data-theme="dark"] .draw-field {
  color: #94a3b8;
}

html[data-theme="dark"] .draw-field select {
  background: #1a1f2a;
  border-color: #2a3140;
  color: #e2e8f0;
}

.draw-field-val {
  min-width: 2rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: #f1f5f9;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

html[data-theme="dark"] .draw-field-val {
  background: #1a1f2a;
  color: #e2e8f0;
}

/* ========== CANVAS ========== */
.draw-surface-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  height: 100%;
  margin: 0;
  background: #fafbfc;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.draw-surface-wrap.is-dots {
  background: #fafbfc;
}

html[data-theme="dark"] .draw-surface-wrap {
  background: #0f131a;
}

.draw-app svg.draw-svg,
#draw-svg.draw-svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: none;
  background: transparent;
}

.draw-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 5;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.draw-hint.is-sample-cta {
  pointer-events: auto;
  animation: draw-hint-pulse 2.2s ease-in-out infinite;
}

.draw-hint.is-sample-cta:hover,
.draw-hint.is-sample-cta:focus-visible {
  background: rgba(29, 78, 216, 0.98);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.draw-app.is-sample .draw-surface-wrap {
  cursor: pointer;
}

@keyframes draw-hint-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.35);
    filter: brightness(1.05);
  }
}

/* ========== BOTTOM BAR ========== */
.draw-bottombar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding: 10px 14px 12px;
  background: transparent;
  border-top: 0;
  flex: 0 0 auto;
  z-index: 4;
}

html[data-theme="dark"] .draw-bottombar {
  background: #151922;
  border-color: #2a3140;
}

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

.draw-btn {
  appearance: none;
  border: 1px solid #e5eaf1;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.draw-btn svg {
  max-width: none !important;
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
}

.draw-btn:hover:not(:disabled) {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #f8fbff;
}

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

.draw-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.draw-btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  color: #fff;
  background: #2563eb;
}

html[data-theme="dark"] .draw-btn {
  background: #1a1f2a;
  border-color: #2a3140;
  color: #cbd5e1;
}

html[data-theme="dark"] .draw-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Tip chip */
.draw-tip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  flex: 1 1 240px;
  min-width: 0;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #dbeafe;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.3;
  overflow: hidden;
}

.draw-tip-ico {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
}

.draw-tip-kicker {
  flex: 0 0 auto;
  font-weight: 800;
  color: #1d4ed8;
  padding-right: 6px;
  border-right: 1px solid #bfdbfe;
  margin-right: 2px;
}

.draw-tip-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-weight: 600;
}

.draw-tip-text kbd {
  display: inline-block;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  line-height: 1.4;
}

.draw-tip-link {
  flex: 0 0 auto;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.draw-tip-link:hover {
  text-decoration: underline;
}

html[data-theme="dark"] .draw-tip {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #cbd5e1;
}

html[data-theme="dark"] .draw-tip-kicker {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

html[data-theme="dark"] .draw-tip-text {
  color: #94a3b8;
}

html[data-theme="dark"] .draw-tip-text kbd {
  background: #1a1f2a;
  border-color: #2a3140;
  color: #93c5fd;
}

html[data-theme="dark"] .draw-tip-link {
  color: #93c5fd;
}

/* Text placement input */
.draw-text-input {
  position: absolute;
  z-index: 6;
  min-width: 160px;
  max-width: min(90%, 420px);
  min-height: 2.2em;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  resize: both;
  outline: none;
}

html[data-theme="dark"] .draw-text-input {
  background: rgba(26, 31, 42, 0.96);
  border-color: #60a5fa;
  color: #e2e8f0;
}

.draw-shape-btn .draw-pen-slot {
  max-height: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #334155;
}

.draw-shape-btn.is-active .draw-pen-slot {
  color: #1d4ed8;
}

.draw-app .draw-shape-ico {
  max-width: none !important;
  width: 20px !important;
  height: 20px !important;
  display: block;
}

.draw-app.is-mode-texto #draw-svg,
.draw-app.is-mode-balde #draw-svg {
  cursor: text;
}

.draw-app.is-mode-balde #draw-svg {
  cursor: cell;
}

.draw-app.is-mode-formas #draw-svg {
  cursor: crosshair;
}

.draw-app.is-mode-selecionar #draw-svg {
  cursor: default;
}

.draw-mode:not([data-soon]) {
  opacity: 1;
}

.draw-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.draw-credit {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.75rem;
}

/* ========== MOBILE ========== */
@media (max-width: 1100px) {
  .draw-topbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .draw-sliders {
    width: auto;
  }
  .draw-sliders-opts {
    flex-wrap: wrap !important;
  }
  .draw-pro-panel {
    margin-left: 0;
    align-items: flex-start;
  }
  .draw-tools-sep-soft {
    display: none;
  }
}

@media (max-width: 900px) {
  .draw-swatches {
    grid-template-columns: repeat(9, 20px);
  }
  .draw-swatch,
  .draw-swatches .draw-swatch {
    width: 20px;
    height: 20px;
  }
  .draw-field input[type="range"] {
    width: 72px;
  }
}

@media (max-width: 720px) {
  .fs-workspace:has(.draw-app) {
    padding: 8px;
  }
  .draw-app {
    min-height: min(72vh, 780px);
    height: min(72vh, 780px);
    border-radius: 14px;
  }
  .draw-mode {
    min-width: 48px;
    padding: 6px 4px 5px;
    font-size: 0.62rem;
  }
  .draw-mode-label {
    max-width: 52px;
  }
  .draw-pen-btn {
    width: 28px;
    height: 42px;
  }
  .draw-app .draw-pen-icon {
    width: 26px !important;
  }
  .draw-bottom-actions .draw-btn {
    font-size: 0.78rem;
    padding: 6px 10px;
    min-height: 36px;
  }
  .draw-tip {
    font-size: 0.74rem;
    border-radius: 14px;
    flex-wrap: wrap;
    white-space: normal;
  }
  .draw-tip-text {
    white-space: normal;
  }
}
