: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; }
video { width: 100%; max-height: 42vh; background: #000; border-radius: 8px; object-fit: cover; display: block; margin-bottom: 8px; }
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; }
#camera-box { display: flex; flex-direction: column; gap: 8px; }
#camera-box p { margin: 0; }
.camera-view { position: relative; overflow: hidden; border-radius: 8px; }
.camera-view video { margin: 0; }
.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; }
.pick-details { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#suggest:empty { display: none; }
