.clone-shell {
  max-width: 1480px !important;
  margin: auto;
  padding: 42px !important;
  color: #eef2f7;
}
.page-heading {
  margin-bottom: 24px;
}
.page-heading small,
.library-heading > small {
  color: #7890b6;
  font: 700 10px monospace;
  letter-spacing: 0.15em;
}
.page-heading h1 {
  margin: 8px 0;
  font-size: clamp(32px, 4vw, 48px);
}
.page-heading p,
.library-heading p {
  color: #929eb1;
}
.credit-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1px solid #2d3950;
  border-radius: 14px;
  background: linear-gradient(100deg, #172445, #11171f);
}
.credit-banner > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}
.credit-banner i {
  font-size: 24px;
  color: #7393ff;
}
.credit-banner span,
.credit-banner small {
  display: block;
}
.credit-banner small {
  margin-top: 4px;
  color: #91a0b7;
}
.credit-count {
  text-align: right;
}
.credit-count span {
  color: #8290a6;
  font: 700 9px monospace;
  letter-spacing: 0.12em;
}
.credit-count b {
  font-size: 28px;
}
.wallet-summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 18px;
}
.wallet-summary span,
.wallet-summary b { text-align: right; }
.wallet-summary b { font-size: 18px; }
.wallet-summary > small { grid-column: 1 / -1; margin: 2px 0 0; text-align: right; font-size: 9px; }
.clone-layout {
  display: grid;
  grid-template-columns: minmax(420px, 560px) minmax(0, 1fr);
  gap: 22px;
}
.clone-form,
.voice-library {
  padding: 26px;
  border: 1px solid #29313d;
  border-radius: 14px;
  background: #151a20;
}
.step-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 4px 0 16px;
}
.step-title:not(:first-child) {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #29313d;
}
.step-title > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #2454ff;
  color: #fff;
  font-weight: 800;
}
.step-title b,
.step-title small {
  display: block;
}
.step-title small {
  margin-top: 3px;
  color: #8491a4;
}
.clone-targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.clone-targets button {
  min-height: 145px;
  padding: 18px;
  border: 1px solid #303946;
  border-radius: 10px;
  background: #10151b;
  color: #aab4c4;
  text-align: left;
  cursor: pointer;
}
.clone-targets button.active {
  border-color: #5278ff;
  background: #172348;
  color: #fff;
  box-shadow: 0 0 0 1px #5278ff inset;
}
.clone-targets i,
.clone-targets b,
.clone-targets small,
.clone-targets em {
  display: block;
}
.clone-targets i {
  margin-bottom: 14px;
  font-size: 20px;
  color: #7292ff;
}
.clone-targets small {
  margin-top: 6px;
  line-height: 1.4;
}
.clone-targets em {
  margin-top: 13px;
  color: #7393ff;
  font: 700 8px monospace;
  letter-spacing: 0.1em;
  font-style: normal;
}
.field {
  display: block;
  color: #8794a8;
  font: 700 9px monospace;
  letter-spacing: 0.1em;
}
.field input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #343d4b;
  border-radius: 7px;
  background: #0f141a;
  color: #edf1f7;
}
.upload-box {
  display: grid;
  place-items: center;
  min-height: 125px;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed #48618c;
  border-radius: 10px;
  background: #101722;
  text-align: center;
  cursor: pointer;
}
.upload-box:hover {
  border-color: #7292ff;
}
.upload-box i {
  font-size: 27px;
  color: #7292ff;
}
.upload-box b {
  margin-top: 8px;
}
.upload-box small {
  margin-top: 5px;
  color: #8593a7;
}
.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.clip-limit {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #344156;
  border-radius: 9px;
  background: #111923;
  color: #9aa8ba;
}
.clip-limit.ready {
  border-color: #5278ff;
  background: #15203b;
  color: #eef3ff;
}
.clip-limit i { color: #7292ff; font-size: 20px; }
.clip-limit b,
.clip-limit small { display: block; }
.clip-limit small { margin-top: 3px; line-height: 1.4; }
.recording-tips {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  color: #8996a9;
  font-size: 12px;
}
.consent {
  display: flex;
  gap: 10px;
  color: #aeb8c7;
  line-height: 1.5;
}
.consent input {
  margin-top: 3px;
}
.create {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  border: 0;
  border-radius: 7px;
  background: #2454ff;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.create:disabled {
  opacity: 0.55;
  cursor: wait;
}
#cloneMessage {
  min-height: 20px;
  color: #b8c5d8;
}
.library-heading h2 {
  margin: 8px 0;
  font-size: 30px;
}
.library-tabs {
  display: flex;
  gap: 8px;
  margin: 25px 0 16px;
  padding: 5px;
  border-radius: 8px;
  background: #0e1319;
}
.library-tabs button {
  flex: 1;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8491a4;
  font-weight: 700;
  cursor: pointer;
}
.library-tabs button.active {
  background: #25304a;
  color: #fff;
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.voice-grid.hidden {
  display: none;
}
.voice-card {
  min-height: 76px;
  padding: 14px;
  border: 1px solid #2d3541;
  border-radius: 8px;
  background: #10151a;
}
.voice-card b,
.voice-card small {
  display: block;
}
.voice-card small {
  margin-top: 5px;
  color: #738095;
  font-size: 9px;
  text-transform: uppercase;
}
.voice-card audio {
  width: 100%;
  height: 30px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .clone-shell {
    padding: 22px !important;
  }
  .clone-layout {
    grid-template-columns: 1fr;
  }
  .clone-targets {
    grid-template-columns: 1fr;
  }
  .credit-banner {
    align-items: flex-start;
  }
  .credit-count {
    flex: none;
  }
}
@media (max-width: 520px) {
  .clone-form,
  .voice-library {
    padding: 18px;
  }
  .credit-banner {
    flex-direction: column;
    padding: 16px;
  }
  .wallet-summary { width: 100%; }
  .credit-banner > div:first-child small {
    display: none;
  }
}
