/* Central do Radar: estrutura das telas sobre o sistema Liquid Glass (glass.css). */

/* ---------- ícone do app ---------- */
.appicon { --s: 58px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .27); flex: 0 0 auto; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 15%, #7cc4ff 0%, #0a84ff 44%, #0047c2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(0, 0, 0, .25), 0 10px 28px -8px rgba(10, 132, 255, .75), 0 2px 4px rgba(0, 0, 0, .3); }
.appicon::after { content: ""; position: absolute; inset: 0; background: conic-gradient(from 210deg, transparent 0 70%, rgba(140, 230, 255, .6) 88%, transparent 100%); animation: sweep 4.5s linear infinite; mix-blend-mode: screen; }
.appicon svg { width: 58%; height: 58%; position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
@keyframes sweep { to { transform: rotate(360deg); } }

/* ---------- telas de acesso ---------- */
.auth-wrap { min-height: 100dvh; width: min(440px, 100%); margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 18px 32px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.brandmark { display: flex; align-items: center; gap: 14px; color: var(--ink); align-self: center; }
.brandmark b { display: block; font-size: 19px; letter-spacing: -.02em; }
.brandmark small { display: block; color: var(--ink-2); font-size: 13px; }
.auth-card { padding: 30px 26px 26px; border-radius: var(--r-xl); }
.auth-card h1 { font-size: 30px; }
.auth-card .group { background: var(--fill-2); box-shadow: inset 0 0 0 .5px var(--hair); -webkit-backdrop-filter: none; backdrop-filter: none; }
.auth-card .group::before { display: none; }
.center { text-align: center; }
.note { margin: 0 0 16px; padding: 11px 14px; border-radius: 14px; font-size: 14px; color: var(--ink); background: color-mix(in srgb, var(--orange) 14%, transparent); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--orange) 35%, transparent); }
.foot { text-align: center; color: var(--ink-3); font-size: 12px; }
.foot a { color: var(--ink-2); }
.pick { margin: 0 0 16px; }
.pick a.li { display: flex; align-items: center; gap: 14px; width: 100%; color: inherit; }
.pick li { padding: 12px 16px; }
.pick li:hover { background: var(--fill-2); }

/* ---------- telas de app: barra lateral + conteúdo ---------- */
body.app { --side: 248px; }
.side { position: fixed; z-index: 10; left: 14px; top: 14px; bottom: 14px; width: var(--side); border-radius: var(--r-l); padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 18px; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; color: var(--ink); }
.side-brand b { display: block; font-size: 16px; letter-spacing: -.015em; }
.side-brand small { display: block; font-size: 12px; color: var(--ink-2); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: 14.5px; transition: background .25s var(--ease); }
.side-nav a svg { width: 19px; height: 19px; color: var(--accent-hi); flex: 0 0 auto; }
.side-nav a:hover { background: var(--fill-2); opacity: 1; }
.side-nav a.on { background: var(--fill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 .5px var(--hair); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; border-top: .5px solid var(--hair); }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who small { display: block; font-size: 12px; color: var(--ink-2); text-transform: capitalize; }
.iconbtn svg { width: 18px; height: 18px; }
.content { margin-left: calc(var(--side) + 28px); padding: 34px 34px 80px 10px; max-width: 1240px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.pagehead .cap { margin: 0 0 4px; }
.pagehead .acts { display: flex; gap: 8px; align-items: center; }
.pagehead .acts svg { width: 16px; height: 16px; }
.tabbar { display: none; }

/* seções */
.sec { margin: 0 0 30px; scroll-margin-top: 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.sec-head h2 { margin: 0; }
.sec-head .muted { font-size: 13px; }
.panel { padding: 20px; border-radius: var(--r-l); }
.panel > .hint:first-child { margin-top: 0; }

/* blocos de números */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 30px; }
.tile { padding: 18px 18px 16px; border-radius: var(--r-l); overflow: hidden; }
.tile .k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.tile .k .ico { width: 26px; height: 26px; border-radius: 8px; }
.tile .k .ico svg { width: 15px; height: 15px; }
.tile .v { display: block; margin-top: 12px; font: 700 34px/1 var(--font-round); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.tile .track { margin-top: 12px; }
.tile.hero { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 40%, transparent), color-mix(in srgb, var(--mint) 14%, transparent) 70%), var(--glass); }

/* imobiliárias (admin) */
.tenants { display: flex; flex-direction: column; gap: 12px; }
.tenant { border-radius: var(--r-l); padding: 0; overflow: hidden; }
.tenant-main { display: grid; grid-template-columns: minmax(220px, 1.6fr) 1fr 1fr 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; }
.tenant-name { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tenant-name .t { font-weight: 650; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.tenant-name .d { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.metric small { font-size: 12px; color: var(--ink-2); }
.metric b { font: 650 16px var(--font-round); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.metric b.pos { color: var(--green); } .metric b.neg { color: var(--red); }
.cota { display: flex; align-items: center; gap: 12px; }
.tenant-acts { display: flex; gap: 8px; }
.tenant details { border-top: .5px solid var(--hair); }
.tenant summary { list-style: none; cursor: pointer; padding: 12px 18px; font-size: 14px; color: var(--accent-hi); font-weight: 550; display: flex; align-items: center; gap: 8px; }
.tenant summary::-webkit-details-marker { display: none; }
.tenant summary svg { width: 14px; height: 14px; transition: transform .4s var(--spring); }
.tenant details[open] summary svg { transform: rotate(90deg); }
.tenant .edit { padding: 4px 18px 18px; }
.cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cols label, .field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.out:empty { display: none; }

/* caixa de link para copiar */
.copy { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; padding: 8px 8px 8px 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 40%, transparent); animation: rise .6s var(--spring) both; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* passos de começo */
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--fill-2); }
.steps li.done { opacity: .62; }
.steps li .chk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.steps li.done .chk { background: var(--green); box-shadow: none; color: #fff; }
.steps li .chk svg { width: 14px; height: 14px; }
.steps li .grow { flex: 1; }
.steps a { font-size: 13.5px; font-weight: 550; white-space: nowrap; }

/* detalhes (ajuda) */
details.help { margin-top: 14px; }
details.help summary { cursor: pointer; color: var(--accent-hi); font-size: 14px; font-weight: 550; }
details.help p { margin: 8px 0 0; }

/* esqueleto de carregamento */
.skel { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.skel i { height: 96px; border-radius: var(--r-l); background: linear-gradient(100deg, var(--fill-2) 30%, var(--fill) 50%, var(--fill-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skel i.wide { grid-column: 1 / -1; height: 74px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- iPhone: barra de abas flutuante ---------- */
@media (max-width: 860px) {
  .side { display: none; }
  .content { margin: 0; padding: max(26px, env(safe-area-inset-top)) 16px 120px; }
  .pagehead { margin-bottom: 20px; }
  .pagehead .acts .btn span { display: none; }
  .large { font-size: 32px; }
  .tabbar { display: flex; position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); padding: 6px; gap: 2px; border-radius: 999px; width: max-content; max-width: calc(100vw - 24px); }
  .tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 7px 10px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent-hi); }
  .tabbar .lens { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; background: var(--fill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 .5px var(--hair); transition: transform .6s var(--spring), width .6s var(--spring); }
  .tenant-main { grid-template-columns: 1fr auto; gap: 12px 14px; }
  .tenant-main .metric.hide-m { display: none; }
  .tenant-acts { grid-column: 1 / -1; }
  .tenant-acts .btn, .tenant-acts button { flex: 1; }
  .skel { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile .v { font-size: 28px; }
}
@media (max-width: 420px) { .auth-card { padding: 26px 20px 22px; } .tabbar a { min-width: 58px; padding-inline: 6px; } }
