/* app/javascript/builder/editor.css */
.editor-layout {
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  background: #0F0F14;
  color: #F0F0F5;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  background: #1A1A24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.editor-body {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.editor-canvas-area {
  flex: 1;
  min-width: 0;
  overflow: auto;
  position: relative;
  background: #0A0A10;
}
.editor-canvas-with-rulers {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: 32px 1fr;
  min-width: max-content;
  min-height: max-content;
}
.editor-ruler-corner {
  grid-column: 1;
  grid-row: 1;
  background: #22222E;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10;
}
.editor-canvas-content {
  padding: 32px;
}
.editor-canvas-cell {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.editor-empty-canvas-guidance {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  max-width: min(360px, calc(100% - 32px));
  padding: 10px 14px;
  background: rgba(15, 15, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  color: #F0F0F5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.canvas-wrapper {
  display: inline-block;
  position: relative;
}
.canvas-transparency-grid {
  background-color: #ffffff;
  background-image: repeating-conic-gradient(#e0e0e0 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
}
.canvas-wrapper--inactive {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.zoom-controls__display {
  min-width: 48px;
  text-align: center;
  font-size: 13px;
  color: #9CA3AF;
  user-select: none;
}
.zoom-controls__btn {
  background: #22222E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F0F0F5;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.zoom-controls__btn:hover {
  background: #2A2A36;
}
.zoom-controls__btn:active {
  background: #22222E;
}
.sheet-ruler {
  background: #22222E;
  position: relative;
  overflow: hidden;
  z-index: 10;
}
.sheet-ruler--horizontal {
  grid-column: 2;
  grid-row: 1;
  height: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sheet-ruler--vertical {
  grid-column: 1;
  grid-row: 2;
  width: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.sheet-ruler svg {
  display: block;
}
.editor-bounds-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 13px;
  flex-shrink: 0;
}
.editor-bounds-warning--sheet {
  background: rgba(239, 68, 68, 0.15);
  border-bottom-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.editor-sidebar-container {
  width: 280px;
  flex-shrink: 0;
  background: #1A1A24;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease;
}
.editor-sidebar-container--collapsed {
  width: 48px;
}
.sidebar-tabs {
  display: flex;
  align-items: center;
  background: #14141C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  padding: 0 4px;
  gap: 2px;
  min-height: 40px;
}
.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #6B7280;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.sidebar-tab:hover {
  background: #22222E;
  color: #F0F0F5;
}
.sidebar-tab--active {
  background: #1E1E2A;
  color: #F0F0F5;
}
.sidebar-tab__icon {
  font-size: 14px;
  line-height: 1;
}
.sidebar-tab__label {
  font-size: 12px;
}
.sidebar-collapse-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #6B7280;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.sidebar-collapse-btn:hover {
  background: #22222E;
  color: #F0F0F5;
}
.sidebar-panel {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.graphics-panel__empty {
  color: #6B7280;
  font-size: 12px;
  text-align: center;
  margin-top: 16px;
}
.help-panel {
  padding: 4px 0;
}
.help-panel__heading {
  font-size: 13px;
  font-weight: 600;
  color: #F0F0F5;
  margin: 0 0 10px;
}
.help-panel__list {
  list-style: disc;
  padding-left: 18px;
  margin: 0 0 14px;
  color: #9CA3AF;
  font-size: 12px;
  line-height: 1.7;
}
.help-panel__support {
  font-size: 12px;
  color: #6B7280;
}
.help-panel__link {
  color: #4F6EF7;
  text-decoration: none;
}
.help-panel__link:hover {
  text-decoration: underline;
}
.sidebar-image-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: grab;
  background: #22222E;
}
.sidebar-image-item:active {
  cursor: grabbing;
}
.sidebar-image-item__thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
  background: #0F0F14;
  flex-shrink: 0;
}
.sidebar-image-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sidebar-image-item__name {
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-image-item__size {
  font-size: 11px;
  color: #9CA3AF;
}
.sidebar-image-item__qty {
  font-size: 11px;
  color: #6B7280;
}
.sidebar-image-item__status-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.dpi-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}
.dpi-badge--green {
  background: rgba(34, 197, 94, 0.15);
  color: #34D399;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.dpi-badge--yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.dpi-badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.editor-canvas-area--drag-over {
  outline: 2px dashed #4F6EF7;
  outline-offset: -2px;
}
.editor-bounds-warning--drop {
  background: rgba(239, 68, 68, 0.15);
  border-bottom-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.sheet-canvas-wrapper[data-active=true] {
  position: relative;
}
.sheet-canvas-wrapper[data-active=false] {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
}
.builder-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #0F0F14;
  color: #9CA3AF;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  gap: 16px;
}
.builder-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top-color: #4F6EF7;
  border-radius: 50%;
  animation: builder-spin 0.8s linear infinite;
}
@keyframes builder-spin {
  to {
    transform: rotate(360deg);
  }
}
.builder-loading__text {
  font-size: 14px;
  color: #6B7280;
}
.review-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: #0F0F14;
  color: #F0F0F5;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  padding: 48px 24px;
  gap: 16px;
}
.review-screen__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.review-screen__subtitle {
  font-size: 14px;
  color: #9CA3AF;
  margin: 0;
}
.review-screen__preview-note {
  font-size: 12px;
  color: #6B7280;
  margin: 0 0 16px;
}
.review-screen__sheets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1440px;
  width: 100%;
}
.review-screen__sheet-card {
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.review-screen__sheet-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.review-screen__thumbnail {
  width: 100%;
  height: min(68vh, 640px);
  min-height: 440px;
  object-fit: contain;
  background: #f0f0f0;
}
.review-screen__sheet-card--tall .review-screen__thumbnail {
  height: min(82vh, 860px);
  min-height: 560px;
}
.review-screen__sheet-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-screen__sheet-dims {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}
.review-screen__sheet-count {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}
.review-screen__quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.review-screen__quantity-label {
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
}
.review-screen__quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.review-screen__quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #F0F0F5;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.review-screen__quantity-btn:hover:not(:disabled) {
  background: #22222E;
}
.review-screen__quantity-btn:disabled {
  color: #6B7280;
  cursor: default;
}
.review-screen__quantity-input {
  width: 48px;
  height: 40px;
  background: #14141C;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #F0F0F5;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.review-screen__quantity-input::-webkit-outer-spin-button,
.review-screen__quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.review-screen__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.review-screen__edit-btn {
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #F0F0F5;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.review-screen__edit-btn:hover {
  background: #22222E;
}
.review-screen__continue-btn {
  background: #4F6EF7;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.review-screen__continue-btn:hover {
  background: #3D5BD9;
}
.review-screen__quality-warning {
  width: min(100%, 720px);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
}
.review-screen__quality-warning-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #FDE68A;
}
.review-screen__quality-warning-copy {
  margin: 0;
}
.review-screen__quality-warning-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #FCD34D;
}
.review-screen__quality-warning--sheet {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.review-screen__quality-warning--sheet .review-screen__quality-warning-title {
  color: #fca5a5;
}
.review-screen__quality-warning--sheet .review-screen__quality-warning-list {
  color: #fecaca;
}
.editor-bounds-warning--quality {
  background: rgba(245, 158, 11, 0.18);
  border-bottom-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}
@media (max-width: 640px) {
  .review-screen {
    padding: 32px 16px;
  }
  .review-screen__thumbnail {
    height: min(60vh, 520px);
    min-height: 320px;
  }
  .review-screen__sheet-card--tall .review-screen__thumbnail {
    height: min(72vh, 640px);
    min-height: 420px;
  }
}
.summary-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: #0F0F14;
  color: #F0F0F5;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  padding: 48px 24px;
  gap: 16px;
}
.summary-screen__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.summary-screen__summary {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}
.summary-screen__summary p {
  margin: 0;
}
.summary-screen__email {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-screen__email label {
  font-size: 14px;
  font-weight: 600;
  color: #F0F0F5;
}
.summary-screen__email-hint {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}
.summary-screen__email input {
  background: #14141C;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: #F0F0F5;
  font-size: 14px;
  padding: 10px 12px;
}
.summary-screen__email input:focus {
  outline: none;
  border-color: #4F6EF7;
  box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.3);
}
.summary-screen__error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.summary-screen__redirecting {
  background: rgba(79, 110, 247, 0.14);
  border: 1px solid rgba(79, 110, 247, 0.32);
  color: #AFC0FF;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.summary-screen__actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.btn {
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--secondary {
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #F0F0F5;
}
.btn--secondary:hover:not(:disabled) {
  background: #22222E;
}
.btn--primary {
  background: #4F6EF7;
  color: #fff;
  font-weight: 600;
}
.btn--primary:hover:not(:disabled) {
  background: #3D5BD9;
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  background: #0F0F14;
  color: #F0F0F5;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  padding: 40px 24px;
  gap: 20px;
}
.upload-zone--scrollable {
  overflow: visible;
}
.upload-zone__load-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.upload-zone__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  min-height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #1A1A24;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  padding: 32px;
  text-align: center;
  gap: 8px;
  outline: none;
}
.upload-zone__dropzone:hover {
  border-color: #4F6EF7;
  background: #22222E;
}
.upload-zone__dropzone:focus-visible {
  border-color: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}
.upload-zone__dropzone--drag-over,
.upload-zone__dropzone--drag-over:hover {
  border-color: #34D399;
  background: rgba(52, 211, 153, 0.14);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14), 0 14px 34px rgba(0, 0, 0, 0.24);
}
.upload-zone__dropzone--compact {
  min-height: 76px;
  border-radius: 8px;
  padding: 14px 18px;
  gap: 4px;
}
.upload-zone__dropzone--sticky {
  position: sticky;
  top: 12px;
  z-index: 20;
}
.upload-zone__dropzone p:first-of-type {
  font-size: 16px;
  color: #F0F0F5;
  margin: 0;
}
.upload-zone__dropzone p:last-of-type {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}
.upload-zone__dropzone--drag-over p:first-of-type {
  color: #ECFDF5;
  font-weight: 700;
}
.upload-zone__dropzone--drag-over p:last-of-type {
  color: #A7F3D0;
}
.upload-zone__dropzone--compact p:first-of-type {
  font-size: 14px;
}
.upload-zone__dropzone--compact p:last-of-type {
  font-size: 12px;
}
.upload-zone__help {
  margin-top: 24px;
  padding: 20px;
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
}
.upload-zone__help h3 {
  font-size: 14px;
  font-weight: 600;
  color: #F0F0F5;
  margin-bottom: 12px;
}
.upload-zone__help ol {
  padding-left: 20px;
  color: #9CA3AF;
  font-size: 13px;
  line-height: 1.8;
}
.upload-zone__sheet-size {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.upload-zone__sheet-size label {
  font-size: 14px;
  color: #9CA3AF;
  white-space: nowrap;
}
.upload-zone__sheet-size select {
  flex: 1;
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #F0F0F5;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
}
.upload-zone__errors {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 520px;
}
.upload-zone__errors li {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 6px;
}
.upload-zone__continue {
  background: #4F6EF7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.upload-zone__continue:hover {
  background: #3D5BD9;
}
.upload-zone__warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.editor-back-btn {
  background: #22222E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F0F0F5;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.editor-back-btn:hover {
  background: #2A2A36;
}
.editor-autofill-btn {
  background: #4F6EF7;
  border: 1px solid transparent;
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(79, 110, 247, 0.28), 0 8px 18px rgba(79, 110, 247, 0.22);
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.editor-autofill-btn:hover:not(:disabled) {
  background: #3D5BD9;
  box-shadow: 0 0 0 1px rgba(79, 110, 247, 0.35), 0 10px 22px rgba(79, 110, 247, 0.28);
}
.editor-autofill-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.editor-autofill-btn:disabled {
  background: #2A2A36;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #6B7280;
  cursor: not-allowed;
}
.editor-continue-btn {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #DCFCE7;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.editor-continue-btn:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.24);
  border-color: rgba(34, 197, 94, 0.78);
}
.editor-continue-btn:disabled {
  background: #22222E;
  border-color: rgba(255, 255, 255, 0.08);
  color: #6B7280;
  cursor: not-allowed;
}
.image-card {
  width: 100%;
  max-width: 520px;
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.image-card__filename {
  font-size: 13px;
  color: #F0F0F5;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-card__size {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}
.image-card__uploading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}
.image-card__uploading-label {
  font-size: 12px;
  color: #9CA3AF;
}
.image-card__upload-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.image-card__upload-progress-bar {
  height: 100%;
  background: #4F6EF7;
  border-radius: 2px;
  transition: width 0.2s ease;
}
.image-card__processing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9CA3AF;
  padding: 8px 0;
}
.image-card__processing-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-top-color: #4F6EF7;
  border-radius: 50%;
  animation: gs-spin 0.8s linear infinite;
}
@keyframes gs-spin {
  to {
    transform: rotate(360deg);
  }
}
.image-card__ready-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}
.image-card__dimensions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.image-card__dimensions label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #6B7280;
  gap: 4px;
}
.image-card__dimensions input {
  width: 80px;
  background: #0F0F14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #F0F0F5;
  font-size: 13px;
  padding: 6px 8px;
}
.image-card__dimensions button {
  background: #22222E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9CA3AF;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.image-card__quantity {
  display: flex;
  align-items: center;
}
.image-card__quantity label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6B7280;
}
.image-card__quantity input {
  width: 60px;
  background: #0F0F14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #F0F0F5;
  font-size: 13px;
  padding: 6px 8px;
}
.image-card__print-helper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.image-card__print-helper-text {
  font-size: 11px;
  color: #6B7280;
}
.image-card__print-helper-warn {
  font-size: 11px;
  color: #fbbf24;
}
.image-card__sheet-warning {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.image-card > button:last-child {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f87171;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.image-card > button:last-child:hover {
  background: rgba(239, 68, 68, 0.15);
}
.image-card--failed {
  width: 100%;
  max-width: 520px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.image-card__error {
  flex: 1;
  font-size: 13px;
  color: #f87171;
}
.image-card__actions button {
  background: #22222E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F0F0F5;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.transparency-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.selection-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.selection-toolbar__label {
  font-size: 12px;
  color: #4F6EF7;
  font-weight: 600;
  margin-right: 4px;
  white-space: nowrap;
}
.selection-toolbar__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: #F0F0F5;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.selection-toolbar__btn:hover {
  background: #22222E;
  border-color: rgba(255, 255, 255, 0.12);
}
.selection-toolbar__btn--active {
  background: #22222E;
  border-color: rgba(255, 255, 255, 0.12);
}
.selection-toolbar__btn--danger {
  color: #f87171;
}
.selection-toolbar__btn--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}
.selection-toolbar__btn svg {
  flex-shrink: 0;
}
.selection-toolbar__popover-anchor {
  position: relative;
}
.selection-toolbar__popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #1A1A24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  min-width: 140px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.selection-toolbar__popover--position {
  min-width: 260px;
  padding: 12px;
  gap: 0;
}
.selection-toolbar__popover-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #F0F0F5;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.selection-toolbar__popover-btn:hover {
  background: #22222E;
}
.position-popover__section {
  padding: 4px 0;
}
.position-popover__heading {
  font-size: 11px;
  font-weight: 600;
  color: #4F6EF7;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.position-popover__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.position-popover__btn {
  background: #22222E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F0F0F5;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.position-popover__btn:hover {
  background: #2A2A36;
  border-color: rgba(255, 255, 255, 0.16);
}
.position-popover__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 8px;
  cursor: pointer;
}
.position-popover__checkbox input[type=checkbox] {
  accent-color: #4F6EF7;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.position-popover__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}
/*# sourceMappingURL=/assets/application-c353982d.css.map */
