:root{--blue:#1d4ed8;--amber-bg:#fef3c7;--amber-fg:#78350f;--red:#b91c1c;--green:#15803d;--grey:#4b5563;--line:#d1d5db;--text:#111827;color:var(--text);background:#fff;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:18px}*{box-sizing:border-box}body{margin:0}button{font:inherit}.screen{flex-direction:column;min-height:100dvh;display:flex}.header{border-bottom:1px solid var(--line);align-items:center;gap:8px;height:56px;padding:0 16px;display:flex}.header-brand{font-weight:700}.header-title{text-align:center;flex:1;margin:0;font-size:20px}.header-back{padding-left:0}.lang-switch{margin-left:auto;display:flex}.lang-btn{border:1px solid var(--line);min-width:48px;min-height:48px;color:var(--grey);background:#fff}.lang-btn.active{background:var(--blue);border-color:var(--blue);color:#fff}.content{flex-direction:column;flex:1;gap:12px;padding:16px;display:flex}.bottom{padding:16px 16px calc(16px + env(safe-area-inset-bottom));flex-direction:column;gap:12px;display:flex}.title{margin:0;font-size:24px}.lead{margin:0;font-size:22px}.field{flex-direction:column;gap:4px;display:flex}.field-label{font-weight:600}.input{border:2px solid var(--line);border-radius:8px;width:100%;height:56px;padding:0 12px;font-size:20px}.code-input{text-transform:uppercase;letter-spacing:.1em}.input-with-action{gap:8px;display:flex}.hint{color:var(--grey);font-size:16px}.hint.ok{color:var(--green)}.error{color:var(--red);margin:0}.note-amber{background:var(--amber-bg);color:var(--amber-fg);border-radius:8px;margin:0;padding:12px}.btn-primary,.btn-secondary{border-radius:10px;width:100%;font-weight:600}.btn-primary{background:var(--blue);color:#fff;border:none;min-height:64px;font-size:20px}.btn-primary:disabled{background:#9ca3af}.btn-secondary{border:2px solid var(--blue);min-height:56px;color:var(--blue);background:#fff}.btn-text{min-width:48px;min-height:48px;color:var(--blue);background:0 0;border:none;padding:0 8px}.card{border:1px solid var(--line);border-radius:10px;padding:16px}.card p{margin:0}.trip-number{font-size:24px;font-weight:700}.banner{text-align:left;background:var(--amber-bg);min-height:56px;color:var(--amber-fg);border:none;flex-direction:column;justify-content:center;padding:6px 16px;display:flex}.banner-title{align-items:center;gap:8px;font-weight:600;display:flex}.banner-sub{font-size:16px}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:16px;height:16px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.date-row{border:2px solid var(--line);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;height:56px;padding:0 12px;font-size:20px;display:flex}.sheet-backdrop{background:#0006;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:100%;max-height:85dvh;padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:#fff;border-radius:16px 16px 0 0;flex-direction:column;gap:8px;display:flex;overflow-y:auto}.sheet-text{margin:0}.sheet-row{border:1px solid var(--line);text-align:left;background:#fff;border-radius:8px;justify-content:space-between;align-items:center;min-height:56px;padding:0 12px;display:flex}.sheet-row.selected{border:2px solid var(--blue);font-weight:600}.toast{left:16px;right:16px;bottom:calc(160px + env(safe-area-inset-bottom));background:var(--green);color:#fff;text-align:center;border-radius:10px;justify-content:center;align-items:center;gap:12px;padding:14px 16px;display:flex;position:fixed}.toast-action{color:#fff;background:0 0;border:2px solid #fff;border-radius:8px;min-height:48px;padding:0 12px;font-weight:600}.card-amber{background:var(--amber-bg);color:var(--amber-fg);border-color:var(--amber-bg);flex-direction:column;gap:8px;display:flex}.card-button{text-align:left;width:100%}.card-title{font-weight:600}.check-photos{flex:1;gap:8px;min-height:30dvh;display:flex}.check-photos.large{flex:none;height:calc(100dvh - 333px);min-height:120px}.check-photos.large.offline{height:calc(100dvh - 397px)}.check-photos.large.with-banner{height:calc(100dvh - 389px)}.check-photos.large.offline.with-banner{height:calc(100dvh - 453px)}.tap-guard{pointer-events:none}.check-photos.compact{flex:none;width:50%;height:20dvh;min-height:0}.check-top{gap:12px;display:flex}.check-status{flex-direction:column;gap:8px;min-width:0;display:flex}.value-row{flex-wrap:wrap;gap:0 12px}.value-label{margin-right:auto;font-size:18px;font-weight:600}.sticky-bottom{border-top:1px solid var(--line);background:#fff;position:sticky;bottom:0}.check-photo{border:1px solid var(--line);background:#f3f4f6;border-radius:8px;flex:1;min-width:0;padding:0;position:relative;overflow:hidden}.check-photo img{object-fit:contain;width:100%;height:100%}.photo-number{background:var(--text);color:#fff;border-radius:14px;min-width:28px;padding:2px 6px;font-weight:600;position:absolute;top:4px;left:4px}.saved-line{color:var(--green);margin:0;font-weight:600}.chip{border:1px solid var(--line);border-radius:16px;align-self:flex-start;margin:0;padding:4px 12px}.chip-amber{background:var(--amber-bg);color:var(--amber-fg);border-color:var(--amber-bg)}.reading{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.value-row{text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;min-height:56px;padding:0;font-size:22px;display:flex}.value-row.amount{font-size:40px;font-weight:700}.amount-edit{gap:8px;display:flex}.amount-input{flex:1;height:64px;font-size:32px}.amount-input::placeholder{font-size:18px}.currency-select{background:#fff;width:auto;height:64px}.currency-other{text-transform:uppercase;width:120px}.add-photo{align-self:flex-start}.zoom{padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:#000;flex-direction:column;gap:12px;display:flex;position:fixed;inset:0;overflow:auto}.zoom img{object-fit:contain;touch-action:pinch-zoom;flex:1;width:100%;min-height:0}.attach-block{flex-direction:column;gap:8px;display:flex}.attach-receipt{align-items:center;gap:12px;display:flex}.attach-thumb{object-fit:cover;background:#f3f4f6;border-radius:6px;width:56px;height:56px}.attach-amount{font-weight:700}.attach-trip{justify-content:space-between;align-items:center;padding:0 12px;display:flex}.tag{background:var(--blue);color:#fff;border-radius:12px;padding:2px 8px;font-size:16px}.chip-red{background:var(--red);color:#fff;border-color:var(--red)}.chip-green{background:var(--green);color:#fff;border-color:var(--green)}.card-red{background:var(--red);color:#fff;border-color:var(--red);flex-direction:column;gap:8px;display:flex}.list-row{text-align:left;width:100%;min-height:72px;color:var(--text);background:#fff;align-items:center;gap:12px;display:flex}.list-row-main{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.list-row-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.trip-title{font-size:20px;font-weight:600}.chip-line{flex-wrap:wrap;gap:8px;display:flex}.chevron{color:var(--grey);font-size:28px}.note-line{margin:0}.note-block{flex-direction:column;gap:12px;display:flex}.note-block.full{flex:1;justify-content:center}.placeholder-row{min-height:72px;color:var(--grey);background:#f3f4f6}.receipt-card{flex-direction:column;gap:12px;display:flex}.receipt-row{width:100%;min-height:80px;color:var(--text);text-align:left;background:0 0;border:none;align-items:center;gap:12px;padding:0;display:flex}.receipt-row:disabled{color:var(--text)}.receipt-thumb{object-fit:cover;border-radius:6px;flex:none;width:64px;height:64px}.receipt-thumb.tile{color:var(--grey);background:#e5e7eb;justify-content:center;align-items:center;font-size:28px;display:flex}.receipt-main{flex-direction:column;flex:1;align-items:flex-start;gap:4px;min-width:0;display:flex}.receipt-main .hint{margin:0}.receipt-amount{font-size:22px;font-weight:700}.reason{border-left:4px solid var(--red);white-space:pre-line;overflow-wrap:anywhere;unicode-bidi:isolate;margin:0;padding-left:12px;font-size:16px}.receipt-card .hint{margin:0}.zoom.viewer img{flex:none;height:auto}.viewer-photo{color:#fff;flex-direction:column;gap:8px;margin:0;display:flex}.viewer-note{color:var(--text);background:#e5e7eb;border-radius:6px;align-items:center;gap:8px;margin:0;padding:8px 12px;display:flex}.viewer-close{flex:none;position:sticky;bottom:0}
