* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --primary-color: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --bg-dark: #1a1a2e;
  --bg-darker: #0f0f1e;
  --surface-card: #2d2d44;
  --surface-border: #404052;
  --text-primary: #ffffff;
  --text-secondary: #b0b0c8;
}

body {
  margin: 0;
  font-family: var(--font-family, "Inter", "Segoe UI", Arial, sans-serif);
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: var(--text-primary);
  min-height: 100vh;
}

header {
  padding: 1rem 1.25rem;
  color: #fff;
  background: linear-gradient(90deg, #2d1b4e 0%, #1a0a3e 100%);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.site-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo-header {
  width: 52px;
  height: 52px;
  margin: 0;
}

.site-logo-login {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
}

.auth-status {
  margin: 0.75rem 0 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  font-size: 0.9rem;
  line-height: 1.4;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text-primary);
}

header h1 {
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

#login-view,
.tab.active {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  overflow: visible;
  backdrop-filter: blur(10px);
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.tab-btn:active {
  transform: translateY(1px);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.form-shell {
  background: rgba(45, 45, 68, 0.35);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1rem;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.field-group span {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-actions,
.form-note {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.form-actions button {
  min-width: 120px;
}

.generate-panel {
  margin-bottom: 1rem;
}

.generate-panel textarea {
  min-height: 7rem;
  resize: vertical;
}

.render-result {
  margin-top: 1rem;
}

.render-layout {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 1rem;
  align-items: start;
}

.pdf-preview-wrap {
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 15, 30, 0.65);
  min-height: 70vh;
}

#generated-pdf-preview {
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}

.render-side-panel {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.render-side-panel a {
  word-break: break-word;
}

#email-controls {
  display: grid;
  gap: 0.75rem;
}

input,
select,
button,
textarea {
  font: inherit;
  border-radius: 6px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--surface-border);
  background: rgba(45, 45, 68, 0.5);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder,
select::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(45, 45, 68, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

button {
  border: 1px solid var(--primary-color);
  padding: 0.65rem 1rem;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-small {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}

.btn-secondary {
  background: #fff;
  color: var(--text-color, #1f2937);
  border-color: var(--surface-border, #cdd7e3);
}

.canvas-wrap {
  border: 1px solid var(--surface-border, #d1d5db);
  border-radius: 12px;
  background: #fff;
  display: block;
  position: relative;
  overflow: auto;
  width: 100%;
  max-height: 1100px;
}

#pdf-canvas {
  max-width: 100%;
  display: block;
}

#overlay-canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.hint {
  font-size: 0.86rem;
  color: var(--text-color-secondary, #6b7280);
}

.field-row,
.user-row {
  background: var(--surface-card, #fff);
  border: 1px solid var(--surface-border, #dce2ec);
  border-radius: 10px;
  padding: 0.65rem;
  margin: 0.45rem 0;
}

.record-row {
  background: var(--surface-card, #fff);
  border: 1px solid var(--surface-border, #dce2ec);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.45rem 0;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
  color: var(--text-color-secondary, #6b7280);
  font-size: 0.92rem;
}

.record-meta strong {
  color: var(--text-color, #1f2937);
}

.field-row code {
  font-weight: 600;
}

.mapper-page-controls {
  margin-top: 0.5rem;
}

.mapper-page-controls .hint {
  min-width: 110px;
  text-align: center;
  margin: 0;
}

.mapper-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.mapper-canvas-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.mapper-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 1100px;
  min-width: 360px;
  padding-right: 0.5rem;
}

#field-form {
  background: rgba(45, 45, 68, 0.4);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1rem;
}

#field-form .grid {
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

#field-form input,
#field-form select {
  font-size: 0.9rem;
}

.template-controls {
  background: rgba(45, 45, 68, 0.4);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.template-controls-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 1px solid var(--surface-border);
  transition: all 0.2s ease;
}

.template-controls-header:hover {
  background: rgba(139, 92, 246, 0.1);
  border-bottom-color: rgba(139, 92, 246, 0.3);
}

.template-controls-header i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.template-controls-header.collapsed i {
  transform: rotate(-90deg);
}

.template-controls-content {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.template-controls-content.hidden {
  display: none;
}

.template-controls-content .row {
  margin-bottom: 0;
  gap: 0.5rem;
}

.template-controls-content label {
  min-width: 80px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.template-controls-content input,
.template-controls-content select {
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
}

.template-controls-content button {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.fields-panel {
  background: rgba(45, 45, 68, 0.4);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.fields-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--surface-border);
  transition: all 0.2s ease;
}

.fields-header:hover {
  background: rgba(139, 92, 246, 0.1);
  border-bottom-color: rgba(139, 92, 246, 0.3);
}

.fields-header i {
  transition: transform 0.2s ease;
  color: var(--primary-color);
}

.fields-header.collapsed i {
  transform: rotate(-90deg);
}

.field-list-container {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-list-container.hidden {
  display: none;
}

.field-row {
  background: rgba(30, 30, 50, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  padding: 0.65rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease;
}

.field-row:hover {
  background: rgba(30, 30, 50, 0.9);
  border-color: rgba(139, 92, 246, 0.4);
}

.field-row-content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.field-row-label {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.field-row-type {
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.field-row-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-icon {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.4rem;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-color);
}

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

.btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

#save-fields-btn {
  padding: 0.75rem;
  width: 100%;
  font-weight: 600;
}

.fields-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

#reorder-fields-btn {
  width: 100%;
}

.profile-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-asset-card {
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(45, 45, 68, 0.4);
  transition: all 0.2s ease;
}

.profile-asset-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(45, 45, 68, 0.6);
}

.profile-asset-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.profile-asset-preview {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 2px dashed var(--surface-border);
  border-radius: 6px;
  background: rgba(30, 30, 50, 0.5);
  padding: 0.5rem;
}

.profile-smtp-info {
  margin-top: 0.5rem;
}

.smtp-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.smtp-field {
  margin: 0;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid rgb(59, 130, 246);
  border-radius: 4px;
  font-size: 0.9rem;
}

.smtp-field strong {
  color: var(--text-primary);
}

.smtp-field span {
  color: rgb(147, 197, 253);
  font-family: monospace;
  word-break: break-all;
}

.user-email {
  font-weight: 600;
  color: var(--text-primary);
}

.user-row {
  display: grid;
  gap: 0.75rem;
}

.user-row .user-password-row {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.user-row .field-group {
  margin: 0;
}

.user-row input {
  width: 100%;
}

#questionnaire-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

#questionnaire-form > p {
  margin: 0;
  grid-column: 1 / -1;
  color: var(--text-secondary);
}

.question-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: rgba(45, 45, 68, 0.35);
  transition: all 0.2s ease;
}

.question-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(45, 45, 68, 0.6);
}

.question-item-checkbox {
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.question-item-checkbox .question-label {
  margin-right: 1rem;
}

.question-item input {
  width: 100%;
}

.question-item-checkbox input {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: auto;
  accent-color: var(--primary-color);
}

.question-section-block {
  grid-column: 1 / -1;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(45, 45, 68, 0.3);
}

.question-section-block-alt {
  background: rgba(59, 130, 246, 0.12);
}

.question-section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.question-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.2rem 0 0.85rem;
}

.question-section-header hr {
  flex: 1;
  border: 0;
  border-top: 1px solid var(--surface-border);
  margin: 0;
}

.question-section-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

#field-required {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  accent-color: var(--primary-color);
  cursor: pointer;
}

#field-required + label {
  cursor: pointer;
}

.question-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

#questionnaire-form label,
#profile-form label,
#create-user-form label,
#smtp-form label {
  font-weight: 500;
  color: var(--text-secondary);
}

pre {
  background: rgba(15, 15, 30, 0.6);
  color: var(--primary-light);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 1rem;
  overflow: auto;
  font-size: 0.85rem;
}

.auth-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.auth-bar #auth-user-label {
  font-weight: 500;
  color: var(--primary-light);
}

.auth-bar #logout-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-light);
  white-space: nowrap;
}

.auth-bar #logout-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--primary-color);
}

@media (max-width: 900px) {
  header {
    align-items: flex-start;
  }

  .header-main {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-logo-header {
    margin-left: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .user-row .user-password-row {
    grid-template-columns: 1fr;
  }

  .render-layout {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

.field-key-hint {
  margin-top: 0.65rem;
  color: var(--text-secondary);
}

#email-body-container {
  margin-bottom: 0.9rem;
}

textarea {
  font: inherit;
  border-radius: 6px;
  padding: 0.75rem;
  border: 1px solid var(--surface-border);
  background: rgba(45, 45, 68, 0.5);
  color: var(--text-primary);
  width: 100%;
  resize: vertical;
  transition: all 0.2s ease;
}

textarea::placeholder {
  color: var(--text-secondary);
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(45, 45, 68, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  min-width: 240px;
  max-width: 400px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 0.85rem 1rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-card {
  width: min(480px, 100%);
  border-radius: 10px;
  background: rgba(45, 45, 68, 0.95);
  border: 1px solid var(--surface-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.modal-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.modal-card p {
  margin-top: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-card-wide {
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-warning {
  color: #fca5a5;
  margin-bottom: 0.6rem;
}

#template-delete-confirm-input {
  margin-bottom: 0.8rem;
}

.reorder-fields-list {
  max-height: none;
  flex: 1;
  min-height: 360px;
  overflow-y: auto;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reorder-field-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(30, 30, 50, 0.7);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  cursor: grab;
  user-select: none;
}

.reorder-field-position {
  min-width: 3rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.reorder-field-item.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.reorder-field-item.drag-over {
  border-color: rgba(139, 92, 246, 0.8);
  background: rgba(139, 92, 246, 0.18);
}

.reorder-field-handle {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reorder-field-label {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reorder-field-type {
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-light);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  white-space: nowrap;
}

.reorder-field-order-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.reorder-field-order-input {
  width: 4.5rem;
  padding: 0.35rem 0.4rem;
}

@media (max-width: 1200px) {
  .mapper-layout {
    grid-template-columns: 1fr;
  }

  .mapper-sidebar {
    max-height: none;
  }
}
