.import-reference {
  width: 100%;
  height: 38px;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  color: #e8eeeb;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.import-reference span { color: var(--lime); font-size: 16px; vertical-align: -1px; margin-right: 4px; }

.import-screen {
  z-index: 35;
  background: linear-gradient(180deg, #101617 0%, #0b0e10 100%);
}

.import-header {
  position: absolute;
  top: 32px;
  left: 16px;
  right: 16px;
  z-index: 2;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.import-back {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.import-header b, .import-header small { display: block; }
.import-header b { font-size: 15px; }
.import-header small { margin-top: 4px; color: #7f8b87; font-size: 9px; }

.import-workspace {
  position: absolute;
  inset: 92px 15px 61px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: #121719;
}

.import-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
}

.import-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(217, 255, 101, .48);
  border-radius: 23px;
  background: rgba(217, 255, 101, .07);
}

.import-icon span { color: var(--lime); font-size: 34px; font-weight: 300; }
.import-empty > b { font-size: 18px; }
.import-empty p { max-width: 260px; margin: 10px 0 20px; color: #89948f; font-size: 11px; line-height: 1.7; }

.album-picker {
  width: 100%;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--lime);
  color: #11150d;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sample-import, .choose-again {
  margin-top: 13px;
  border: 0;
  background: transparent;
  color: #c9d0cd;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.import-privacy { margin-top: 28px; color: #626e69; font-size: 9px; }
.import-privacy span { margin-right: 5px; color: #8df3c0; }

.import-preview { display: none; height: 100%; padding: 16px; }
.import-workspace[data-state="processing"] .import-empty,
.import-workspace[data-state="ready"] .import-empty { display: none; }
.import-workspace[data-state="processing"] .import-preview,
.import-workspace[data-state="ready"] .import-preview { display: flex; flex-direction: column; }

.preview-media {
  min-height: 0;
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #252b2c;
}

.preview-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.preview-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.14), transparent 60%, rgba(0,0,0,.32)); pointer-events: none; }

.outline-scan {
  position: absolute;
  z-index: 3;
  left: 7%;
  right: 7%;
  top: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dff7ff, transparent);
  box-shadow: 0 0 10px #a9e5ff;
  animation: importScan 1.4s ease-in-out infinite;
}

@keyframes importScan { 50% { transform: translateY(320px); } }

.preview-outline {
  display: none;
  position: absolute;
  z-index: 2;
  inset: 4% 8% 3%;
  width: 84%;
  height: 93%;
  fill: rgba(210, 243, 255, .055);
  stroke: rgba(229, 248, 255, .94);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(146, 221, 255, .75));
  opacity: 0;
  transition: opacity .45s ease;
}

.reference-outline-preview {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 4px rgba(146, 221, 255, .76));
  transition: opacity .35s ease;
}

.preview-badges {
  position: absolute;
  z-index: 4;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .35s ease;
}

.preview-badges span { padding: 5px 8px; border-radius: 9px; background: rgba(7, 11, 12, .72); border: 1px solid rgba(205, 240, 255, .24); color: #e5f8ff; font-size: 8px; backdrop-filter: blur(8px); }

.import-progress, .import-ready-copy {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px 5px;
}

.import-progress b, .import-progress small, .import-ready-copy b, .import-ready-copy small { display: block; }
.import-progress b, .import-ready-copy b { font-size: 12px; }
.import-progress small, .import-ready-copy small { margin-top: 3px; color: #77847f; font-size: 9px; }

.progress-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(217, 255, 101, .2);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.import-ready-copy { display: none; }
.ready-check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #10140d; font-weight: 900; }
.use-import, .choose-again { display: none; }

.import-workspace[data-state="ready"] .outline-scan,
.import-workspace[data-state="ready"] .import-progress { display: none; }
.import-workspace[data-state="ready"] .preview-outline,
.import-workspace[data-state="ready"] .reference-outline-preview,
.import-workspace[data-state="ready"] .preview-badges { opacity: 1; }
.import-workspace[data-state="ready"] .import-ready-copy { display: flex; }
.import-workspace[data-state="ready"] .use-import { display: block; margin-top: 6px; }
.import-workspace[data-state="ready"] .choose-again { display: block; align-self: center; }
