/* Vistoria — telas do protótipo aprovado, com as cores e fontes do app (css/style.css).
   No celular, uma coluna (lista OU vistoria aberta). A partir de 900px, lista à
   esquerda e vistoria à direita. Cada painel tem barra no topo, miolo que rola
   e rodapé com a ação principal ao alcance do polegar. */

body.pg-vistoria { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
html:has(body.pg-vistoria) { height: 100%; }
body.pg-vistoria > .header { flex-shrink: 0; }
body.pg-vistoria > #vt-app { flex: 1; min-height: 0; }

.vt {
  --vt-ok-bg: color-mix(in srgb, var(--green) 14%, transparent);
  --vt-warn-bg: color-mix(in srgb, var(--amber) 16%, transparent);
  --vt-bad-bg: color-mix(in srgb, var(--red) 13%, transparent);
  --vt-azul: #1d4ed8;
  --vt-azul-bg: color-mix(in srgb, #1d4ed8 13%, transparent);
  --vt-paper: #ffffff;
  --vt-paper-ink: #1e1040;
  --vt-scrim: rgba(12, 10, 26, .5);
  --vt-shadow: 0 1px 2px rgba(30, 16, 64, .05), 0 6px 18px rgba(30, 16, 64, .06);
  height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
body.dark .vt { --vt-azul: #93b4ff; --vt-azul-bg: color-mix(in srgb, #93b4ff 16%, transparent); --vt-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3); }
.vt *, .vt *::before, .vt *::after { box-sizing: border-box; }
.vt h1, .vt h2, .vt p, .vt dl, .vt dd { margin: 0; }
.vt button { font: inherit; color: inherit; cursor: pointer; }
.vt button:disabled { cursor: not-allowed; opacity: .42; }
.vt :focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.vt .tnum { font-variant-numeric: tabular-nums; }
.vt .ico { width: 20px; height: 20px; flex: none; }
.vt .vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

/* ── painéis ─────────────────────────────────────────────────────────── */
.vt-lista, .vt-painel { min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.vt-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vt-col { width: 100%; max-width: 720px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.vt.aberta .vt-lista { display: none; }
.vt:not(.aberta) .vt-painel { display: none; }
@media (min-width: 900px) {
  .vt { grid-template-columns: 360px minmax(0, 1fr); }
  .vt.aberta .vt-lista, .vt:not(.aberta) .vt-painel { display: flex; }
  .vt-lista { border-right: 1.5px solid var(--border); }
  .vt-lista .vt-col { max-width: none; }
}
.vt-bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 58px; padding: 7px max(10px, env(safe-area-inset-right, 0px)) 7px max(10px, env(safe-area-inset-left, 0px)); background: var(--card); border-bottom: 1px solid var(--border); }
.vt-bar-t { flex: 1; min-width: 0; padding-left: 6px; }
.vt-bar h1 { font: 800 17px/1.2 'Manrope', system-ui, sans-serif; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-bar-t p { font-size: 12px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-dock { flex: none; background: var(--card); border-top: 1px solid var(--border); }
.vt-dock-in { flex-direction: row; gap: 10px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.vt-boasvindas { padding: 48px 8px; text-align: center; color: var(--gray); }

/* ── botões ──────────────────────────────────────────────────────────── */
.vt-btn { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); font-weight: 650; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s, transform .1s; }
.vt-btn:active:not(:disabled) { transform: scale(.98); }
.vt-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
body.dark .vt-btn.primary { color: #170b33; }
.vt-btn.soft { background: var(--surf); border-color: transparent; color: var(--blue); }
.vt-btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.vt-btn.ghost-danger { color: var(--red); }
.vt-btn.block { flex: 1; width: 100%; }
.vt-ico-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--text); }
.vt-ico-btn.boxed { width: 48px; height: 48px; border: 1.5px solid var(--border); background: var(--card); }
.vt-link, .vt-link-btn { background: none; border: 0; color: var(--blue); font-weight: 650; padding: 6px 0; text-align: left; }
.vt-link-btn { min-height: 44px; padding: 0 8px; flex: none; }
.vt-link.muted { color: var(--gray); }
.vt-link.danger, .vt-link-btn.danger { color: var(--red); }
.vt-row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vt-row-actions .vt-btn { flex: 1; white-space: nowrap; }

/* ── texto e blocos ──────────────────────────────────────────────────── */
.vt-hint { font-size: 12.5px; color: var(--gray); }
.vt-empty { padding: 28px 8px; text-align: center; color: var(--gray); }
.vt-bloco { display: flex; flex-direction: column; gap: 10px; }
.vt-bloco > h2 { display: flex; align-items: center; gap: 8px; font: 800 12.5px/1 'Manrope', system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--text-variant); }
.vt-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surf); color: var(--blue); font-size: 12px; letter-spacing: 0; }
.vt-lbl { font-size: 12.5px; font-weight: 650; color: var(--text-variant); }
.vt-panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2px 14px; }
.vt-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vt-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vt-card-h b { font: 700 15.5px 'Manrope', system-ui, sans-serif; }

.vt input:not([type="file"]), .vt textarea { width: 100%; font: inherit; font-size: 16px; color: var(--input-color); background: var(--input-bg); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 12px; }
.vt input:focus, .vt textarea:focus { outline: none; border-color: var(--blue); background: var(--card); }
.vt textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
.vt input::placeholder, .vt textarea::placeholder { color: var(--gray); }
.vt-fields { display: flex; flex-direction: column; gap: 6px; }
.vt-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; color: var(--gray); }
.vt .vt-search input { border: 0; background: none; padding: 12px 0; }

.vt-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--surf); color: var(--blue); flex: none; white-space: nowrap; }
.vt-pill.t-saida { background: var(--vt-warn-bg); color: var(--amber); }
.vt-pill.t-unica { background: var(--surf-low); color: var(--text-variant); }
.vt-pill.ok { background: var(--vt-ok-bg); color: var(--green); }
.vt-pill.bad { background: var(--vt-bad-bg); color: var(--red); }
.vt-txt-sem_detalhes { color: var(--vt-azul); } .vt-txt-bom { color: var(--green); } .vt-txt-regular { color: var(--amber); } .vt-txt-ruim { color: var(--red); }
.vt-code { font: 700 11px 'Inter', sans-serif; color: var(--blue); background: var(--surf); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }

/* ── lista ───────────────────────────────────────────────────────────── */
.vt-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
.vt-tabs::-webkit-scrollbar { display: none; }
.vt-tab { flex: none; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--card); font-weight: 650; font-size: 13.5px; }
.vt-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
body.dark .vt-tab[aria-selected="true"] { color: #170b33; }
.vt-tab .n { opacity: .7; margin-left: 2px; }
.vt-vlist { display: flex; flex-direction: column; gap: 10px; }
.vt-vrow { display: flex; flex-direction: column; gap: 5px; padding: 14px; text-align: left; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--vt-shadow); }
.vt-vrow.atual { border-color: var(--blue); }
.vt-vrow-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt-vrow-date { font-size: 12.5px; font-weight: 650; color: var(--text-variant); }
.vt-vrow-nome { font: 700 16px/1.3 'Manrope', system-ui, sans-serif; color: var(--navy); text-wrap: balance; overflow-wrap: anywhere; }
.vt-vrow-sub { font-size: 12.5px; color: var(--gray); }
.vt-prog { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.vt-prog-bar { display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--surf); overflow: hidden; }
.vt-prog-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.ok .vt-prog-bar i { background: var(--green); }
.vt-prog-n { flex: none; font-size: 12px; font-weight: 650; color: var(--text-variant); }

/* ── escolhas ────────────────────────────────────────────────────────── */
.vt-seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.vt-s { min-height: 44px; padding: 4px 6px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--surf-low); font-weight: 650; font-size: 14px; line-height: 1.15; }
.vt-s.on { background: var(--surf); border-color: var(--blue); color: var(--blue); }
.vt-opt { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; text-align: left; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); }
.vt-opt b { font: 700 14.5px 'Manrope', system-ui, sans-serif; }
.vt-opt small { font-size: 11.5px; color: var(--gray); line-height: 1.3; }
.vt-opt.on { border-color: var(--blue); background: var(--surf); }
.vt-pick, .vt-sheet-list { display: flex; flex-direction: column; gap: 8px; }
.vt-pk { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; text-align: left; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); }
.vt-pk b { font-weight: 650; overflow-wrap: anywhere; }
.vt-pk.on { border-color: var(--blue); background: var(--surf); }
.vt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--card); font-size: 13.5px; font-weight: 600; }
.vt-chip .ico { width: 16px; height: 16px; }
.vt-chip.on { background: var(--surf); border-color: var(--blue); color: var(--blue); }
.vt-step { display: inline-flex; align-items: center; flex: none; border: 1.5px solid var(--border); border-radius: 12px; background: var(--card); }
.vt-step button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--blue); }
.vt-step output { min-width: 30px; text-align: center; font: 800 17px 'Manrope', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.vt-srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--border); }
.vt-srow:last-child { border-bottom: 0; }
.vt-tgl { position: relative; width: 52px; height: 32px; flex: none; border: 0; border-radius: 99px; background: var(--surf-high); transition: background .15s; }
.vt-tgl span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.vt-tgl.on { background: var(--blue); }
.vt-tgl.on span { transform: translateX(20px); }

/* ── hub e cômodos ───────────────────────────────────────────────────── */
.vt-vhead { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.vt-vhead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vt-vhead-nome { font: 700 18px/1.3 'Manrope', system-ui, sans-serif; color: var(--navy); text-wrap: balance; overflow-wrap: anywhere; }
.vt-vhead-nota { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 650; color: var(--amber); }
.vt-vhead-nota.ok { color: var(--green); }
.vt-vhead-nota .ico { width: 16px; height: 16px; }
.vt-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vt-mod { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 108px; padding: 14px; text-align: left; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--vt-shadow); min-width: 0; }
.vt-mod.wide { grid-column: 1 / -1; min-height: 0; }
.vt-mod-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surf); color: var(--blue); }
.vt-mod.ok .vt-mod-ic { background: var(--vt-ok-bg); color: var(--green); }
.vt-mod-t { font: 700 15.5px 'Manrope', system-ui, sans-serif; }
.vt-mod-s { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--gray); }
.vt-mod-s .ico { width: 15px; height: 15px; }
.vt-mod.ok .vt-mod-s { color: var(--green); font-weight: 650; }
.vt-cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vt-ccard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 100px; padding: 14px; text-align: left; border-radius: 16px; border: 1px solid var(--border); background: var(--card); min-width: 0; }
.vt-ccard-nome { font: 700 15.5px/1.25 'Manrope', system-ui, sans-serif; overflow-wrap: anywhere; }
.vt-ccard-n { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--text-variant); }
.vt-ccard-n .ico { width: 15px; height: 15px; }
.vt-ccard.ok .vt-ccard-n { color: var(--green); }
.vt-ccard-aviso { font-size: 12px; font-weight: 650; color: var(--amber); }
.vt-ccard.add { align-items: center; justify-content: center; border: 1.5px dashed var(--surf-high); background: var(--surf-low); color: var(--blue); font-weight: 650; font-size: 14px; }
.vt-ord { display: flex; flex-direction: column; gap: 6px; }
.vt-ord-row { display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.vt-ord-nome { flex: 1; min-width: 0; font-weight: 650; }
.vt-crumb { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 650; color: var(--gray); }

.vt-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.vt-thumb { position: relative; flex: none; width: 76px; height: 76px; padding: 0; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); background: var(--surf-low); }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-thumb time { position: absolute; inset: auto 0 0; padding: 2px 4px; font-size: 9.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); text-align: left; }
.vt-thumb.pendente::after { content: ""; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px #fff; }
.vt-add-foto { flex: none; width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 11px; border: 1.5px dashed var(--surf-high); background: var(--surf-low); color: var(--blue); font-size: 11.5px; font-weight: 650; cursor: pointer; }
.vt-ent-fotos { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surf-low); }
.vt-ent-fotos .vt-thumb { width: 56px; height: 56px; }

.vt-items { display: flex; flex-direction: column; gap: 10px; }
.vt-item { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.vt-item-head { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 2px 0; border: 0; background: none; text-align: left; }
.vt-dot { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--surf-high); color: #fff; }
.vt-dot .ico { width: 13px; height: 13px; stroke-width: 3; }
.vt-item.e-sem_detalhes .vt-dot { background: var(--vt-azul); border-color: var(--vt-azul); }
.vt-item.e-bom .vt-dot { background: var(--green); border-color: var(--green); }
.vt-item.e-regular .vt-dot { background: var(--amber); border-color: var(--amber); }
.vt-item.e-ruim .vt-dot { background: var(--red); border-color: var(--red); }
.vt-item-nome { flex: 1; min-width: 0; font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.vt-item-meta { font-size: 12px; color: var(--gray); white-space: nowrap; }
.vt-chev { color: var(--gray); display: grid; }
.vt-item .vt-s { background: var(--card); font-size: 13px; }
.vt-s.e-sem_detalhes.on { background: var(--vt-azul-bg); border-color: var(--vt-azul); color: var(--vt-azul); }
.vt-s.e-bom.on { background: var(--vt-ok-bg); border-color: var(--green); color: var(--green); }
.vt-s.e-regular.on { background: var(--vt-warn-bg); border-color: var(--amber); color: var(--amber); }
.vt-s.e-ruim.on { background: var(--vt-bad-bg); border-color: var(--red); color: var(--red); }
.vt-ent { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 12px; background: var(--surf-low); font-size: 13px; color: var(--text-variant); }
.vt-ent-thumb { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.vt-ent .vt-chip { margin-left: auto; min-height: 36px; }
.vt-item.gone { flex-direction: row; align-items: center; gap: 10px; padding: 12px; background: var(--surf-low); border-style: dashed; }
.vt-item.gone .vt-item-nome { color: var(--gray); text-decoration: line-through; }
.vt-det { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.vt-det-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.vt-det-g { display: flex; flex-direction: column; gap: 6px; }
.vt-unit-input { display: flex; align-items: center; gap: 10px; }
.vt .vt-unit-input input { font: 800 22px 'Manrope', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.vt-unit-input span { font-weight: 700; color: var(--text-variant); }

.vt-pcard { border-radius: 16px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.vt-pcard-h { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px 8px 14px; border: 0; background: none; text-align: left; }
.vt-pcard-n { flex: 1; min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-pform { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 14px; }
.vt-pform .vt-det-row { margin-top: 8px; }
.vt-assrow { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.vt-assrow-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vt-assrow-t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-sig-img { display: block; width: 100%; height: 76px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: var(--vt-paper); }
.vt-crow { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--border); }
.vt-crow:last-child { border-bottom: 0; }
.vt-crow .ic { color: var(--green); display: grid; }
.vt-crow.pend .ic { color: var(--amber); }
.vt-crow .t { flex: 1; font-weight: 650; }
.vt-crow .s { font-size: 13px; color: var(--text-variant); }
.vt-lrow { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.vt-lrow:last-child { border-bottom: 0; }
.vt-lrow-t { font-weight: 650; }
.vt-lrow-s { font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vt-selo { flex: 0 1 auto; max-width: 58%; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; line-height: 1.25; font-weight: 650; background: var(--vt-ok-bg); color: var(--green); }
.vt-selo.salvando { background: var(--surf); color: var(--blue); }
.vt-selo.sem_sinal { border-radius: 12px; background: var(--vt-warn-bg); color: var(--amber); }
.vt-selo.erro { border-radius: 12px; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
/* No celular o aviso longo desce para a própria linha: o nome do cômodo é quem guia a vistoria. */
@media (max-width: 560px) {
  .vt-bar:has(.vt-selo.sem_sinal), .vt-bar:has(.vt-selo.erro) { flex-wrap: wrap; }
  .vt-selo.sem_sinal, .vt-selo.erro { order: 9; flex-basis: 100%; max-width: 100%; }
}

/* ── folhas, sobreposições e avisos ──────────────────────────────────── */
.vt-sheet-bg { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: var(--vt-scrim); }
.vt-sheet { width: 100%; max-width: 520px; max-height: 86dvh; overflow: auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-radius: 20px 20px 0 0; background: var(--card); color: var(--text); display: flex; flex-direction: column; gap: 12px; animation: vt-sobe .18s ease-out; }
@media (min-width: 900px) { .vt-sheet-bg { align-items: center; } .vt-sheet { border-radius: 20px; } }
.vt-sheet h2 { font: 800 19px/1.25 'Manrope', system-ui, sans-serif; color: var(--navy); text-wrap: balance; }
.vt-sheet-p { color: var(--text-variant); }
.vt-sheet-actions { display: flex; gap: 8px; margin-top: 6px; }
.vt-dl { display: flex; flex-direction: column; gap: 12px; }
.vt-dl dt { font-size: 12px; color: var(--gray); }
.vt-dl dd { font-weight: 600; overflow-wrap: anywhere; }
@keyframes vt-sobe { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.vt-ov { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.vt-ov .vt-bar { border-bottom: 1px solid var(--border); }
.vt-ov-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.vt-ov-f { display: flex; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.vt-pad { flex: 1; width: 100%; min-height: 200px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--vt-paper); touch-action: none; }
.vt-ov.foto { background: #0c0a1a; }
.vt-ov.foto .vt-bar { background: #0c0a1a; border-color: rgba(255,255,255,.1); color: #f5f3ff; }
.vt-ov.foto .vt-bar h1, .vt-ov.foto .vt-bar-t p, .vt-ov.foto .vt-ico-btn { color: #f5f3ff; }
.vt-ov.foto .vt-ov-body { align-items: center; justify-content: center; }
.vt-ov.foto img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.vt-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 1200; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: var(--navy); color: var(--bg); font-size: 14px; font-weight: 600; opacity: 0; transform: translate(-50%, 16px); transition: opacity .18s, transform .18s; pointer-events: none; text-align: center; }
.vt-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .vt *, .vt *::before { transition: none !important; animation: none !important; } }
