/* ===== Galeria da Igreja — fundo branco, texto preto, detalhes em azul, fonte sem serifa ===== */
:root {
  --blue: #1a56db; --blue-700: #1646b8; --blue-100: #dbe7ff; --blue-50: #eff4ff;
  --ink: #0b0b0c; --muted: #5b6270; --line: #e6e8ec; --bg: #fff; --soft: #f5f7fa;
  --danger: #d92d20; --ok: #16794c; --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body.noscroll { overflow: hidden; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.break { word-break: break-all; }
.clip { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row > .field { flex: 1; min-width: 120px; }
.row.tight { gap: 2px; flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack.tight { gap: 8px; }
.ico { flex: none; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: #fff; z-index: 500; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { display: grid; place-items: center; padding: 80px 0; }

/* ----- botões ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--blue-700); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.danger:hover:not(:disabled) { background: #b42318; }
.btn.danger.ghost { background: transparent; color: var(--danger); border-color: transparent; } .btn.danger.ghost:hover:not(:disabled) { background: #fef3f2; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; padding: 11px 15px; }
.btn.google { font-weight: 600; }
.link-btn { background: none; border: 0; color: var(--blue); padding: 2px 0; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; } .link-btn.small { font-size: 13px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: inline-grid; place-items: center; color: var(--muted); }
.icon-btn:hover:not(:disabled) { background: var(--soft); color: var(--ink); } .icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger-ico:hover { background: #fef3f2; color: var(--danger); }

/* ----- barra do administrador ----- */
.adminbar { background: var(--blue-50); border-bottom: 1px solid var(--blue-100); }
.adminbar-in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.adminbar-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue-700); }
.adminbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lbl-short { display: none; }

/* ----- capa / perfil ----- */
.cover { background: #fff; }
.banner { position: relative; aspect-ratio: 5 / 1; min-height: 120px; max-height: 280px; overflow: hidden; background: #dbe7ff; }
.banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-ph { width: 100%; height: 100%; background: radial-gradient(circle at 15% 20%, #4f83ee 0, transparent 45%), linear-gradient(120deg, #1a56db, #0b2a6b); }
.edit-chip { position: absolute; right: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; border: 0; background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.id { display: flex; align-items: flex-end; gap: 18px; margin-top: -58px; position: relative; padding-bottom: 10px; }
.avatar { width: 128px; height: 128px; border-radius: 50%; border: 4px solid #fff; background: var(--blue-50); position: relative; flex: none; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-ph { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 700; color: var(--blue); }
.avatar-edit { position: absolute; right: 2px; bottom: 6px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--blue); color: #fff; display: grid; place-items: center; }
.name-block { flex: 1; min-width: 0; padding-bottom: 6px; }
.name-block h1 { font-size: clamp(22px, 3.6vw, 32px); font-weight: 800; letter-spacing: -.01em; }
.name-block p { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.id-actions { display: flex; gap: 6px; align-items: center; padding-bottom: 8px; }
.acct { max-width: 160px; } .acct-name { overflow: hidden; text-overflow: ellipsis; }
.mini-avatar { border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 14px; font-weight: 600; border: 1px solid var(--blue-100); }
.pill:hover { background: var(--blue-100); } .pill.ghost { background: transparent; border-style: dashed; cursor: pointer; }

.notice { display: flex; align-items: center; gap: 10px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); padding: 9px 10px 9px 14px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; }
.notice-text { flex: 1; min-width: 0; color: var(--ink); } .notice-link { font-weight: 700; white-space: nowrap; }

/* ----- abas ----- */
.tabs { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tabs-in { display: flex; gap: 4px; }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 8px; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); } .tab.active { color: var(--blue); border-bottom-color: var(--blue); }
@media (min-width: 700px) { .tab { flex: none; padding: 14px 22px; } }

/* ----- áreas de conteúdo ----- */
.view { min-height: 50vh; padding-bottom: 110px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 0 14px; flex-wrap: wrap; }
.view-head h2 { font-size: 21px; font-weight: 800; } .view-head .muted { font-size: 14px; }
.tools { display: flex; gap: 4px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; }
.tool:hover { background: var(--soft); color: var(--ink); } .tool.admin-tool { color: var(--blue-700); border-color: var(--blue-100); background: var(--blue-50); }
@media (max-width: 560px) { .tool { width: 36px; padding: 0; justify-content: center; } .tool-label { display: none; } }
.back { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 600; font-size: 14px; }
.album-desc { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h3 { color: var(--ink); font-size: 18px; } .empty p { margin: 0 0 6px; }

/* ----- grade de fotos ----- */
.masonry { display: flex; gap: 10px; align-items: flex-start; } .mcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #e9edf5; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
@media (hover: hover) { .tile:hover img { transform: scale(1.03); } }
.tile-likes { position: absolute; left: 7px; bottom: 7px; display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.42); padding: 3px 7px; border-radius: 999px; }
.tile-check { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.28); color: #fff; display: none; place-items: center; }
.tile-check svg { opacity: 0; } .selecting .tile { cursor: pointer; } .selecting .tile-check { display: grid; }
.tile.selected { box-shadow: inset 0 0 0 3px var(--blue); } .tile.selected .tile-check { background: var(--blue); } .tile.selected .tile-check svg { opacity: 1; } .tile.selected img { transform: scale(.94); }
.sentinel { height: 1px; } .grid-status { display: grid; place-items: center; min-height: 40px; padding: 12px; }

.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
.selbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sel-count { font-size: 14px; }
@media (max-width: 560px) { .selbar .lbl { display: none; } .selbar .btn.small { padding: 8px 11px; } }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; padding: 13px 18px; box-shadow: 0 8px 24px rgba(26,86,219,.4); }
.fab:hover { background: var(--blue-700); }

/* ----- álbuns ----- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding-bottom: 20px; }
@media (max-width: 520px) { .album-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.album-card { position: relative; }
.album-main { display: block; color: inherit; }
.album-cover { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--blue-50); border: 1px solid var(--line); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
@media (hover: hover) { .album-main:hover .album-cover img { transform: scale(1.04); } }
.album-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--blue); opacity: .5; }
.album-meta { padding: 8px 2px; display: flex; flex-direction: column; gap: 1px; } .album-meta strong { font-size: 15px; } .album-meta span { font-size: 13px; color: var(--muted); }
.album-edit { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.95); color: var(--ink); border-color: var(--line); }

/* ----- agenda ----- */
.agenda { padding-bottom: 20px; } .agenda section + section { margin-top: 18px; }
.day-group { margin-bottom: 14px; } .day-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; display: flex; gap: 8px; align-items: center; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; letter-spacing: 0; text-transform: none; }
.badge.muted { background: var(--soft); color: var(--muted); margin-left: 8px; }
.sched-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.sched-card.past { opacity: .6; }
.sched-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .sched-main h4 { font-size: 17px; font-weight: 700; }
.sched-main p { margin: 0; } .meta-line { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.sched-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { display: inline-flex; gap: 5px; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: 14px; border: 1px solid var(--blue-100); }
.date-block { flex: none; width: 56px; text-align: center; border-radius: 12px; background: var(--blue); color: #fff; padding: 7px 0 6px; display: flex; flex-direction: column; }
.db-day { font-size: 22px; font-weight: 800; line-height: 1; } .db-mon { font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-top: 3px; opacity: .9; }
.cal-btn { color: var(--blue-700); border-color: var(--blue-100); background: var(--blue-50); } .cal-btn:hover:not(:disabled) { background: var(--blue-100); }
@media (max-width: 560px) { .sched-card { flex-wrap: wrap; } .sched-actions { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; } }
.past-box { margin-top: 16px; } .past-box summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 10px; }

/* ----- visualizador ----- */
.lb { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 8px) 12px 18px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.lb-count { font-size: 14px; opacity: .85; padding-left: 4px; } .lb-actions { display: flex; gap: 6px; }
.lb-btn { min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.13); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.lb-btn:hover { background: rgba(255,255,255,.25); } .lb-btn.liked svg { fill: #ff4d6d; color: #ff4d6d; }
.lb-stage { position: absolute; inset: 56px 0 52px; touch-action: pan-y pinch-zoom; }
.lb-bg, .lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.lb-img { opacity: 0; transition: opacity .2s; } .lb-img.ready { opacity: 1; }
.lb-spin { position: absolute; left: 50%; top: 50%; margin: -11px; border-color: rgba(255,255,255,.25); border-top-color: #fff; }
.lb-nav { position: absolute; top: 50%; z-index: 4; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.28); } .lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; text-align: center; padding: 18px 16px calc(env(safe-area-inset-bottom) + 12px); font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.muted-on-dark { opacity: .7; }

/* ----- janelas, menus, avisos ----- */
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(10,15,30,.5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: min(500px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: pop .18s; }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px 20px; } .modal-head h2 { font-size: 18px; font-weight: 800; }
.modal-body { padding: 8px 20px 18px; overflow: auto; -webkit-overflow-scrolling: touch; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.modal-foot.inline { border: 0; padding: 6px 0 0; }
@media (max-width: 640px) { .modal-back { align-items: flex-end; padding: 0; } .modal, .modal.wide { width: 100%; border-radius: 20px 20px 0 0; max-height: 94dvh; animation: sheet .22s; } .modal-foot .btn { flex: 1; } }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } } @keyframes sheet { from { transform: translateY(40px); opacity: .6; } }
.confirm-msg { margin: 4px 0; }
.popover { position: fixed; z-index: 300; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); min-width: 210px; padding: 6px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; } .menu-item:hover { background: var(--soft); } .menu-item.danger { color: var(--danger); }
.user-pop { display: flex; flex-direction: column; } .user-pop-head { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .user-pop-head .badge { align-self: flex-start; margin-top: 4px; }
.toasts { position: fixed; z-index: 400; left: 0; right: 0; bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { background: #111827; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 480px; animation: pop .2s; } .toast.error { background: var(--danger); }
.demo-ribbon { position: fixed; z-index: 90; left: 0; top: 0; background: #f59e0b; color: #111; font-size: 11px; font-weight: 800; padding: 3px 10px; border-bottom-right-radius: 8px; letter-spacing: .02em; }

/* ----- formulários ----- */
.field { display: flex; flex-direction: column; gap: 5px; } .field-label { font-size: 13px; font-weight: 700; } .field-hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd4dc; border-radius: 10px; background: #fff; font-size: 16px; min-height: 42px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
input:disabled, select:disabled { background: var(--soft); color: var(--muted); }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 0; } .form-error:empty { display: none; }
.ok-msg { color: var(--ok); font-weight: 700; margin: 0; display: flex; gap: 6px; align-items: center; }
.seg { display: flex; background: var(--soft); border-radius: 11px; padding: 3px; gap: 3px; } .seg-btn { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg-btn.active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.12); } .seg-btn:disabled { opacity: .45; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 4px 0; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-msg { display: flex; gap: 8px; align-items: center; background: var(--blue-50); color: var(--blue-700); padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.demo-hint { background: #fff7e6; border: 1px solid #fde1a8; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 0 0 12px; }
.sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 0; }
.indent { padding-left: 14px; border-left: 3px solid var(--blue-100); } .indent.disabled { opacity: .5; }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; } .radio-row select { flex: 1; min-width: 180px; }
.radio-row input[type=radio] { width: 18px; height: 18px; accent-color: var(--blue); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; cursor: pointer; } .switch-text { display: flex; flex-direction: column; gap: 2px; } .switch-title { font-weight: 600; }
.switch { position: relative; flex: none; width: 46px; height: 28px; } .switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; background: #cfd4dc; border-radius: 999px; transition: background .2s; } .switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .switch-track { background: var(--blue); } .switch input:checked + .switch-track::after { transform: translateX(18px); } .switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.copy-row { display: flex; gap: 8px; } .copy-row input { flex: 1; }
.bar { height: 8px; background: var(--blue-100); border-radius: 999px; overflow: hidden; } .bar-fill { height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.acc-list { display: flex; flex-direction: column; gap: 8px; } .acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.acc-row select { width: auto; min-width: 150px; } .acc-info { display: flex; flex-direction: column; min-width: 0; } .link-info { flex-direction: row; align-items: center; gap: 10px; }
.link-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; flex: none; }
.wm-preview { width: 100%; max-width: 360px; border-radius: 12px; border: 1px solid var(--line); }

/* QR */
.qr-preview { display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; } .qr-preview canvas { width: 100%; max-width: 280px; height: auto; image-rendering: pixelated; }
.qr-preview.checker { background: conic-gradient(#eee 25%, #fff 0 50%, #eee 0 75%, #fff 0) 0 0 / 16px 16px; }

/* envio de fotos */
.dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--blue-100); border-radius: 16px; background: var(--blue-50); color: var(--blue-700); transition: background .15s, border-color .15s; }
.dropzone.over { background: var(--blue-100); border-color: var(--blue); } .dropzone strong { color: var(--ink); font-size: 17px; } .dropzone .btn { margin-top: 8px; }
.dropzone.compact { flex-direction: row; justify-content: center; padding: 12px; flex-wrap: wrap; gap: 10px; } .dropzone.compact > .ico, .dropzone.compact > span, .dropzone.compact > strong { display: none; } .dropzone.compact .btn { margin: 0; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; } .up-grid:empty { display: none; }
.up-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e9edf5; }
.up-thumb { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); } .up-thumb canvas { width: 100%; height: 100%; display: block; }
.up-remove { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; padding: 0; }
.up-state { position: absolute; left: 4px; bottom: 4px; min-width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; } .up-state:empty { display: none; }
.up-cell[data-status=done] .up-state { background: var(--ok); } .up-cell[data-status=error] .up-state { background: var(--danger); } .up-cell[data-status=uploading] { opacity: .75; } .up-cell[data-status=uploading] .up-state { background: #fff; }
.up-cell[data-status=done] .up-remove, .up-cell[data-status=uploading] .up-remove { display: none; }
.up-summary:empty { display: none; } .up-summary { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ----- telas pequenas ----- */
@media (max-width: 640px) {
  .banner { aspect-ratio: 16 / 7; }
  .id { flex-direction: column; align-items: center; text-align: center; margin-top: -48px; gap: 8px; }
  .avatar { width: 98px; height: 98px; } .avatar-ph { font-size: 30px; }
  .name-block { padding-bottom: 0; } .id-actions { padding-bottom: 0; justify-content: center; }
  .links { justify-content: center; } .adminbar-in { padding: 8px 12px; } .adminbar-tag { width: 100%; }
  .adminbar-actions { width: 100%; flex-wrap: nowrap; gap: 6px; } .adminbar-actions .btn { flex: 1; padding: 8px 4px; font-size: 12.5px; gap: 5px; } .adminbar-actions .lbl-long { display: none; } .adminbar-actions .lbl-short { display: inline; }
  .fab span { display: none; } .fab { padding: 15px; }
  .masonry, .mcol { gap: 6px; }
}
@media (max-width: 360px) { .adminbar-actions .btn svg { display: none; } }
