:root {
    --bg:#fbfbfe;
    --card:#fff;
    --ink:#181622;
    --muted:#6f6d7b;
    --line:#e8e6f0;
    --soft:#f6f4fb;
    --purple:#7657ff;
    --pink:#df69a5;
    --blue:#3468ff;
    --green:#0f9a67;
    --shadow:0 22px 60px rgba(34,25,58,.08)
}
* { box-sizing:border-box }
html,body { max-width:100%; overflow-x:hidden }
body { margin:0; background:var(--bg); color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif }
.passport-page .section,.passport-page .hero,.passport-page .studio,.passport-page .library,.passport-page .showcase,.passport-page .journey,.passport-page .stories,.passport-page .faq,.passport-page .final-cta {
    width:min(1230px,calc(100% - 36px));
    margin:0 auto
}
.section-head { text-align:center; max-width:820px; margin:0 auto 38px }
.section-head span {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border-radius:999px;
    background:#efeafd;
    color:var(--purple);
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase
}
.section-head h2 { margin:16px 0 12px; font-size:clamp(34px,4.7vw,58px); line-height:1.05; letter-spacing:-.04em }
.section-head p { margin:0; color:var(--muted); line-height:1.78; font-size:15px }
.hero { display:grid; grid-template-columns:1.02fr .98fr; align-items:center; gap:44px; padding:86px 0 74px }
.hero-copy h1 { margin:0; font-size:clamp(44px,5.3vw,76px); line-height:.98; letter-spacing:-.05em }
.hero-copy p { max-width:700px; margin:20px 0 0; color:var(--muted); font-size:16px; line-height:1.82 }
.hero-points { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 28px }
.hero-points span { padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:12px; font-weight:800 }
.hero-cta { display:flex; flex-wrap:wrap; gap:12px }
.hero-cta a,.hero-cta button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 18px;
    border-radius:14px;
    text-decoration:none;
    font-size:13px;
    font-weight:900
}
.hero-cta .primary { background:linear-gradient(100deg,var(--purple),var(--pink)); color:#fff; border:0; box-shadow:0 14px 36px rgba(117,87,255,.26) }
.hero-cta .ghost { background:#fff; border:1px solid var(--line); color:var(--ink) }
.hero-lab {
    position:relative;
    min-height:560px;
    padding:20px;
    border-radius:34px;
    background:linear-gradient(150deg,#fff,#f4f0ff);
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    overflow:hidden;
    isolation:isolate
}
.hero-lab:before { content:""; position:absolute; inset:-20% 35% 32% -14%; background:radial-gradient(circle at center,rgba(118,87,255,.17),transparent 62%) }
.hero-lab:after { content:""; position:absolute; inset:42% -15% -18% 45%; background:radial-gradient(circle at center,rgba(223,105,165,.16),transparent 55%) }
.hero-stage { position:relative; z-index:2; height:100%; display:grid; grid-template-columns:1fr 1fr; gap:18px }
.hero-shot,.hero-result { position:relative; border-radius:26px; overflow:hidden; background:#ece8f6; min-height:460px }
.hero-shot img,.hero-result img { display:block; width:100%; height:100%; object-fit:cover }
.hero-shot .badge,.hero-result .badge,.hero-chip {
    position:absolute;
    z-index:3;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(18,15,25,.72);
    color:#fff;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    backdrop-filter:blur(10px)
}
.hero-shot .badge { left:16px; top:16px }
.hero-result .badge { right:16px; top:16px; background:rgba(118,87,255,.88) }
.hero-result .size-badge { left:16px; right:auto; top:auto; bottom:16px; background:rgba(15,23,42,.75) }
.hero-scan { position:absolute; inset:0; pointer-events:none }
.hero-scan-line {
    position:absolute;
    top:0;
    bottom:0;
    left:-12%;
    width:26%;
    background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.1),rgba(118,87,255,.18),rgba(255,255,255,.1),rgba(255,255,255,0));
    filter:blur(1px);
    animation:scanMove 4.8s linear infinite
}
.hero-scan-line:after {
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:50%;
    width:2px;
    transform:translateX(-50%);
    background:rgba(255,255,255,.95);
    box-shadow:0 0 18px rgba(118,87,255,.85)
}
.hero-ring { position:absolute; right:-22px; top:-10px; width:132px; height:132px; border:1px dashed rgba(118,87,255,.35); border-radius:50%; animation:spin 10s linear infinite }
.hero-ring:before,.hero-ring:after { content:""; position:absolute; inset:14px; border:1px dashed rgba(118,87,255,.22); border-radius:50% }
.hero-chip { background:#fff; color:var(--ink); box-shadow:0 10px 24px rgba(35,24,45,.08) }
.chip-a { left:18px; bottom:18px }
.chip-b { right:22px; top:84px }
.chip-c { right:18px; bottom:78px }
@keyframes scanMove {
    0% { transform:translateX(0) }
    100% { transform:translateX(420%) }
}
@keyframes spin {
    to { transform:rotate(360deg) }
}
.studio { padding:26px 0 92px }
.studio-card { padding:26px; border:1px solid var(--line); border-radius:30px; background:#fff; box-shadow:var(--shadow) }
.studio-grid { display:grid; grid-template-columns:420px minmax(0,1fr); gap:24px }
.upload-panel,.control-panel { min-width:0 }
.upload-box {
    position:relative;
    display:flex;
    min-height:460px;
    align-items:center;
    justify-content:center;
    border:1.5px dashed #c9c3d9;
    border-radius:26px;
    background:linear-gradient(135deg,#fbf9ff,#f4effa);
    overflow:hidden;
    cursor:pointer;
    transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease,filter .25s ease;
    background-size:180% 180%
}
.upload-box:hover,.upload-box.drag {
    transform:translateY(-3px);
    border-color:#8b67ff;
    box-shadow:0 20px 48px rgba(118,87,255,.18),0 0 0 4px rgba(223,105,165,.08);
    filter:saturate(1.08);
    animation:uploadShimmer 2.4s ease infinite
}
@keyframes uploadShimmer {
    0%,100% { background-position:0 50% }
    50% { background-position:100% 50% }
}
.upload-box input { display:none }
.upload-empty { display:flex; flex-direction:column; align-items:center; padding:24px; text-align:center }
.upload-icon { display:grid; width:78px; height:78px; place-items:center; margin-bottom:14px; border-radius:24px; background:#fff; box-shadow:0 14px 36px rgba(35,24,45,.12) }
.upload-icon svg { width:34px; height:34px; stroke:var(--purple); stroke-width:1.8; fill:none }
.upload-empty strong { font-size:18px }
.upload-empty span { margin-top:6px; color:var(--purple); font-size:12px; font-weight:900 }
.upload-empty small { max-width:280px; margin-top:12px; color:#8f8796; font-size:11px; line-height:1.6 }
.upload-preview { position:absolute; inset:0; padding:12px }
.upload-preview[hidden] { display:none }
.upload-preview img { display:block; width:100%; height:100%; object-fit:contain; border-radius:18px }
.change-photo {
    position:absolute;
    right:16px;
    bottom:16px;
    min-height:38px;
    padding:0 14px;
    border:0;
    border-radius:999px;
    background:rgba(18,15,25,.78);
    color:#fff;
    font-size:11px;
    font-weight:800;
    cursor:pointer
}
.photo-tips { margin-top:16px; padding:16px 18px; border-radius:18px; background:var(--soft) }
.photo-tips b { font-size:12px }
.photo-tips ul { margin:10px 0 0; padding-left:18px; color:var(--muted); font-size:12px; line-height:1.8 }
.control-panel .panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px }
.panel-head h3 { margin:0; font-size:28px; letter-spacing:-.03em }
.panel-head p { margin:8px 0 0; color:var(--muted); line-height:1.72; font-size:14px }
.mini-note { padding:9px 12px; border-radius:14px; background:#f1edff; color:var(--purple); font-size:11px; font-weight:900; white-space:nowrap }
.field { margin-top:18px }
.field label { display:block; margin-bottom:10px; font-size:12px; font-weight:900; letter-spacing:.08em; text-transform:uppercase }
.choice-row { display:flex; flex-wrap:wrap; gap:8px }
.choice-row button {
    min-height:40px;
    padding:0 13px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    color:#4e4b57;
    font-size:12px;
    font-weight:850;
    cursor:pointer
}
.choice-row button.active { border-color:var(--purple); background:#f2edff; color:var(--purple); box-shadow:0 0 0 2px rgba(117,87,255,.08) }
.standard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.standard-card { padding:16px; border:1px solid var(--line); border-radius:18px; background:#fff; cursor:pointer; transition:.18s }
.standard-card b { display:block; font-size:13px }
.standard-card span { display:block; margin-top:6px; color:var(--muted); font-size:12px; line-height:1.55 }
.standard-card.active { border-color:var(--purple); background:#f7f4ff; box-shadow:0 0 0 2px rgba(117,87,255,.08) }
.color-row { display:flex; flex-wrap:wrap; gap:10px }
.color-row button {
    display:flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    padding:0 14px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    cursor:pointer
}
.color-row button i { display:block; width:18px; height:18px; border-radius:50%; background:var(--c); border:1px solid rgba(0,0,0,.08) }
.color-row button.active { border-color:var(--purple); box-shadow:0 0 0 2px rgba(117,87,255,.08) }
.toggle-row { display:flex; flex-wrap:wrap; gap:10px }
.toggle-row button {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:110px;
    min-height:44px;
    padding:0 14px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    font-size:12px;
    font-weight:850
}
.toggle-row button.active { border-color:var(--green); background:#f2fcf7; color:var(--green); box-shadow:0 0 0 2px rgba(15,154,103,.08) }
.generate-wrap { margin-top:24px; padding:18px; border-radius:20px; background:#17131d; color:#fff }
.generate-wrap p { margin:0 0 12px; color:#c2b9c8; font-size:12px; line-height:1.7 }
.generate-btn {
    display:flex;
    width:100%;
    min-height:58px;
    align-items:center;
    justify-content:center;
    gap:14px;
    border:0;
    border-radius:16px;
    background:linear-gradient(100deg,var(--purple),var(--pink));
    color:#fff;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 16px 38px rgba(118,87,255,.26)
}
.generate-btn:disabled { cursor:not-allowed; filter:grayscale(.6); opacity:.45 }
.helper { margin-top:10px; color:var(--muted); font-size:12px; line-height:1.7 }
.auto-summary { margin-top:14px; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:var(--soft); color:var(--muted); font-size:12px; line-height:1.7 }
.quick-result { margin-top:20px; padding:22px; border:1px solid var(--line); border-radius:24px; background:#fff }
.quick-result[hidden] { display:none }
.result-preview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px }
.preview-card { padding:14px; border:1px dashed #d8d3e4; border-radius:16px; background:var(--soft) }
.preview-card b { display:block; font-size:12px }
.preview-card span { display:block; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.65 }
.library,.supported,.showcase,.industry,.journey,.stories,.faq { padding:92px 0 }
.gender-tabs { display:grid; width:min(560px,100%); grid-template-columns:repeat(3,1fr); gap:8px; margin:0 auto 28px; padding:5px; border-radius:18px; background:var(--soft) }
.gender-tabs button { min-height:48px; border:0; border-radius:14px; background:transparent; color:#77717d; cursor:pointer; font-size:13px; font-weight:900 }
.gender-tabs button.active { background:#fff; color:var(--ink); box-shadow:0 6px 18px rgba(34,25,58,.08) }
.model-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:12px }
.model-card { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff }
.model-card img { display:block; width:100%; aspect-ratio:1/1.12; object-fit:cover }
.model-card h3 { margin:0; padding:9px 8px 11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px }
.model-hover {
    position:absolute;
    inset:0 0 38px;
    display:flex;
    align-items:flex-end;
    padding:10px;
    background:linear-gradient(transparent 35%,rgba(18,14,22,.84));
    opacity:0;
    transition:.2s
}
.model-card:hover .model-hover { opacity:1 }
.model-hover a {
    display:flex;
    width:100%;
    min-height:40px;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:#fff;
    color:var(--ink);
    font-size:10px;
    font-weight:900;
    text-align:center;
    text-decoration:none
}
.load-more {
    display:block;
    min-height:48px;
    margin:28px auto 0;
    padding:0 22px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    color:var(--ink);
    cursor:pointer;
    font-size:12px;
    font-weight:850
}
.load-more[hidden] { display:none }
.sizes-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px }
.size-info { padding:20px; border:1px solid var(--line); border-radius:20px; background:#fff }
.size-info strong { display:block; font-size:15px }
.size-info span { display:block; margin-top:8px; color:var(--muted); font-size:12px; line-height:1.65 }
.size-info i {
    display:inline-flex;
    margin-top:12px;
    padding:6px 9px;
    border-radius:999px;
    background:#f1edff;
    color:var(--purple);
    font-style:normal;
    font-size:10px;
    font-weight:900
}
.showcase-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.showcase-grid article { padding:12px; border:1px solid var(--line); border-radius:20px; background:#fff }
.compare {
    --split:50%;
    position:relative;
    overflow:hidden;
    aspect-ratio:1/1.12;
    border-radius:15px;
    touch-action:none;
    cursor:ew-resize;
    user-select:none;
    -webkit-user-select:none;
    -webkit-tap-highlight-color:transparent
}
.compare img { pointer-events:none; user-select:none; -webkit-user-select:none; -webkit-user-drag:none }
.compare>.before,.after img { width:100%; height:100%; object-fit:cover }
.after { position:absolute; inset:0; clip-path:inset(0 0 0 var(--split)) }
.divider { position:absolute; top:0; bottom:0; left:var(--split); width:2px; transform:translateX(-1px); background:#fff }
.divider i {
    position:absolute;
    left:50%;
    top:50%;
    display:grid;
    width:48px;
    height:48px;
    place-items:center;
    transform:translate(-50%,-50%);
    border-radius:50%;
    background:#fff;
    color:#9299a4;
    font-style:normal;
    box-shadow:0 9px 25px rgba(0,0,0,.18)
}
.tag { position:absolute; top:12px; padding:7px 10px; border-radius:999px; background:#4a4650; color:#fff; font-size:9px; font-weight:950; text-transform:uppercase }
.tag.left { left:12px }
.tag.right { right:12px; background:var(--purple) }
.showcase-grid h3 { margin:13px 4px 8px; font-size:16px; line-height:1.35 }
.showcase-grid p { margin:0 4px 6px; color:var(--muted); font-size:13px; line-height:1.72 }
.industry-grid,.steps-grid,.stories-grid,.benefit-grid,.faq-list,.trust-grid { display:grid; gap:16px }
.industry-grid { grid-template-columns:repeat(2,1fr) }
.industry-grid article,.steps-grid article,.stories-grid article,.benefit-grid article,.trust-grid article {
    padding:24px;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff
}
.industry-grid h3,.steps-grid h3,.trust-grid h3 { margin:10px 0 10px; font-size:22px; letter-spacing:-.02em }
.industry-grid p,.steps-grid p,.trust-grid p { margin:0; color:var(--muted); font-size:14px; line-height:1.8 }
.industry-grid i,.steps-grid b,.benefit-grid b,.trust-grid b {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:14px;
    background:#f1edff;
    color:var(--purple);
    font-style:normal;
    font-size:12px;
    font-weight:900
}
.steps-grid { grid-template-columns:repeat(3,1fr) }
.steps-grid p strong { color:var(--ink) }
.benefits { padding:90px max(18px,calc((100% - 1320px)/2)); background:#17131d; color:#fff }
.benefit-grid { grid-template-columns:repeat(3,1fr) }
.benefit-grid article { border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.03) }
.benefit-grid h3 { margin:16px 0 10px; font-size:24px; letter-spacing:-.03em }
.benefit-grid p { margin:0; color:#bdb5c1; font-size:14px; line-height:1.8 }
.stories-grid { grid-template-columns:repeat(3,1fr) }
.story blockquote { margin:0; color:var(--ink); font-size:15px; line-height:1.8 }
.story .who { display:flex; align-items:center; gap:12px; margin-top:20px }
.avatar {
    display:grid;
    width:48px;
    height:48px;
    place-items:center;
    border-radius:50%;
    background:linear-gradient(135deg,#f3eeff,#ffeef7);
    color:var(--purple);
    font-size:20px;
    font-weight:900
}
.who strong { display:block; font-size:13px }
.who span { display:block; margin-top:2px; color:var(--muted); font-size:12px }
.trust-grid { grid-template-columns:1fr 1fr }
.trust-grid article { background:linear-gradient(180deg,#fff,#faf8ff) }
.faq-list { max-width:980px; margin:0 auto; border-top:1px solid var(--line) }
.faq-list details { border-bottom:1px solid var(--line) }
.faq-list summary { display:flex; align-items:center; justify-content:space-between; padding:22px 0; cursor:pointer; list-style:none; font-weight:900 }
.faq-list summary::-webkit-details-marker { display:none }
.faq-list summary i { font-style:normal; font-size:20px }
.faq-list details[open] summary i { transform:rotate(45deg) }
.faq-list p { margin:-4px 0 22px; color:var(--muted); font-size:14px; line-height:1.8 }
.final-cta { padding:100px 0 110px; text-align:center }
.final-cta .card { padding:44px 20px; border-radius:32px; background:linear-gradient(130deg,#f3edff,#fff2f8); border:1px solid #ece5f7 }
.final-cta h2 { margin:14px 0 12px; font-size:clamp(36px,5vw,66px); letter-spacing:-.05em }
.final-cta p { max-width:740px; margin:0 auto 26px; color:var(--muted); line-height:1.85; font-size:15px }
.final-cta a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:0 22px;
    border-radius:15px;
    background:linear-gradient(100deg,var(--purple),var(--pink));
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    box-shadow:0 16px 38px rgba(118,87,255,.24)
}
@media(max-width:1080px) {
    .hero { grid-template-columns:1fr }
    .hero-copy { text-align:center }
    .hero-copy p { margin-left:auto; margin-right:auto }
    .hero-points,.hero-cta { justify-content:center }
    .hero-lab { max-width:760px; width:100%; margin:auto }
    .studio-grid { grid-template-columns:1fr }
    .model-grid { grid-template-columns:repeat(5,1fr) }
    .sizes-grid { grid-template-columns:repeat(2,1fr) }
    .showcase-grid,.steps-grid,.stories-grid,.benefit-grid,.trust-grid { grid-template-columns:1fr 1fr }
    .industry-grid { grid-template-columns:1fr }
    .hero-lab { min-height:500px }
}
@media(max-width:680px) {
    .passport-page .section,.passport-page .hero,.passport-page .studio,.passport-page .library,.passport-page .showcase,.passport-page .journey,.passport-page .stories,.passport-page .faq,.passport-page .final-cta,.industry {
        width:calc(100% - 20px)
    }
    .hero { padding:50px 0 54px; gap:30px }
    .hero-copy h1 { font-size:46px }
    .hero-copy p { font-size:14px }
    .hero-lab { min-height:420px; padding:14px; border-radius:24px }
    .hero-stage { grid-template-columns:1fr 1fr; gap:10px }
    .hero-shot,.hero-result { min-height:340px; border-radius:18px }
    .hero-ring { width:90px; height:90px; right:-15px }
    .chip-b { top:62px }
    .studio { padding:10px 0 68px }
    .studio-card { padding:14px; border-radius:22px }
    .upload-box { min-height:290px; border-radius:20px }
    .photo-tips { padding:14px }
    .standard-grid { grid-template-columns:1fr }
    .choice-row button,.color-row button,.toggle-row button { font-size:11px }
    .result-preview { grid-template-columns:1fr }
    .gender-tabs { gap:6px; padding:4px }
    .gender-tabs button { min-height:42px; font-size:12px }
    .model-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px }
    .model-card h3 { font-size:9px; padding:7px 5px 8px }
    .model-hover { inset:0 0 26px; padding:6px }
    .model-hover a { min-height:32px; font-size:8px }
    .sizes-grid,.showcase-grid,.steps-grid,.stories-grid,.trust-grid { grid-template-columns:1fr }
    .showcase-grid { grid-template-columns:repeat(2,1fr); gap:10px }
    .showcase-grid article { padding:7px; border-radius:16px }
    .compare { border-radius:12px }
    .tag { top:7px; padding:5px 7px; font-size:7px }
    .tag.left { left:7px }
    .tag.right { right:7px }
    .divider i { width:38px; height:38px }
    .benefits { padding-top:68px; padding-bottom:68px }
    .benefit-grid,.industry-grid { grid-template-columns:1fr }
    .section-head h2 { font-size:36px }
    .panel-head { flex-direction:column }
    .panel-head h3 { font-size:26px }
    .mini-note { white-space:normal }
    .final-cta { padding:72px 0 80px }
    .trust-grid article,.stories-grid article,.industry-grid article,.steps-grid article,.benefit-grid article { padding:20px }
}

/* ===== Passport direct workbench v3 ===== */
#outfitLibrary{display:none!important}
.pp-workbench{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:28px;align-items:start}
.pp-upload-pane,.pp-control-pane{min-width:0}
.pp-upload-drop{position:relative;display:block;min-height:432px;border:1.5px dashed rgba(17,24,39,.22);border-radius:14px;background:linear-gradient(180deg,#faf8f5,#f6f2ed);overflow:hidden;cursor:pointer;transition:border-color .22s ease,background .22s ease,transform .22s ease,box-shadow .22s ease}
.pp-upload-drop:hover,.pp-upload-drop.drag{border-color:#8e6b56;background:linear-gradient(180deg,#f8f1ea,#f1ebe4);box-shadow:0 20px 38px rgba(22,18,14,.08);transform:translateY(-2px)}
.pp-upload-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.pp-upload-empty,.pp-upload-preview{position:absolute;inset:0}
.pp-upload-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px;text-align:center;color:#53463d}
.pp-upload-empty strong{font-size:18px;line-height:1.2;color:#201913}
.pp-upload-empty span{font-size:12px;color:#76685f}
.pp-upload-empty small{max-width:300px;font-size:12px;line-height:1.65;color:#93857c}
.pp-upload-icon{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:#fff;box-shadow:0 16px 32px rgba(31,24,20,.08)}
.pp-upload-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#725847}
.pp-upload-preview{display:flex;align-items:center;justify-content:center;background:#fff}
.pp-upload-preview img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;background:#f6f1eb}
.pp-upload-change{position:absolute;right:14px;top:14px;z-index:2;min-height:34px;padding:0 12px;border:0;border-radius:999px;background:rgba(17,24,39,.85);color:#fff;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(17,24,39,.18)}
.pp-upload-note{margin:12px 4px 0;font-size:13px;line-height:1.75;color:#6d6159}
.pp-control-pane{display:flex;flex-direction:column;gap:14px}
.pp-style-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pp-style-title strong{display:block;font-size:18px;color:#201913}
.pp-style-title span{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#7b6e66}
.pp-style-tabs{display:flex;gap:8px;flex-wrap:wrap}
.pp-style-tabs button{min-height:34px;padding:0 12px;border:1px solid rgba(130,110,97,.22);border-radius:999px;background:#fff;color:#4c4037;font:inherit;font-weight:800;cursor:pointer;transition:all .2s ease}
.pp-style-tabs button.active,.pp-style-tabs button:hover{border-color:#7d6455;color:#7d6455;box-shadow:0 10px 20px rgba(54,39,30,.08)}
.pp-style-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;align-items:start;overflow:visible;padding:2px 0}
.pp-pick{padding:0;border:0;background:none;cursor:pointer;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:stretch;position:relative}
.pp-pick-media{position:relative;display:block;aspect-ratio:1/1;border:1px solid rgba(152,133,120,.25);border-radius:14px;overflow:hidden;background:#f4eee7;box-shadow:0 12px 22px rgba(36,26,18,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.pp-pick img{width:100%;height:100%;object-fit:cover;display:block}
.pp-pick.free .pp-pick-media{display:grid;place-items:center;background:linear-gradient(145deg,#d4cdc5,#c2b8ae);color:#fff;font-weight:900;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.pp-pick b{display:block;font-size:10px;line-height:1.3;color:#5f5148;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 2px}
.pp-pick:hover .pp-pick-media{transform:translateY(-2px);border-color:#8f7463;box-shadow:0 18px 28px rgba(36,26,18,.11)}
.pp-pick.active .pp-pick-media{border-color:#7b5b49;box-shadow:0 0 0 2px rgba(123,91,73,.14),0 18px 28px rgba(36,26,18,.12)}
.pp-pick.active .pp-pick-media::after{content:'✓';position:absolute;inset:auto auto 8px 8px;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:rgba(17,24,39,.86);color:#fff;font-size:16px;font-weight:900;box-shadow:0 8px 16px rgba(17,24,39,.24)}
.pp-style-load-wrap{display:flex;justify-content:center;margin-top:2px}
.pp-style-load{min-height:32px;padding:0 12px;border:1px solid rgba(130,110,97,.22);border-radius:999px;background:#fff;color:#4c4037;font:inherit;font-weight:800;cursor:pointer}
.pp-style-load:hover{border-color:#7d6455;color:#7d6455}
.pp-style-load[hidden]{display:none!important}
.pp-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.pp-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.pp-field span{font-size:11px;font-weight:800;letter-spacing:.02em;color:#6b5d54}
.pp-field select{width:100%;min-width:0;min-height:34px;padding:0 28px 0 10px;border:1px solid rgba(130,110,97,.22);border-radius:10px;background:#fff;color:#241d18;font:inherit;font-size:12px;line-height:1.2;outline:none}
.pp-field select:focus{border-color:#7d6455;box-shadow:0 0 0 3px rgba(125,100,85,.08)}
.pp-sample{align-self:flex-start;min-height:28px;padding:0 10px;border:1px solid rgba(130,110,97,.22);border-radius:999px;background:#fff;color:#55473d;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
#passportPrompt{width:100%;min-height:92px;padding:12px 12px;border:1px solid rgba(130,110,97,.22);border-radius:14px;background:#fff;color:#221b16;font:inherit;line-height:1.7;resize:vertical;outline:none}
#passportPrompt:focus{border-color:#7d6455;box-shadow:0 0 0 3px rgba(125,100,85,.08)}
.pp-run-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pp-credit-line{font-size:13px;font-weight:800;color:#312822}
.pp-status-line{margin-top:5px;font-size:12px;color:#766a63;line-height:1.45}.pp-status-line.success{color:#13795b}.pp-status-line.error{color:#c12f3d}.pp-status-line.queue{color:#8b5e26}
.pp-generate{min-width:210px;min-height:48px;padding:0 18px;border:0;border-radius:14px;background:linear-gradient(135deg,#201913,#6f5748);color:#fff;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 16px 34px rgba(33,24,18,.18)}
.pp-generate:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.pp-result-card{margin-top:24px}
.pp-result-stage{position:relative;min-height:420px;max-height:500px;border:1px solid rgba(130,110,97,.18);border-radius:18px;background:linear-gradient(180deg,#fbf8f5,#f5efea);display:flex;align-items:center;justify-content:center;overflow:hidden}
.pp-result-empty{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;text-align:center;color:#7e726b;padding:18px}.pp-result-empty strong{font-size:18px;color:#2a211c}.pp-result-empty span{font-size:13px;line-height:1.7}
#resultImage{display:block;max-width:100%;max-height:500px;width:auto;height:auto;object-fit:contain;background:#fff;border-radius:14px;box-shadow:0 18px 40px rgba(28,20,15,.12)}
.pp-busy{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(16,18,24,.54);backdrop-filter:blur(2px);z-index:3}.pp-busy[hidden]{display:none!important}
.pp-busy-card{min-width:220px;padding:20px 22px;border-radius:18px;border:1px solid rgba(255,255,255,.22);background:rgba(20,24,32,.78);display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;text-align:center}
.pp-spinner{width:42px;height:42px;border-radius:50%;border:3px solid rgba(255,255,255,.22);border-top-color:#fff;animation:ppspin .9s linear infinite}@keyframes ppspin{to{transform:rotate(360deg)}}
.pp-busy-card strong{font-size:15px}.pp-busy-card span{font-weight:800;letter-spacing:.06em}
.pp-download{position:absolute;right:14px;bottom:14px;z-index:4;width:42px;height:42px;border:0;border-radius:999px;background:rgba(17,24,39,.86);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 24px rgba(17,24,39,.22)}
.pp-download svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pp-style-hover-preview{position:fixed;z-index:99999;display:none;width:220px;height:220px;padding:7px;border:1px solid rgba(255,255,255,.85);border-radius:24px;background:#fff;box-shadow:0 24px 60px rgba(31,22,18,.34);pointer-events:none;opacity:0;transform:translateY(8px) scale(.94);transition:opacity .12s ease,transform .12s ease}.pp-style-hover-preview.show{display:block;opacity:1;transform:translateY(0) scale(1)}.pp-style-hover-preview img{width:100%;height:100%;object-fit:cover;border-radius:18px}.pp-style-hover-preview.free{display:grid;place-items:center;background:linear-gradient(145deg,#8f8585,#5d5555);color:#fff;font-size:20px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;text-align:center}
@media (max-width:1080px){.pp-workbench{grid-template-columns:1fr;gap:22px}.pp-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.pp-style-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.pp-upload-drop{min-height:360px}}
@media (max-width:680px){.pp-style-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pp-pick-media{border-radius:12px}.pp-pick b{font-size:9px}.pp-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pp-run-row{flex-direction:column;align-items:stretch}.pp-generate{width:100%;min-width:0}.pp-style-hover-preview{display:none!important}.pp-upload-drop{min-height:300px}.pp-result-stage{min-height:300px;max-height:500px}}

/* ===== Passport pane border + upload clear refinement v4 ===== */
.pp-upload-pane,.pp-control-pane{
  border:1px solid rgba(130,110,97,.24);
  border-radius:8px;
  background:#fff;
  padding:18px;
}
.pp-upload-drop{
  min-height:500px;
  border:1.5px dashed rgba(110,91,78,.30);
  border-radius:4px;
  background:linear-gradient(180deg,#fbf8f4,#f5efe9);
}
.pp-upload-empty[hidden],.pp-upload-preview[hidden]{display:none!important}
.pp-upload-empty{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:30px;
  text-align:center;
}
.pp-upload-icon{
  width:64px;
  height:64px;
  margin-bottom:4px;
  border-radius:16px;
  background:#fff;
  color:#725847;
  box-shadow:0 14px 30px rgba(31,24,20,.08);
}
.pp-upload-icon svg{width:30px;height:30px}
.pp-upload-empty strong{font-size:20px}
.pp-upload-empty span{font-size:13px}
.pp-upload-empty small{max-width:320px;font-size:12px;line-height:1.7}
.pp-upload-preview{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f7f2ec}
.pp-upload-preview img{width:100%;height:100%;object-fit:contain}
.pp-upload-clear{
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(18,20,26,.88);
  color:#fff;
  font-size:24px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(17,24,39,.20);
}
.pp-upload-clear:hover{background:#111827;transform:scale(1.04)}
@media(max-width:680px){
  .pp-upload-pane,.pp-control-pane{padding:12px;border-radius:6px}
  .pp-upload-drop{min-height:300px}
  .pp-upload-empty{padding:18px 12px}
  .pp-upload-empty strong{font-size:17px}
  .pp-upload-empty small{font-size:11px}
}

/* ===== Hero result frame spacing refinement v5 ===== */
.hero-lab{
  min-height:0;
  height:auto;
  padding:24px;
}
.hero-stage{
  height:auto;
  min-height:0;
  align-items:stretch;
}
.hero-shot,.hero-result{
  min-height:0;
  aspect-ratio:4/7;
}
@media(max-width:1080px){
  .hero-lab{
    min-height:0;
    padding:22px;
  }
}
@media(max-width:680px){
  .hero-lab{
    min-height:0;
    padding:12px;
  }
  .hero-stage{gap:10px}
  .hero-shot,.hero-result{
    min-height:0;
    aspect-ratio:4/7;
  }
}

/* Tool67 state visibility hardening */
[id="passportResultEmpty"][hidden],.pp-result-empty[hidden]{display:none!important;}

#busyOverlay[hidden],#resultEmpty[hidden],#resultImage[hidden],#downloadButton[hidden]{display:none!important;}

/* Tool67 image-page dark compatibility patch — visual only */
html[data-theme="dark"],body.dark{--bg:#0b0e13;--card:#151a22;--ink:#f4f6f8;--muted:#a3acb8;--line:#303846;--soft:#111722;--shadow:0 18px 48px rgba(0,0,0,.28);}
body.dark .hero-points span,body.dark .hero-cta .ghost,body.dark .hero-chip,body.dark .studio-card,body.dark .upload-icon,body.dark .choice-row button,body.dark .standard-card,body.dark .color-row button,body.dark .toggle-row button,body.dark .quick-result,body.dark .gender-tabs button.active,body.dark .model-card,body.dark .model-hover a,body.dark .load-more,body.dark .size-info,body.dark .showcase-grid article,body.dark .divider,body.dark .divider i,body.dark .industry-grid article,body.dark .steps-grid article,body.dark .stories-grid article,body.dark .benefit-grid article,body.dark .trust-grid article,body.dark .pp-upload-icon,body.dark .pp-upload-preview,body.dark .pp-style-tabs button,body.dark .pp-style-load,body.dark .pp-field select,body.dark .pp-sample,body.dark #passportPrompt,body.dark .pp-style-hover-preview,body.dark /* ===== Passport pane border + upload clear refinement v4 ===== */ .pp-upload-pane,body.dark .pp-control-pane{background:#151a22!important;border-color:#303846!important;color:#e5e7eb;}
body.dark input,body.dark select,body.dark textarea{background-color:#111722;color:#e5e7eb;border-color:#303846;}
body.dark input::placeholder,body.dark textarea::placeholder{color:#7f8a99;}

/* Tool67 targeted dark correction */
body.dark .passport-page,body.dark .hero,body.dark .studio,body.dark .standards,body.dark .showcase,body.dark .industries,body.dark .steps,body.dark .stories,body.dark .benefits,body.dark .trust,body.dark .faq{color:var(--ink);}
body.dark .section-head span,body.dark .hero-chip{background:#211d35;border-color:#3c3457;color:#b9adff;}
body.dark .hero-copy p,body.dark .section-head p{color:var(--muted);}
