.upload,.footer,.buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.upload,.footer{justify-content:space-between}.upload{background:#eff7ee;border:1.5px dashed #83a98f}.upload p{margin:3px 0}.over{outline:3px solid #347459}.layout{display:grid;grid-template-columns:minmax(250px,.74fr) minmax(0,1.4fr);gap:18px;align-items:start}.layout label{display:block;font-weight:650;margin:14px 0 5px}.layout select,.layout input{display:block;width:100%;margin-top:5px}.hint,#caption{font-size:.9rem;color:#52665d}.review{min-width:0}#empty,#stage{background:#edf1ee;border-radius:10px;margin:12px 0;display:grid;place-items:center}#empty{min-height:210px;padding:20px;text-align:center}#stage{padding:12px}canvas{display:block;max-width:100%;width:auto;height:auto;max-height:360px;touch-action:none}#caption{margin:8px 0}.buttons button:disabled,button:disabled{opacity:.5;cursor:default}.footer{margin:0 0 40px;border-top:1px solid #ccdacf;padding:15px 0}#status{color:#225c45;margin:10px 0;white-space:pre-line}#zoom{accent-color:#17664c}.fields{margin:0}.fields label{margin:4px 0}@media(max-width:740px){.layout{grid-template-columns:1fr;gap:0}.upload{align-items:start}.buttons{gap:6px}}
#tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px;margin-top:12px;max-height:390px;overflow:auto;padding:3px}.tile{display:grid;text-align:left;gap:4px;padding:7px;min-width:0}.tile canvas{width:100%;height:100px;object-fit:contain;background:#eff2ee;border-radius:4px;touch-action:auto}.tile strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tile small{font-weight:500}.tile[aria-pressed=true]{outline:2px solid #207553;background:#f1f9ef}.tile[data-review=true] small{color:#865000}#filename{overflow-wrap:anywhere}.review canvas{max-height:440px}
.photoCard{min-width:0;border:1px solid #d4e1d6;border-radius:10px;overflow:hidden;background:white}.photoCard .tile{width:100%;border:0;border-radius:0}.photoCard:has(.tile[aria-pressed=true]){border-color:#17664c;box-shadow:inset 0 0 0 1px #17664c}.photoCard label{display:flex;align-items:center;gap:5px;padding:5px 8px;font-size:14px;cursor:pointer}.photoCard input{accent-color:#17664c}.navigation{margin:10px 0}.navigation span{font-variant-numeric:tabular-nums}.framing{margin-top:10px}
.zoomDock{display:inline-flex;align-items:center;gap:8px;padding:4px;background:white;border:1px solid #b7cbbd;border-radius:12px;margin-top:8px}.zoomDock button{font-size:22px;line-height:1;width:44px;height:40px;padding:0}.zoomDock output{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}

.photoNav{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center;justify-items:center}
.photoNav button{width:44px;height:44px;padding:0;border-radius:50%;font-size:28px;line-height:1}
@media(max-width:480px){#stage{padding:6px}.photoNav{gap:2px}}
