/* ObraView — tour publicado */
[hidden] { display: none !important; }
:root {
  --accent: #3DBE5B;
  --bg: #0b1016;
  --glass: rgba(14, 20, 28, .72);
  --glass-2: rgba(22, 30, 40, .86);
  --line: rgba(255, 255, 255, .12);
  --txt: #f2f5f8;
  --mut: #9aa7b4;
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  --r: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font-family: var(--font); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.ico { width: 20px; height: 20px; flex: none; }
#ov-app { position: fixed; inset: 0; }
#stage { position: absolute; inset: 0; }

/* ---------------- motor */
.ov-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.ov-stage:active { cursor: grabbing; }
.ov-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ov-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ov-markers { position: absolute; inset: 0; pointer-events: none; }
.ov-marker { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: auto; will-change: transform; }
.ov-fade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; z-index: 3; }
.ov-split { position: absolute; top: 0; bottom: 0; width: 0; z-index: 4; }
.ov-split-line { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .6); cursor: ew-resize; }
.ov-split-knob { position: absolute; top: 50%; left: -24px; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 22px; font-weight: 700; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); cursor: ew-resize; touch-action: none; }

/* lotes */
.ov-poly { fill: transparent; stroke: none; }
.ov-poly.lot { pointer-events: visiblePainted; cursor: pointer; stroke: rgba(255, 255, 255, .85); stroke-width: 1; fill-opacity: .42; transition: fill-opacity .15s; }
.ov-poly.lot:hover { fill-opacity: .7; stroke-width: 2; }
.ov-poly.lot.st-disponivel { fill: var(--ok); }
.ov-poly.lot.st-reservado { fill: var(--warn); }
.ov-poly.lot.st-vendido { fill: var(--bad); }
.ov-poly.lot.off { fill-opacity: .05; stroke: rgba(255, 255, 255, .15); pointer-events: none; }
.ov-poly.lot.sel { fill-opacity: .8; stroke: #fff; stroke-width: 3; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { fill-opacity: .35; } }
.ov-poly.measure { fill: rgba(255, 255, 255, .15); stroke: #fff; stroke-width: 2.5; stroke-dasharray: 8 5; }
.ov-poly-label { fill: #fff; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 2.5px; pointer-events: none; font-family: var(--font); }

/* hotspots */
.hs { transform: translate(-50%, -50%); position: absolute; left: 0; top: 0; }
.hs-scene { display: flex; flex-direction: column; align-items: center; cursor: pointer; transform: translate(-50%, calc(var(--sz, 46px) / -2)) !important; }
.hs-ring { width: var(--sz, 46px); height: var(--sz, 46px); border-radius: 50%; border: 2.5px solid #fff; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: ring 2.2s infinite; backdrop-filter: blur(2px); transition: transform .2s, background .2s; }
.hs-ring .ico { width: calc(var(--sz, 46px) * .52); height: calc(var(--sz, 46px) * .52); color: #fff; }
.hs-scene:hover .hs-ring { transform: scale(1.12); background: var(--accent); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.hs-label { margin-top: 6px; padding: 4px 9px; border-radius: 8px; background: var(--glass-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: .2s; pointer-events: none; }
.hs:hover .hs-label, .hs-scene .hs-label:not(:empty) { opacity: 1; transform: none; }
.hs-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 14px rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .9); }
.hs-icon .hs-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); }
.hs-icon:hover .hs-label { transform: translateX(-50%); }
.hs-tag { display: flex; flex-direction: column; align-items: center; width: max-content; transform: translate(-50%, -100%) !important; pointer-events: none; }
.hs-tag.clickable { pointer-events: auto; cursor: pointer; }
.hs-tag-box { background: rgba(255, 255, 255, .94); color: #14202b; padding: 7px 12px; border-radius: 10px; font-size: 13px; line-height: 1.35; width: max-content; max-width: 240px; overflow-wrap: break-word; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 2px; }
.hs-tag-box b { font-size: 13.5px; }
.hs-tag-box span { font-weight: 500; }
.hs-tag.no-pin { transform: translate(-50%, -50%) !important; }
.hs-tag-pin.nopin { display: none; }
.hs-cloud .ico { width: 24px; height: 24px; }
.hs-tag-pin { width: 2px; height: 34px; background: linear-gradient(#fff, rgba(255, 255, 255, .2)); position: relative; }
.hs-tag-pin::after { content: ""; position: absolute; bottom: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }
.ms-pt { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); pointer-events: none; }
.ms-pt.first { width: 20px; height: 20px; margin: -10px 0 0 -10px; }

/* ---------------- interface */
.ov-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .5), transparent); z-index: 10; }
.ov-top > * { pointer-events: auto; }
.ov-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { height: 26px; width: auto; }
.brand-logo.client { height: 44px; max-width: 160px; object-fit: contain; }
.ov-titles { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 14px; }
.ov-titles b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-titles span { font-size: 12.5px; color: #dfe6ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ov-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: .15s; }
.ov-btn:hover { background: var(--glass-2); }
.ov-btn.on { background: var(--accent); border-color: transparent; }

.ov-rail { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 9; }
.ov-rail-btn { display: flex; align-items: center; gap: 0; height: 44px; padding: 0 11px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); overflow: hidden; max-width: 46px; transition: max-width .25s, gap .25s, background .15s; white-space: nowrap; }
.ov-rail-btn span { font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.ov-rail-btn:hover { max-width: 260px; gap: 10px; background: var(--glass-2); }
.ov-rail-btn:hover span { opacity: 1; }

.ov-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px calc(12px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 9; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.ov-bottom > * { pointer-events: auto; }
.ov-timeline { display: flex; align-items: center; gap: 8px; max-width: min(900px, 100%); padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.ov-timeline[hidden] { display: none; }
.tl-ic { padding: 0 4px 0 8px; color: var(--mut); display: flex; }
.tl-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tl-track::-webkit-scrollbar { display: none; }
.tl-date { padding: 7px 12px; border-radius: 11px; background: rgba(255, 255, 255, .06); display: flex; flex-direction: column; align-items: center; white-space: nowrap; min-width: 74px; }
.tl-date b { font-size: 13px; }
.tl-date small { font-size: 10.5px; color: var(--mut); max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.tl-date.on { background: var(--accent); }
.tl-date.on small { color: rgba(255, 255, 255, .85); }
.tl-cmp { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 11px; background: #fff; color: #111; font-weight: 600; font-size: 13px; white-space: nowrap; }

.ov-strip-wrap { width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none !important; }
.ov-strip-head { pointer-events: none; width: 100%; }
.ov-strip-head > *, .ov-strip { pointer-events: auto; }
.ov-strip-wrap[hidden] { display: none; }
.ov-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ov-groups { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ov-chip { padding: 6px 12px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; backdrop-filter: blur(8px); }
.ov-chip.on { background: #fff; color: #111; }
.ov-strip-toggle { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; margin-left: auto; backdrop-filter: blur(8px); }
.ov-strip { display: flex; gap: 8px; overflow-x: auto; width: max-content; max-width: 100%; padding: 2px 2px 4px; scrollbar-width: thin; max-height: 0; opacity: 0; transition: max-height .3s, opacity .3s; }
.ov-strip-wrap.open .ov-strip { max-height: 120px; opacity: 1; }
.ov-thumb { flex: none; width: 132px; border-radius: 11px; overflow: hidden; position: relative; border: 2px solid transparent; background: #000; }
.ov-thumb img { width: 100%; height: 74px; object-fit: cover; display: block; opacity: .85; transition: .2s; }
.ov-thumb:hover img { opacity: 1; transform: scale(1.04); }
.ov-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 11.5px; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-thumb em { position: absolute; top: 5px; right: 5px; font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 8px; background: rgba(0, 0, 0, .6); }
.ov-thumb.on { border-color: var(--accent); }
/* faixa em modo ícones / nomes */
.ov-strip.st-icons { gap: 6px; padding: 6px 8px 4px; }
.ov-strip-wrap.open .ov-strip.st-icons, .ov-strip-wrap.open .ov-strip.st-names { max-height: 70px; }
.ov-dot { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; transition: .15s; }
.ov-dot .ico { position: absolute; width: 18px; height: 18px; top: 5px; opacity: .55; }
.ov-dot b { position: relative; top: 7px; font-size: 13px; }
.ov-dot:hover { background: var(--glass-2); transform: translateY(-2px); }
.ov-dot.on { background: var(--accent); border-color: transparent; }
.ov-dot.on .ico { opacity: .9; }
.ov-dot-tip { position: fixed; display: none; }
.ov-strip.st-names { gap: 6px; padding: 4px 2px; }
.ov-name { flex: none; font-weight: 600; }
.ov-name em { font-style: normal; font-size: 10.5px; opacity: .7; margin-left: 3px; }
.ov-name.on { background: var(--accent); color: #fff; border-color: transparent; }

.ov-compare-labels { position: absolute; top: 76px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 16px; z-index: 8; pointer-events: none; }
.ov-compare-labels[hidden] { display: none; }
.ov-compare-labels button { pointer-events: auto; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; backdrop-filter: blur(10px); }
.ov-compare-labels small { font-weight: 500; color: var(--mut); }

/* painel de lotes */
.ov-panel { position: absolute; top: 74px; right: 16px; bottom: 150px; width: 330px; z-index: 11; background: var(--glass-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.ov-panel[hidden] { display: none; }
.pn-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px 16px; }
.pn-head b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.ov-x { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--mut); }
.ov-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px; }
.pn-stat { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; opacity: .45; position: relative; }
.pn-stat.on { opacity: 1; border-color: var(--line); }
.pn-stat i { position: absolute; top: 11px; right: 10px; width: 10px; height: 10px; border-radius: 50%; }
.pn-stat b { font-size: 20px; }
.pn-stat span { font-size: 11px; color: var(--mut); }
.st-disponivel i, .pn-lot.st-disponivel { background: var(--ok); }
.st-reservado i, .pn-lot.st-reservado { background: var(--warn); }
.st-vendido i, .pn-lot.st-vendido { background: var(--bad); }
.pn-search { display: flex; align-items: center; gap: 8px; margin: 10px 12px; padding: 0 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--mut); }
.pn-search input { flex: 1; height: 40px; background: none; border: 0; outline: 0; color: var(--txt); font: inherit; font-size: 14px; }
.pn-list { flex: 1; overflow-y: auto; padding: 0 12px 14px; }
.pn-q { margin-top: 10px; }
.pn-qh { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.pn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; }
.pn-lot { height: 34px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .1s; }
.pn-lot:hover { transform: scale(1.08); }
.pn-lot.sel { outline: 3px solid #fff; outline-offset: 1px; }
.pn-lot.st-vendido { opacity: .8; }
.pn-empty { color: var(--mut); font-size: 14px; text-align: center; margin-top: 30px; }

/* card do lote */
.ov-card { position: absolute; left: 50%; bottom: 170px; transform: translateX(-50%); width: min(360px, calc(100% - 32px)); z-index: 12; background: #fff; color: #14202b; border-radius: 18px; padding: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); animation: up .25s ease; }
.ov-card[hidden] { display: none; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 12px); } }
.ov-card .ov-x { position: absolute; top: 10px; right: 10px; color: #6b7785; }
.ov-card .ov-x:hover { background: #eef1f4; color: #111; }
.cd-head h3 { margin: 8px 0 0; font-size: 24px; }
.cd-head p { margin: 2px 0 0; color: #5b6774; font-weight: 600; }
.cd-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; }
.cd-badge.st-disponivel { background: var(--ok); } .cd-badge.st-reservado { background: var(--warn); } .cd-badge.st-vendido { background: var(--bad); }
.ov-card dl { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ov-card dl div { background: #f2f5f7; border-radius: 10px; padding: 8px 10px; }
.ov-card dt { font-size: 11px; color: #6b7785; text-transform: uppercase; letter-spacing: .05em; }
.ov-card dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.cd-actions { display: flex; gap: 8px; margin-top: 14px; }
.ov-cta { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.ov-cta.ghost { flex: 0 0 auto; background: #eef1f4; color: #14202b; }

/* medição */
.ov-measure { position: absolute; right: 16px; bottom: 170px; width: 260px; z-index: 12; background: var(--glass-2); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ov-measure[hidden] { display: none; }
.ov-measure > b { display: flex; align-items: center; gap: 8px; }
.ms-val { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.ms-val span { color: var(--mut); font-size: 13px; }
.ms-val strong { font-size: 20px; text-align: right; }
.ms-act { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-act button { padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; }
.ms-act button#msClose { background: var(--accent); }
.ov-measure small { color: var(--mut); font-size: 11px; line-height: 1.35; }

/* modal */
.ov-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.ov-modal[hidden] { display: none; }
.ov-modal-box { position: relative; background: #fff; color: #14202b; border-radius: 18px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.ov-modal.wide .ov-modal-box { max-width: 1200px; height: 86vh; background: #000; overflow: hidden; }
.ov-modal.wide #modalBody, .ov-modal.wide iframe, .ov-modal.wide video { width: 100%; height: 100%; border: 0; display: block; }
.ov-modal-box > .ov-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255, 255, 255, .9); color: #111; }
.ov-info { padding: 26px; }
.ov-info img { width: calc(100% + 52px); margin: -26px -26px 18px; display: block; max-height: 300px; object-fit: cover; }
.ov-info h2 { margin: 0 0 10px; font-size: 22px; }
.ov-info .txt { font-size: 15.5px; line-height: 1.6; color: #34404c; }
.ov-info .ov-cta { margin-top: 18px; }
.ov-pick { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ov-pick h3 { margin: 0 0 6px; }
.ov-pick button { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: #f2f5f7; text-align: left; }
.ov-pick button.on { background: var(--accent); color: #fff; }
.ov-pick button span { color: inherit; opacity: .7; }

.ov-tip { position: fixed; z-index: 30; pointer-events: none; background: #fff; color: #14202b; padding: 8px 11px; border-radius: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.ov-tip[hidden] { display: none; }
.ov-tip span { font-weight: 700; font-size: 12px; }
.ov-tip span.st-disponivel { color: #16a34a; } .ov-tip span.st-reservado { color: #d97706; } .ov-tip span.st-vendido { color: #dc2626; }
.ov-tip em { font-style: normal; color: #5b6774; font-size: 12px; }

.ov-badge { position: absolute; right: 14px; bottom: calc(10px + var(--safe-b)); z-index: 8; display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .7); text-decoration: none; letter-spacing: .03em; }
.ov-badge img { width: 16px; height: 16px; }
.ov-toast { position: fixed; top: 80px; left: 50%; transform: translate(-50%, -20px); background: #fff; color: #111; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.ov-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* carregamento */
.ov-loading { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 40%, #1a2633, #0b1016 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .8s; }
.ov-loading.done { opacity: 0; pointer-events: none; }
.ld-icon { width: 150px; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
@keyframes float { 50% { transform: translateY(-10px); } }
.ld-logo { height: 30px; }
.ld-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ld-bar i { display: block; width: 40%; height: 100%; background: var(--accent); animation: bar 1.1s ease-in-out infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ld-title { color: var(--mut); font-size: 14px; }
.ld-msg { color: #fff; }

/* ---------------- celular */
@media (max-width: 760px) {
  .ov-top { padding: 10px 10px; }
  .brand-logo { height: 18px; }
  .brand-logo.client { height: 34px; max-width: 100px; }
  .ov-titles { padding-left: 10px; }
  .ov-titles b { font-size: 14px; max-width: 46vw; }
  .ov-titles span { font-size: 11.5px; max-width: 46vw; }
  .ov-actions { position: fixed; top: 58px; right: 10px; flex-direction: column; gap: 6px; }
  .ov-titles b, .ov-titles span { max-width: 62vw !important; }
  .ov-btn { width: 38px; height: 38px; border-radius: 11px; }
  .ov-rail { left: 10px; top: auto; bottom: calc(150px + var(--safe-b)); transform: none; }
  .ov-rail-btn { height: 40px; padding: 0 9px; max-width: 40px; }
  .ov-rail-btn:hover { max-width: 40px; gap: 0; }
  .ov-rail-btn:hover span { opacity: 0; }
  .ov-bottom { padding: 0 10px calc(8px + var(--safe-b)); }
  .ov-thumb { width: 104px; }
  .ov-thumb img { height: 60px; }
  .ov-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 68vh; border-radius: 20px 20px 0 0; }
  .ov-card { bottom: calc(16px + var(--safe-b)); }
  .ov-measure { left: 10px; right: 10px; width: auto; bottom: calc(150px + var(--safe-b)); }
  .ov-compare-labels { top: 64px; padding: 0 10px; }
  .ov-compare-labels button { font-size: 12.5px; padding: 7px 9px; }
  .ov-compare-labels small { display: none; }
  .hs-ring { width: 40px; height: 40px; }
}

/* comparar lado a lado */
.ov-side .ov-svg, .ov-side .ov-markers { display: none; }
.ov-side .ov-split { left: 50% !important; }
.ov-side .ov-split-knob { display: none; }
.ov-side .ov-split-line { cursor: default; width: 4px; left: -2px; background: #0b1016; box-shadow: none; }
.cmp-mode { pointer-events: auto; display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(10px); align-self: flex-start; }
.ov-compare-labels .cmp-mode button { padding: 7px 11px; border-radius: 9px; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--mut); backdrop-filter: none; }
.ov-compare-labels .cmp-mode button.on { background: #fff; color: #111; }
@media (max-width: 760px) { .ov-compare-labels { flex-wrap: wrap; } .cmp-mode { order: 3; width: 100%; justify-content: center; margin-top: 6px; } }

/* modelo 3D */
.ov-modal.model .ov-modal-box { background: #0b1016; }
.m3d { position: relative; width: 100%; height: 100%; }
.m3d-stage { position: absolute; inset: 0; }
.m3d-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px; }
.m3d-load img { width: 90px; animation: float 3s ease-in-out infinite; }
.m3d-load span { color: var(--mut); font-size: 13px; }
.m3d-top { position: absolute; top: 14px; left: 16px; color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.m3d-bar { position: absolute; right: 60px; top: 10px; display: flex; gap: 6px; color: #fff; }
.m3d-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 12px; background: rgba(0,0,0,.4); padding: 6px 12px; border-radius: 20px; pointer-events: none; white-space: nowrap; }
.ov-modal-box:fullscreen { max-width: none; max-height: none; height: 100%; border-radius: 0; }
@media (max-width: 760px) { .ov-modal.model { padding: 0; } .ov-modal.model .ov-modal-box { height: 100%; max-height: 100%; border-radius: 0; } .m3d-hint { white-space: normal; text-align: center; width: 90%; } }

/* acesso online */
.ov-btn.user { width: auto; padding: 0 12px; gap: 7px; }
.ov-btn.user span { font-size: 13px; font-weight: 700; }
.ov-login { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.ov-login img { width: 64px; align-self: center; }
.ov-login h2 { margin: 0; text-align: center; }
.ov-login p { margin: 0 0 6px; text-align: center; color: #5b6774; }
.ov-login label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #34404c; }
.ov-login input { height: 44px; border-radius: 10px; border: 1px solid #d6dde4; padding: 0 12px; font: inherit; font-size: 15px; }
.ov-login input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.lg-err { color: #dc2626; font-size: 13px; font-weight: 600; min-height: 16px; text-align: center; }
.cd-by { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 11px; border-radius: 10px; font-size: 13.5px; }
.cd-by .ico { width: 18px; height: 18px; }
.cd-by.st-reservado { background: #fff4e0; color: #8a4b00; }
.cd-by.st-vendido { background: #fde8e8; color: #8f1d1d; }
.cd-staff { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #d6dde4; display: flex; flex-direction: column; gap: 8px; }
.cd-staff small { color: #6b7785; }
.cd-staff-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #5b6774; text-transform: uppercase; letter-spacing: .04em; }
.cd-staff-h .ico { width: 15px; height: 15px; }
.cd-staff input { height: 38px; border-radius: 9px; border: 1px solid #d6dde4; padding: 0 10px; font: inherit; font-size: 13.5px; }
.cd-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cd-seg button { height: 38px; border-radius: 9px; background: #eef1f4; font-weight: 700; font-size: 13px; color: #34404c; }
.cd-seg button.on.st-disponivel { background: var(--ok); color: #fff; }
.cd-seg button.on.st-reservado { background: var(--warn); color: #fff; }
.cd-seg button.on.st-vendido { background: var(--bad); color: #fff; }
.cd-link { align-self: flex-start; color: #2f6fb3; font-size: 12.5px; font-weight: 600; padding: 0; }
.cd-login { margin-top: 10px; display: flex; align-items: center; gap: 6px; color: #5b6774; font-size: 12.5px; font-weight: 600; padding: 0; }
.cd-login .ico { width: 15px; height: 15px; }
.ov-cta.warn { background: var(--warn); }
.ov-hist { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-hist td { padding: 8px 6px; border-top: 1px solid #e6eaee; vertical-align: top; }
.ov-hist small { color: #6b7785; }
.hb { font-weight: 700; } .hb.st-disponivel { color: #16a34a; } .hb.st-reservado { color: #d97706; } .hb.st-vendido { color: #dc2626; }
.cd-staff .ov-cta { flex: none; }

/* medições 3D */
.m3d-meas { position: absolute; left: 12px; top: 48px; bottom: 50px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; z-index: 3; max-width: calc(100% - 24px); }
.mm-tools { display: flex; flex-direction: column; gap: 6px; pointer-events: auto; align-self: flex-start; }
.mm-tools button { display: flex; align-items: center; gap: 0; height: 40px; padding: 0 11px; border-radius: 11px; background: rgba(14, 20, 28, .78); border: 1px solid rgba(255, 255, 255, .14); color: #fff; overflow: hidden; max-width: 42px; transition: max-width .25s, gap .25s; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mm-tools button span { opacity: 0; transition: opacity .2s; }
.mm-tools button:hover, .mm-tools button.on { max-width: 200px; gap: 8px; }
.mm-tools button:hover span, .mm-tools button.on span { opacity: 1; }
.mm-tools button.on { background: var(--accent, #3DBE5B); border-color: transparent; }
.mm-panel { pointer-events: auto; margin-top: auto; width: 270px; max-width: 100%; background: rgba(255, 255, 255, .97); color: #14202b; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-size: 13px; }
.mm-panel[hidden] { display: none; }
.mm-h { display: flex; align-items: center; justify-content: space-between; }
.mm-h b { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.mm-x { border: 0; background: #eef1f4; width: 26px; height: 26px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; color: #34404c; }
.mm-panel p { margin: 0; color: #5b6774; font-size: 12px; line-height: 1.4; }
.mm-panel dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.mm-panel dt { color: #5b6774; }
.mm-panel dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.mm-panel small { color: #8a96a3; font-size: 11px; }
.mm-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-btn { border: 0; background: #eef1f4; color: #14202b; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mm-btn.pri { background: var(--accent, #3DBE5B); color: #fff; }
.mm-cal { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 12px; color: #34404c; }
.mm-cal input { height: 36px; border: 1px solid #d6dde4; border-radius: 8px; padding: 0 10px; font: inherit; color: #14202b; background: #fff; }
.mm-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.mm-labels span { position: absolute; transform: translate(-50%, -130%); background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 7px; white-space: nowrap; }
.mm-labels span.big { font-size: 15px; background: var(--accent, #3DBE5B); transform: translate(-50%, -50%); }
.mm-active canvas { cursor: crosshair !important; }
@media (max-width: 760px) { .mm-panel { width: auto; } .m3d-meas { top: 44px; } }
.mm-tools button svg { flex: none; }
.mm-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #111, 0 1px 4px rgba(0,0,0,.5); }
.mm-dot.first { background: #ffd27a; }
.mm-dot.closable { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: transparent; box-shadow: 0 0 0 2px #ffd27a, 0 0 0 4px rgba(0,0,0,.35); }
.mm-dot.closable::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #ffd27a; }
.mm-labels span.vol { display: flex; flex-direction: column; gap: 1px; font-size: 13px; padding: 5px 9px; }
.mm-labels span.vol em { font-style: normal; white-space: nowrap; }
.mm-panel select { height: 34px; border: 1px solid #d6dde4; border-radius: 8px; padding: 0 8px; font: inherit; color: #14202b; background: #fff; }
.mm-panel small.warn { color: #b45309; }
.mm-panel dt { font-size: 12.5px; }

/* ponto cintilante (navegação) */
.hs-dot-core { width: calc(var(--sz, 46px) * .42); height: calc(var(--sz, 46px) * .42); margin: calc(var(--sz, 46px) * .29); border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255,255,255,.8), 0 0 0 0 rgba(255,255,255,.7); animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 0% { box-shadow: 0 0 8px 2px rgba(255,255,255,.7), 0 0 0 0 rgba(255,255,255,.6); transform: scale(.85); } 50% { box-shadow: 0 0 16px 6px rgba(255,255,255,.95), 0 0 0 calc(var(--sz, 46px) * .25) rgba(255,255,255,0); transform: scale(1.05); } 100% { box-shadow: 0 0 8px 2px rgba(255,255,255,.7), 0 0 0 0 rgba(255,255,255,0); transform: scale(.85); } }
.hs-dot:hover .hs-dot-core { background: var(--accent); }
.hs-dot .hs-label { margin-top: 0; }
/* modos aéreo / solo */
.ov-modes { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ov-modes button { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: #dfe6ec; display: flex; align-items: center; gap: 6px; }
.ov-modes button .ico { width: 17px; height: 17px; }
.ov-modes button.on { background: #fff; color: #111; }
.ov-top-mid { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 11; }
.ov-top-mid.in-strip { position: static; transform: none; pointer-events: auto; flex: none; }
.ov-top-mid.in-strip .ov-modes { padding: 2px; border-radius: 20px; }
.ov-top-mid.in-strip .ov-modes button { height: 29px; padding: 0 10px; border-radius: 16px; font-size: 12px; gap: 4px; }
.ov-top-mid.in-strip .ov-modes button .ico { width: 15px; height: 15px; }
.ov-poly.lot.far { pointer-events: none; }

.cd-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: #5b6774; text-transform: uppercase; letter-spacing: .04em; }
.cd-lbl select, .cd-lbl input { height: 38px; border-radius: 9px; border: 1px solid #d6dde4; padding: 0 10px; font: inherit; font-size: 13.5px; text-transform: none; letter-spacing: 0; font-weight: 500; color: #14202b; background: #fff; }
.cd-price { display: flex; gap: 8px; align-items: flex-end; }
.cd-price .cd-lbl { flex: 1; }
.cd-price .ov-cta { flex: none; height: 38px; font-size: 13px; padding: 0 12px; }
.cd-row { display: flex; justify-content: space-between; gap: 8px; }
.ov-card { max-height: calc(100vh - 120px); overflow-y: auto; }

/* ---------------- painel do gestor */
.ov-dash { position: fixed; inset: 0; z-index: 80; background: #eef1f4; color: #14202b; display: flex; flex-direction: column; font-size: 14px; }
.db-load { margin: auto; display: flex; align-items: center; gap: 10px; color: #5b6774; font-weight: 600; }
.db-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #d6dde4; border-top-color: var(--accent); animation: dbspin .8s linear infinite; display: inline-block; }
@keyframes dbspin { to { transform: rotate(360deg); } }
.db-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #fff; border-bottom: 1px solid #dfe4e9; flex-wrap: wrap; }
.db-title { display: flex; flex-direction: column; }
.db-title b { font-size: 18px; }
.db-title span { color: #6b7785; font-size: 12.5px; }
.db-tabs { display: flex; gap: 4px; background: #eef1f4; padding: 4px; border-radius: 11px; margin: 0 auto; }
.db-tabs button { padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13.5px; color: #5b6774; }
.db-tabs button.on { background: #fff; color: #14202b; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.db-actions { display: flex; gap: 6px; }
.db-btn { height: 36px; padding: 0 13px; border-radius: 9px; background: #fff; border: 1px solid #d6dde4; font-weight: 700; font-size: 13px; color: #14202b; }
.db-btn:hover { background: #f4f6f8; }
.db-btn.pri { background: var(--accent); border-color: transparent; color: #fff; }
.db-btn.danger { color: #b91c1c; }
.db-main { flex: 1; overflow-y: auto; padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 14px; max-width: 1320px; width: 100%; margin: 0 auto; }
.db-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.db-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: #5b6774; text-transform: uppercase; letter-spacing: .04em; }
.db-filters input, .db-filters select { height: 36px; border-radius: 9px; border: 1px solid #d6dde4; padding: 0 10px; font: inherit; font-size: 13.5px; background: #fff; color: #14202b; text-transform: none; letter-spacing: 0; }
.db-seg { display: flex; gap: 3px; background: #fff; border: 1px solid #d6dde4; border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.db-seg button { height: 30px; padding: 0 11px; border-radius: 7px; font-size: 13px; font-weight: 700; color: #5b6774; }
.db-seg button.on { background: #14202b; color: #fff; }
.db-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.db-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-kpi { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; border: 1px solid #e3e8ec; }
.db-kpi span { color: #5b6774; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.db-kpi b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.db-kpi b em { font-style: normal; font-size: 15px; color: #5b6774; font-weight: 600; margin-left: 4px; }
.db-kpi small { color: #6b7785; font-size: 12.5px; }
.db-kpi.accent { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.db-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.db-dot.st-disponivel { background: #22c55e; } .db-dot.st-reservado { background: #f59e0b; } .db-dot.st-vendido { background: #ef4444; }
.db-card { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid #e3e8ec; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.db-card h3 { margin: 0; font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.db-card h3 small { color: #6b7785; font-weight: 500; font-size: 12px; }
.db-donut-wrap { display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap; }
.db-donut { width: 170px; height: 170px; }
.dn-big { font-size: 24px; font-weight: 800; fill: #14202b; }
.dn-sm { font-size: 11px; fill: #6b7785; }
.db-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.db-legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.db-legend li b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.db-legend li span { color: #6b7785; width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.db-legend.row { flex-direction: row; gap: 14px; flex-wrap: wrap; }
.db-bars { display: flex; align-items: stretch; height: 190px; gap: 0; padding-top: 4px; }
.db-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 3px; min-width: 0; }
.db-bar-fill { width: 100%; max-width: 34px; background: #3a6ea5; border-radius: 4px 4px 0 0; transition: filter .15s; }
.db-bar:hover .db-bar-fill { filter: brightness(1.15); }
.db-bar-v { font-size: 11.5px; font-weight: 700; color: #34404c; min-height: 16px; }
.db-bar-l { font-size: 11px; color: #6b7785; margin-top: 5px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.db-bar-l small { font-size: 9.5px; color: #98a3ae; }
.db-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.db-tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b7785; padding: 6px 8px; border-bottom: 1px solid #e3e8ec; position: sticky; top: 0; background: #fff; }
.db-tbl td { padding: 7px 8px; border-bottom: 1px solid #f0f2f4; vertical-align: middle; font-variant-numeric: tabular-nums; }
.db-tbl a { color: #2f6fb3; font-weight: 600; text-decoration: none; }
.db-tbl input { height: 32px; border-radius: 7px; border: 1px solid #d6dde4; padding: 0 8px; font: inherit; font-size: 13px; width: 100%; min-width: 80px; }
.db-tbl input[type=checkbox] { width: auto; min-width: 0; height: auto; }
.db-tbl input.pr { max-width: 130px; text-align: right; }
.db-tbl input.saving { background: #fff8e6; } .db-tbl input.ok { background: #e8f8ee; border-color: #22c55e; } .db-tbl input.err { background: #fde8e8; border-color: #ef4444; }
.db-tbl .muted { color: #98a3ae; font-size: 12px; }
.db-tbl.rk .pos { font-weight: 800; color: #6b7785; width: 34px; }
.rk-bar { height: 6px; border-radius: 3px; background: #eef1f4; margin-top: 4px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: #3a6ea5; border-radius: 3px; }
.db-scroll { max-height: 360px; overflow: auto; }
.db-scroll.tall { max-height: calc(100vh - 260px); }
.db-quads { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; }
.qd-row { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 8px; font-size: 13px; }
.qd-name { font-weight: 700; }
.qd-n { color: #6b7785; text-align: right; font-variant-numeric: tabular-nums; }
.qd-bar { display: flex; gap: 2px; height: 14px; }
.qd-bar i { height: 100%; border-radius: 3px; }
.qd-bar i.st-disponivel { background: #22c55e; } .qd-bar i.st-reservado { background: #f59e0b; } .qd-bar i.st-vendido { background: #ef4444; }
.db-empty { color: #6b7785; margin: 8px 0; }
.db-note { color: #6b7785; font-size: 12.5px; margin: 0; }
.db-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: #f6f8fa; }
.db-form > b { grid-column: 1 / -1; }
.db-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #5b6774; }
.db-form label.ck { flex-direction: row; align-items: center; grid-column: 1 / 3; }
.db-form input { height: 36px; border-radius: 8px; border: 1px solid #d6dde4; padding: 0 10px; font: inherit; }
.db-form input[type=checkbox] { height: auto; }
@media (max-width: 900px) { .db-grid4 { grid-template-columns: 1fr 1fr; } .db-grid2 { grid-template-columns: 1fr; } .db-form { grid-template-columns: 1fr 1fr; } .db-tabs { order: 3; margin: 0; width: 100%; } }
@media (max-width: 520px) { .db-grid4 { grid-template-columns: 1fr; } .db-main { padding: 12px; } .db-top { padding: 10px 12px; } }

/* ---------------- celular: layout limpo (v1.8) ---------------- */
.ov-user:empty { display: none; }
.ov-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; flex: none; }
.ov-avatar.on { background: var(--accent); border: 2px solid rgba(255, 255, 255, .85); }
.ov-avatar b { font-size: 13.5px; letter-spacing: .02em; }
.ov-avatar .ico { width: 19px; height: 19px; }
.ov-rail-btn.media { position: relative; overflow: visible; }
.rb-n { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(14, 20, 28, .9); }
.ov-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.ov-sheet.open { background: rgba(0, 0, 0, .45); }
.sh-box { width: 100%; max-width: 520px; background: #141c25; color: #fff; border-radius: 20px 20px 0 0; padding: 8px 14px calc(16px + var(--safe-b)); transform: translateY(100%); transition: transform .22s ease-out; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); max-height: 80vh; overflow: auto; }
.ov-sheet.open .sh-box { transform: none; }
.sh-grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); margin: 2px auto 10px; }
.sh-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); margin: 2px 4px 8px; font-weight: 700; }
.sh-list { display: flex; flex-direction: column; gap: 4px; }
.sh-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-align: left; width: 100%; color: #fff; }
.sh-item:active, .sh-item:hover { background: rgba(255, 255, 255, .06); }
.sh-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; flex: none; }
.sh-ic .ico { width: 19px; height: 19px; }
.sh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-t b { font-size: 15px; font-weight: 600; }
.sh-t small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.sh-item.danger { color: #ff8a8a; }
.sh-item.danger .sh-ic { background: rgba(255, 90, 90, .12); }
.sh-sw { width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .18); position: relative; flex: none; transition: .15s; }
.sh-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.sh-item.on .sh-sw { background: var(--accent); }
.sh-item.on .sh-sw::after { left: 19px; }
.sh-user { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.sh-user > div { display: flex; flex-direction: column; min-width: 0; }
.sh-user b { font-size: 16px; }
.sh-user small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.sh-user .ov-avatar { width: 44px; height: 44px; }
@media (max-width: 760px) {
  .ov-top { align-items: center; }
  .ov-user { margin-left: 8px; }
  .ov-actions { top: calc(62px + env(safe-area-inset-top, 0px)); }
  .ov-rail-btn.wa { background: rgba(37, 211, 102, .9); border-color: transparent; }
}
.db-brand { display: flex; align-items: center; gap: 8px; padding-right: 16px; border-right: 1px solid #dfe4e9; flex: none; }
.db-brand img { height: 34px; width: auto; }
.db-brand .db-word { height: 22px; }
.lg-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4px; }
.ov-login .lg-brand img { width: auto; height: 46px; align-self: center; }
.ov-login .lg-brand .lg-word { height: 28px; }
@media (max-width: 520px) { .db-brand .db-word { display: none; } .db-brand { padding-right: 10px; } }
.ov-login .ov-cta { flex: none; min-height: 46px; }
.db-tbl input.ar { max-width: 96px; text-align: right; }
.db-tbl input.tb { max-width: 120px; }
.db-modal { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 32, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.db-mbox { background: #fff; color: #14202b; border-radius: 16px; padding: 22px; width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); max-height: 90vh; overflow: auto; }
.db-mbox h3 { margin: 0; font-size: 18px; }
.db-mbox p { margin: 0; font-size: 13.5px; }
.db-mbox .muted { color: #6b7785; }
.db-warn { background: #fff7e6; border: 1px solid #f5d18a; border-radius: 10px; padding: 8px 10px; color: #7a5208; }
.db-mfoot { display: flex; justify-content: flex-end; gap: 8px; }
.db-btn[disabled] { opacity: .5; cursor: default; }
