/* Photo-first capture and contact review. */
[hidden]{display:none!important}
.capture-layout,.review-layout{max-width:1160px;margin:auto}
.capture-layout .back,.review-layout .back{margin-bottom:20px}
.capture-steps{list-style:none;display:flex;gap:0;padding:0;margin:0 0 32px;font-size:.83rem;color:#78857c}
.capture-steps li{display:flex;align-items:center;gap:9px}
.capture-steps li+li:before{content:"";width:54px;height:1px;background:#cbd5ca;margin:0 18px}
.capture-steps li>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d4ddd0;border-radius:50%;font-size:.75rem}
.capture-steps .current{color:var(--ink);font-weight:650}.capture-steps .current>span{background:var(--dark);border-color:var(--dark);color:#fff}
.capture-steps .complete>span{background:#e5f1d4;border-color:#e5f1d4;color:#356020}
.capture-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}
.capture-heading .eyebrow{margin-bottom:12px}.capture-heading h1{font-size:clamp(1.9rem,3.6vw,2.9rem);letter-spacing:-.055em}
.capture-heading p{margin-top:12px;max-width:510px;font-size:.94rem}.event-pill{display:inline-flex;align-items:center;gap:10px;border:1px solid #d3ddcc;background:#edf3e7;padding:11px 15px;border-radius:30px;font-size:.82rem;max-width:280px;overflow-wrap:anywhere}
.capture-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr);gap:36px;align-items:start}
.capture-photo-panel{background:white;border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 8px 32px #17332d05;min-width:0}
.photo-stage{min-height:370px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:30px 20px;background:#eef2e9;border-radius:12px;text-align:center;position:relative;overflow:hidden}
.photo-stage h2{font-size:1.35rem}.photo-stage p{font-size:.87rem;max-width:280px}.badge-outline{width:146px;height:182px;border:2px solid #b3c3a8;background:#fafcf7;border-radius:14px;display:flex;flex-direction:column;align-items:center;padding:12px 22px;gap:12px;transform:rotate(-6deg);box-shadow:8px 10px 0 #dce5d3;margin-bottom:16px}
.badge-slot{height:6px;width:42px;border-radius:9px;background:#d1dcc8}.badge-outline svg{height:47px;width:47px;color:#5d7952;margin:10px 0}.badge-outline>span{height:7px;width:90%;border-radius:4px;background:#d9e2d2}.badge-outline>span:last-child{width:62%}
.button svg,.reference-icon svg{width:20px;height:20px;flex-shrink:0}.capture-message{padding:16px 8px 4px;text-align:center;font-size:.83rem;line-height:1.55;min-height:49px;color:var(--muted)}
.capture-message.error-text{color:#a13535}.capture-photo-actions{display:flex;gap:10px;padding:12px 4px 4px}.capture-photo-actions>.button{flex:1}
.capture-preview{display:block;width:100%;height:365px;object-fit:contain;border-radius:8px}.photo-stage:has(.capture-preview){padding:14px}.photo-ready{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);background:#fff;padding:8px 14px;border-radius:20px;font-size:.75rem;font-weight:650;box-shadow:0 3px 16px #0001;white-space:nowrap}
.reading:after{content:"";position:absolute;left:10%;right:10%;height:2px;top:20%;background:#97c660;box-shadow:0 0 20px 4px #b9de8580;animation:read-badge 2.5s ease-in-out infinite alternate}
@keyframes read-badge{to{top:80%}}
.capture-guide{padding:24px 0}.capture-guide h2{font-size:1.65rem;line-height:1.25;margin:15px 0 25px;max-width:270px}.photo-tips{list-style:none;margin:0;padding:0;display:grid;gap:24px}.photo-tips li{display:flex;gap:15px}.photo-tips li>span{font-size:.72rem;letter-spacing:.06em;color:#728666;padding-top:3px}.photo-tips strong{font-size:.9rem}.photo-tips p{font-size:.83rem;margin-top:5px;max-width:300px}
.capture-next{border-top:1px solid var(--line);margin-top:28px;padding-top:24px;display:grid;gap:12px}.capture-next>.button{width:100%}.capture-next>p{font-size:.76rem;text-align:center}.capture-next .lime{min-height:54px}
.review-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.8fr);align-items:start;gap:28px}.contact-panel{padding:28px}.panel-heading{display:flex;justify-content:space-between;gap:20px;margin-bottom:22px}.panel-heading h2{font-size:1.3rem}.panel-heading p{margin-top:8px;font-size:.85rem}.contact-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#edf3e5;color:#668344;flex:none;font-size:1.4rem}
.contact-panel .form-grid{grid-template-columns:1fr 1fr;gap:21px 18px}.contact-panel .span-2{grid-column:1/-1}.field-label{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap}.field-origin{font-size:.63rem;color:#527333;background:#ecf4df;border-radius:4px;padding:3px 5px;font-weight:600}.optional{font-size:.73rem;font-weight:400;color:#7c887f}.contact-panel input.suggested{background:#fbfdf7;border-color:#b5cba0}.contact-panel input,.contact-panel select,.contact-panel textarea{font-size:1rem}
.review-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:22px;margin-top:24px;border-top:1px solid var(--line);position:sticky;bottom:0;background:#fff;z-index:3;padding-bottom:8px}.review-actions .button{padding:13px 12px;white-space:normal;text-align:center}.delete-contact{margin:14px 0 -8px;padding-left:0;font-size:.78rem;color:#8c756c}
.badge-reference{margin:0;padding:0;overflow:hidden}.badge-reference>summary{padding:22px;display:flex;align-items:center;gap:12px;list-style:none}.badge-reference>summary::-webkit-details-marker{display:none}.badge-reference summary strong{font-size:.91rem;display:block}.badge-reference summary small{display:block;margin-top:3px}.reference-icon{background:#edf2e6;border-radius:9px;padding:10px;display:flex;color:#627952}.expand-icon{margin-left:auto;color:#7e9073}.badge-reference[open] .expand-icon{transform:rotate(180deg)}.reference-body{padding:0 20px 20px}.reference-body .badge-photo{max-height:330px}.reference-upload{padding-top:18px}.reference-upload h3{font-size:.85rem;margin-bottom:8px}.reference-upload p{font-size:.8rem;margin-bottom:10px}.reference-upload small{display:block;margin-top:10px}.reference-upload .button{font-size:.8rem;padding:11px}.review-hint{display:flex;gap:12px;padding:22px 12px}.review-hint>span{font-size:1.6rem;color:#7c9169}.review-hint strong{font-size:.82rem;font-weight:600}.review-hint p{font-size:.79rem;margin-top:6px}.review-layout #validation{margin-top:14px}
@media(max-width:1100px){.capture-workspace{gap:22px;grid-template-columns:1.1fr .9fr}.review-grid{grid-template-columns:minmax(0,1fr)}.review-reference{grid-row:1}.review-hint{display:none}.review-reference .photo-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.contact-panel{padding:24px}}
@media(max-width:760px){
  .sidebar{padding:9px 14px;gap:0}.sidebar>div>.eyebrow{display:none}.nav button{min-height:44px;font-size:.8rem}.topbar{padding:12px 18px}.top-right .avatar,.top-right .pilot{display:none}.main{padding:24px 16px 35px}
  .main h1{font-size:2rem}.page-head .eyebrow{display:none}.page-head .actions .button{flex:1}.event-banner{border-radius:16px;padding:22px}.event-banner h2{overflow-wrap:anywhere}.stats .stat{padding:16px 10px}.stat-label{min-height:30px;font-size:.72rem}.stat strong{margin-top:5px}
  .capture-steps{margin-bottom:25px;font-size:.78rem}.capture-steps li+li:before{width:28px;margin:0 12px}.capture-heading{display:block;margin-bottom:24px}.capture-heading p{font-size:.88rem}.event-pill{margin-top:16px;max-width:100%;font-size:.76rem;padding:9px 12px}
  .capture-workspace{display:flex;flex-direction:column;gap:0}.capture-photo-panel{width:100%;padding:12px;border-radius:16px}.photo-stage{min-height:295px;padding:24px 14px}.badge-outline{width:115px;height:142px;gap:8px;padding:10px 16px}.badge-outline svg{height:34px;width:34px;margin:6px 0}.photo-stage h2{font-size:1.2rem}.photo-stage p{font-size:.8rem}.capture-preview{height:300px}.capture-photo-actions{gap:8px}.capture-photo-actions .button{font-size:.81rem;padding:12px 10px;gap:8px}
  .capture-guide{width:100%;padding:0;display:flex;flex-direction:column}.capture-guide>.eyebrow,.capture-guide>h2{display:none}.capture-next{order:-1;padding:20px 0;margin:0;border-top:0}.photo-tips{padding-top:14px;border-top:1px solid var(--line);gap:16px}.photo-tips p{max-width:none}.photo-tips li:last-child{display:none}
  .review-grid{gap:18px}.review-reference{grid-row:1}.badge-reference>summary{padding:16px}.review-layout .capture-heading>.status{margin-top:14px}.contact-panel{padding:20px 16px 12px}.panel-heading p{font-size:.81rem}.panel-heading .contact-mark{display:none}.contact-panel .form-grid{grid-template-columns:1fr;gap:18px}.contact-panel .span-2{grid-column:auto}.review-actions{display:grid;grid-template-columns:1fr 1fr;margin:24px -16px 0;padding:14px 16px max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 16px #17332d07}.review-actions .primary{grid-column:2;grid-row:1}.review-actions .secondary{grid-column:1;grid-row:1}.review-actions .ghost{grid-column:1/-1;min-height:36px;padding:6px}.contact-panel input,.contact-panel select,.contact-panel textarea{min-height:50px}
  #toast{bottom:20px;font-size:.83rem}.admin-grid{grid-template-columns:minmax(0,1fr)}.admin-company{flex-wrap:wrap}.footnote{flex-wrap:wrap}.table-card td{padding:14px 10px}.table-card td:nth-child(2){max-width:100px;overflow-wrap:anywhere}.name-button strong{overflow-wrap:anywhere}.table-card .initial{display:none}
}
@media(prefers-reduced-motion:reduce){.reading:after{animation:none}}

@media(max-width:760px){.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.capture-layout .back{margin-bottom:12px}.capture-layout .capture-steps{margin-bottom:18px}.capture-layout .capture-heading .eyebrow{display:none}.capture-layout .capture-heading h1{font-size:1.8rem}.capture-layout .capture-heading p{margin-top:8px}.capture-layout .capture-heading{margin-bottom:18px}.capture-layout .event-pill{margin-top:12px}.photo-stage:not(:has(.capture-preview)){min-height:235px;padding:16px 14px;gap:10px}.photo-stage .badge-outline{height:110px;width:90px;padding:9px 12px;gap:6px;margin-bottom:8px}.photo-stage .badge-outline svg{height:28px;width:28px;margin:2px 0}.photo-stage h2{font-size:1.1rem}.capture-message{padding-top:12px;min-height:40px}.capture-photo-actions{padding-top:10px}}
