:root {
  --bg: #0a0f2c;
  --bg-2: #0f1640;
  --panel: #121a4a;
  --panel-2: #18225c;
  --line: rgba(140, 160, 255, 0.16);
  --text: #e8ecff;
  --muted: #8f9bd0;
  --accent: #6c7cff;
  --accent-2: #8b5cf6;
  --cyan: #38e1ff;
  --amber: #ffb547;
  --green: #3ee08f;
  --red: #ff5a6e;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.app {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 360px;
  height: 100vh;
}
.stage, .panel { min-width: 0; }
/* páginas (Projetos, Financeiro etc.) usam a largura toda: o painel é só das vistas 3D */
.app.no-panel { grid-template-columns: 84px minmax(0, 1fr); }
.app.no-panel .panel { display: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: linear-gradient(180deg, #0d1338, #0a0f2c);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 8px;
  gap: 4px;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 10px; }
.brand span { font-family: 'Sora', 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; }
/* símbolo da marca (assets/brand/elevorium-symbol.svg) */
.brand-logo { width: 40px; height: 40px; display: block; }
.topbar-logo { width: 18px; height: 18px; align-self: center; }
.nav-group {
  font-size: 9px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); text-align: center; margin: 10px 0 4px;
}
.nav-btn {
  background: transparent; border: 0; border-radius: 12px;
  padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: var(--muted);
  transition: background .15s, color .15s;
}
.nav-btn .ico { font-size: 18px; filter: saturate(.8); }
.nav-btn:hover { background: rgba(108, 124, 255, .12); color: var(--text); }
.nav-btn.active { background: rgba(108, 124, 255, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(108,124,255,.5); }
.nav-spacer { flex: 1; }

/* ---------- Stage ---------- */
.stage { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 20%, #1a2370 0%, #0a0f2c 70%); }
#canvas-host { position: absolute; inset: 0; isolation: isolate; z-index: 0; } /* contém o z-index dos rótulos 3D */
#canvas-host canvas { display: block; }

.stage-top {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none; z-index: 5;
}
.stage-top > * { pointer-events: auto; }
.pills { display: flex; gap: 6px; background: rgba(10, 15, 44, .7); backdrop-filter: blur(10px); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.pill { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 12px; color: var(--muted); }
.pill:hover { color: var(--text); }
.pill.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 4px 16px rgba(108,124,255,.4); }
.pill.on { background: rgba(255, 181, 71, .2); color: var(--amber); }
/* fundo próprio: o prédio 3D passa por trás do título e atrapalhava a leitura */
.stage-title {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  background: rgba(10, 15, 44, .7); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px 6px;
}
.stage-title .muted { font-size: 11px; }
.title-input {
  background: transparent; border: 0; text-align: center; font-weight: 800; font-size: 18px;
  border-bottom: 1px dashed transparent; outline: none; width: 280px;
}
.title-input:hover, .title-input:focus { border-bottom-color: var(--muted); }

.legend {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: rgba(10, 15, 44, .7); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 11px;
  z-index: 5;
}
.legend .hint { margin-left: auto; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.tooltip {
  position: absolute; pointer-events: none; z-index: 6;
  background: rgba(18, 26, 74, .95); border: 1px solid rgba(108,124,255,.5);
  border-radius: 10px; padding: 8px 10px; font-size: 12px; display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.tooltip b { color: var(--cyan); }

.dim-label {
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(108, 124, 255, .85); padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.floor-label { font-size: 10px; font-weight: 700; color: var(--muted); }

/* ---------- Pages ---------- */
.page {
  position: absolute; inset: 0; z-index: 8; overflow: auto;
  background: var(--bg); padding: 28px 32px;
}
.page h1 { margin: 0 0 4px; font-size: 24px; }
.page .eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }

.table { width: 100%; border-collapse: collapse; margin-top: 18px; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 14px; background: var(--panel-2); }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); }
.table tbody tr { cursor: pointer; }
.table .nowrap, .table .badge, .table .btn { white-space: nowrap; }
.table tr:hover td { background: rgba(108,124,255,.08); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge.green { background: rgba(62,224,143,.15); color: var(--green); }
.badge.amber { background: rgba(255,181,71,.15); color: var(--amber); }
.badge.blue { background: rgba(108,124,255,.18); color: #aab4ff; }
.badge.red { background: rgba(255,90,110,.15); color: var(--red); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.kpi { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi .label { font-size: 11px; color: var(--muted); }
.kpi .value { font-size: 24px; font-weight: 800; margin-top: 6px; }
.kpi .sub { font-size: 11px; color: var(--green); margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { margin: 0 0 12px; font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { width: 100%; max-width: 36px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #a5b0ff, var(--accent)); box-shadow: 0 0 18px rgba(108,124,255,.4); min-height: 2px; }
.bar span { font-size: 10px; color: var(--muted); }
.bar b { font-size: 10px; }
.rank { padding: 8px 0; border-top: 1px solid var(--line); }
.rank:first-of-type { border-top: 0; }
.rank .top { display: flex; justify-content: space-between; }
.meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); }

/* ---------- Painel direito ---------- */
.panel {
  background: linear-gradient(180deg, #111948, #0c1236);
  border-left: 1px solid var(--line);
  overflow-y: auto; padding: 16px;
}
.panel::-webkit-scrollbar, .page::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb, .page::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb { background: rgba(108,124,255,.3); border-radius: 8px; }
.modal::-webkit-scrollbar-track { background: transparent; margin: 16px 0; }
.modal { scrollbar-width: thin; scrollbar-color: rgba(108,124,255,.3) transparent; }
.panel h2 { margin: 2px 0 2px; font-size: 18px; }
.panel .eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price { font-size: 26px; font-weight: 800; color: #b9c2ff; margin: 6px 0 2px; text-shadow: 0 0 20px rgba(108,124,255,.6); }
.section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.section-title { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: rgba(108,124,255,.08); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.stat .label { font-size: 10px; color: var(--muted); }
.stat .value { font-size: 16px; font-weight: 800; margin-top: 2px; }
.stat .value.ok { color: var(--green); }
.stat .value.warn { color: var(--amber); }
.stat .value.bad { color: var(--red); }

.field { margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.field label b { color: var(--text); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: rgba(0,0,0,.25); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 4px; border-radius: 8px; font-size: 11px; color: var(--muted); }
.seg button.active { background: var(--accent); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.swatch { border: 1px solid var(--line); background: rgba(0,0,0,.2); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.swatch i { width: 100%; height: 26px; border-radius: 6px; display: block; }
.swatch.active { border-color: var(--accent); color: #fff; box-shadow: 0 0 0 1px var(--accent); }
.colors { display: flex; gap: 8px; }
.color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; }
.color.active { border-color: #fff; }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 12px; }
.switch { width: 36px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.15); border: 0; position: relative; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(16px); }

/* Espelho de elevadores */
.mirror { display: grid; gap: 3px; }
.mirror-row { display: grid; gap: 3px; align-items: center; }
.mirror-row .fl { font-size: 10px; color: var(--muted); text-align: right; padding-right: 4px; }
.cell { height: 16px; border-radius: 4px; background: rgba(108,124,255,.1); border: 0; padding: 0; transition: background .2s; }
.cell:hover { background: rgba(108,124,255,.35); }
.cell.call { background: var(--amber); box-shadow: 0 0 8px rgba(255,181,71,.6); }
.cell.car { background: var(--cyan); box-shadow: 0 0 10px rgba(56,225,255,.7); }
.cell.car.open { background: var(--green); box-shadow: 0 0 10px rgba(62,224,143,.7); }
.mirror-head { font-size: 10px; color: var(--muted); text-align: center; }

.btn {
  width: 100%; border: 0; border-radius: 12px; padding: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 20px rgba(108,124,255,.35); margin-top: 8px;
}
.btn.ghost { background: transparent; box-shadow: none; border: 1px solid var(--line); color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--accent); }
.btn.sm { width: auto; padding: 7px 12px; font-size: 12px; margin: 0; }

.car-status { display: flex; flex-direction: column; gap: 6px; }
.car-line { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.2); border-radius: 10px; padding: 8px 10px; }
.car-line .num { min-width: 34px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: rgba(56,225,255,.15); color: var(--cyan); }
.car-line .info { flex: 1; font-size: 11px; color: var(--muted); }
.car-line .info b { color: var(--text); font-size: 12px; }

/* Opções detalhadas */
.tag { display: inline-block; font-size: 10px; font-weight: 600; color: #aab4ff; background: rgba(108,124,255,.14); padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.hint-sm { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.toggle > div:first-child { flex: 1; padding-right: 10px; }
.seg button small { display: block; font-size: 9px; opacity: .75; }
.optlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.opt .opt-name { font-weight: 700; font-size: 12px; }
.opt .opt-desc { grid-column: 1 / 2; font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.opt .tag { grid-column: 2; grid-row: 1; align-self: start; }
.opt:hover { border-color: rgba(108,124,255,.6); }
.opt.active { border-color: var(--accent); background: rgba(108,124,255,.16); box-shadow: 0 0 0 1px var(--accent); }
.warn-box { margin-top: 10px; background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.4); color: #ffd28a; border-radius: 10px; padding: 8px 10px; font-size: 11px; line-height: 1.5; }
.scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scenario .btn { width: 100%; }
.car-line.alert { background: rgba(255,90,110,.15); box-shadow: inset 0 0 0 1px rgba(255,90,110,.5); }

/* Componentes */
.part-pin {
  display: flex; align-items: center; gap: 6px; pointer-events: auto; cursor: pointer;
  background: rgba(18, 26, 74, .9); border: 1px solid rgba(108,124,255,.6); color: #fff;
  border-radius: 999px; padding: 2px 9px 2px 2px; font-size: 10.5px; font-weight: 600; white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.part-pin b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: 10px; }
.part-pin:hover { transform: scale(1.06); }
.part-pin.active { background: var(--accent); }
.part-pin.active b { background: #fff; color: var(--accent); }
.part-pin.dim { opacity: .25; }
/* rótulo que ficaria por cima de outro: mostra só o número; o nome aparece ao passar o mouse */
.part-pin.mini { padding: 2px; }
.part-pin.mini span { display: none; }
.part-pin.mini:hover, .part-pin.mini.active { padding: 2px 9px 2px 2px; z-index: 99999 !important; }
.part-pin.mini:hover span, .part-pin.mini.active span { display: inline; }
.partlist { display: flex; flex-direction: column; gap: 3px; }
.part-row { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; font-size: 12px; color: var(--muted); }
.part-row b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(108,124,255,.2); color: #fff; font-size: 10px; flex: none; }
.part-row:hover { background: rgba(108,124,255,.1); color: var(--text); }
.part-row.active { background: rgba(108,124,255,.22); color: #fff; }
.part-card h3 { margin: 0 0 6px; font-size: 14px; }
.part-card p { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: #c9d0f5; }
.part-card ul { margin: 0 0 10px; padding-left: 16px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

/* Dimensionamento no painel */
.select { width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none; }
.select option { background: var(--panel); }
.sizing-card { background: rgba(62,224,143,.06); border: 1px solid rgba(62,224,143,.3); border-radius: 12px; padding: 10px 12px; }
.sz-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; padding: 3px 0; }
.sz-row span { color: var(--muted); }
.sz-row b.ok { color: var(--green); }
.sz-row b.warn { color: var(--amber); }
.wizard-btn { background: linear-gradient(135deg, rgba(108,124,255,.25), rgba(139,92,246,.25)); color: #fff; }

/* Assistente */
.modal.wide { width: min(1040px, 94vw); }
.modal.proposal { width: min(820px, 94vw); }
.modal.proposal td:first-child { padding-right: 18px; }
.modal td[colspan] { text-align: left; padding-top: 16px; } /* títulos de seção da proposta */
.wz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wz-head h2 { margin: 2px 0 0; }
.wz-head .eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.wz-steps { display: flex; gap: 6px; margin: 16px 0 18px; flex-wrap: wrap; }
.wz-steps span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); background: rgba(0,0,0,.2); padding: 5px 10px 5px 5px; border-radius: 99px; }
.wz-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(108,124,255,.2); font-size: 10px; }
.wz-steps span.on { color: #fff; background: rgba(108,124,255,.25); }
.wz-steps span.on b, .wz-steps span.done b { background: var(--accent); color: #fff; }
.wz-body p { margin: 0 0 12px; }
.wz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wz-grid.two { grid-template-columns: repeat(2, 1fr); }
.wz-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 12px; }
.wz-card.row { flex-direction: row; align-items: center; gap: 12px; }
.wz-card b { font-size: 14px; }
.wz-card:hover { border-color: rgba(108,124,255,.6); }
.wz-card.active { border-color: var(--accent); background: rgba(108,124,255,.16); box-shadow: 0 0 0 1px var(--accent); }
.wz-icon { font-size: 26px; }
.wz-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.wz-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.wz-field b { color: var(--text); }
.wz-pop { margin-top: 16px; background: rgba(108,124,255,.1); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.wz-pop b { font-size: 18px; color: #fff; }
.wz-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.wz-nav .btn { width: auto; padding: 10px 22px; margin: 0; }
.wz-sizing { background: rgba(62,224,143,.06); border: 1px solid rgba(62,224,143,.35); border-radius: 14px; padding: 14px 16px; }
.wz-sizing.warn { background: rgba(255,181,71,.07); border-color: rgba(255,181,71,.45); }
.wz-big { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.wz-big div { font-size: 11px; color: var(--muted); }
.wz-big span { display: block; font-size: 24px; font-weight: 800; color: #fff; }
.wz-sizing ul { margin: 12px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.6; color: #c9d0f5; }
.wz-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.wz-pack { position: relative; background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.wz-pack.rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 40px rgba(108,124,255,.25); }
.wz-pack h3 { margin: 0; font-size: 18px; }
.wz-pack p { margin: 4px 0 8px; font-size: 12px; }
.wz-pack ul { margin: 10px 0; padding-left: 16px; font-size: 11.5px; line-height: 1.6; color: #c9d0f5; flex: 1; }
.wz-price { font-size: 24px; font-weight: 800; color: #b9c2ff; }
.wz-badge { position: absolute; top: -10px; right: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.wz-metrics { display: flex; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.wz-metrics span { background: rgba(108,124,255,.12); padding: 2px 8px; border-radius: 99px; }
@media (max-width: 860px) {
  .wz-grid, .wz-grid.two, .wz-packs, .wz-form { grid-template-columns: 1fr; }
  .wz-big { grid-template-columns: repeat(3, 1fr); }
}

/* Financeiro (paleta categórica validada contra a superfície #121a4a) */
#page-finance { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; }
.fin-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.fin-controls h3 { margin: 0 0 10px; }
.fin-controls .seg { grid-auto-flow: column; }
#fin-results .kpis { margin-top: 0; }
.fin-rateio { margin-top: 14px; }
.rateio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rateio-row div { background: rgba(108,124,255,.08); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 11px; color: var(--muted); }
.rateio-row span { display: block; font-size: 20px; font-weight: 800; color: var(--text); }
.fin-chart { margin-top: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-head h3 { margin: 0; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.legend-row i, .chart-tip i, .rank i.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-wrap { position: relative; }
svg.stack { width: 100%; height: auto; display: block; }
svg.stack .grid { stroke: rgba(140,160,255,.12); stroke-width: 1; }
svg.stack .axis { fill: var(--muted); font-size: 10px; font-family: Inter, sans-serif; }
svg.stack .hit { fill: transparent; cursor: crosshair; }
svg.stack .hit.on { fill: rgba(140,160,255,.08); }
.chart-tip { position: absolute; display: none; pointer-events: none; min-width: 200px; background: rgba(18,26,74,.97); border: 1px solid rgba(108,124,255,.5); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.chart-tip div { display: flex; align-items: center; margin-top: 3px; color: var(--muted); }
.chart-tip div span { margin-left: auto; padding-left: 12px; color: var(--text); font-weight: 600; }
.fin-table summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-top: 8px; }
.fin-table .table { font-size: 11.5px; }
.fin-table .table td, .fin-table .table th { padding: 7px 10px; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.save-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; }
.save-row:first-of-type { border-top: 0; }
.save-row b.ok { color: var(--green); }
.save-row b.bad { color: var(--muted); }
.monthly-line { font-size: 12px; color: #c9d0f5; margin-top: 2px; }
.linkbtn { background: none; border: 0; padding: 0; color: #aab4ff; text-decoration: underline; font-size: inherit; }
.wz-monthly { font-size: 12px; color: #c9d0f5; margin-top: 4px; }
@media (max-width: 1100px) { .fin-grid, .grid-2.even { grid-template-columns: 1fr; } }

/* Tecnologia e marca */
.voice-box { margin-top: 8px; background: rgba(108,124,255,.08); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.row-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-inline .select { flex: 1; min-width: 120px; padding: 6px 8px; }
.file-btn { cursor: pointer; display: inline-flex; align-items: center; }
.logo-thumb { height: 30px; max-width: 90px; object-fit: contain; background: rgba(255,255,255,.08); border-radius: 6px; padding: 2px; }
input[type=color] { width: 42px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 2px; cursor: pointer; }

/* Ficha técnica */
.spec-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.75; color: #c9d0f5; }
svg.plan { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
svg.plan .sh { fill: rgba(140,160,255,.06); stroke: #8f9bd0; stroke-width: 1.5; }
svg.plan .car { fill: rgba(57,135,229,.35); stroke: #3987e5; stroke-width: 1.5; }
svg.plan .cw { fill: #6b7280; }
svg.plan .door { fill: #e8ecff; }
svg.plan .dim { stroke: #8f9bd0; stroke-width: 1; }
svg.plan .lbl { fill: #e8ecff; font-size: 11px; font-family: Inter, sans-serif; }
svg.plan .lbl.muted { fill: #8f9bd0; }
.gantt { display: flex; flex-direction: column; gap: 8px; }
.g-row { display: grid; grid-template-columns: 190px 1fr 52px; gap: 10px; align-items: center; font-size: 11.5px; }
.g-row span { color: #c9d0f5; }
.g-row b { text-align: right; font-size: 11px; }
.g-track { position: relative; height: 12px; background: rgba(255,255,255,.06); border-radius: 6px; }
.g-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Comparador */
.cmp-wrap { overflow-x: auto; }
.table.cmp td, .table.cmp th { vertical-align: top; font-size: 12px; min-width: 200px; }
.table.cmp td:first-child, .table.cmp th:first-child { min-width: 150px; }
.table.cmp tbody tr { cursor: default; }
.table.cmp td.best { background: rgba(62,224,143,.07); }
.cmp-head { display: flex; flex-direction: column; gap: 6px; text-transform: none; letter-spacing: 0; }
.cmp-label { background: transparent; border: 0; border-bottom: 1px dashed var(--line); font-weight: 700; font-size: 13px; color: var(--text); outline: none; padding: 2px 0; }
.card.empty { margin-top: 18px; }

/* Aprovação */
.share-box { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.share-box a.btn { text-decoration: none; display: inline-flex; align-items: center; }
textarea.select { resize: vertical; font-family: inherit; }
.quote { border-left: 3px solid var(--accent); padding: 8px 12px; background: rgba(108,124,255,.08); border-radius: 0 8px 8px 0; margin: 10px 0; }
.kpis.small { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.kpis.small .kpi { padding: 10px; }
.kpis.small .value { font-size: 16px; }
#client-banner { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 7; background: rgba(18,26,74,.95); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 8px 6px 16px; display: flex; gap: 10px; align-items: center; font-size: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
#client-banner .btn { margin: 0; }

/* Grupos e zonas */
.zone-card { border: 1px solid var(--line); border-left: 3px solid var(--zc, var(--accent)); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: rgba(0,0,0,.15); }
.zone-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 8px; }
.zone-head span { color: var(--muted); font-size: 11px; }
.zone-metrics { font-size: 11px; }
.zone-metrics.ok { color: var(--green); }
.zone-metrics.warn { color: var(--amber); }
.zone-label { font-size: 11px; font-weight: 700; color: #fff; background: rgba(18,26,74,.9); border: 1px solid var(--accent); border-radius: 8px; padding: 3px 8px; text-align: center; white-space: nowrap; }
.zone-label small { font-weight: 500; color: var(--muted); }
.cell.na { background: transparent; border: 1px dashed rgba(140,160,255,.15); cursor: default; }

/* Emergências */
#alarm-banner { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px; border-radius: 999px; font-weight: 700; font-size: 12px; color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  width: max-content; max-width: calc(100% - 32px); }
#alarm-banner.fire { background: #b3202f; animation: alarm-pulse 1s ease-in-out infinite; }
#alarm-banner.power { background: #8a5a00; }
#alarm-banner button { border: 0; border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.2); color: #fff; font-weight: 700; }
#alarm-banner button:hover { background: rgba(255,255,255,.35); }
@keyframes alarm-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,90,110,.35), 0 10px 40px rgba(0,0,0,.5); } }
.fire-box { margin-top: 8px; }

/* Ajuda */
.help-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.help-head h2 { margin: 0; white-space: nowrap; }
.help-head .select { flex: 1; }
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; height: min(64vh, 620px); }
.help-nav { overflow-y: auto; border-right: 1px solid var(--line); padding-right: 10px; display: flex; flex-direction: column; gap: 2px; }
.help-group { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px 8px; }
.help-group:first-child { margin-top: 0; }
.help-link { text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; color: #c9d0f5; }
.help-link:hover { background: rgba(108,124,255,.1); color: #fff; }
.help-link.active { background: rgba(108,124,255,.22); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.help-body { overflow-y: auto; padding-right: 6px; }
.help-body .eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.help-body h3 { margin: 4px 0 8px; font-size: 20px; }
.help-intro { color: #c9d0f5; font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.help-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; font-size: 13px; }
.help-steps li { margin-bottom: 6px; }
.help-terms { display: grid; grid-template-columns: 190px 1fr; gap: 8px 14px; font-size: 12.5px; margin: 0 0 14px; }
.help-terms dt { font-weight: 700; color: #fff; }
.help-terms dd { margin: 0; color: #c9d0f5; }
.help-tips { display: flex; flex-direction: column; gap: 6px; background: rgba(62,224,143,.06); border: 1px solid rgba(62,224,143,.3); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; }
.help-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.help-actions .btn { width: auto; margin: 0; }
.help-np { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .help-layout { grid-template-columns: 1fr; height: auto; }
  .help-nav { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; padding: 0 0 8px; }
  .help-terms { grid-template-columns: 1fr; }
}

/* Temas de design */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme { display: flex; flex-direction: column; gap: 3px; text-align: left; background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 8px; font-size: 11px; }
.theme b { font-size: 12px; padding: 0 2px; }
.theme-desc { color: var(--muted); font-size: 10px; line-height: 1.35; padding: 0 2px; }
.theme-prev { position: relative; display: grid; grid-template-rows: 1fr 14px; height: 54px; border-radius: 8px; overflow: hidden; margin-bottom: 3px; }
.theme-prev .tw { display: block; }
.theme-prev .tf { display: block; }
.theme-prev .tl { position: absolute; top: 5px; left: 12%; right: 12%; height: 4px; border-radius: 4px; box-shadow: 0 0 10px 3px currentColor; }
.theme:hover { border-color: rgba(108,124,255,.6); }
.theme.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: rgba(108,124,255,.14); }
.swatch { font-size: 9.5px; line-height: 1.2; text-align: center; }
.color.custom { cursor: pointer; display: inline-block; }

/* Ficha técnica da peça */
.pc-title { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.tech-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tech-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 5px 8px 5px 0; vertical-align: top; width: 42%; }
.tech-table td { padding: 5px 0; color: #fff; font-weight: 600; }
.tech-table tr + tr th, .tech-table tr + tr td { border-top: 1px solid var(--line); }
.tech-chips { display: grid; gap: 6px; margin-top: 10px; }
.tech-chips div { background: rgba(108,124,255,.08); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 11px; }
.tech-chips span { display: block; color: var(--muted); font-size: 10px; }
.tech-chips b { font-weight: 600; }
#part-float { position: absolute; left: 16px; top: 72px; z-index: 6; width: 300px; max-width: calc(100% - 32px);
  background: rgba(18,26,74,.94); border: 1px solid rgba(108,124,255,.55); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
#part-float[hidden] { display: none; }
.pf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pf-head b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: 11px; flex: none; }
.pf-head span { font-weight: 700; font-size: 13px; flex: 1; }
.pf-head button { border: 0; background: transparent; color: var(--muted); font-size: 14px; }
#part-float dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 11.5px; }
#part-float dt { color: var(--muted); }
#part-float dd { margin: 0; font-weight: 600; }
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.pf-foot button { border: 0; background: transparent; color: #aab4ff; font-weight: 600; white-space: nowrap; }

/* Modal / toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 6, 20, .7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; }
.modal { width: min(620px, 92vw); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h2 { margin: 0 0 4px; }
.modal table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.modal td { padding: 8px 0; border-top: 1px solid var(--line); }
.modal td:last-child { text-align: right; font-weight: 600; }
.modal .row { display: flex; gap: 8px; }
.modal .row > * { flex: 1; }
.modal input { width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; outline: none; margin-top: 4px; }
.modal ul { padding-left: 18px; line-height: 1.7; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--panel-2); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 16px; font-weight: 600; transition: transform .25s; z-index: 60; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Barra superior (idioma e administrador) ---------- */
.app { grid-template-rows: 40px minmax(0, 1fr); }
.topbar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px; background: #080c26; border-bottom: 1px solid var(--line); font-size: 12px; min-width: 0;
}
.topbar-left { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-left b { font-family: 'Sora', 'Inter', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.lang-tabs { display: flex; gap: 2px; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-tabs button { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lang-tabs button:hover { color: var(--text); }
.lang-tabs button.active { background: var(--accent); color: #fff; }
.topbar-btn { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.topbar-btn:hover { border-color: var(--accent); }
.topbar-btn[hidden] { display: none; }

/* ---------- Portal do administrador (admin.html) ---------- */
.portal { display: grid; grid-template-rows: 40px minmax(0, 1fr); height: 100vh; }
.portal-page { position: static; inset: auto; overflow: auto; }
.login-card { max-width: 440px; margin: 8vh auto 0; padding: 24px; }
.login-card h1 { font-size: 22px; }
.login-card .btn { width: 100%; }
.part-actions { white-space: nowrap; }
.part-actions .btn { display: block; width: 100%; margin: 0 0 4px; }
.req-flag { color: var(--amber); }
#page-admin { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; }

/* ---------- Programa principal: aba Manutenção ---------- */
.nav-btn { position: relative; }
.nav-badge { position: absolute; top: 4px; right: 12px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--amber); color: #1a1300; font-size: 10px; font-style: normal; font-weight: 800; line-height: 16px; }
.nav-badge[hidden] { display: none; }
.maint-filters { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.maint-filters .seg { min-width: 300px; }
.maint-filters .select { width: auto; min-width: 240px; }
.maint-table td { vertical-align: top; font-size: 12px; }
.maint-table tr.concluida td { color: var(--muted); }
.maint-actions { white-space: nowrap; }
.maint-actions .btn { margin: 0 4px 4px 0; }
.link-btn { border: 0; background: none; padding: 0; color: var(--text); text-align: left; cursor: pointer; font-size: 12px; }
.link-btn:hover { color: var(--cyan); text-decoration: underline; }
.login-foot { margin-top: 14px; text-align: center; }
.login-foot .link-btn { color: var(--cyan); }
.qr-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 10px 0; }
.qr-box img { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 10px; }
.secret-key { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; word-break: break-all; }
.empty-card { margin-top: 18px; text-align: center; padding: 28px; }
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 18px; border-bottom: 1px solid var(--line); }
.adm-tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px 14px; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adm-tabs button:hover { color: var(--text); }
.adm-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.kpi .sub.bad { color: var(--red); }
.kpi .sub.warn { color: var(--amber); }
.kpis.three { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.adm-alert { padding: 8px 10px; border-radius: 10px; margin-top: 6px; font-size: 12px; background: rgba(255,181,71,.1); color: #ffd28a; }
.adm-alert.bad { background: rgba(255,90,110,.12); color: #ff9aa8; }
.adm-alert.ok { background: rgba(62,224,143,.1); color: var(--green); }
.table.compact td, .table.compact th { padding: 7px 10px; font-size: 12px; }
.adm-table td { vertical-align: top; font-size: 12px; }
.meter.life i { background: var(--green); }
.meter.life.watch i { background: var(--amber); }
.meter.life.due i { background: var(--red); }
.meter.big { height: 10px; margin: 8px 0 6px; }
.adm-pay tr.paid td { color: var(--muted); }
.adm-pay tr.late td:nth-child(2) { color: var(--red); font-weight: 600; }
.log-form .select { padding: 7px 9px; }
.cred-box { display: grid; gap: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0; }
.cred-box > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cred-box span { color: var(--muted); font-size: 12px; }
.cred-box code { font-size: 16px; font-weight: 700; color: var(--cyan); letter-spacing: .04em; user-select: all; }
.cred-box .btn { justify-self: start; }
.login-err { color: var(--red); font-size: 12px; margin-top: 4px; }

@media (max-width: 1100px) {
  .app { grid-template-columns: 70px 1fr 300px; }
  .kpis.three { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .legend .hint { display: none; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 60vh auto; height: auto; }
  .topbar { padding: 6px 10px; flex-wrap: wrap; }
  .topbar-left .muted, .topbar-btn span { display: none; }
  .portal { height: auto; min-height: 100vh; }
  .stage { min-height: 60vh; }
  .sidebar { position: fixed; bottom: 0; left: 0; right: 0; flex-direction: row; z-index: 20; padding: 6px; justify-content: space-around; }
  .brand, .nav-group, .nav-spacer { display: none; }
  .panel { padding-bottom: 80px; }
  .title-input { width: 160px; font-size: 14px; }
  .stage-top .pills.right { display: none; }
  .page { padding: 18px 16px 90px; }
}

@media print {
  body:not(.print-page) .app, .toast { display: none !important; }
  body.print-page .topbar, body.print-page .sidebar, body.print-page .panel, body.print-page #canvas-host, body.print-page .stage-top,
  body.print-page .legend, body.print-page .modal-backdrop, body.print-page .page[hidden], body.print-page [data-print-specs] { display: none !important; }
  body.print-page .app { display: block; height: auto; }
  body.print-page .stage { overflow: visible; background: #fff; }
  body.print-page .page { position: static; background: #fff; color: #111; overflow: visible; padding: 0; }
  body.print-page .card, body.print-page .kpi { background: #fff; border-color: #ccc; color: #111; break-inside: avoid; }
  body.print-page .spec-list, body.print-page .g-row span, body.print-page .muted, body.print-page .hint-sm { color: #333; }
  body { background: #fff; color: #000; overflow: visible; }
  .modal-backdrop { position: static; background: none; backdrop-filter: none; }
  .modal { box-shadow: none; border: 0; background: #fff; color: #000; max-height: none; width: 100%; }
  .modal .no-print { display: none; }
}
.table-scroll { overflow-x: auto; margin-top: 18px; }
.table-scroll .table { margin-top: 0; min-width: 860px; }

/* contestação de manutenção */
.contest-box { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255,90,110,.12); color: #ff9aa8; font-size: 11px; line-height: 1.4; }
.maint-table tr.contestada td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.contest-reasons { display: grid; gap: 6px; }
.radio-row { display: flex !important; justify-content: flex-start !important; gap: 8px; align-items: center; font-size: 13px !important; color: var(--text) !important; cursor: pointer; }
.radio-row input { width: auto; margin: 0; }
.decision-box { margin-top: 6px; padding: 6px 8px; border-radius: 8px; font-size: 11px; line-height: 1.4; }
.decision-box.ok { background: rgba(62,224,143,.1); color: var(--green); }
.decision-box.bad { background: rgba(255,90,110,.12); color: #ff9aa8; }
.bad-text { color: #ff9aa8; }
.btn.danger { background: linear-gradient(135deg, #e0475c, #b8304a); color: #fff; }
.btn.ghost.danger { background: transparent; color: #ff9aa8; border-color: rgba(255,90,110,.5); }

/* ---------- modo servidor: acesso, usuário, página Empresa ---------- */
.auth-overlay { position: fixed; inset: 0; z-index: 60; overflow: auto; background: radial-gradient(circle at 30% 20%, #1a2370, var(--bg) 60%); }
.login-logo { max-height: 48px; max-width: 200px; display: block; margin-bottom: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-right: 10px; }
.info-box { margin-top: 10px; background: rgba(56,225,255,.08); border: 1px solid rgba(56,225,255,.35); color: #bdefff; border-radius: 10px; padding: 8px 10px; font-size: 11px; line-height: 1.5; }
.access-row { align-items: center; gap: 10px; flex-wrap: wrap; }
.access-row > span:first-child { flex: 1; min-width: 180px; }
.file-btn { cursor: pointer; display: inline-flex; align-items: center; }
.brand-preview { max-height: 40px; max-width: 160px; background: rgba(255,255,255,.06); border-radius: 6px; padding: 4px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.steps { padding-left: 18px; line-height: 1.6; }
pre.code { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 11px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
#page-company .table td, #page-company .table th { vertical-align: top; }

/* ---------- BIM ---------- */
.pill.on { border-color: var(--cyan); color: var(--cyan); }
.bim-badge { margin-left: 8px; font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(56,225,255,.5); background: rgba(56,225,255,.1); color: var(--cyan); }
.bim-storeys { max-height: 260px; overflow: auto; margin-bottom: 8px; }
.bim-checks .save-row { gap: 10px; }
.bim-checks .save-row .hint-sm { text-align: right; }
