.passport-pro{
  padding:20px 20px 120px;
}
.passport-pro__hero{
  border:1px solid rgba(37,99,235,.14);
  border-radius:8px;
  background:linear-gradient(135deg,#f8fbff,#eef5ff);
  padding:16px;
  margin-bottom:16px;
}
.passport-pro__hero b{
  display:block;
  color:#0f172a;
  font-size:17px;
  font-weight:950;
}
.passport-pro__hero p{
  margin:8px 0 0;
  color:#45627f;
  font-size:13px;
  font-weight:750;
  line-height:1.55;
}
.passport-steps{margin-bottom:14px}
.passport-wizard-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.passport-wizard-actions button{
  min-height:40px;
  border:1px solid rgba(37,99,235,.16);
  border-radius:3px;
  background:rgba(255,255,255,.9);
  color:#0f172a;
  font-family:var(--dna-font-sidebar,Roboto,Inter,system-ui,sans-serif);
  font-size:12px;
  font-weight:950;
  text-align:center;
  cursor:pointer;
}
.passport-wizard-actions button:last-child{
  background:linear-gradient(135deg,#1769e8,#38bdf8);
  border-color:transparent;
  color:#fff;
}
.passport-pro__grid{
  display:grid;
  gap:14px;
}
.passport-pro__row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.passport-pro__field{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}
.passport-pro__field input[type="range"]{
  appearance:none;
  -webkit-appearance:none;
  padding:0;
  border:0;
  outline:0;
  box-shadow:none;
}
.passport-pro__field input[type="color"]{
  height:42px;
  padding:4px;
}
.passport-pro__check input{
  width:18px;
  height:18px;
  padding:0;
}
.passport-pro__check span{
  display:block;
}
.passport-empty{
  min-height:420px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px dashed rgba(37,99,235,.28);
  border-radius:8px;
  background:#f8fbff;
  padding:24px;
  text-align:center;
}
.passport-empty i{
  color:#2563eb;
  font-size:42px;
}
.passport-empty b{
  color:#0f172a;
  font-size:17px;
  font-weight:950;
}
.passport-empty span{
  max-width:430px;
  color:#45627f;
  font-size:13px;
  font-weight:750;
  line-height:1.55;
}
.passport-export-wait{
  min-height:520px;
}
.passport-preview{
  border:1px solid rgba(37,99,235,.14);
  border-radius:8px;
  background:#f8fbff;
  padding:14px;
}
.passport-live-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.passport-live-grid.has-source{
  grid-template-columns:minmax(220px,34%) minmax(0,66%);
  align-items:stretch;
}
.passport-source-panel{
  display:grid;
  gap:10px;
  align-content:start;
}
.passport-source-panel p{
  margin:0;
  color:#45627f;
  font-size:12px;
  font-weight:750;
  line-height:1.45;
}
.passport-source-stage{
  position:relative;
  overflow:hidden;
  border-radius:8px;
  background:#e2e8f0;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.passport-source-frame{
  position:relative;
  max-width:100%;
  width:min(100%,420px);
  background:#e5e7eb;
  overflow:hidden;
  line-height:0;
}
.passport-source-frame img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}
.passport-source-mark{
  position:absolute;
  border:2px solid rgba(7,94,234,.95);
  border-radius:999px;
  box-shadow:0 0 0 999px rgba(15,23,42,.24), inset 0 0 0 2px rgba(255,255,255,.72);
  pointer-events:none;
}
.passport-source-mark:after{
  content:"Hair to chin";
  position:absolute;
  left:50%;
  top:-31px;
  transform:translateX(-50%);
  background:#075eea;
  color:#fff;
  border-radius:999px;
  padding:5px 8px;
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
}
.passport-source-eye{
  position:absolute;
  left:8%;
  right:8%;
  border-top:2px solid rgba(239,68,68,.95);
  pointer-events:none;
}
.passport-source-eye:after{
  content:"Eye line";
  position:absolute;
  right:0;
  top:-24px;
  background:rgba(239,68,68,.94);
  color:#fff;
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
  font-weight:950;
}
.passport-preview--marking .passport-source-panel{
  max-width:520px;
  margin:0 auto;
}
.passport-preview--marking .passport-source-stage{
  min-height:440px;
}
.passport-stage{
  position:relative;
  overflow:hidden;
  border-radius:8px;
  background:#dbe5ef;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px 18px 18px;
}
.passport-canvas{
  position:relative;
  background:#fff;
  box-shadow:0 20px 54px rgba(15,23,42,.22);
  overflow:hidden;
  flex:none;
}
.passport-canvas img{
  position:absolute;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover;
  transform:translateZ(0);
}
.passport-guide{
  position:absolute;
  left:18%;
  right:18%;
  bottom:auto;
  border:2px dashed rgba(37,99,235,.62);
  border-radius:999px;
  pointer-events:none;
  z-index:4;
}
.passport-guide:after{
  content:"Head guide";
  position:absolute;
  left:50%;
  top:-30px;
  transform:translateX(-50%);
  background:rgba(37,99,235,.94);
  color:#fff;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.passport-eye-line{
  position:absolute;
  left:10%;
  right:10%;
  height:0;
  border-top:2px solid rgba(239,68,68,.9);
  pointer-events:none;
  z-index:5;
}
.passport-sheet-preview{
  display:grid;
  grid-template-columns:repeat(var(--sheet-cols,4),minmax(0,1fr));
  gap:clamp(5px,1.5vw,11px);
  width:min(92%, calc(360px * var(--sheet-scale, 1)));
  max-width:520px;
  aspect-ratio:var(--sheet-ratio, 6 / 4);
  align-content:center;
  justify-content:center;
  padding:clamp(12px,2vw,22px);
  border-radius:6px;
  box-shadow:0 20px 54px rgba(15,23,42,.2);
  overflow:hidden;
}
.passport-sheet-preview .sheet-cell{
  width:100%!important;
  height:auto!important;
  aspect-ratio:var(--photo-ratio, 35 / 45);
  box-shadow:none;
}
.passport-badge{
  position:absolute;
  top:16px;
  left:16px;
  z-index:10;
  background:rgba(15,23,42,.86);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:950;
}
.passport-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.passport-card{
  border:1px solid rgba(37,99,235,.12);
  border-radius:8px;
  background:#fff;
  padding:12px;
  text-align:center;
  min-width:0;
}
.passport-card b{
  display:block;
  color:#0f172a;
  font-size:15px;
  font-weight:950;
  overflow-wrap:anywhere;
}
.passport-card span{
  display:block;
  color:rgba(49,82,111,.74);
  font-size:11px;
  font-weight:850;
  margin-top:4px;
}
.passport-reco{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.passport-reco a{
  text-decoration:none;
  border:1px solid rgba(37,99,235,.12);
  border-radius:8px;
  background:#fff;
  padding:11px;
  color:#1162d8;
  font-size:12px;
  font-weight:900;
  text-align:center;
}
.image-v1-workspace[data-image-tool="passport-photo-maker"] .image-v1-grid{
  grid-template-columns:minmax(360px,34%) minmax(0,66%)!important;
  align-items:start;
}
.image-v1-workspace[data-image-tool="passport-photo-maker"] .image-v1-panel:first-child{
  max-height:calc(100vh - 155px);
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:10px;
  align-self:start;
}
.image-v1-workspace[data-image-tool="passport-photo-maker"] .image-v1-panel:first-child::-webkit-scrollbar{
  width:10px;
}
.image-v1-workspace[data-image-tool="passport-photo-maker"] .image-v1-panel:first-child::-webkit-scrollbar-thumb{
  background:#60a5fa;
  border-radius:999px;
}
.image-v1-workspace[data-image-tool="passport-photo-maker"] .image-friendly-settings{
  display:block;
}
.image-v1-workspace[data-image-tool="passport-photo-maker"] .image-result>img{
  max-height:590px;
  object-fit:contain;
}
body.theme-dark .passport-pro__hero,
body.theme-dark .passport-wizard-actions button,
body.theme-dark .tool-station-output-actions [data-passport-copy],
body.theme-dark .passport-card,
body.theme-dark .passport-reco a,
body.theme-dark .passport-preview,
body.theme-dark .passport-empty{
  background:linear-gradient(135deg,rgba(30,41,59,.9),rgba(15,23,42,.74));
  border-color:rgba(96,165,250,.22);
  color:#dbeafe;
}
body.theme-dark .passport-stage{
  background:#172033;
}
body.theme-dark .passport-source-stage{
  background:#172033;
}
body.theme-dark .passport-pro__hero b,
body.theme-dark .passport-card b,
body.theme-dark .passport-empty b{
  color:#f8fafc;
}
body.theme-dark .passport-pro__hero p,
body.theme-dark .passport-source-panel p,
body.theme-dark .passport-card span,
body.theme-dark .passport-empty span{
  color:rgba(203,213,225,.72);
}
@media(max-width:1180px){
  .image-v1-workspace[data-image-tool="passport-photo-maker"] .image-v1-grid{
    grid-template-columns:minmax(320px,40%) minmax(0,60%)!important;
  }
  .passport-metrics,
  .passport-reco,
  .passport-live-grid.has-source{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:900px){
  .image-v1-workspace[data-image-tool="passport-photo-maker"] .image-v1-grid,
  .passport-steps,
  .passport-live-grid.has-source,
  .passport-pro__row,
  .passport-metrics,
  .passport-reco{
    grid-template-columns:1fr!important;
  }
  .image-v1-workspace[data-image-tool="passport-photo-maker"] .image-v1-panel:first-child{
    max-height:none;
    overflow:visible;
    padding-right:0;
  }
  .passport-stage,
  .passport-empty,
  .passport-source-stage{
    min-height:300px;
  }
  .passport-sheet-preview{
    grid-template-columns:repeat(3,minmax(0,72px));
  }
}
