:root { --bg: #f6f5f1; --card: #fff; --text: #1c1f1a; --muted: #62685e; --line: #d6d8cf; --accent: #2f6b3a; --accent-text: #fff; --error: #a32a1d; --ok: #2f6b3a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.35 -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 520px; margin: 0 auto; padding: 16px 16px 96px; }
section { display: flex; flex-direction: column; gap: 12px; }
section[hidden], [hidden] { display: none !important; }
h1 { font-size: 22px; margin: 4px 0; overflow-wrap: anywhere; }
h2 { font-size: 16px; margin: 12px 0 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
input, select, button { font: inherit; min-height: 48px; border-radius: 8px; border: 1px solid var(--line); padding: 10px 12px; background: var(--card); color: var(--text); width: 100%; }
button { cursor: pointer; font-weight: 600; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button:disabled { opacity: .5; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
.row button { width: auto; flex: none; }
.steps button { flex: 1; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bar button { width: auto; flex: none; }
.muted { color: var(--muted); font-size: 15px; }
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#recent li { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 6px 12px; }
#recent .what { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
#recent button { width: auto; flex: none; font-size: 14px; min-height: 40px; }
.picks button { text-align: left; font-weight: 400; }
#message { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 496px; margin: 0 auto; padding: 12px 14px; border-radius: 8px; background: var(--ok); color: #fff; }
#message.error { background: var(--error); }
#status { position: sticky; top: 0; z-index: 2; padding: 8px 16px; font-size: 15px; font-weight: 600; text-align: center; background: var(--ok); color: #fff; }
#status.wait { background: #8a5a00; }
#status.bad { background: var(--error); cursor: pointer; }
.note { margin: 0; padding: 10px 12px; border-radius: 8px; background: #e7efe2; font-size: 15px; }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
button.link { border: 0; background: none; color: var(--accent); text-decoration: underline; font-weight: 400; }
#recent .who { display: block; color: var(--muted); font-size: 13px; }
.pick-details { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#suggest:empty, #zones:empty { display: none; }
.note.warn { background: #f6e7d2; }
.bar-title { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.place-photo { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 8px; cursor: pointer; }
.zone-list button { display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 400; padding: 8px; }
.zone-list .zone-photo { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 6px; background: var(--line); }
.zone-list .zone-text { min-width: 0; overflow-wrap: anywhere; }
.zone-list strong { display: block; font-size: 17px; }
.zone-list .zone-now { color: var(--accent); font-weight: 600; }
.zone-list .zone-done { color: var(--muted); }
button.danger-outline { border-color: var(--error); color: var(--error); background: var(--card); }
.block { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.block h2 { margin: 0; }
.req { color: var(--error); font-size: 13px; font-weight: 400; }
.file-button { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font-size: 17px; font-weight: 600; cursor: pointer; }
.file-button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.file-button.off { opacity: .5; pointer-events: none; }
.file-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; overflow: hidden; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 96px; height: 96px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.thumb button { position: absolute; top: 2px; right: 2px; width: 32px; min-height: 32px; height: 32px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); border: 0; color: #fff; font-size: 18px; line-height: 1; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 16px; min-height: 40px; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; }
#viewer img { width: 100%; border-radius: 8px; display: block; }
#camera-box { display: flex; flex-direction: column; gap: 8px; }
#camera-box p { margin: 0; }
.camera-view { position: relative; overflow: hidden; border-radius: 8px; background: #000; }
.camera-view video { display: block; width: 100%; max-height: 45vh; object-fit: cover; }
.camera-view::after { content: ""; position: absolute; left: 6%; right: 6%; top: 25%; bottom: 25%; border: 3px solid #fff; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
#price-note { margin: -6px 0 0; }
#price-note.changed { color: #8a5a00; font-weight: 600; }
.zone-list li { display: flex; flex-direction: column; gap: 4px; }
.zone-list button.zone-action { justify-content: center; min-height: 40px; padding: 6px 12px; font-size: 15px; font-weight: 600; }
.zone-list button.zone-action.danger-outline { background: var(--card); }
#recent .buttons, #voided .buttons { display: flex; flex-direction: column; gap: 4px; flex: none; }
#voided li { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 6px 12px; }
#voided .what { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; color: var(--muted); text-decoration: line-through; }
#voided .who { display: block; font-size: 13px; text-decoration: none; }
#voided button { width: auto; flex: none; font-size: 14px; min-height: 40px; }
#voided-box summary { padding: 10px 0; font-size: 15px; color: var(--muted); cursor: pointer; }
#voided-box ul { margin-top: 6px; }
