/* Mobile Specific Text Editor Styles - Unified Architecture */
.te-mobile-wrap {
  padding-bottom: 5rem;
}

.te-m-card {
  padding: 0.75rem;
  border-radius: 20px;
}

.te-m-top-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.te-m-btn-top-up {
  flex: 1;
  padding: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
}

.te-m-viewport {
  position: relative;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.te-m-canvas-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
}

#baseCanvas {
  display: block;
  max-width: 100%;
  max-height: 48vh;
}

#maskCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.te-m-toolbar {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
}

.te-m-tool-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.te-m-tab {
  flex: 1;
  padding: 0.45rem;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-weight: 600;
}

.te-m-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.te-m-size-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #475569;
}

.te-m-size-slider input {
  flex: 1;
}

.te-m-params-drawer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.te-m-tip-hdr {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0369a1;
}

.te-m-input-row input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
}

.te-m-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.te-m-bottom-actions {
  margin-top: 0.4rem;
}

.te-m-btn-run {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
}
