/* Photoshop Dark Theme - Text Warp Modal */
.tw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.tw-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.tw-dialog {
  width: 440px;
  background: #2b2b2b;
  border: 1px solid #484848;
  border-radius: 6px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  color: #dfdfdf;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  user-select: none;
  overflow: hidden;
}

.tw-header {
  height: 32px;
  background: #1e1e1e;
  border-bottom: 1px solid #383838;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-weight: 600;
  color: #f0f0f0;
}

.tw-close-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
}

.tw-close-btn:hover {
  background: #383838;
  color: #fff;
}

.tw-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tw-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tw-label {
  width: 130px;
  flex-shrink: 0;
  color: #bbb;
}

.tw-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tw-select {
  flex: 1;
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 3px;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}

.tw-select:focus {
  border-color: #2680eb;
}

.tw-radio-group {
  display: flex;
  gap: 18px;
  align-items: center;
}

.tw-radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #ccc;
}

.tw-range {
  flex: 1;
  accent-color: #2680eb;
  cursor: pointer;
}

.tw-num {
  width: 50px;
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 3px;
  color: #fff;
  padding: 3px 6px;
  font-size: 12px;
  text-align: right;
  outline: none;
}

.tw-num:focus {
  border-color: #2680eb;
}

.tw-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #202020;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  padding: 10px;
  height: 90px;
}

.tw-preview-canvas {
  max-width: 100%;
  max-height: 100%;
}

.tw-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 16px;
  background: #232323;
  border-top: 1px solid #383838;
}

.tw-btn {
  background: #383838;
  border: 1px solid #505050;
  border-radius: 4px;
  color: #eee;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.tw-btn:hover {
  background: #444;
  color: #fff;
}

.tw-btn-primary {
  background: #2680eb;
  border-color: #1a6cd1;
  color: #fff;
  font-weight: 600;
}

.tw-btn-primary:hover {
  background: #1f6fd1;
}
