/* ===== Identificar fotos sem nome (feed), passo a passo, festa, aprovação e painel ===== */
.hero-fotos {
  grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #7d3c98, #c0392b 55%, #e3b25d);
}
.hero-fotos .hero-icon { margin-bottom: 0; flex-shrink: 0; }
.hero-fotos strong { margin-top: 0; font-size: 1.05rem; }
.hero-fotos .fp-hero-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fp-hero-badge {
  position: absolute; top: 10px; right: 12px; z-index: 2; background: #fff; color: #c0392b;
  font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 3px 9px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.fp-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.fp-top h2 { font-size: 1.2rem; color: var(--text); }
.fp-top p { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.seg { display: flex; background: var(--card2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-btn { flex: 1; padding: 9px 6px; border-radius: 9px; background: transparent; font-size: .8rem; font-weight: 600; color: var(--muted); }
.seg-btn.active { background: var(--card); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.seg-btn b { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .7rem; }

.fp-feed { display: flex; flex-direction: column; gap: 16px; }
.fp-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 70px; }
.fp-card.fp-just { animation: fp-glow 1.6s ease; }
@keyframes fp-glow { 0% { box-shadow: 0 0 0 4px rgba(211,157,69,.8); } 100% { box-shadow: var(--shadow); } }
.fp-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.fp-ava { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e3b25d, #c0392b); font-size: 1.05rem; flex-shrink: 0; }
.fp-who { flex: 1; min-width: 0; }
.fp-who strong { display: block; font-size: .9rem; }
.fp-who small { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-tag { font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.fp-tag.open { background: #fde8e6; color: #c0392b; }
.fp-tag.pend { background: #fff4e0; color: #b9832d; }
.fp-photo { display: block; width: 100%; padding: 0; border-radius: 0; background: #fff; position: relative; aspect-ratio: 1 / 1; }
.fp-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fp-zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 5px 10px; border-radius: 999px; }
.fp-body { padding: 12px 14px 14px; }
.fp-hint { font-size: .8rem; color: var(--muted); margin-bottom: 4px; line-height: 1.4; }
.fp-know { margin-top: 8px; font-size: 1rem; letter-spacing: .02em; text-transform: none; border-radius: 14px; }
.fp-pend { background: #fff8ec; border: 1px solid #f1d8a8; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
[data-theme="dark"] .fp-pend { background: #2c2a1e; border-color: #5a4b25; }
.fp-pend-top { font-size: .8rem; display: flex; gap: 6px; }
.fp-pend-name { font-weight: 700; font-size: .98rem; }
.fp-pend-name small { font-weight: 600; color: var(--muted); font-size: .76rem; margin-left: 4px; }
.fp-pend small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.fp-pend-wait { color: #b9832d !important; font-weight: 600; }
.fp-more { width: 100%; margin-top: 14px; }
.fp-empty { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.fp-empty div { font-size: 2.6rem; }
.fp-empty strong { color: var(--text); }
.fp-mine { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.fp-mine img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 10px; flex-shrink: 0; }
.fp-mine > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-mine strong { font-size: .9rem; }
.fp-mine small { color: var(--muted); font-size: .74rem; }
.fp-st { font-size: .76rem; font-weight: 700; align-self: flex-start; padding: 3px 8px; border-radius: 999px; }
.fp-st.pend { background: #fff4e0; color: #b9832d; }
.fp-st.ok { background: #e3f5ee; color: #1d6151; }
.fp-st.no { background: #fde8e6; color: #c0392b; }
.fp-why { color: #c0392b !important; }

/* zoom */
.fp-zoom-ov { position: fixed; inset: 0; z-index: 1200; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.fp-zoom-ov img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; touch-action: none; user-select: none; -webkit-user-drag: none; }
.fp-zoom-bar { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 12px; }
.fp-zoom-bar button { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.5rem; padding: 0; }
.fp-zoom-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.fp-zoom-help { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 16px; color: rgba(255,255,255,.7); font-size: .76rem; }

/* passo a passo */
.fp-wiz { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; flex-direction: column; animation: fp-up .22s ease; }
@keyframes fp-up { from { transform: translateY(24px); opacity: 0; } }
.fp-wiz-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--border); background: var(--card); }
.fp-wiz-top button { padding: 9px 12px; font-size: .86rem; font-weight: 600; }
.fp-wiz-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--border); cursor: zoom-in; }
.fp-dots { flex: 1; display: flex; gap: 6px; justify-content: center; }
.fp-dots span { width: 26px; height: 5px; border-radius: 3px; background: var(--card2); }
.fp-dots span.on { background: var(--accent); }
.fp-wiz-body { flex: 1; overflow-y: auto; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; }
.fp-q { font-size: 1.35rem; line-height: 1.2; color: var(--text); }
.fp-sub { color: var(--muted); font-size: .88rem; margin: 6px 0 14px; line-height: 1.4; }
.fp-input { font-size: 1.02rem; padding: 14px; width: 100%; }
.fp-label { display: block; font-size: .8rem; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.fp-tip { color: var(--muted); font-size: .84rem; padding: 10px 2px; }
.fp-results { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fp-res { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.fp-res img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; flex-shrink: 0; }
.fp-res span:nth-child(2) { flex: 1; min-width: 0; }
.fp-res strong { display: block; font-size: .9rem; line-height: 1.3; }
.fp-res small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.fp-go { font-size: 1.5rem; color: var(--muted); }
.fp-new { width: 100%; margin-top: 16px; padding: 15px; border: 2px dashed var(--accent); background: transparent; color: var(--text); font-weight: 700; border-radius: 14px; }
.fp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fp-compare figure { margin: 0; }
.fp-compare button { width: 100%; padding: 0; aspect-ratio: 1; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.fp-compare img { width: 100%; height: 100%; object-fit: contain; }
.fp-compare figcaption { font-size: .78rem; text-align: center; margin-top: 6px; font-weight: 600; line-height: 1.3; }
.fp-compare figcaption small { display: block; color: var(--muted); font-weight: 400; }
.fp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fp-cat { padding: 16px 10px; font-weight: 700; font-size: .9rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.fp-cat.on, .fp-cat:active { border-color: var(--accent); background: #fff4e0; }
.fp-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fp-shape { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; background: var(--card); border: 2px solid var(--border); border-radius: 16px; font-weight: 700; font-size: .84rem; }
.fp-shape svg { width: 46px; height: 46px; fill: none; stroke: var(--text); stroke-width: 2.4; }
.fp-shape.on { border-color: var(--accent); background: #fff4e0; }
.fp-shape.on svg { fill: rgba(211,157,69,.35); stroke: #b9832d; }
.fp-sizes { margin-top: 10px; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-chip { padding: 9px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .84rem; }
.fp-chip.on { background: #31404b; color: #fff; border-color: #31404b; }
.fp-add { display: flex; gap: 8px; margin-top: 8px; }
.fp-add input { flex: 1; min-width: 0; }
.fp-review { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.fp-review img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 12px; flex-shrink: 0; }
.fp-review > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fp-review strong { font-size: 1rem; line-height: 1.3; }
.fp-review small { color: var(--muted); font-size: .8rem; }

/* festa */
.fp-party-ov { z-index: 1300; }
.fp-party-name { font-weight: 700; margin-top: 10px; font-size: .95rem; background: var(--card2); border-radius: 12px; padding: 10px; }

/* aprovação */
.apr-list { display: flex; flex-direction: column; gap: 14px; }
.apr-card { display: flex; flex-direction: column; gap: 8px; }
.apr-top { display: flex; gap: 8px; }
.apr-photo { flex: 1; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 260px; position: relative; }
.apr-photo img { width: 100%; height: 100%; object-fit: contain; }
.apr-photo small { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; padding: 2px 7px; border-radius: 999px; }
.apr-who { font-size: .8rem; color: var(--muted); }
.apr-what { font-size: .92rem; line-height: 1.4; }
.apr-what small { color: var(--muted); }
.apr-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e7eef4; color: #31404b; margin-right: 4px; }
.apr-badge.new { background: #fff4e0; color: #b9832d; }
.apr-opts { display: flex; gap: 14px; font-size: .84rem; }
.apr-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.apr-pub { font-size: .84rem; display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.apr-tec, .apr-obs { font-size: .82rem; background: var(--card2); border-radius: 10px; padding: 8px 10px; }
.apr-actions { display: flex; gap: 10px; }
.apr-actions button { flex: 1; padding: 13px; }
.apr-reject { display: flex; flex-direction: column; gap: 8px; }
.apr-ok { font-size: .9rem; font-weight: 600; padding: 6px 2px; }
.apr-done { opacity: .85; }

/* painel */
.pn-sec { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.pn-sec h3 { font-size: 1rem; }
.pn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.pn-stats div { background: var(--card2); border-radius: 12px; padding: 10px 4px; }
.pn-stats strong { display: block; font-size: 1.2rem; }
.pn-stats small { color: var(--muted); font-size: .7rem; }
.pn-row { display: flex; gap: 8px; }
.pn-row input { flex: 1; min-width: 0; }
.pn-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pn-table th, .pn-table td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.pn-table th { color: var(--muted); font-weight: 600; font-size: .74rem; }
.pn-users { display: flex; flex-direction: column; gap: 8px; }
.pn-user { border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pn-user.off { opacity: .55; }
.pn-u-top strong { display: block; font-size: .9rem; }
.pn-u-top small { color: var(--muted); font-size: .74rem; }
.pn-u-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pn-u-row select { flex: 1; min-width: 120px; padding: 9px; }
.pn-u-row button { padding: 9px 10px; font-size: .78rem; }
.pn-msg { font-size: .78rem; color: var(--muted); }
.pn-new summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
@media (max-width: 420px) { .pn-stats { grid-template-columns: repeat(2, 1fr); } }

.fp-sug-title { margin-top: 20px; }
.fp-pct { font-size: .74rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.fp-pct.hi { background: #e3f5ee; color: #1d6151; }
.fp-pct.mid { background: #fff4e0; color: #b9832d; }

.fp-card.fp-out { transition: opacity .4s, transform .4s; opacity: 0; transform: translateX(40px) scale(.96); }

/* foto grande no alto do passo a passo (tocar = zoom) */
.fp-wiz-photo { position: relative; display: block; width: 100%; height: 34vh; min-height: 200px; padding: 0; border-radius: 0; background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.fp-wiz-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.fp-wiz-photo span { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 5px 10px; border-radius: 999px; }
.fp-wiz-thumb { display: none; }
@media (min-height: 900px) { .fp-wiz-photo { height: 40vh; } }

/* catálogo atualizado no site */
.site-sync { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: #e7eef4; border: 1px solid #c9d6e0; }
.site-sync > span { flex: 1; min-width: 0; font-size: .86rem; }
.site-sync small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.site-sync button { padding: 10px 14px; font-size: .74rem; flex-shrink: 0; }
[data-theme="dark"] .site-sync { background: #1e2a3a; border-color: #2c3e55; }

/* aprovar ali mesmo */
.fp-pend-act { display: flex; gap: 8px; margin-top: 8px; }
.fp-pend-act button { flex: 1; padding: 11px 8px; font-size: .78rem; }
.fp-pend-act .primary { flex: 1.6; }
.fp-pend-msg { color: #c0392b; font-size: .76rem; }
.fp-pend-msg:empty { display: none; }
.apr-all { display: flex; flex-direction: column; gap: 6px; }
.apr-all-msg { font-size: .84rem; font-weight: 600; }

/* fotos novas chegando · tela só online */
.fp-new { width: 100%; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); animation: fp-glow 1.6s ease; }
.fp-offline { padding: 18px 16px; border-radius: 16px; background: var(--card2); border: 1px dashed var(--border); text-align: center; font-size: .9rem; }
.fp-offline small { display: block; color: var(--muted); margin-top: 6px; font-size: .78rem; line-height: 1.4; }
/* painel: equipe por unidade, cadastro */
.pn-group { margin: 14px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pn-group small { font-weight: 400; margin-left: 4px; }
.pn-user.locked { opacity: .8; }
.pn-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--card2); font-size: .74rem; color: var(--muted); }
.pn-check { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; margin: 10px 0; }
textarea.search-input { width: 100%; resize: vertical; font-family: inherit; }

/* várias respostas para a mesma foto */
.fp-tag.many { background: #e8f1fb; color: #2563eb; }
.apr-others { font-size: .8rem; line-height: 1.4; }
.apr-others .ok { color: #15803d; font-weight: 600; }
.apr-others .no { color: #b91c1c; font-weight: 600; }
.fp-tag.dup { background: #ede9fe; color: #6d28d9; }

.pn-check input { margin-top: 3px; flex: none; }
.pn-wait { border: 2px solid #f0b429; }

/* painel: atividade da equipe */
.pn-tablewrap { overflow-x: auto; }
.pn-act-table th small { font-weight: 400; color: var(--muted); }
.pn-act-table td small { color: var(--muted); }
.pn-feed { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.pn-feed li { display: flex; gap: 8px; align-items: baseline; font-size: .84rem; line-height: 1.35; }
.pn-feed li > span:nth-child(2) { flex: 1; min-width: 0; }
.pn-feed small { color: var(--muted); white-space: nowrap; }
.pn-feed-ic { flex: none; }

/* fotos da equipe */
.fe-filters { flex-wrap: wrap; }
.fe-filters select { flex: 1; min-width: 150px; }
.fe-list { display: flex; flex-direction: column; gap: 12px; }
.fe-card { background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: 14px; padding: 12px; }
.fe-card.ok { border-left-color: #22c55e; } .fe-card.warn { border-left-color: #f59e0b; } .fe-card.bad { border-left-color: #ef4444; } .fe-card.ia { border-left-color: #7a3cff; } .fe-card.mute { border-left-color: #9ca3af; }
.fe-head { display: flex; gap: 12px; align-items: flex-start; }
.fe-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: #000; flex: none; cursor: zoom-in; }
.fe-nofoto { display: flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; background: #6b7280; }
.fe-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fe-meta small { color: var(--muted); font-size: .76rem; }
.fe-status { font-size: .8rem; font-weight: 700; }
.fe-status.ok { color: #15803d; } .fe-status.warn { color: #b45309; } .fe-status.bad { color: #b91c1c; } .fe-status.ia { color: #6d28d9; } .fe-status.mute { color: var(--muted); }
[data-theme="dark"] .fe-status.ok { color: #4ade80; } [data-theme="dark"] .fe-status.warn { color: #fbbf24; } [data-theme="dark"] .fe-status.bad { color: #f87171; } [data-theme="dark"] .fe-status.ia { color: #c4b5fd; }
.fe-sugs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.fe-sugs figure { flex: none; width: 86px; text-align: center; border: 2px solid transparent; border-radius: 10px; padding: 4px; }
.fe-sugs figure.chosen { border-color: #22c55e; background: rgba(34, 197, 94, .1); }
.fe-sugs img { width: 70px; height: 70px; object-fit: contain; background: #fff; border-radius: 8px; cursor: zoom-in; }
.fe-sugs figcaption { font-size: .66rem; color: var(--muted); line-height: 1.25; margin-top: 3px; }
.fe-chosen { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .84rem; }
.fe-chosen img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 6px; }
.fe-itens { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.fe-itens li { display: flex; gap: 8px; align-items: center; }
.fe-itens img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #000; flex: none; cursor: zoom-in; }
.fe-itens span { display: flex; flex-direction: column; min-width: 0; font-size: .82rem; }
.fe-itens small { color: var(--muted); font-size: .74rem; }
.fe-open { margin-top: 8px; }
.fe-err { margin-top: 8px; color: #b91c1c; font-size: .82rem; }
html.desktop .fe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); align-items: start; }

/* equipe (tabela) e ficha do usuário */
.eq-table tr[data-u] { cursor: pointer; }
.eq-table tr[data-u]:hover td { background: var(--card2); }
.eq-table tr.off td { opacity: .55; }
.eq-table th small { font-weight: 400; color: var(--muted); }
.eq-table td small { color: var(--muted); }
.us-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.us-id { display: flex; flex-direction: column; gap: 3px; }
.us-id strong { font-size: 1.15rem; }
.us-id small { color: var(--muted); font-size: .8rem; }
.us-stats { margin-bottom: 8px; grid-template-columns: repeat(4, 1fr); }
.us-tabs { margin: 10px 0; }
.us-tab { margin-top: 0; }
.us-linha { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.us-linha li { display: flex; gap: 10px; align-items: baseline; font-size: .84rem; line-height: 1.35; }
.us-linha small { color: var(--muted); white-space: nowrap; font-size: .72rem; min-width: 92px; }
.us-top { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.us-top li { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; border-bottom: 1px dashed var(--border); padding: 4px 0; }
.us-top b { color: var(--muted); }
.us-dias { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.us-dias li { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.us-dias small { min-width: 56px; color: var(--muted); }
.us-dias i { display: block; height: 10px; border-radius: 5px; background: var(--accent); min-width: 2px; }
.us-dias b { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .us-stats { grid-template-columns: repeat(2, 1fr); } }

/* fotos de uma pessoa: galeria por dia */
.fu-titulo { flex: 1; min-width: 0; }
.fu-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fu-chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .8rem; color: var(--text); }
.fu-chip b { color: var(--muted); font-weight: 600; margin-left: 2px; }
.fu-chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.fu-chip.active b { color: rgba(255, 255, 255, .8); }
.fu-dia { margin: 16px 0 8px; font-size: .95rem; }
.fu-dia small { color: var(--muted); font-weight: 400; }
.fu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.fu-item { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #000; padding: 0; border: 3px solid transparent; }
.fu-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fu-item.ok { border-color: #22c55e; } .fu-item.warn { border-color: #f59e0b; } .fu-item.bad { border-color: #ef4444; } .fu-item.ia { border-color: #7a3cff; } .fu-item.mute { border-color: #d1d5db; }
.fu-nofoto { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-size: .72rem; background: #6b7280; }
.fu-badge { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; color: #fff; background: #9ca3af; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.fu-badge.ok { background: #22c55e; } .fu-badge.warn { background: #f59e0b; } .fu-badge.bad { background: #ef4444; } .fu-badge.ia { background: #7a3cff; }
.fu-hora { position: absolute; top: 5px; right: 5px; font-size: .66rem; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 6px; border-radius: 8px; }
.fu-nome { position: absolute; left: 0; right: 0; bottom: 0; font-size: .64rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); padding: 14px 6px 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-sheet { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.fu-sheet-card { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 18px 18px 0 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); }
.fu-close { margin-bottom: 10px; }
html.desktop .fu-sheet { align-items: center; }
html.desktop .fu-sheet-card { border-radius: 18px; }
html.desktop .fu-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* excluir fotos (administrador) */
.fe-del { margin-top: 10px; color: #b91c1c; }
.fe-del.armed { background: #b91c1c; color: #fff; }
.fu-actions { margin-top: 8px; align-items: center; flex-wrap: wrap; }
.fu-del { background: #b91c1c; color: #fff; }
.fu-item.sel { outline: 4px solid #2563eb; outline-offset: -4px; }
.fu-check { position: absolute; top: 5px; left: 5px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #2563eb; color: #2563eb; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.fu-item.sel .fu-check { background: #2563eb; color: #fff; }
