:root{--red:#c8233d;--red-dark:#a31d32;--ink:#22252b;--muted:#626873;--line:#e2e4e8;--bg:#f5f6f8;--radius:16px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:16px;background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}a{color:var(--red-dark)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #cf8090;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.65rem,3vw,2.15rem);line-height:1.18;letter-spacing:-.035em}h2{font-size:1.35rem;letter-spacing:-.02em}h3{font-size:1.05rem}p{line-height:1.65}small,.small{font-size:.875rem;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{color:var(--red);font-size:.875rem;font-weight:700;letter-spacing:.04em}.brand img{width:144px;max-height:54px;object-fit:contain;object-position:left}.brand{display:flex;align-items:center;gap:16px}.topbar{background:#fff;border-bottom:1px solid var(--line);padding:18px max(20px,calc((100vw - 1220px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar a{text-decoration:none;font-size:.875rem;font-weight:600}.wrap{max-width:1220px;margin:auto;padding:38px 24px 48px}.pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.pagehead p{margin-top:10px;max-width:670px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;border:1px solid transparent;border-radius:10px;min-height:48px;padding:12px 20px;background:var(--red);color:white;font-weight:650;text-decoration:none;white-space:normal;text-align:center;line-height:1.3}.btn:hover{background:var(--red-dark)}.btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.btn.secondary:hover{background:#f4f4f6}.btn.quiet{background:transparent;color:var(--red);border-color:transparent}.btn.small{min-height:40px;padding:8px 13px;font-size:.875rem}.btn.danger{color:#a11a30;background:#fff;border-color:#dbaab3}.btn svg{width:22px;height:22px;flex-shrink:0}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px}.stack{display:grid;gap:20px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row.between{justify-content:space-between}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:8px}.field.full{grid-column:1/-1}.field>span,.field>label{font-size:.9rem;font-weight:650}.field input,.field textarea,.field select,.search{width:100%;border:1px solid #cbd0d7;border-radius:9px;min-height:48px;padding:11px 13px;color:var(--ink);background:#fff;min-width:0}.field textarea{min-height:120px;resize:vertical}.field input:focus,.field textarea:focus{border-color:var(--red)}.status{min-height:1.5em;font-size:.95rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.status.error{color:#a21d31}.notice{background:#fff6ed;border:1px solid #ead6be;padding:12px 18px;line-height:1.5;font-size:.9rem}.notice.test{background:#fff6ed}.pill{display:inline-flex;background:#f0f2f5;border-radius:20px;padding:6px 11px;font-size:.85rem;font-weight:600;color:#4b5260}.pill.received{background:#edf5ef;color:#28643a}.empty{display:grid;place-items:center;padding:48px 24px;text-align:center;gap:12px;color:var(--muted)}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.95rem}th{font-size:.8rem;text-transform:uppercase;letter-spacing:.035em;color:var(--muted);font-weight:600}th,td{padding:17px 12px;border-bottom:1px solid var(--line);vertical-align:middle}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}tbody tr:last-child td{border-bottom:0}.count{font-size:.9rem;color:var(--muted)}.toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.search{max-width:360px}.case-title{font-weight:650;display:block}.case-sub{font-size:.875rem;color:var(--muted);margin-top:4px}.linkbox{background:#f5f6f8;padding:16px;border-radius:10px;overflow-wrap:anywhere;line-height:1.5}.linkbox a{font-size:.875rem}.meta{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.meta dt{font-size:.85rem;color:var(--muted);margin-bottom:6px}.meta dd{margin:0;font-weight:600;overflow-wrap:anywhere}dialog{border:1px solid var(--line);border-radius:18px;max-width:min(680px,calc(100vw - 28px));width:680px;padding:0;color:var(--ink)}dialog::backdrop{background:#11182785}dialog .dialog-head{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}dialog .dialog-body{padding:24px 26px}dialog .dialog-foot{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:12px;position:sticky;bottom:0;background:white}.capture-wrap{max-width:1160px;padding-top:24px}.capture-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.progress{height:4px;background:#e0e3e8;border-radius:4px;overflow:hidden;margin-bottom:26px}.progress>span{display:block;height:100%;background:var(--red);transition:width .2s}.capture-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:28px}.capture-grid>div{min-width:0}.step-heading{margin:8px 0 12px}.hint{padding:14px 16px;background:#f6f7f9;border-radius:10px;line-height:1.6;color:#4d5562}.actions{display:grid;gap:12px;margin-top:22px}.actions .btn{width:100%}.preview-zone{background:#f2f3f6;border-radius:12px;min-height:290px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.example{width:100%;height:340px;object-fit:contain}.example-label{font-size:.8rem;font-weight:700;color:#5d6570;padding:12px 16px 0}.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-content:start}.media-tile{background:#e7e9ed;border:0;border-radius:11px;padding:0;overflow:hidden;position:relative;aspect-ratio:4/3}.media-tile img{width:100%;height:100%;object-fit:cover;display:block}.media-tile .label{position:absolute;bottom:7px;left:7px;padding:4px 7px;background:#20252bd9;color:#fff;border-radius:5px;font-size:.8rem}.media-tile .noted{position:absolute;right:7px;top:7px;padding:5px 8px;background:#fff;color:var(--red);border-radius:5px;font-size:.8rem;font-weight:700}.capture-footer{display:flex;justify-content:space-between;gap:16px;margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.capture-footer .btn{min-width:125px}.step-list{display:grid;gap:8px}.step-link{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:13px 15px;background:#fff;border:1px solid var(--line);border-radius:9px;font-size:.95rem}.step-link .done{color:#28643a}.upload-state{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.875rem;margin-bottom:12px;min-height:24px}.spinner{width:18px;height:18px;border:2px solid #d4d7dc;border-top-color:var(--red);border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.success{max-width:650px;margin:48px auto;text-align:center;padding:40px 26px}.success .success-icon{width:56px;height:56px;color:var(--red);margin-bottom:22px}.success h1{color:var(--red)}.success p{margin-top:18px}.success .footline{font-weight:650;color:var(--red);margin-top:28px}.footer{max-width:1220px;margin:auto;padding:18px 24px 30px;font-size:.875rem;color:var(--muted);display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}.viewer{width:min(1100px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px)}.viewer-content{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,.6fr);gap:22px;padding:24px}.viewer-content img,.viewer-content video{width:100%;max-height:60dvh;object-fit:contain;background:#f3f4f6;border-radius:10px}.viewer-content textarea{min-height:150px}.viewer .dialog-foot{justify-content:space-between}.camera-dialog{background:#16181c;color:#fff;width:min(1100px,calc(100vw - 16px));max-width:none;max-height:calc(100dvh - 16px)}.camera-dialog video{width:100%;max-height:65dvh;object-fit:contain}.camera-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px}.recording{color:#ff8797}.reader{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:760px){.topbar{padding:15px 18px}.brand img{width:118px}.brand>span{display:none}.wrap{padding:26px 16px 32px}.pagehead{display:block}.pagehead>.btn{margin-top:18px}.card{padding:20px}.fields{grid-template-columns:1fr}.meta{grid-template-columns:1fr 1fr}.capture-grid{grid-template-columns:1fr;gap:20px}.preview-zone{min-height:210px}.example{height:240px}.capture-grid .media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.viewer-content{grid-template-columns:1fr;padding:16px}.viewer-content img{max-height:39dvh}.viewer-content textarea{min-height:90px}.viewer{max-height:calc(100dvh - 12px)}.toolbar{align-items:flex-start;flex-direction:column}.search{max-width:none}.tablewrap th:nth-child(3),.tablewrap td:nth-child(3){display:none}th,td{padding:14px 8px}.step-heading{font-size:1.6rem}.capture-footer{position:sticky;bottom:0;background:var(--bg);padding:14px 0 max(14px,env(safe-area-inset-bottom));z-index:1}.viewer .dialog-head{position:sticky;top:0;background:white;z-index:2}.footer{padding-inline:18px}.camera-controls{flex-wrap:wrap}}
@media(orientation:landscape) and (max-height:540px){.topbar{padding-block:9px}.capture-wrap{padding-top:14px}.capture-grid{grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr)}.preview-zone{min-height:220px}.example{height:260px}.capture-head{margin-bottom:9px}.progress{margin-bottom:14px}.card{padding:18px}.step-heading{font-size:1.4rem}.capture-footer{position:static}.viewer-content{grid-template-columns:1.4fr 1fr}.viewer-content img{max-height:58dvh}.viewer-content textarea{min-height:85px}}
.media-grid{max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;padding:2px}.media-grid.media-single{grid-template-columns:1fr}.media-single .media-tile{max-height:420px}.dialog-head{position:sticky;top:0;background:#fff;z-index:2}dialog{max-height:calc(100dvh - 24px)}
@media(max-width:760px) and (orientation:portrait){.capture-grid>div:first-child{order:2}.capture-grid>div:last-child{order:1}.media-grid{max-height:44dvh}.capture-grid .media-grid.media-single{grid-template-columns:1fr}.actions{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.progress>span{transition:none}.spinner{animation-duration:1.4s}}

/* Capture-only application frame. Office pages keep their existing layout. */
.capture-page{height:100svh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.capture-page>.topbar{flex:none;padding-block:10px;min-height:54px}
.capture-page .brand img{width:120px;max-height:34px}
.capture-page>.footer{display:none}
.capture-page>.notice{flex:none;padding:5px 20px;font-size:.875rem}
.capture-page .capture-wrap{flex:1;width:100%;min-height:0;max-width:1440px;padding:14px 24px 16px;overflow:hidden}
.capture-page #capture:not([hidden]){height:100%;min-height:0;display:grid;grid-template-rows:auto 3px minmax(0,1fr) auto;gap:12px}
.capture-page .capture-head{margin:0;min-height:40px}
.capture-page .capture-head .row{gap:10px}
.capture-page .capture-heading{min-width:0;display:grid;gap:3px}
.capture-page #capture-title{font-size:clamp(1.15rem,2.3vw,1.5rem);line-height:1.2;letter-spacing:-.025em}
.capture-page .test-label{font-size:.875rem;color:var(--red-dark);font-weight:600}
.capture-page .progress{margin:0;height:3px}
.capture-page #step-content{min-height:0;overflow:auto;padding:20px}
.capture-page .capture-footer{position:static;margin:0;padding:0;border:0;background:transparent;min-height:48px;z-index:auto}
.capture-page .capture-footer .btn{padding-block:10px}
.capture-page .capture-footer #next-button{min-width:160px}
.capture-page #step-error:empty{display:none}
.capture-page #step-error:not(:empty){grid-row:4;margin:0!important;max-height:4.5em;overflow:auto}
.capture-page #capture:has(#step-error:not(:empty)){grid-template-rows:auto 3px minmax(0,1fr) auto auto}
.capture-page #upload-state:not([hidden]){margin:0;grid-row:4}
.capture-page #capture:has(#upload-state:not([hidden])){grid-template-rows:auto 3px minmax(0,1fr) auto auto}
.capture-page #capture:has(#upload-state:not([hidden])):has(#step-error:not(:empty)){grid-template-rows:auto 3px minmax(0,1fr) auto auto auto}
.capture-page #capture:has(#upload-state:not([hidden])) #step-error:not(:empty){grid-row:5}
.capture-page[data-step-type="photo"]>.topbar,.capture-page[data-step-type="multi"]>.topbar,.capture-page[data-step-type="video"]>.topbar,
.capture-page[data-step-type="photo"]>#preview-banner,.capture-page[data-step-type="multi"]>#preview-banner,.capture-page[data-step-type="video"]>#preview-banner{display:none}
.capture-page:is([data-step-type="photo"],[data-step-type="multi"],[data-step-type="video"]) #step-content{overflow:hidden;padding:16px}
.capture-page .capture-grid{height:100%;min-height:0;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:24px}
.capture-page .capture-grid>div{order:initial!important;min-height:0}
.capture-page .capture-preview{display:flex;min-height:0}
.capture-page #media-container{width:100%;height:100%;min-height:0}
.capture-page .preview-zone{height:100%;min-height:0;position:relative}
.capture-page .example-label{position:absolute;top:10px;left:10px;background:#fffffff0;border-radius:5px;padding:5px 9px;z-index:1;font-size:.875rem}
.capture-page .example{height:100%;min-height:0;object-fit:contain}
.capture-page .media-grid{max-height:none;overflow:auto;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start}
.capture-page .media-grid.media-single{grid-template-columns:1fr;display:flex}
.capture-page .media-single .media-tile{width:100%;height:100%;max-height:none;aspect-ratio:auto}
.capture-page .media-single .media-tile img{object-fit:contain}
.capture-page .capture-tools{display:flex;flex-direction:column;justify-content:center;gap:14px;min-width:0}
.capture-page .step-heading{margin:0 0 12px}
.capture-page .capture-tools .step-heading{margin:0;font-size:clamp(1.25rem,2.5vw,1.8rem)}
.capture-page .hint{padding:10px 12px;font-size:.9375rem;line-height:1.4}
.capture-page .actions{margin:0;gap:10px;grid-template-columns:1fr 1fr}
.capture-page .actions>:first-child{grid-column:1/-1}
.capture-page .actions .btn{padding:10px 12px;min-height:48px;font-size:.9375rem}
.capture-page .capture-count{display:none}
.capture-page .rotate-prompt{grid-row:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;min-height:0;padding:20px}
.capture-page .rotate-prompt svg{height:64px;width:64px;color:var(--red)}
.capture-page .rotate-prompt h1{font-size:1.5rem}
.capture-page .rotate-prompt p{color:var(--muted)}
.capture-page.needs-landscape #step-content,.capture-page.needs-landscape #next-button{display:none}
.capture-page[data-step-type="success"] .capture-wrap{overflow:auto}
@media(orientation:landscape) and (max-height:540px){
 .capture-page .capture-wrap{padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .capture-page #capture:not([hidden]){gap:8px}
 .capture-page .capture-head{min-height:36px}
 .capture-page .capture-head .btn{min-height:36px;padding:7px 12px}
 .capture-page .capture-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:16px}
 .capture-page:is([data-step-type="photo"],[data-step-type="multi"],[data-step-type="video"]) #step-content{padding:10px}
 .capture-page .capture-tools{gap:8px}
 .capture-page .capture-tools .step-heading{font-size:1.25rem}
 .capture-page .hint{font-size:.875rem;padding:7px 10px}
 .capture-page .actions{gap:8px}
 .capture-page .actions .btn{min-height:44px;padding:8px;font-size:.875rem}
 .capture-page .capture-footer,.capture-page .capture-footer .btn{min-height:44px}
}
@media(max-width:600px) and (orientation:portrait){
 .capture-page .capture-wrap{padding:12px}
 .capture-page .meta{grid-template-columns:1fr}
 .capture-page #step-content{padding:18px}
 .capture-page .fields{grid-template-columns:1fr}
}
/* With extreme text enlargement, prefer an accessible inner scroll area to clipping. */
@media(orientation:landscape) and (max-height:350px){.capture-page .capture-tools{gap:6px}.capture-page .actions{gap:6px}.capture-page .hint{padding:5px 8px}.capture-page .capture-count{display:none}}
@media(orientation:landscape) and (max-height:310px){.capture-page .capture-tools{overflow-y:auto;justify-content:flex-start}}
