:root {
  --brand: #d4561e;
  --brand-dark: #a8430f;
  --brand-tint: #fff1e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f6f4f1; color: #1a1a1a; }
#topbar { position: sticky; top: 0; background: var(--brand); color: #fff; padding: env(safe-area-inset-top) 16px 12px; padding-top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
#topbar h1 { font-size: 17px; margin: 0; flex: 1; font-weight: 700; letter-spacing: 0.2px; }
#topbar button { background: transparent; color: #fff; border: 0; font-size: 22px; padding: 4px 8px; cursor: pointer; }
#brandLogo { width: 32px; height: 32px; border-radius: 6px; background: #fff; padding: 2px; object-fit: contain; }
.net { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.net.online { background: #1c7c3a; }
.net.offline { background: #4a1a05; }

main { padding: 12px; max-width: 800px; margin: 0 auto; padding-bottom: 80px; }
.view { display: block; }
.card { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.card h2, .card h3 { margin: 0 0 10px; }
label { display: block; font-size: 13px; color: #555; margin-bottom: 10px; }
label input, label select { display: block; width: 100%; padding: 10px; font-size: 16px; border: 1px solid #ccd; border-radius: 6px; margin-top: 4px; background: #fff; }
.row { display: flex; gap: 10px; }
.row label { flex: 1; }

button { font-size: 15px; padding: 11px 16px; border-radius: 8px; border: 1px solid #ccd; background: #fff; cursor: pointer; margin-right: 6px; font-weight: 600; }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.danger { background: #b42318; color: #fff; border-color: #b42318; }
button:disabled { opacity: 0.5; }

.muted { color: #667; font-size: 14px; }
.small { font-size: 12px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item { background: #fff; padding: 12px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.list-item .meta { font-size: 12px; color: #667; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.badge.done { background: #d1fadf; color: #1c7c3a; }
.badge.queued { background: #fee4cc; color: #b54708; }

.checklist-group { margin-bottom: 14px; }
.checklist-group h4 { margin: 14px 4px 8px; color: #333; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.shot { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shot .thumb { width: 56px; height: 56px; background: #eee; border-radius: 6px; flex-shrink: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #aab; font-size: 24px; }
.shot .info { flex: 1; min-width: 0; }
.shot .info .name { font-weight: 600; }
.shot .info .desc { font-size: 12px; color: #667; }
.shot.required .name::after { content: " *"; color: #b42318; }
.shot.captured { border-left: 4px solid #1c7c3a; }
.shot button { padding: 8px 12px; font-size: 13px; }

.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #fff; padding: 10px 16px; border-radius: 20px; z-index: 100; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.toast.show { opacity: 1; }

#queueStatus { margin-bottom: 8px; }
.queue-item { font-size: 13px; padding: 6px 0; border-bottom: 1px solid #eef; }
.queue-item:last-child { border-bottom: 0; }
