:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#0b1c30;background:#f8f9ff;font-size:15px;line-height:1.6;--blue:#2563eb;--border:#e2e8f0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button,.button{border:1px solid var(--border);background:white;color:#24364e;border-radius:10px;min-height:44px;padding:10px 16px;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{background:#eff4ff}button.primary,.button.primary{background:var(--blue);color:white;border-color:var(--blue)}button.active{color:var(--blue);background:#eaf0ff;border-color:#b4c5ff}button:disabled{opacity:.5;cursor:wait}input,select,textarea{border:1px solid #c3c6d7;border-radius:9px;padding:12px;width:100%;background:white;color:inherit}textarea{min-height:85px}input[type=checkbox]{width:20px;height:20px;vertical-align:middle}input[type=file]{font-size:13px}label{display:block;margin:16px 0 7px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:27px}h2{font-size:21px}h3{font-size:17px}small,.muted{color:#65738a}.eyebrow{font-size:11px;letter-spacing:1.1px;color:var(--blue);font-weight:700}.top{background:white;border-bottom:1px solid var(--border);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{font-size:23px;font-weight:750}.banner{padding:8px 20px;background:#eef4ff;color:#3d5885;font-size:12px}.mobile{max-width:620px;margin:auto;padding:24px 18px 110px}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);display:flex;gap:8px;background:white;border:1px solid var(--border);padding:10px 14px max(12px,env(safe-area-inset-bottom));z-index:5}.nav button{flex:1;border:0}.card{background:white;border:1px solid #edf0f7;border-radius:15px;padding:20px;margin-bottom:18px;box-shadow:0 2px 4px #15295004}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tile{text-align:left;padding:6px;border-radius:14px;overflow:hidden}.tile img{width:100%;aspect-ratio:1;object-fit:contain;background:#f8f9ff;border-radius:10px}.tile strong,.tile small{display:block;padding:5px 9px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.hero{width:100%;max-height:480px;object-fit:contain;border-radius:12px;background:white}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0}.actions>*{flex:0 1 auto}.full{width:100%;margin-top:20px}.notice{background:#eff4ff;color:#365383;border-radius:10px;padding:12px;margin:14px 0;font-size:13px}.warning{background:#fff7e6;color:#8c641a}.empty{padding:38px 20px;text-align:center;background:white;border-radius:14px;border:1px dashed #c3c6d7}.tag{background:#eef4ff;color:#315dba;padding:4px 9px;border-radius:20px;font-size:12px;white-space:nowrap}.auth{max-width:460px;margin:40px auto;padding:24px;background:white;border:1px solid var(--border);border-radius:16px}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 110px)}.sidebar{background:white;border-right:1px solid var(--border);padding:24px 15px}.sidebar button{display:block;width:100%;text-align:left;border:0;margin:6px 0}.workspace{padding:30px;min-width:0}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.table{overflow-x:auto;background:white;border-radius:14px;border:1px solid var(--border)}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:15px 18px;border-bottom:1px solid #edf0f7;white-space:nowrap}td:first-child{min-width:150px;max-width:280px;white-space:normal;overflow-wrap:anywhere}th{color:#65738a;background:#f9fbff;font-weight:500}.thumb{width:48px;height:48px;object-fit:contain;vertical-align:middle;margin-right:10px}.settings{max-width:700px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f9ff;padding:16px;border-radius:10px;font-size:12px}dialog{position:fixed;margin:0 0 0 auto;inset:0;width:min(720px,96vw);height:100dvh;max-height:100dvh;border:0;padding:26px;overflow:auto;color:inherit;box-shadow:-10px 0 50px #13244815}dialog::backdrop{background:#0b1c3050}dialog .heading{position:sticky;top:-26px;background:white;padding:14px 0;z-index:1}.error{color:#b91c1c;background:#fff1f2;padding:12px;border-radius:10px}#message:not(:empty){position:fixed;left:50%;top:18px;transform:translateX(-50%);background:#132a4a;color:white;padding:12px 20px;border-radius:10px;z-index:100;max-width:90vw;box-shadow:0 6px 25px #0002}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #93b5ff;outline-offset:2px}.upload{padding:16px;border:1px dashed #a2b9e4;border-radius:12px;background:#f8faff}.checkline{display:flex;gap:10px;align-items:start}.checkline input{flex:none}.status-failed{color:#b91c1c}.status-complete{color:#13824b}@media(max-width:800px){.admin{display:block}.sidebar{display:flex;overflow:auto;padding:10px}.sidebar button{width:auto;white-space:nowrap}.workspace{padding:20px 12px}.two{grid-template-columns:1fr}.top{padding:12px 18px}.heading{align-items:flex-start}.mobile{padding-top:18px}.grid{gap:12px}dialog{padding:20px}.auth{margin:24px 14px}.top small{display:none}.card{padding:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.auth{padding-bottom:calc(110px + env(safe-area-inset-bottom));}.auth .form-error{scroll-margin-block:120px}.auth .form-error:not(:empty){background:#fff1f2;color:#991b1b;border:1px solid #fecaca;padding:12px;border-radius:8px;font-weight:600}

#phone-diag{margin:10px 0;padding:10px;background:#eef4ff;border:1px solid #9db8df;border-radius:8px}#phone-diag summary{cursor:pointer;min-height:44px}#phone-diag pre{font-size:12px}#adoption-feedback{scroll-margin:90px;color:#163455;font-weight:600}

.template-summary{display:flex;gap:16px;align-items:center}.template-summary img{width:88px;height:88px;object-fit:contain}.uploaded-thumb{width:100%;max-height:160px;object-fit:contain}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.file-picker{display:inline-block;cursor:pointer}.workflow-primary{position:sticky;bottom:12px;z-index:2;box-shadow:0 4px 12px #0002}.steps{color:#365383}.compare img{max-height:260px}.compare{grid-template-columns:1fr 1fr}

.region-stage{position:relative;max-width:340px;margin:10px auto;line-height:0}.region-stage img{width:100%;height:auto;display:block}.region-stage #region-box{position:absolute;border:3px solid #2563eb;box-shadow:0 0 0 1px white inset;pointer-events:none;background:#2563eb12}.region-preview{width:100%;max-width:260px;height:auto;display:block;margin:8px auto}.surface-region input[type=range]{min-height:44px;padding:0;accent-color:#2563eb}.surface-region{margin-top:20px}

.feature-entry{max-width:620px;margin:12px auto;padding:14px 18px;background:#eaf2ff;border:1px solid #aac7f4;border-radius:12px}.feature-entry p{margin:6px 0}.feature-entry .actions{margin:8px 0}.feature-entry small{display:block}

/* Compact three-choice customer flow. */
.resume-strip{max-width:620px;margin:auto;padding:2px 18px;display:flex;align-items:center;gap:8px;font-size:12px}.resume-strip button{min-height:32px;padding:2px 8px;font-size:12px}.mobile .template-summary{margin-bottom:12px}.mobile .template-summary img{width:56px;height:56px}.mobile h1{font-size:22px}.mobile h2{font-size:19px}.intent-options{border:0;padding:0;margin:12px 0;min-width:0}.intent-card{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:10px;padding:10px;margin:8px 0}.intent-card:has(input:checked){border-color:#2563eb;background:#eff6ff}.intent-card input{width:20px;flex:0 0 20px}.intent-card small{display:block}.preview-button{position:relative;display:block;width:100%;height:clamp(220px,32dvh,280px);padding:4px;border:0;background:#f5f6f8}.preview-button img{width:100%;height:100%;object-fit:contain}.preview-button span{position:absolute;bottom:6px;right:8px;background:#fffe;font-size:12px;padding:2px 6px;border-radius:6px}.original-compare{margin:8px 0}.compact-crop{height:clamp(220px,32dvh,280px);display:flex;justify-content:center}.compact-crop img{height:100%;aspect-ratio:1;max-width:100%;object-fit:cover;object-position:center}.large-preview{width:100%;max-height:80dvh;object-fit:contain}#phone-diag{margin-top:18px;font-size:12px}.mobile,.mobile *{min-width:0}.mobile{overflow-wrap:anywhere}.mobile .workflow-primary{position:static;box-shadow:none}.mobile .actions{flex-wrap:wrap}

.photo-calibration canvas{width:100%;height:auto;max-width:720px;display:block;margin:auto;touch-action:none;border:1px solid #cbd5e1}.photo-proof{width:100%;max-height:460px;object-fit:contain}

.photo-stage{overflow:auto;max-height:70dvh}.photo-stage.is-zoomed canvas{width:150%;max-width:none}.photo-tools{display:flex;gap:6px;flex-wrap:wrap}

.photo-stage:not(.is-zoomed){overflow:hidden;max-height:none}.photo-stage:not(.is-zoomed) canvas{width:auto;height:auto;max-width:100%;max-height:52dvh}.photo-stage.is-zoomed{max-height:70dvh;overflow:auto}

.placement-controls{margin:1rem 0;padding:1rem;border:1px solid #dbe3ef;border-radius:12px;min-width:0}.placement-controls input[type=range]{width:100%;min-height:44px;padding:0}.placement-directions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.placement-directions button{min-width:0;white-space:normal}.placement-directions button:last-child{grid-column:1/-1}.stale-preview{opacity:.6}.fit-controls{min-width:0}.fit-controls select,.placement-controls select{width:100%;max-width:100%}

.sample-steps{display:flex;gap:6px;list-style:none;padding:0;margin:0 0 12px}.sample-steps li{flex:1;text-align:center;padding:8px 4px;border-radius:8px;background:#eef2f9;font-size:12px}.sample-steps [aria-current]{background:#e4eeff;color:#1748b4;font-weight:700}.sample-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.sample-compare figure{margin:0;padding:6px;border:1px solid #d9e2ef;border-radius:10px}.sample-compare img{width:100%;height:130px;object-fit:contain}.sample-compare figcaption{font-size:13px}.sample-compare code{display:block}
