/* Codes motor — light draft paper inside blueprint frame; order untouched */
:root {
  --bg: #f4f8fc !important;
  --text: #0b1e33 !important;
  --muted: #4a6580 !important;
  --accent: #0a3a6e !important;
  --accent2: #ffb020 !important;
  --blue: #0a3a6e !important;
  --yellow: #ffb020 !important;
  --focus: #0a3a6e !important;
  --panel: #ffffff;
  --panel2: #eaf2fa;
  --line: #c5d5e6;
  --font-body: "Outfit", system-ui, sans-serif;
}

.kiln,
.dock {
  --bg: #f4f8fc;
  --panel: #ffffff;
  --panel2: #eaf2fa;
  --line: #c5d5e6;
  --text: #0b1e33;
  --muted: #4a6580;
  --accent: #0a3a6e;
  --accent2: #ffb020;
  --focus: #0a3a6e;
}

.kiln .layout,
.kiln .panel,
.kiln .preview-col,
.dock .layout,
.dock .panel,
.dock .preview-col {
  background: transparent !important;
  border-color: var(--line) !important;
  overflow-anchor: none;
  min-width: 0;
  max-width: 100%;
}

.kiln .tabs,
.dock .tabs {
  flex-wrap: wrap !important;
  overflow: visible !important;
  max-width: 100%;
}

.dock .tab-business { flex: 0 0 auto !important; }

.generate-qr-cta #btn-make-dynamic,
.btn-gen-another,
.file-picker-btn,
.btn-code-stats,
.keep-stats-open,
.qrg-color-done,
.draft__motor #btn-make-dynamic,
.draft__motor .btn-gen-another,
.draft__motor .btn-code-stats {
  background: #0a3a6e !important;
  border: 1px solid #062747 !important;
  color: #fff !important;
  border-radius: 2px !important;
  clip-path: none !important;
  box-shadow: 3px 3px 0 #ffb020 !important;
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

.generate-qr-cta #btn-make-dynamic:hover,
.btn-gen-another:hover,
.file-picker-btn:hover,
.btn-code-stats:hover,
.keep-stats-open:hover,
.qrg-color-done:hover,
.draft__motor #btn-make-dynamic:hover,
.draft__motor .btn-gen-another:hover,
.draft__motor .btn-code-stats:hover {
  background: #ffb020 !important;
  color: #062747 !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0 #0a3a6e !important;
}

#btn-png,
#btn-svg,
#btn-copy,
.actions button,
.draft__motor #btn-png,
.draft__motor #btn-svg,
.draft__motor #btn-copy {
  background: #fff !important;
  border: 1px solid #0a3a6e !important;
  color: #0a3a6e !important;
  border-radius: 2px !important;
  clip-path: none !important;
  box-shadow: 2px 2px 0 rgba(10, 58, 110, 0.2) !important;
  font-weight: 700 !important;
}

#btn-png:hover,
#btn-svg:hover,
#btn-copy:hover {
  background: #5ee7ff !important;
  color: #062747 !important;
}

.tab.active,
.style-studio-tab.is-on,
.style-studio-tab[aria-selected="true"] {
  background: rgba(10, 58, 110, 0.12) !important;
  border-color: #0a3a6e !important;
  color: #0b1e33 !important;
  clip-path: none !important;
}

.tab,
.style-studio-tab,
.style-chip,
.ecc-chip,
.type-chip {
  clip-path: none !important;
  border-radius: 2px !important;
  border: 1px solid #c5d5e6 !important;
  background: #fff !important;
  color: #0b1e33 !important;
}

.tabs .tab,
.tabs .more-toggle,
.tabs .tab-business,
.tabs .tab:not(.active):not(.tab-business),
.tabs .more-toggle:not(.active) {
  color: #0b1e33 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.more-menu,
.tabs .more-menu,
#more-menu,
#vcard-menu {
  background: #fff !important;
  border: 1px solid #0a3a6e !important;
  box-shadow: 4px 4px 0 rgba(10, 58, 110, 0.25) !important;
}

.more-menu .more-option,
.tabs .more-option,
.more-option,
.more-option span,
.more-option .option-label,
.more-option .option-icon,
.tabs .option-icon {
  color: #0b1e33 !important;
}

.more-option:hover,
.tabs .more-option:hover {
  background: #eaf2fa !important;
  color: #0b1e33 !important;
}

.qr-link-hint { color: #0a3a6e !important; }

.dock #t-data:empty,
.dock #t-code:empty { display: none !important; }

.kiln label,
.dock label {
  color: #4a6580 !important;
  text-transform: none !important;
}

.kiln input,
.kiln select,
.kiln textarea,
.dock input,
.dock select,
.dock textarea {
  background: #fff !important;
  color: #0b1e33 !important;
  border: 1px solid #c5d5e6 !important;
  border-radius: 2px !important;
}

.kiln input:focus,
.kiln select:focus,
.kiln textarea:focus,
.dock input:focus,
.dock select:focus,
.dock textarea:focus {
  border-color: #0a3a6e !important;
  box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.35) !important;
}

.keep-stats-modal.modal-overlay {
  background: rgba(6, 39, 71, 0.78) !important;
  z-index: 100080 !important;
}

.keep-stats-card,
#keep-stats-modal .keep-stats-card,
#keep-stats-modal .modal-card {
  background: #f4f8fc !important;
  color: #0b1e33 !important;
  border: 1px solid #0a3a6e !important;
  border-radius: 4px !important;
  box-shadow: 6px 6px 0 #ffb020 !important;
}

.keep-stats-open {
  background: #0a3a6e !important;
  border: 1px solid #062747 !important;
  color: #fff !important;
  border-radius: 2px !important;
}

.keep-stats-saved,
#keep-stats-saved {
  background: #ffb020 !important;
  border: 1px solid #062747 !important;
  color: #062747 !important;
  border-radius: 2px !important;
}

#flagship-modal .flagship-card,
#flagship-modal .modal-card {
  background: #f4f8fc !important;
  color: #0b1e33 !important;
  border: 1px solid #0a3a6e !important;
}

#flagship-modal .btn-flagship-go,
#flagship-modal .flagship-go-domain {
  background: #0a3a6e !important;
  color: #fff !important;
  border: 1px solid #062747 !important;
  border-radius: 2px !important;
}

.kiln #stage,
.dock #stage,
.preview-col #stage {
  display: grid !important;
  place-items: center !important;
  width: min(340px, 100%) !important;
  max-width: 340px !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  border: 1px dashed #0a3a6e !important;
  border-radius: 2px !important;
  background: #fff !important;
}

.kiln #stage .size-badge,
.dock #stage .size-badge {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  background: #0a3a6e !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 2px !important;
  border: 1px solid #062747 !important;
}

.kiln #stage #qr,
.dock #stage #qr {
  display: block !important;
  width: 100% !important;
  background: #fff !important;
}

.kiln .fields:not(.hidden),
.dock .fields:not(.hidden) { display: grid; gap: 12px; }

.qrg-cal-trigger {
  background: #fff !important;
  color: #0b1e33 !important;
  border: 1px solid #c5d5e6 !important;
  border-radius: 2px !important;
}

.qrg-cal-pop {
  background: #fff !important;
  border: 1px solid #0a3a6e !important;
  border-radius: 4px !important;
  box-shadow: 4px 4px 0 rgba(10, 58, 110, 0.25) !important;
}

.qrg-cal-month { color: #0a3a6e !important; }

.frame-options {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid #c5d5e6;
  border-radius: 2px;
  background: #fff;
}
.frame-options[hidden] { display: none !important; }
