/* Nowy capture: form layout, selectable pills/cards, dropzone, file grid, cost panel. */
.capture{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.capture-main{flex:999 1 560px;min-width:0;gap:16px}
.step-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.step-head .h2{margin:0}
.step-n{width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.group{border:0;padding:0;margin:18px 0 0;min-width:0}
.group.first{margin-top:0}
.group legend.lbl{padding:0}
.field .lbl{margin:0}
.capture .field+.field{margin-top:0}

/* inputs styled as pills / cards, still real radios and checkboxes */
.chk{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.cb{width:20px;height:20px;border-radius:6px;border:1.5px solid #9A9CB8;display:grid;place-items:center;flex:none;background:#fff;color:#fff}
.rd{width:20px;height:20px;border-radius:50%;border:1.5px solid #9A9CB8;flex:none;background:#fff}
.opt{cursor:pointer;position:relative;min-height:44px}
.opt:hover{border-color:#C9C9DA}
.pill.opt:has(input:checked){background:var(--ink);border-color:var(--ink);color:#fff}
.chk.opt{align-items:flex-start;min-width:240px}
.chk.opt>span:last-child{display:flex;flex-direction:column;gap:2px}
.chk.opt .hint{margin:0}
.chk.opt:has(input:checked){border-color:var(--acc);background:var(--accs)}
.chk.opt:has(input:checked)>.rd{border:6px solid var(--acc)}
.chk.opt:has(input:checked)>.cb{background:var(--acc);border-color:var(--acc)}
.cb .ico{width:13px;height:13px}
.chk.opt:not(:has(input:checked))>.cb .ico{visibility:hidden}
.opt:has(input:focus-visible){outline:3px solid var(--acc);outline-offset:2px}
.chk .rd,.chk .cb{margin-top:1px}
#footwear-note{margin-top:16px}
#source-help{margin:12px 0 0}

/* dropzone + files */
.dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;margin-top:16px;border:1.5px dashed #B9BAD3;border-radius:18px;padding:28px 16px;text-align:center;background:#FAFAFD;color:var(--ink)}
.dropzone .round-ico{margin-bottom:6px}
.dropzone .hint{margin:0}
.dropzone .hint b{color:var(--acc2)}
.dropzone:hover,.dropzone.over{border-color:var(--acc);background:var(--accs)}
#file-errors{display:grid;gap:8px}
#file-errors:not(:empty){margin-top:14px}
.files{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.files:not(:empty){margin-top:16px}
.file{min-width:0}
.file-thumb{position:relative;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:#14152B;color:#B5A9FF;display:grid;place-items:center}
.file-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.file-thumb.mask img{filter:grayscale(1) contrast(1.4)}
.file-thumb>.ico{width:28px;height:28px}
.file-x{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(14,15,31,.7);color:#fff;display:grid;place-items:center}
.file-x::after{content:"";position:absolute;inset:-8px}
.file-x .ico{width:14px;height:14px}
.file-name{margin-top:6px;font-size:11px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-meta{gap:4px;font-size:11px;margin-top:2px}
.file-meta select{min-width:0;max-width:70px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:11px;padding:0 4px}
.file-summary:not(:empty){margin-top:16px}
.file-summary .sub{font-size:13px}
.file-summary .sub b{color:var(--ink)}
.file-summary .badge{white-space:normal;height:auto;min-height:26px;padding:4px 10px}

/* packshots + demo */
.pack-row{margin-top:18px}
.pack-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;padding:16px;border-radius:14px;background:#FAFAFD;border:1px solid var(--line)}
.demo-card{padding:16px 24px}
.demo-card summary{display:flex;align-items:center;gap:12px;cursor:pointer;min-height:44px;list-style:none}
.demo-card summary::-webkit-details-marker{display:none}
.demo-card summary .sub{font-size:13px}
.demo-card .field{margin-top:12px}

/* cost panel */
.cost-panel{flex:1 1 340px;max-width:420px;min-width:300px;position:sticky;top:16px}
.cost-panel .h2{margin:0}
.cost-panel>.row{flex-wrap:wrap;row-gap:8px}
.cost-panel .chip{white-space:nowrap}
.quote-lines{margin:12px 0 0}
.quote-lines .cost dt{color:var(--ink2)}
.quote-lines .cost dd{margin:0;font-weight:800}
.quote-total{margin:16px 0 4px}
.quote-total .big{font-size:28px}
.quote-balance{font-size:13px;margin-top:4px}
.quote-balance:first-of-type{margin-top:12px}
.cost-panel .bar{margin-top:14px}
.quote-loading{margin:16px 0 0}
.quote-short,#quote-result>.note{margin-top:14px}
.submit-bar{margin-top:20px}
.submit-bar .btn{width:100%}
#submit-progress:not(:empty){display:block;text-align:center}
.refund-hint{margin-top:14px}
.refund-hint .short{display:none}
.pending-create{margin:0 0 16px}
.pending-create p{margin:4px 0 12px}

@media (max-width:900px){
  .capture{gap:12px;padding-bottom:120px}
  .capture-main{gap:12px}
  .capture .card{padding:16px}
  .chk.opt{min-width:0;flex-basis:100%}
  .files{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .pack-settings{grid-template-columns:1fr}
  .cost-panel{position:static;max-width:none;min-width:0;flex-basis:100%}
  .quote-total .big{font-size:22px}
  .submit-bar{position:fixed;left:0;right:0;bottom:calc(62px + env(safe-area-inset-bottom));z-index:14;margin:0;padding:12px 16px;background:#fff;border-top:1px solid var(--line)}
  .refund-hint{margin-top:6px;text-align:center}
  .refund-hint .long{display:none}
  .refund-hint .short{display:inline}
  .file-meta{flex-direction:column;align-items:stretch}
  .file-meta select{max-width:none;height:44px;font-size:12px}
}
.field-err{margin-top:8px}

/* Production: one resumable source archive or existing splat (demo visual language). */
.account-capture .capture-main,.account-job-form .capture-main{display:flex;flex-direction:column;counter-reset:acc-step}
.account-capture .step-n::before,.account-job-form .step-n::before{counter-increment:acc-step;content:counter(acc-step)}
#account-packshot-step-slot .step-head{margin:0 0 8px}
#account-packshot-step-slot .step-n{display:none}
#account-packshot-step-slot .step-head .h2{font-size:17px}
#account-source-intro[hidden],#account-packshots[hidden],#account-job-outputs[hidden]{display:none}
#account-source-intro>.note{margin:0}
#account-source-intro>.note+.hint,#account-source-intro>.hint{margin:12px 0 0;font-size:13px;line-height:1.5}
#account-source-intro>.note.info{margin-top:12px}
#account-source-intro+.account-capture{margin-top:20px}
.account-capture .card>.sub,.account-job-form .card>.sub{margin:12px 0 0;line-height:1.55;font-size:13px}
.account-capture .card>.sub+.sub{margin-top:6px}
.account-capture .card>.hint,.account-job-form .card>.hint{margin:12px 0 0;line-height:1.5}
.account-capture .step-head+.sub{margin-top:0}
/* source cards: even grid, radio dot aligned with the title line */
.account-capture .group .row.wrap{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.account-capture .group .chk.opt{min-width:0;height:100%;padding:16px}
.account-capture .chk.opt>span:last-child{gap:4px;min-width:0}
.account-capture .chk.opt .h3{line-height:22px}
.account-capture .chk.opt .hint{display:block;line-height:1.45}
.account-capture .chk.opt:has(input:disabled),.account-job-form .chk.opt:has(input:disabled){cursor:not-allowed;opacity:.6}
.account-capture .pill.opt:has(input:disabled),.account-job-form .pill.opt:has(input:disabled){cursor:not-allowed;opacity:.55}
.account-job-form .pill.opt:has(input:checked:disabled){opacity:1}
#account-formats:not(:empty){margin-top:12px}
/* dropzone: a label around the real, focusable file input */
.account-dropzone{margin-top:0;cursor:pointer;position:relative}
.account-dropzone:has(input:focus-visible){outline:3px solid var(--acc);outline-offset:2px}
.account-dropzone:has(input:disabled){cursor:not-allowed;opacity:.6;border-color:#B9BAD3;background:#FAFAFD}
.account-capture #account-file-help{margin-top:12px}
.account-capture #account-file-info:not(:empty){margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--accs);font-weight:700;font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.account-capture #account-upload-errors:not([hidden]){color:var(--err,#B42318);overflow-wrap:anywhere}
/* packshot options */
.account-packshot-toggle{margin-top:16px;min-width:0}
.account-packshot-toggle .h3{line-height:22px}
.account-packshot-fields{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:end}
.account-packshot-fields[hidden]{display:none}
.account-packshot-fields .field{min-width:0}
.account-packshot-fields .field .lbl{margin:0}
.account-packshot-fields .account-packshot-jpg{grid-column:1/-1;justify-self:start;height:auto;min-height:44px;padding-top:10px;padding-bottom:10px}
.account-packshot-fields .hint{grid-column:1/-1;margin:0;overflow-wrap:anywhere}
.account-job-form #account-packshots{margin-top:20px;padding:20px;border-radius:16px;background:#FAFAFD;border:1px solid var(--line)}
.account-job-form #account-packshots .chk.opt,.account-job-form #account-packshots .account-packshot-fields{background:#fff}
/* side panels styled as the demo cost card */
.account-upload-panel .quote-lines,.account-job-panel .quote-lines{margin:14px 0 0}
.account-upload-panel .quote-lines dd{margin:0;font-weight:800;color:var(--ink);text-align:right;min-width:0;overflow-wrap:anywhere;padding-left:12px}
.account-capture #account-upload-progress{margin-top:16px;font-size:14px;overflow-wrap:anywhere}
.account-capture #account-upload-progress .bar{margin-top:10px}
.account-panel-note{margin:14px 0 0;line-height:1.5}
.account-job-panel #account-job-quote{margin-top:4px}
.account-job-panel #account-job-quote:not(:has(dl)){margin-top:14px;font-size:14px;color:var(--ink2)}
.account-job-panel #account-quote-refresh{margin-top:16px}
.account-job-panel #account-job-gate:not(:empty){margin:10px 0 0;text-align:center}
/* states */
.account-capture.source-completed .submit-bar,.account-capture.job-pending .submit-bar{display:none}
.account-capture.source-completed .capture-main>section:not(#account-upload-session),.account-capture.source-completed .account-upload-panel{display:none}
.account-capture.job-pending .capture-main>section:not(#account-upload-session),.account-capture.job-pending .account-upload-panel{display:none}
.account-capture.source-completed #account-upload-session{padding:16px 20px}
.account-capture #account-upload-session>.h2{margin:0 0 8px}
.account-capture #account-upload-session>.sub{margin:0;line-height:1.55;overflow-wrap:anywhere}
.account-capture #account-upload-session .btn{margin-top:10px}
/* step 2 */
.account-job-step{margin-top:36px}
.account-capture.source-completed + .account-job-step{margin-top:16px}
.account-job-step[hidden],.account-job-form[hidden],#account-job-pending[hidden],#account-job-status[hidden]{display:none}
.account-job-step .page-heading{display:block;margin-bottom:20px}
.account-job-step>.note{margin-bottom:16px}
.account-job-form .card>.field .lbl{margin:0}
.account-job-form .group .hint{margin-top:8px}
.account-job-form .pill.opt{height:auto;min-height:44px;padding-top:10px;padding-bottom:10px}
.account-job-form #account-video-reconstruction[hidden]{display:none}
.account-job-form #account-video-full{margin-top:12px;gap:12px}
.account-job-form #account-video-full .field{flex:1 1 180px;min-width:0}
@media (max-width:900px){
  .account-capture .card,.account-job-form .card{padding:18px}
  .account-capture .group .row.wrap{grid-template-columns:1fr}
  #account-source-intro+.account-capture{margin-top:16px}
  .account-capture .submit-bar{bottom:calc(62px + env(safe-area-inset-bottom))}
  .account-capture .account-upload-panel,.account-job-panel{padding-bottom:12px}
  .account-capture.source-completed{padding-bottom:0}
  .account-dropzone{padding:22px 14px}
  .account-job-form #account-packshots{padding:16px}
  .account-job-panel #account-job-gate:not(:empty){margin-top:6px}
}
/* invisible native checkbox covering its pill/card so pointer hits land on the input itself */
input.opt-overlay[type]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit;z-index:1}
.account-capture .card .step-head .h2,.account-job-form .card .step-head .h2{margin:0;line-height:1.25}
.account-capture .card .step-head,.account-job-form .card .step-head{margin:0 0 16px}
