#sed-mobile-shell .sed-mobile-scroller:has(.sed-mobile-draw-sketch) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 8px;
  overflow-x: hidden;
}

#sed-mobile-shell .sed-mobile-draw-sketch-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sed-mobile-text, #f4f7fb);
  font-size: 20px;
  font-weight: 650;
  line-height: 24px;
  text-align: left;
}

#sed-mobile-shell .sed-mobile-draw-sketch-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch-actions button {
  flex: 0 0 auto;
  width: auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

#sed-mobile-shell .sed-mobile-draw-sketch-export,
#sed-mobile-shell .sed-mobile-draw-sketch-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch-export {
  padding: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch-export button,
#sed-mobile-shell .sed-mobile-draw-sketch-dialog button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1;
}

#sed-mobile-shell .sed-mobile-draw-sketch-notice {
  margin: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch-canvas {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch .sed-mobile-sketch {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch .sed-mobile-sketch-bar,
#sed-mobile-shell .sed-mobile-draw-sketch .sed-mobile-sketch-stage {
  max-width: 100%;
}

#sed-mobile-shell .sed-mobile-draw-sketch-dialog {
  position: absolute;
  z-index: 4;
  left: 8px;
  right: 8px;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  max-width: calc(100% - 16px);
  padding: 16px;
  background: var(--sed-mobile-bg-raised, #1a2028);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

#sed-mobile-shell .sed-mobile-draw-sketch-dialog h2,
#sed-mobile-shell .sed-mobile-draw-sketch-dialog p {
  margin: 0;
}

#sed-mobile-shell .sed-mobile-draw-sketch [hidden] {
  display: none !important;
}

#sed-mobile-shell .sed-mobile-draw-sketch button:focus-visible {
  outline: 2px solid var(--sed-mobile-accent, #8fd0ff);
  outline-offset: 2px;
}
