:root {
  --ink: #171b20;
  --ink-soft: #343a42;
  --paper: #f3f4f2;
  --paper-strong: #ffffff;
  --paper-soft: #e9ebe8;
  --line: #d7dad6;
  --line-strong: #c5c9c4;
  --muted: #687078;
  --muted-strong: #4e565f;
  --accent: #a76535;
  --accent-hover: #875025;
  --accent-soft: #f2e7dc;
  --accent-ink: #452918;
  --success: #22663d;
  --success-soft: #e7f3eb;
  --warning: #8a5a19;
  --warning-soft: #f8edd9;
  --danger: #a63f3b;
  --danger-hover: #87312e;
  --danger-soft: #f9e8e6;
  --sidebar: #0e1217;
  --sidebar-soft: #171d24;
  --sidebar-line: #272e36;
  --viewer: #11161b;
  --shadow-xs: 0 1px 2px rgba(17, 24, 31, .05);
  --shadow-sm: 0 8px 24px rgba(17, 24, 31, .08);
  --shadow-md: 0 18px 52px rgba(17, 24, 31, .12);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, .28);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; background: var(--paper); }
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 74% -15%, rgba(183, 121, 67, .11), transparent 28%),
    radial-gradient(circle at 25% 110%, rgba(75, 92, 108, .08), transparent 32%);
}
button, input, textarea, select { font: inherit; }
button, a, label.file-button { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { font-family: "Manrope", "DM Sans", sans-serif; }

:focus-visible {
  outline: 3px solid rgba(183, 121, 67, .42);
  outline-offset: 2px;
}
button:disabled,
.button:disabled,
.editor-nav-list button:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #59636c;
  border-color: #cbd0cc;
  background: #e1e4e1;
  box-shadow: none;
  transform: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 100vh;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  color: #dce2e8;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 28%),
    var(--sidebar);
  border-right: 1px solid var(--sidebar-line);
}
.brand {
  min-height: 58px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: var(--radius);
}
.brand:hover { background: rgba(255,255,255,.035); }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: linear-gradient(145deg, #a76535, #74411f);
  box-shadow: 0 10px 25px rgba(183, 121, 67, .25);
}
.brand > span:last-child { min-width: 0; display: grid; gap: 2px; }
.brand strong { color: #fff; font-size: 14px; letter-spacing: .17em; }
.brand small { color: #8f99a3; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.sidebar-nav { margin-top: 34px; display: grid; gap: 7px; }
.sidebar-nav a,
.sidebar-nav > span {
  min-height: 50px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #8e98a2;
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.sidebar-nav a:hover { color: #eef2f5; background: rgba(255,255,255,.04); transform: translateX(2px); }
.sidebar-nav .active {
  color: #fff;
  border-color: rgba(255,255,255,.07);
  background: linear-gradient(135deg, rgba(183,121,67,.24), rgba(255,255,255,.055));
  box-shadow: inset 3px 0 0 #c78a53;
}
.nav-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #aeb7bf;
  background: rgba(255,255,255,.045);
}
.sidebar-nav .active .nav-icon { color: #fff; background: rgba(183,121,67,.28); }
.ghost-item { cursor: default; }
.sidebar-footer {
  margin-top: auto;
  padding: 18px 10px 5px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--sidebar-line);
}
.user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #252d36;
  border: 1px solid #39434e;
}
.sidebar-footer span:last-child { min-width: 0; display: grid; gap: 2px; }
.sidebar-footer strong { overflow: hidden; color: #e7ebef; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-footer small { color: #7f8993; font-size: 9px; }
.main-content { min-width: 0; }

.page {
  width: 100%;
  min-height: 100vh;
  padding: 52px clamp(26px, 4vw, 72px) 76px;
}
.dashboard-page { max-width: 1760px; margin: 0 auto; }
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-header h1 {
  margin: 7px 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.052em;
}
.page-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.eyebrow,
.viewer-kicker {
  display: inline-block;
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button:active:not(:disabled) { transform: translateY(0); }
.button-accent { color: #fff; background: var(--accent); }
.button-accent:hover:not(:disabled) { color: #fff; background: var(--accent-hover); }
.button-dark { color: #fff; background: #1d242b; }
.button-dark:hover:not(:disabled) { color: #fff; background: #0d1217; }
.button-ghost { color: #303840; background: #fff; border-color: #cbd0cc; }
.button-ghost:hover:not(:disabled) { color: #171b20; background: #f0f2ef; border-color: #aeb5af; }
.button-danger { color: #fff; background: var(--danger); }
.button-danger:hover:not(:disabled) { color: #fff; background: var(--danger-hover); }
.button-small { min-height: 38px; padding-inline: 14px; font-size: 11px; }
.button-block { width: 100%; }
.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #59626b;
  background: #fff;
  border: 1px solid #d2d6d2;
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.icon-button:hover:not(:disabled) { color: var(--ink); background: #edf0ed; border-color: #b9bfba; transform: translateY(-1px); }
.icon-button:disabled { color: #7b848d; background: #e1e4e1; border-color: #cbd0cc; }
.danger-hover:hover:not(:disabled) { color: var(--danger); background: var(--danger-soft); border-color: #e6b9b6; }
.file-button { position: relative; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.metric-row {
  margin: 38px 0 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric-row > div {
  min-height: 108px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(199,204,199,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.83);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.metric-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-hover);
  border-radius: 14px;
  background: var(--accent-soft);
}
.metric-copy { min-width: 0; display: grid; gap: 4px; }
.metric-row strong { color: var(--ink); font-size: 25px; line-height: 1; letter-spacing: -.035em; }
.metric-row span { color: var(--muted); font-size: 11px; font-weight: 700; }
.dashboard-toolbar { margin-bottom: 24px; display: flex; gap: 12px; }
.search-box,
.filter-box {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #606a74;
  border: 1px solid #cfd4cf;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.search-box:focus-within,
.filter-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(183,121,67,.12); }
.search-box { min-width: min(480px, 100%); }
.search-box input,
.filter-box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.search-box input::placeholder { color: #8b939a; }
.filter-box { margin-left: auto; min-width: 188px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.project-card {
  overflow: hidden;
  border: 1px solid #d1d6d1;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: #bec5bf; box-shadow: var(--shadow-md); }
.project-cover { position: relative; height: 210px; display: block; overflow: hidden; background: #1d242a; }
.project-cover::after { position: absolute; inset: auto 0 0; height: 46%; content: ""; pointer-events: none; background: linear-gradient(transparent, rgba(9,13,17,.42)); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.75,.25,1); }
.project-card:hover .project-cover img { transform: scale(1.035); }
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #e8ecef;
  background:
    radial-gradient(circle at 55% 45%, rgba(183,121,67,.33), transparent 28%),
    linear-gradient(145deg, #12181e, #2b343d);
}
.cover-placeholder span { font: 700 38px "Manrope", sans-serif; letter-spacing: -.05em; }
.cover-placeholder small { color: #adb6bd; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.status-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
.status-rascunho { color: #4c351d; background: rgba(247,232,211,.95); }
.status-publicado { color: #1f5c36; background: rgba(224,244,231,.95); }
.status-arquivado { color: #515961; background: rgba(235,238,239,.95); }
.project-card-body { padding: 20px; }
.project-card-heading { min-height: 53px; display: flex; justify-content: space-between; gap: 12px; }
.project-card-heading > div { min-width: 0; }
.project-card-heading h2 { margin-bottom: 7px; overflow: hidden; color: var(--ink); font-size: 19px; letter-spacing: -.03em; white-space: nowrap; text-overflow: ellipsis; }
.project-card-heading p { margin-bottom: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.project-stats {
  margin: 18px 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 1px solid #e0e3e0;
  border-radius: 12px;
  color: var(--muted);
  background: #f6f7f5;
  font-size: 10px;
}
.project-stats span { display: grid; gap: 3px; }
.project-stats strong { color: var(--ink); font-size: 13px; }
.project-stats span:last-child { text-align: right; }
.project-card-actions { display: flex; align-items: center; gap: 7px; }
.project-card-actions .button { margin-right: auto; }
.empty-state-panel {
  margin-top: 28px;
  min-height: 390px;
  padding: 36px;
  border: 1px dashed #bfc6c0;
  border-radius: 20px;
  background: rgba(255,255,255,.55);
}
.empty-state { min-height: 310px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-state-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  border-radius: 20px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(183,121,67,.18);
}
.empty-state h2 { margin: 18px 0 8px; color: var(--ink); font-size: 24px; }
.empty-state p { max-width: 520px; line-height: 1.6; }
.empty-state .button { margin-top: 11px; }

.modal-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(8,12,16,.72);
  backdrop-filter: blur(10px);
  animation: fadeIn .18s ease;
}
.modal {
  width: min(700px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: #f7f8f6;
  box-shadow: var(--shadow-lg);
  animation: modalIn .22s ease;
}
.modal-header { padding: 26px 28px 20px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #d9ddd8; }
.modal-header h2 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.035em; }
.modal-form { padding: 24px 28px 28px; }
.cover-upload {
  min-height: 202px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #5f6972;
  border: 1px dashed #aeb6af;
  border-radius: 15px;
  background: linear-gradient(145deg, #edf0ed, #f8f9f7);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.cover-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.cover-upload > span { display: grid; justify-items: center; gap: 8px; }
.cover-upload strong { color: var(--ink); font-size: 13px; }
.cover-upload small { font-size: 10px; }
.cover-upload img { width: 100%; height: 230px; object-fit: cover; }
.cover-upload input,
.cover-editor input { display: none; }
.form-grid { margin-top: 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: #424a52; font-size: 11px; font-weight: 800; }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #cbd0cb;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(183,121,67,.12); }
.field input:disabled,
.field select:disabled { color: #69727a; background: #e7eae7; }
.form-error { margin: 14px 0 0; padding: 11px 12px; color: #842f2b; border: 1px solid #e2b8b5; border-radius: 9px; background: var(--danger-soft); font-size: 11px; }
.modal-actions { margin-top: 23px; display: flex; justify-content: flex-end; gap: 10px; }

.not-found { min-height: 100vh; padding: 30px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; }

.editor-page {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 80px minmax(0, 1fr);
  background: #e9ece9;
}
.editor-topbar {
  min-width: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #d2d7d2;
  background: rgba(250,251,249,.96);
  box-shadow: 0 3px 16px rgba(17,24,31,.05);
  backdrop-filter: blur(16px);
}
.editor-project-title,
.editor-actions { min-width: 0; display: flex; align-items: center; gap: 12px; }
.editor-project-title h1 { max-width: 440px; margin: 3px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 19px; letter-spacing: -.03em; }
.editor-project-title .eyebrow { margin-bottom: 1px; }
.save-message {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: #59636c;
  border: 1px solid #d6dad6;
  border-radius: 999px;
  background: #f0f2f0;
  font-size: 10px;
  font-weight: 800;
}
.editor-workspace { min-height: 0; display: grid; grid-template-columns: 326px minmax(440px, 1fr) 360px; }
.scene-panel,
.properties-panel { min-height: 0; background: #f7f8f6; }
.scene-panel { padding: 22px 17px 18px; overflow: auto; border-right: 1px solid #d3d8d3; }
.properties-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); border-left: 1px solid #d3d8d3; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.panel-title-row h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.03em; }
.properties-panel > .panel-title-row { padding: 22px 19px 18px; border-bottom: 1px solid #dfe3df; }
.panel-header-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #59636c;
  border: 1px solid #d6dad6;
  border-radius: 11px;
  background: #fff;
}

.panorama-dropzone {
  width: 100%;
  min-height: 118px;
  margin-top: 18px;
  padding: 17px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: #626c75;
  border: 1px dashed #aeb6af;
  border-radius: 13px;
  background: linear-gradient(145deg, #eef0ee, #f8f9f7);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.panorama-dropzone:hover,
.panorama-dropzone.drag-active,
.empty-viewer.drag-active { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.upload-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  border-radius: 12px;
  background: var(--accent-soft);
}
.panorama-dropzone strong { color: var(--ink); font-size: 12px; }
.panorama-dropzone small { max-width: 220px; font-size: 9px; line-height: 1.45; }
.panorama-dropzone input { display: none; }
.upload-progress { margin-top: 11px; padding: 11px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid #ddcdbd; border-radius: 10px; background: #fbf5ee; color: #5d4631; font-size: 10px; }
.upload-progress strong { font-size: 10px; }
.upload-progress > div { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: #e7d9ca; }
.upload-progress i { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.scene-empty { height: 145px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: #7a848c; }
.scene-empty p { margin: 0; font-size: 11px; }
.scene-list { margin-top: 13px; display: grid; gap: 8px; }
.scene-card {
  position: relative;
  width: 100%;
  min-height: 78px;
  padding: 8px 32px 8px 23px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid #dde1dd;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.scene-card:hover { background: #f2f4f1; border-color: #c8cec8; transform: translateY(-1px); }
.scene-card.active { border-color: #c58d5a; background: #f8eee5; box-shadow: inset 4px 0 0 var(--accent), 0 8px 22px rgba(183,121,67,.10); }
.scene-card.dragging { opacity: .48; }
.scene-card.drag-over { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(183,121,67,.16); }
.scene-card img { width: 88px; height: 56px; object-fit: cover; border-radius: 8px; background: #1b2228; }
.scene-card-info { min-width: 0; display: grid; gap: 4px; }
.scene-card-info strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.scene-card-info small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #737d85; font-size: 9px; }
.scene-card-info em { color: var(--accent-hover); font-size: 9px; font-style: normal; font-weight: 800; }
.scene-grip { position: absolute; left: 5px; top: 50%; display: grid; place-items: center; color: #98a1a8; transform: translateY(-50%); cursor: grab; }
.start-scene-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #6d431f;
  border-radius: 50%;
  background: #f4dcc6;
}
.editor-nav-list { margin-top: 17px; padding-top: 17px; display: grid; gap: 6px; border-top: 1px solid #dce0dc; }
.editor-nav-list button {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #5d6770;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.editor-nav-list button:hover:not(:disabled) { color: var(--ink); background: #e9ece9; }
.editor-nav-list button.active { color: #fff; border-color: #29323b; background: #202830; box-shadow: var(--shadow-sm); font-weight: 800; }
.editor-nav-list button:disabled { color: #68727b; background: #e3e6e3; border-color: #d2d6d2; }
.nav-count {
  min-width: 25px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #4e5962;
  background: #dce1dd;
  font-size: 9px;
  font-weight: 800;
}
.editor-nav-list button.active .nav-count { color: #342112; background: #f3d8bf; }

.editor-center { min-width: 0; min-height: 0; padding: 18px; background: var(--viewer); }
.viewer-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  border: 1px solid #313a43;
  border-radius: 16px;
  background: #0a0f13;
  box-shadow: 0 24px 70px rgba(0,0,0,.30);
}
.viewer-shell.is-placing { grid-template-rows: 56px auto minmax(0, 1fr); }
.viewer-shell.is-placing .panorama-viewer { cursor: crosshair; }
.viewer-head {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #e3e8ec;
  border-bottom: 1px solid #2c343c;
  background: #151b21;
}
.viewer-head > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.viewer-head > div:first-child { display: grid; gap: 2px; }
.viewer-head strong { max-width: 450px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.viewer-head span { color: #8f9aa4; font-size: 9px; }
.viewer-kicker { color: #d69a64; }
.viewer-action {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #3a444d;
  border-radius: 10px;
  color: #e0e6ea;
  background: #222a32;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.viewer-action:hover { color: #fff; background: #303a44; transform: translateY(-1px); }
.panorama-viewer { position: relative; width: 100%; height: 100%; min-height: 340px; background: #080d11; }
.panorama-viewer .pnlm-load-box { color: #fff; background: rgba(8,12,16,.86); border-radius: 12px; }
.panorama-viewer .pnlm-controls-container { top: 14px; left: 14px; }
.panorama-viewer .pnlm-control { border-color: rgba(255,255,255,.18); background-color: rgba(246,248,247,.94); box-shadow: 0 7px 18px rgba(0,0,0,.24); }
.viewer-library-error { position: absolute; inset: 0; padding: 24px; display: grid; place-content: center; justify-items: center; text-align: center; color: #e3e8ec; }
.viewer-library-error h3 { margin: 14px 0 6px; }
.viewer-library-error p { max-width: 410px; color: #9aa5ae; line-height: 1.55; }
.empty-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px dashed #4b5862;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 44%, rgba(183,121,67,.22), transparent 27%),
    radial-gradient(circle at 50% 45%, #313b43, #10161b 68%);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.viewer-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 54px 54px; transform: perspective(800px) rotateX(57deg) scale(1.55); transform-origin: center bottom; }
.viewer-empty-content { position: absolute; inset: 0; padding: 28px; display: grid; place-content: center; justify-items: center; text-align: center; color: #e6eaed; }
.viewer-empty-content h2 { margin: 20px 0 8px; font-size: 26px; letter-spacing: -.04em; }
.viewer-empty-content p { max-width: 480px; color: #aeb7bf; line-height: 1.6; }
.viewer-empty-content .button { margin-top: 10px; }
.sphere-icon {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  color: #f4f7f9;
  border: 1px solid #6f7c86;
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.022), 0 18px 45px rgba(0,0,0,.24);
}
.sphere-icon::before,
.sphere-icon::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.sphere-icon::before { inset: 14px 34px; }
.sphere-icon::after { inset: 34px 14px; }
.sphere-icon i { position: absolute; right: -8px; bottom: 2px; padding: 5px 7px; color: #2e1c0d; border-radius: 999px; background: #e6b17f; font-size: 9px; font-style: normal; font-weight: 900; }
.viewer-placement-banner {
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: #8b572d;
  border-bottom: 1px solid #b47a4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
}

.properties-scroll { padding: 18px; overflow: auto; display: grid; align-content: start; gap: 15px; }
.properties-empty { padding: 32px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: #6f7982; }
.properties-empty p { max-width: 260px; font-size: 11px; line-height: 1.55; }
.cover-editor {
  min-height: 156px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #5f6972;
  border: 1px dashed #aeb6af;
  border-radius: 13px;
  background: #eef1ee;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.cover-editor:hover { border-color: var(--accent); background: var(--accent-soft); }
.cover-editor img { width: 100%; height: 158px; object-fit: cover; }
.cover-editor span { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 800; }
.input-prefix { display: flex; align-items: stretch; overflow: hidden; border: 1px solid #cbd0cb; border-radius: 10px; background: #fff; }
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(183,121,67,.12); }
.input-prefix span { padding: 0 10px; display: grid; place-items: center; color: #626c75; border-right: 1px solid #d4d8d4; background: #edf0ed; font-size: 10px; font-weight: 800; }
.input-prefix input { border: 0; border-radius: 0; box-shadow: none !important; }
.scene-properties-preview { position: relative; height: 145px; overflow: hidden; border-radius: 13px; background: #182026; box-shadow: var(--shadow-sm); }
.scene-properties-preview::after { position: absolute; inset: auto 0 0; height: 50%; content: ""; background: linear-gradient(transparent, rgba(9,13,17,.62)); pointer-events: none; }
.scene-properties-preview img { width: 100%; height: 100%; object-fit: cover; }
.scene-properties-preview span { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; color: #fff; background: rgba(15,20,24,.82); font-size: 9px; font-weight: 800; backdrop-filter: blur(10px); }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #d6dbd6; border-radius: 11px; background: #d6dbd6; }
.data-grid > div { min-height: 66px; padding: 11px; display: grid; align-content: center; gap: 5px; background: #f2f4f1; }
.data-grid span { color: #707a82; font-size: 9px; }
.data-grid strong { color: var(--ink); font-size: 11px; }
.camera-fields { margin: 0; padding: 14px; display: grid; gap: 12px; border: 1px solid #d3d8d3; border-radius: 12px; background: #fafbfa; }
.camera-fields legend { padding: 0 7px; color: #4f5962; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.development-note { padding: 14px; border: 1px solid #e2d1bf; border-left: 4px solid var(--accent); border-radius: 10px; background: #f8f1e9; }
.development-note strong { color: #52351e; font-size: 11px; }
.development-note p { margin: 6px 0 0; color: #6f5844; font-size: 10px; line-height: 1.55; }
.warning-note { border-color: #ead6b0; border-left-color: #bd7d25; background: var(--warning-soft); }
.warning-note strong { color: #67400d; }
.warning-note p { color: #795724; }

.connection-empty {
  min-height: 150px;
  padding: 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: #66717a;
  border: 1px dashed #b6beb7;
  border-radius: 12px;
  background: #f0f2ef;
}
.connection-empty p { margin: 11px 0 5px; color: #303840; font-size: 12px; font-weight: 800; }
.connection-empty small { max-width: 260px; font-size: 9px; line-height: 1.5; }
.connection-list { display: grid; gap: 8px; }
.connection-card {
  width: 100%;
  min-height: 66px;
  padding: 10px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  border: 1px solid #d6dbd6;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.connection-card:hover { background: #f1f3f0; border-color: #c2c9c2; transform: translateY(-1px); }
.connection-card.active { border-color: #c78e5a; background: #f8eee5; box-shadow: inset 4px 0 0 var(--accent); }
.connection-card > span:last-child { min-width: 0; display: grid; gap: 4px; }
.connection-card strong,
.connection-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.connection-card strong { font-size: 11px; }
.connection-card small { color: #707a83; font-size: 9px; }
.connection-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--accent); box-shadow: 0 7px 16px rgba(183,121,67,.22); }
.connection-form-divider { height: 1px; background: #d9ddd9; }
.connection-form { display: grid; gap: 14px; }
.connection-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.connection-form-heading h3 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.03em; }
.connection-position { padding: 6px 8px; border-radius: 999px; color: #4e5861; background: #e8ebe8; font-size: 9px; font-weight: 800; }
.coordinate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle-field {
  min-height: 64px;
  padding: 11px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d5dad5;
  border-radius: 11px;
  background: #f3f5f2;
}
.toggle-field input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.toggle-field > span { display: grid; gap: 4px; }
.toggle-field strong { color: var(--ink); font-size: 11px; }
.toggle-field small { color: #69737b; font-size: 9px; line-height: 1.45; }
.placement-card {
  padding: 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
  color: #5b3619;
  border: 1px solid #deb992;
  border-radius: 12px;
  background: #f8e9da;
}
.placement-card strong { font-size: 11px; }
.placement-card p { margin: 4px 0 0; font-size: 9px; }

.toast-region { position: fixed; z-index: 130; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 40px)); display: grid; gap: 9px; pointer-events: none; }
.toast { min-height: 60px; padding: 13px 15px; display: flex; align-items: center; gap: 11px; border: 1px solid #bcd5c5; border-radius: 12px; color: #204d31; background: #eff8f2; box-shadow: 0 18px 52px rgba(0,0,0,.18); opacity: 0; transform: translateY(14px); transition: opacity .2s ease, transform .2s ease; }
.toast > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #d8eddf; }
.toast-visible { opacity: 1; transform: translateY(0); }
.toast p { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.45; }
.toast-error { color: #742d29; border-color: #dfb5b2; background: #fff0ef; }
.toast-error > span { background: #f5d7d4; }

/* Pannellum cria estes elementos em coordenadas absolutas. */
.panorama-viewer .atrio-nav-hotspot { width: 50px; height: 50px; margin: -25px 0 0 -25px; background: none !important; cursor: pointer; overflow: visible; }
.atrio-hotspot-shell { position: relative; display: grid; place-items: center; }
.atrio-hotspot-arrow {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 16px;
  color: #fff;
  background: rgba(13,18,22,.88);
  box-shadow: 0 10px 28px rgba(0,0,0,.40);
  transform: rotate(45deg);
  transition: transform .17s ease, background .17s ease, box-shadow .17s ease;
}
.atrio-hotspot-arrow svg { width: 23px; height: 23px; fill: currentColor; transform: rotate(-45deg); }
.atrio-nav-hotspot:hover .atrio-hotspot-arrow { transform: rotate(45deg) scale(1.08); background: var(--accent-hover); }
.atrio-nav-hotspot.is-selected .atrio-hotspot-arrow { background: var(--accent); box-shadow: 0 0 0 6px rgba(183,121,67,.26), 0 10px 30px rgba(0,0,0,.44); }
.atrio-nav-hotspot.is-pending .atrio-hotspot-arrow { background: var(--accent); animation: hotspotPulse 1.2s ease-in-out infinite; }
.atrio-hotspot-label {
  position: absolute;
  left: 50%;
  top: 58px;
  max-width: 210px;
  padding: 8px 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  color: #fff;
  background: rgba(11,15,18,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  font-size: 10px;
  font-weight: 800;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

@keyframes hotspotPulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.14); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1380px) {
  .editor-workspace { grid-template-columns: 292px minmax(410px, 1fr) 330px; }
  .editor-actions .button-ghost { display: none; }
  .scene-card { grid-template-columns: 78px minmax(0, 1fr); }
  .scene-card img { width: 78px; height: 52px; }
}

@media (max-width: 1120px) {
  .editor-workspace { grid-template-columns: 258px minmax(370px, 1fr) 310px; }
  .app-shell { grid-template-columns: 86px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > span:last-child,
  .sidebar-nav a > span:last-child,
  .sidebar-nav > span > span:last-child,
  .sidebar-footer > span:last-child { display: none; }
  .sidebar-nav a,
  .sidebar-nav > span,
  .sidebar-footer { justify-content: center; padding-inline: 0; }
  .nav-icon { width: 38px; height: 38px; }
  .page { padding: 38px 28px 64px; }
}

@media (max-width: 980px) {
  .editor-page { height: auto; min-height: 100vh; grid-template-rows: auto auto; }
  .editor-workspace {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    grid-template-rows: minmax(580px, 72vh) auto;
  }
  .scene-panel { grid-column: 1; grid-row: 1; }
  .editor-center { grid-column: 2; grid-row: 1; }
  .properties-panel { grid-column: 1 / -1; grid-row: 2; min-height: 360px; display: grid; border-top: 1px solid #d3d8d3; border-left: 0; }
  .properties-scroll { max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .properties-scroll > .field,
  .properties-scroll > .button,
  .properties-scroll > .development-note,
  .properties-scroll > .connection-list,
  .properties-scroll > .connection-empty,
  .properties-scroll > .connection-form,
  .properties-scroll > .connection-form-divider,
  .properties-scroll > .placement-card,
  .properties-scroll > .scene-properties-preview,
  .properties-scroll > .data-grid,
  .properties-scroll > .camera-fields,
  .properties-scroll > .cover-editor { min-width: 0; }
  .connection-form { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-form-heading,
  .connection-form .button,
  .connection-form .toggle-field { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 68px;
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: center;
    border-top: 1px solid var(--sidebar-line);
    border-right: 0;
  }
  .brand,
  .sidebar-footer,
  .ghost-item { display: none !important; }
  .sidebar-nav { width: 100%; margin: 0; }
  .sidebar-nav a { width: 100%; min-height: 50px; justify-content: center; }
  .sidebar-nav a > span:last-child { display: inline; }
  .main-content { padding-bottom: 68px; }
  .app-shell-editor .sidebar { display: none; }
  .app-shell-editor .main-content { padding-bottom: 0; }
  .page { padding: 28px 17px 46px; }
  .page-header { align-items: stretch; flex-direction: column; }
  .page-header .button { width: 100%; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row > div { min-height: 86px; }
  .dashboard-toolbar { flex-direction: column; align-items: stretch; }
  .filter-box { width: 100%; margin-left: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-cover { height: 205px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 12px; align-items: end; }
  .modal { width: 100%; max-height: calc(100vh - 24px); border-radius: 20px 20px 12px 12px; }
  .modal-header { padding: 22px 20px 17px; }
  .modal-form { padding: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }

  .editor-page { height: auto; min-height: calc(100vh - 68px); grid-template-rows: auto auto; }
  .editor-topbar { padding: 12px; align-items: flex-start; }
  .editor-project-title h1 { max-width: 165px; }
  .editor-actions { gap: 8px; }
  .editor-actions .save-message { display: none; }
  .editor-actions .button-accent { width: 44px; padding: 0; font-size: 0; }
  .editor-workspace { display: flex; flex-direction: column; }
  .scene-panel { order: 2; padding-bottom: 28px; border: 0; }
  .editor-center { order: 1; height: 58vh; min-height: 430px; padding: 9px; }
  .viewer-shell,
  .empty-viewer { border-radius: 13px; }
  .viewer-head strong { max-width: 180px; }
  .properties-panel { order: 3; min-height: 0; display: grid; border-top: 1px solid #d3d8d3; }
  .properties-scroll { grid-template-columns: 1fr; padding: 17px; }
  .connection-form { grid-template-columns: 1fr; }
  .coordinate-grid { grid-template-columns: 1fr; }
  .toast-region { right: 12px; bottom: 82px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Etapa 5 — plantas humanizadas */
.project-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-stats span:last-child { text-align: right; }
.property-intro { margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.viewer-stage {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}
.editor-center:not(.has-floorplan-dock) .viewer-stage { grid-template-columns: minmax(0, 1fr); }
.viewer-main { min-width: 0; min-height: 0; }
.viewer-main > .viewer-shell,
.viewer-main > .empty-viewer { height: 100%; }

.floorplan-dock {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #dfe5e9;
  border: 1px solid #313a43;
  border-radius: 16px;
  background: #11171c;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.floorplan-dock.is-placing { grid-template-rows: auto auto minmax(0, 1fr) auto; border-color: #a66a38; box-shadow: 0 0 0 3px rgba(183,121,67,.16), 0 24px 70px rgba(0,0,0,.25); }
.floorplan-dock-head {
  min-height: 67px;
  padding: 11px 12px;
  display: grid;
  gap: 9px;
  border-bottom: 1px solid #2d353d;
  background: #171e24;
}
.floorplan-dock-head > div { min-width: 0; display: grid; gap: 3px; }
.floorplan-dock-head strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.floorplan-select {
  position: relative;
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: #b7c0c8;
  border: 1px solid #3a444d;
  border-radius: 9px;
  background: #222a31;
}
.floorplan-select select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  color: #f4f6f7;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.floorplan-select select option { color: var(--ink); background: #fff; }
.floorplan-placement-banner {
  min-height: 45px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border-bottom: 1px solid #b47a4a;
  background: #8b572d;
  font-size: 10px;
  font-weight: 800;
}
.floorplan-placement-banner button {
  width: 30px;
  height: 30px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(0,0,0,.16);
}
.floorplan-scroll {
  min-height: 0;
  padding: 12px;
  overflow: auto;
  display: grid;
  align-items: center;
  justify-items: center;
  background:
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.018) 75%),
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.018) 75%),
    #0c1115;
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}
.floorplan-canvas {
  position: relative;
  width: 100%;
  line-height: 0;
  border: 1px solid #3b454d;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  touch-action: none;
}
.floorplan-dock.is-placing .floorplan-canvas { cursor: crosshair; box-shadow: 0 0 0 3px rgba(205,144,89,.28), 0 12px 32px rgba(0,0,0,.35); }
.floorplan-canvas > img { width: 100%; height: auto; border-radius: 9px; user-select: none; pointer-events: none; }
.floorplan-dock-footer {
  min-height: 65px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #2d353d;
  background: #171e24;
}
.floorplan-dock-footer > div { min-width: 0; display: grid; gap: 3px; }
.floorplan-dock-footer small { color: #8e99a2; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.floorplan-dock-footer strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.floorplan-dock-footer .button { margin-left: auto; min-height: 36px; padding-inline: 10px; }
.floorplan-dock-empty { grid-template-rows: auto minmax(0, 1fr); }
.floorplan-empty {
  padding: 22px 16px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: #aab4bc;
  background: radial-gradient(circle at 50% 42%, rgba(183,121,67,.16), transparent 34%), #0c1115;
}
.floorplan-empty > span { width: 58px; height: 58px; display: grid; place-items: center; color: #e2aa76; border: 1px solid #4c3b2d; border-radius: 17px; background: #251d17; }
.floorplan-empty h3 { margin: 15px 0 7px; color: #f2f5f6; font-size: 16px; }
.floorplan-empty p { max-width: 240px; margin-bottom: 15px; color: #929da5; font-size: 10px; line-height: 1.55; }

.plan-marker {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}
.plan-marker:active,
.plan-marker.dragging { cursor: grabbing; }
.plan-marker-core {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #222a31;
  box-shadow: 0 5px 14px rgba(0,0,0,.38);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.plan-marker-direction {
  position: absolute;
  z-index: 1;
  left: 7px;
  top: -12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  transform-origin: 12px 31px;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.4));
}
.plan-marker-direction svg { fill: currentColor; stroke-width: 1.4; }
.plan-marker-label {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 42px;
  max-width: 150px;
  padding: 5px 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  color: #fff;
  background: rgba(15,20,24,.9);
  box-shadow: 0 5px 14px rgba(0,0,0,.28);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.plan-marker:hover .plan-marker-core { background: var(--accent-hover); transform: scale(1.08); }
.plan-marker.active .plan-marker-core { background: var(--accent); box-shadow: 0 0 0 5px rgba(183,121,67,.25), 0 6px 18px rgba(0,0,0,.4); }
.plan-marker.active .plan-marker-label { background: var(--accent-hover); }
.plan-marker.dragging .plan-marker-core { transform: scale(1.12); background: var(--accent); }

.plan-management-list { display: grid; gap: 8px; }
.plan-management-card {
  width: 100%;
  min-height: 68px;
  padding: 7px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  border: 1px solid #d6dbd6;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.plan-management-card:hover { background: #f2f4f1; border-color: #c2c9c2; transform: translateY(-1px); }
.plan-management-card.active { border-color: #c58d5a; background: #f8eee5; box-shadow: inset 4px 0 0 var(--accent); }
.plan-management-card img { width: 82px; height: 54px; object-fit: contain; border: 1px solid #e0e3df; border-radius: 7px; background: #fff; }
.plan-management-card > span { min-width: 0; display: grid; gap: 5px; }
.plan-management-card strong,
.plan-management-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plan-management-card strong { font-size: 10px; }
.plan-management-card small { color: #737d85; font-size: 8px; }
.plan-list-empty { min-height: 118px; display: grid; place-content: center; justify-items: center; gap: 8px; color: #77818a; text-align: center; border: 1px dashed #bdc4be; border-radius: 11px; background: #f0f2ef; }
.plan-list-empty p { margin: 0; font-size: 10px; }
.floorplan-preview { height: 178px; background: #fff; }
.floorplan-preview img { object-fit: contain; background: #fff; }
.active-scene-plan-card { min-height: 61px; padding: 11px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid #d6dbd6; border-radius: 11px; background: #f2f4f1; }
.active-scene-plan-card > span { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: #252e36; }
.active-scene-plan-card > div { min-width: 0; display: grid; gap: 3px; }
.active-scene-plan-card small { color: #7a838b; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.active-scene-plan-card strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.marker-fields { background: #f5f6f4; }

@media (max-width: 1380px) {
  .viewer-stage { grid-template-columns: minmax(0, 1fr) 270px; gap: 10px; }
  .floorplan-dock-footer { align-items: stretch; flex-direction: column; }
  .floorplan-dock-footer .button { width: 100%; margin-left: 0; }
}

@media (max-width: 1120px) {
  .editor-center.has-floorplan-dock { overflow: auto; }
  .viewer-stage { height: auto; min-height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(420px, 1fr) auto; }
  .floorplan-dock { min-height: 390px; max-height: 520px; }
  .floorplan-dock-head { grid-template-columns: minmax(0,1fr) minmax(160px, 230px); align-items: center; }
  .floorplan-dock-footer { flex-direction: row; align-items: center; }
  .floorplan-dock-footer .button { width: auto; margin-left: auto; }
}

@media (max-width: 980px) {
  .floorplan-properties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floorplan-properties > .property-intro,
  .floorplan-properties > .plan-management-list,
  .floorplan-properties > .plan-list-empty,
  .floorplan-properties > .connection-form-divider,
  .floorplan-properties > .floorplan-preview,
  .floorplan-properties > .active-scene-plan-card,
  .floorplan-properties > .camera-fields,
  .floorplan-properties > .development-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .project-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-stats span { min-width: 0; }
  .project-stats strong { font-size: 11px; }
  .editor-center.has-floorplan-dock { height: auto; min-height: 760px; }
  .viewer-stage { grid-template-rows: minmax(430px, 58vh) auto; }
  .floorplan-dock { min-height: 460px; max-height: none; border-radius: 13px; }
  .floorplan-dock-head { grid-template-columns: 1fr; }
  .floorplan-dock-footer { align-items: stretch; flex-direction: column; }
  .floorplan-dock-footer .button { width: 100%; margin-left: 0; }
  .floorplan-properties { grid-template-columns: 1fr; }
  .floorplan-properties > * { grid-column: 1 !important; }
  .plan-marker-label { display: none; }
}

/* Etapa 6 — apresentação, compartilhamento e incorporação */
.share-modal { width: min(720px, calc(100vw - 28px)); }
.share-modal-body { padding: 0 24px 24px; display: grid; gap: 17px; }
.share-warning {
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  color: #6d4319;
  border: 1px solid #e6cba7;
  border-radius: 12px;
  background: #fff6e8;
}
.share-warning > svg { margin-top: 2px; }
.share-warning strong { display: block; margin-bottom: 4px; font-size: 12px; }
.share-warning p { margin: 0; color: #76552e; font-size: 11px; line-height: 1.55; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-field input { min-width: 0; }
.share-modal textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.55; }

.presentation-page {
  --presentation-header: 76px;
  --presentation-gallery: 134px;
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  color: #f6f8f9;
  background: #080b0e;
}
.presentation-header {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  height: var(--presentation-header);
  padding: 0 clamp(16px, 2.4vw, 34px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(5,8,10,.94), rgba(7,10,13,.82));
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}
.presentation-brand { display: flex; align-items: center; gap: 10px; }
.presentation-brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 12px;
  background: linear-gradient(145deg, #a76535, #70401f);
  box-shadow: 0 8px 24px rgba(167,101,53,.26);
}
.presentation-brand > div { display: grid; gap: 1px; }
.presentation-brand strong { font-size: 12px; letter-spacing: .18em; }
.presentation-brand small { color: #89939c; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.presentation-title { min-width: 0; display: grid; justify-items: center; gap: 4px; text-align: center; }
.presentation-title small,
.presentation-title strong { max-width: min(620px, 48vw); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.presentation-title small { color: #9aa4ad; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.presentation-title strong { color: #fff; font-size: clamp(14px, 1.5vw, 19px); }
.presentation-controls { display: flex; align-items: center; gap: 7px; }
.presentation-control,
.presentation-icon-button {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #cbd2d7;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  font-size: 10px;
  font-weight: 800;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.presentation-control:hover,
.presentation-control.active,
.presentation-icon-button:hover { color: #fff; border-color: rgba(199,138,83,.62); background: rgba(167,101,53,.3); transform: translateY(-1px); }
.presentation-stage { position: absolute; inset: var(--presentation-header) 0 0; min-width: 0; transition: right .24s ease, bottom .24s ease; }
.presentation-page.has-gallery .presentation-stage { bottom: var(--presentation-gallery); }
.presentation-page.has-plan .presentation-stage { right: min(31vw, 430px); }
.presentation-viewer { position: absolute; inset: 0; background: #11161b; }
.presentation-viewer .pnlm-container { background: #11161b; }
.presentation-viewer .pnlm-controls-container { left: 18px; right: auto; top: 18px; }
.presentation-viewer .pnlm-control { border: 1px solid rgba(255,255,255,.18); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.presentation-scene-label {
  position: absolute;
  z-index: 10;
  left: 22px;
  bottom: 22px;
  max-width: min(460px, calc(100% - 44px));
  padding: 11px 15px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(7,10,13,.75);
  box-shadow: 0 12px 36px rgba(0,0,0,.23);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.presentation-scene-label span { color: #c8996f; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.presentation-scene-label strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; font-size: 14px; }

.presentation-gallery {
  position: absolute;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--presentation-gallery);
  padding: 13px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(7,10,13,.93);
  box-shadow: 0 -14px 38px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  transform: translateY(0);
  transition: transform .24s ease;
}
.presentation-gallery.is-closed { transform: translateY(100%); pointer-events: none; }
.presentation-gallery-track { height: 100%; display: flex; align-items: stretch; gap: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #5a6268 transparent; }
.presentation-scene-card {
  position: relative;
  flex: 0 0 162px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: #151a1f;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.presentation-scene-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.32); }
.presentation-scene-card.active { border-color: #d49a64; box-shadow: 0 0 0 2px rgba(167,101,53,.34), 0 9px 25px rgba(0,0,0,.3); }
.presentation-scene-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.presentation-scene-card::after { position: absolute; inset: 36% 0 0; content: ''; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.presentation-scene-card span { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; font-size: 10px; font-weight: 800; }
.presentation-scene-card i { position: absolute; z-index: 3; right: 8px; top: 8px; width: 24px; height: 24px; display: grid; place-items: center; color: #fff; border-radius: 8px; background: rgba(167,101,53,.88); }

.presentation-plan {
  position: fixed;
  z-index: 24;
  right: 0;
  top: var(--presentation-header);
  bottom: 0;
  width: min(31vw, 430px);
  min-width: 330px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  color: #eef2f4;
  border-left: 1px solid rgba(255,255,255,.1);
  background: #11161b;
  box-shadow: -20px 0 52px rgba(0,0,0,.24);
  transition: transform .24s ease;
}
.presentation-page.has-gallery .presentation-plan { bottom: var(--presentation-gallery); }
.presentation-plan.is-closed { transform: translateX(100%); pointer-events: none; }
.presentation-plan-head { min-height: 67px; padding: 13px 14px 10px 17px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #2c3339; background: #171d22; }
.presentation-plan-head > div { min-width: 0; display: grid; gap: 4px; }
.presentation-plan-head span { color: #bd8a5c; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.presentation-plan-head strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.presentation-plan-head .presentation-icon-button { width: 36px; min-height: 36px; padding: 0; margin-left: auto; }
.presentation-plan-select { min-height: 48px; margin: 11px 13px 0; padding: 0 10px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 7px; color: #aeb7be; border: 1px solid #343c43; border-radius: 10px; background: #1b2228; }
.presentation-plan-select select { width: 100%; min-width: 0; color: #f3f5f6; border: 0; outline: 0; background: transparent; font-size: 10px; font-weight: 800; appearance: none; }
.presentation-plan-scroll { min-height: 0; margin-top: 11px; padding: 14px; overflow: auto; display: grid; place-items: center; background: #0c1014; }
.presentation-plan-canvas { position: relative; width: 100%; line-height: 0; border: 1px solid #394149; border-radius: 11px; background: #fff; box-shadow: 0 15px 36px rgba(0,0,0,.35); }
.presentation-plan-canvas > img { width: 100%; height: auto; border-radius: 10px; user-select: none; }
.presentation-plan-marker { position: absolute; width: 38px; height: 38px; padding: 0; color: #fff; border: 0; background: transparent; transform: translate(-50%, -50%); }
.presentation-plan-marker > i { position: relative; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 50%; background: #252e35; box-shadow: 0 5px 16px rgba(0,0,0,.42); transition: transform .16s ease, background .16s ease; }
.presentation-plan-marker > span { position: absolute; z-index: 1; left: 7px; top: -12px; width: 24px; height: 24px; display: grid; place-items: center; transform-origin: 12px 31px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.42)); }
.presentation-plan-marker > span svg { fill: currentColor; }
.presentation-plan-marker > em { position: absolute; z-index: 4; left: 50%; top: 42px; max-width: 150px; padding: 5px 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(15,20,24,.92); font-size: 8px; font-style: normal; font-weight: 800; line-height: 1; transform: translateX(-50%); pointer-events: none; }
.presentation-plan-marker:hover > i { transform: scale(1.08); background: #855329; }
.presentation-plan-marker.active > i { background: #a76535; box-shadow: 0 0 0 5px rgba(167,101,53,.3), 0 5px 16px rgba(0,0,0,.42); }
.presentation-plan-marker.active > em { background: #7e4b25; }
.presentation-plan-current { min-height: 62px; padding: 11px 16px; display: grid; align-content: center; gap: 3px; border-top: 1px solid #2c3339; background: #171d22; }
.presentation-plan-current small { color: #89949c; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.presentation-plan-current strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }

.presentation-hotspot { cursor: pointer; }
.presentation-hotspot .atrio-hotspot-arrow { width: 49px; height: 49px; }
.presentation-hotspot .atrio-hotspot-label { font-size: 10px; }
.embed-watermark { position: fixed; z-index: 26; right: 13px; bottom: 12px; padding: 7px 9px; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(5,8,10,.58); font-size: 8px; font-weight: 800; letter-spacing: .04em; backdrop-filter: blur(10px); pointer-events: none; }
.presentation-page.has-gallery .embed-watermark { bottom: calc(var(--presentation-gallery) + 12px); }
.presentation-not-found { min-height: 100vh; padding: 28px; display: grid; place-content: center; justify-items: center; text-align: center; background: var(--paper); }
.presentation-not-found > span { width: 72px; height: 72px; display: grid; place-items: center; color: #fff; border-radius: 22px; background: #20272d; box-shadow: var(--shadow-sm); }
.presentation-not-found h1 { margin: 20px 0 8px; font-size: clamp(28px, 5vw, 48px); letter-spacing: -.04em; }
.presentation-not-found p { max-width: 480px; margin-bottom: 20px; color: var(--muted); line-height: 1.6; }

@media (max-width: 1040px) {
  .presentation-control span { display: none; }
  .presentation-control { width: 40px; padding: 0; }
  .presentation-page.has-plan .presentation-stage { right: min(38vw, 390px); }
  .presentation-plan { width: min(38vw, 390px); min-width: 300px; }
}

@media (max-width: 760px) {
  .share-modal-body { padding-inline: 16px; }
  .copy-field { grid-template-columns: 1fr; }
  .copy-field .button { width: 100%; }
  .presentation-page { --presentation-header: 64px; --presentation-gallery: 116px; }
  .presentation-header { padding-inline: 11px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .presentation-brand > div { display: none; }
  .presentation-brand > span { width: 38px; height: 38px; }
  .presentation-title { justify-items: start; text-align: left; }
  .presentation-title small,
  .presentation-title strong { max-width: calc(100vw - 220px); }
  .presentation-title small { font-size: 7px; }
  .presentation-title strong { font-size: 12px; }
  .presentation-controls { gap: 5px; }
  .presentation-control { width: 36px; min-height: 36px; border-radius: 9px; }
  .presentation-controls > a:last-child { display: none; }
  .presentation-page.has-plan .presentation-stage { right: 0; }
  .presentation-plan { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; min-width: 0; height: min(55vh, 520px); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; box-shadow: 0 20px 60px rgba(0,0,0,.48); overflow: hidden; }
  .presentation-page.has-gallery .presentation-plan { bottom: calc(var(--presentation-gallery) + 8px); }
  .presentation-plan.is-closed { transform: translateY(calc(100% + 18px)); }
  .presentation-plan-marker > em { display: none; }
  .presentation-scene-label { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 9px 11px; }
  .presentation-scene-label strong { font-size: 11px; }
  .presentation-gallery { padding: 10px 10px 12px; }
  .presentation-scene-card { flex-basis: 132px; }
  .presentation-scene-card span { left: 8px; right: 8px; bottom: 7px; font-size: 9px; }
  .presentation-page.has-gallery .embed-watermark { bottom: calc(var(--presentation-gallery) + 8px); }
}

@media (max-width: 430px) {
  .presentation-title small { display: none; }
  .presentation-title strong { max-width: calc(100vw - 200px); }
  .presentation-controls { gap: 4px; }
  .presentation-control { width: 34px; min-height: 34px; }
  .presentation-plan { height: min(52vh, 440px); }
}

/* Etapa 7 — Firebase, autenticação e migração */
.sidebar-account { min-width: 0; display: grid; gap: 2px; flex: 1; }
.sidebar-account strong { overflow: hidden; color: #e7ebef; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-account small { color: #7f8993; font-size: 9px; }
.sidebar-logout {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #aeb7bf;
  border: 1px solid #343d47;
  border-radius: 10px;
  background: #202730;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.sidebar-logout:hover { color: #fff; border-color: #596673; background: #2a333d; }

.auth-page {
  min-height: 100vh;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(167,101,53,.22), transparent 28%),
    radial-gradient(circle at 82% 90%, rgba(77,94,111,.18), transparent 30%),
    #0d1116;
}
.auth-card {
  width: min(100%, 460px);
  padding: 34px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 24px;
  background: rgba(250,251,249,.97);
  box-shadow: 0 34px 100px rgba(0,0,0,.38);
  backdrop-filter: blur(20px);
}
.auth-setup-card { width: min(100%, 560px); }
.auth-brand { margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.auth-brand > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(145deg, #a76535, #74411f);
  box-shadow: 0 12px 30px rgba(167,101,53,.26);
}
.auth-brand > div { display: grid; gap: 1px; }
.auth-brand strong { font-size: 15px; letter-spacing: .17em; }
.auth-brand small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.auth-card > h1 { margin: 7px 0 10px; font-size: 32px; line-height: 1.05; letter-spacing: -.045em; }
.auth-card > p { margin-bottom: 24px; color: var(--muted-strong); line-height: 1.6; }
.auth-card code { padding: 2px 5px; color: #49301e; border-radius: 5px; background: var(--accent-soft); font-size: .9em; }
.auth-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: #242c34;
}
.auth-icon.danger { background: var(--danger); }
.auth-form { display: grid; gap: 15px; }
.input-with-icon {
  min-height: 48px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
}
.input-with-icon:focus-within { color: var(--accent); border-color: #af7546; box-shadow: 0 0 0 3px rgba(167,101,53,.12); }
.input-with-icon input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.auth-submit { width: 100%; min-height: 49px; margin-top: 3px; }
.button-google {
  width: 100%;
  min-height: 49px;
  color: #20262c;
  border: 1px solid #cbd0cc;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.button-google:hover { color: #11161b; border-color: #aeb5af; background: #f7f8f6; }
.auth-divider { margin: 18px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { height: 1px; content: ''; background: var(--line); }
.auth-link { justify-self: center; padding: 5px; color: #6f4527; background: transparent; font-size: 11px; font-weight: 800; }
.auth-link:hover { text-decoration: underline; }
.auth-error { padding: 10px 12px; color: #722e2b; border: 1px solid #e5b8b4; border-radius: 9px; background: var(--danger-soft); font-size: 11px; line-height: 1.45; }
.auth-security { margin-top: 24px; padding-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.45; }
.auth-hint { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.auth-card > small { display: block; margin-top: 17px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.setup-steps { margin: 0 0 24px; display: grid; gap: 10px; }
.setup-steps span { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 12px; }
.setup-steps b { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 8px; background: var(--accent); }

.cloud-migration-banner,
.local-mode-banner {
  margin-bottom: 19px;
  padding: 16px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #cbd5dd;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4f7, #fff);
  box-shadow: var(--shadow-xs);
}
.local-mode-banner { border-color: #e2cdb8; background: linear-gradient(135deg, #f8eee4, #fff); }
.cloud-migration-icon,
.local-mode-banner > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 12px;
  background: #344654;
}
.local-mode-banner > span { background: var(--accent); }
.cloud-migration-banner > div,
.local-mode-banner > div { min-width: 0; flex: 1; }
.cloud-migration-banner strong,
.local-mode-banner strong { display: block; margin-bottom: 3px; font-size: 12px; }
.cloud-migration-banner p,
.local-mode-banner p { margin: 0; color: var(--muted-strong); font-size: 10px; line-height: 1.45; }
.cloud-migration-banner code,
.local-mode-banner code { color: var(--accent-ink); font-weight: 700; }
.migration-progress { margin-top: 7px; color: #3c5668; font-size: 10px; font-weight: 700; }

.share-success {
  padding: 13px 14px;
  display: flex;
  gap: 10px;
  color: #174d2d;
  border: 1px solid #b9d8c5;
  border-radius: 11px;
  background: var(--success-soft);
}
.share-success svg { flex: 0 0 auto; margin-top: 1px; }
.share-success strong { display: block; margin-bottom: 3px; font-size: 11px; }
.share-success p { margin: 0; color: #315f43; font-size: 10px; line-height: 1.45; }

@media (max-width: 760px) {
  .auth-page { padding: 18px 12px; }
  .auth-card { padding: 25px 20px; border-radius: 19px; }
  .auth-card > h1 { font-size: 27px; }
  .cloud-migration-banner, .local-mode-banner { align-items: flex-start; flex-wrap: wrap; }
  .cloud-migration-banner .button { width: 100%; }
}
.cloud-ready-note {
  border-color: rgba(50, 132, 91, .28);
  background: rgba(50, 132, 91, .08);
}
.cloud-ready-note strong {
  color: #225f43;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Etapa 8 — auditoria, backup e diagnóstico */
.page-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.audit-modal { width: min(760px, 100%); }
.audit-modal-body,
.backup-modal-body,
.diagnostics-body { padding: 24px 28px 28px; }
.audit-loading { min-height: 180px; padding: 38px 28px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted-strong); text-align: center; }
.audit-loading svg { animation: audit-spin 1.1s linear infinite; }
.audit-loading strong { color: var(--ink); }
.audit-loading p { margin: 0; max-width: 460px; line-height: 1.55; }
@keyframes audit-spin { to { transform: rotate(360deg); } }
.audit-score { margin-bottom: 20px; padding: 18px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #f7f8f6, #fff); }
.audit-score h3 { margin: 4px 0 6px; font-size: 21px; letter-spacing: -.03em; }
.audit-score p { margin: 0; color: var(--muted-strong); font-size: 11px; line-height: 1.5; }
.audit-score-ring { --score: 0; width: 92px; height: 92px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle at center, #fff 57%, transparent 59%), conic-gradient(var(--accent) var(--score), #e3e6e2 0); box-shadow: inset 0 0 0 1px rgba(23,27,32,.06); }
.audit-score-ring strong { font-size: 27px; line-height: 1; }
.audit-score-ring span { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 800; }
.audit-list { max-height: min(48vh, 470px); padding-right: 4px; display: grid; gap: 9px; overflow: auto; }
.audit-item { min-height: 68px; padding: 13px 14px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.audit-item-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.audit-item strong { display: block; margin: 1px 0 4px; font-size: 11px; }
.audit-item p { margin: 0; color: var(--muted-strong); font-size: 10px; line-height: 1.45; }
.audit-item > small { align-self: center; padding: 4px 7px; color: #5e4724; border-radius: 999px; background: var(--warning-soft); font-size: 8px; font-weight: 800; white-space: nowrap; }
.audit-error { border-color: #e3b4b0; background: #fffafa; }
.audit-error .audit-item-icon { color: #fff; background: var(--danger); }
.audit-warning { border-color: #e5cfaa; background: #fffdf8; }
.audit-warning .audit-item-icon { color: #fff; background: var(--warning); }
.audit-info .audit-item-icon { color: #fff; background: #536a7c; }
.audit-success { border-color: #b8d8c4; background: #f8fcf9; }
.audit-success .audit-item-icon { color: #fff; background: var(--success); }
.audit-actions { padding-top: 18px; border-top: 1px solid var(--line); }
.backup-modal { width: min(620px, 100%); }
.backup-dropzone { min-height: 220px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted-strong); text-align: center; border: 1.5px dashed #aeb5af; border-radius: 16px; background: #f7f8f6; cursor: pointer; transition: .18s ease; }
.backup-dropzone:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.backup-dropzone > span { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; border-radius: 16px; background: var(--accent); }
.backup-dropzone strong { font-size: 14px; }
.backup-dropzone small { max-width: 430px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.backup-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.backup-progress { margin-top: 14px; padding: 12px 14px; color: #304b5f; border: 1px solid #c6d6e1; border-radius: 10px; background: #f1f7fa; font-size: 11px; font-weight: 700; }
.backup-progress.is-error { color: #7d2f2b; border-color: #e2b4b0; background: var(--danger-soft); }
.diagnostics-modal { width: min(690px, 100%); }
.diagnostics-summary { margin-bottom: 18px; padding: 16px; display: flex; gap: 13px; align-items: center; border: 1px solid #cfd8df; border-radius: 14px; background: linear-gradient(135deg, #eef4f7, #fff); }
.diagnostics-summary > span { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 12px; background: #344654; }
.diagnostics-summary strong { display: block; margin-bottom: 4px; font-size: 12px; }
.diagnostics-summary p { margin: 0; color: var(--muted-strong); font-size: 10px; line-height: 1.45; }
.diagnostics-list { display: grid; gap: 8px; }
.diagnostic-item { padding: 12px 13px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.diagnostic-item > span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; border-radius: 9px; }
.diagnostic-item.is-ok > span { background: var(--success); }
.diagnostic-item.is-fail > span { background: var(--danger); }
.diagnostic-item strong { display: block; margin: 1px 0 3px; font-size: 10px; }
.diagnostic-item p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

@media (max-width: 980px) {
  .page-header-actions { justify-content: stretch; }
  .page-header-actions .button { flex: 1 1 auto; }
}
@media (max-width: 760px) {
  .page-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .page-header-actions .button { width: 100%; }
  .page-header-actions #new-project { grid-column: 1 / -1; }
  .audit-modal-body, .backup-modal-body, .diagnostics-body { padding: 20px 16px 18px; }
  .audit-score { grid-template-columns: 1fr; text-align: center; }
  .audit-score-ring { margin: 0 auto; }
  .audit-item { grid-template-columns: auto minmax(0,1fr); }
  .audit-item > small { grid-column: 2; justify-self: start; }
  .audit-actions { flex-direction: column-reverse; }
  .audit-actions .button { width: 100%; }
}

/* Etapa 9 — personalização, abertura, transições e compartilhamento */
.presentation-settings-card {
  margin: 7px 0 2px;
  padding: 14px;
  display: grid;
  gap: 13px;
  border: 1px solid #d8d3cb;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfaf7, #fff);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}
.settings-card-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e1ddd6; }
.settings-card-heading > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 11px; background: #252d34; }
.settings-card-heading > div { min-width: 0; display: grid; gap: 2px; }
.settings-card-heading strong { font-size: 11px; }
.settings-card-heading small, .settings-subheading small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.settings-subheading { padding-top: 11px; display: grid; gap: 3px; border-top: 1px solid #e1ddd6; }
.settings-subheading strong { font-size: 10px; }
.color-field > div { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 8px; }
.color-field input[type="color"] { width: 48px; min-height: 42px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; cursor: pointer; }
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.settings-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-toggle { min-height: 62px; padding: 10px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; border: 1px solid #daddd9; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.settings-toggle:hover { border-color: #b8aea2; background: #fcfaf7; transform: translateY(-1px); }
.settings-toggle input { width: 34px; height: 20px; margin: 0; appearance: none; border: 1px solid #9da5aa; border-radius: 999px; background: #cfd4d7; cursor: pointer; position: relative; transition: .18s ease; }
.settings-toggle input::after { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; content: ''; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.24); transition: transform .18s ease; }
.settings-toggle input:checked { border-color: #8f582e; background: var(--accent); }
.settings-toggle input:checked::after { transform: translateX(14px); }
.settings-toggle span { min-width: 0; display: grid; gap: 3px; }
.settings-toggle strong { font-size: 9px; line-height: 1.25; }
.settings-toggle small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.presentation-numeric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.presentation-numeric-grid .field small { margin-top: 4px; color: var(--muted); font-size: 8px; }

.presentation-page {
  --tour-accent: #b9773f;
  --tour-accent-rgb: 185, 119, 63;
  --tour-transition: 450ms;
  --tour-half-transition: 225ms;
}
.presentation-brand > span { background: linear-gradient(145deg, var(--tour-accent), color-mix(in srgb, var(--tour-accent) 62%, #111)); box-shadow: 0 10px 24px rgba(var(--tour-accent-rgb), .28); }
.presentation-brand-spacer { width: 44px; }
.presentation-control:hover,
.presentation-control.active,
.presentation-icon-button:hover { border-color: rgba(var(--tour-accent-rgb), .72); background: rgba(var(--tour-accent-rgb), .28); }
.presentation-scene-label span,
.presentation-plan-head span { color: color-mix(in srgb, var(--tour-accent) 72%, #fff); }
.presentation-scene-card.active { border-color: var(--tour-accent); box-shadow: 0 0 0 2px rgba(var(--tour-accent-rgb), .34), 0 9px 25px rgba(0,0,0,.3); }
.presentation-scene-card i,
.presentation-plan-marker.active > i { background: var(--tour-accent); }
.presentation-plan-marker.active > em { background: color-mix(in srgb, var(--tour-accent) 72%, #171b20); }
.presentation-hotspot .atrio-hotspot-arrow { background: var(--tour-accent); }
.presentation-hotspot:hover .atrio-hotspot-arrow { background: color-mix(in srgb, var(--tour-accent) 78%, #000); }
.presentation-stage::after { position: absolute; z-index: 90; inset: 0; content: ''; pointer-events: none; opacity: 0; background: #0b0e11; transition: opacity var(--tour-half-transition) ease; }
.presentation-page.is-leaving .presentation-stage::after { opacity: 1; }
.presentation-page.is-entering .presentation-stage::after { opacity: 1; animation: tour-scene-enter var(--tour-half-transition) ease forwards; }
@keyframes tour-scene-enter { to { opacity: 0; } }

.tour-intro { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; overflow: hidden; color: #fff; background: #101419; transition: opacity .42s ease, visibility .42s ease; }
.tour-intro.is-closing { opacity: 0; visibility: hidden; }
.tour-intro-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.02); animation: tour-intro-zoom 13s ease-out both; }
@keyframes tour-intro-zoom { to { transform: scale(1.09); } }
.tour-intro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,9,12,.89) 0%, rgba(6,9,12,.67) 45%, rgba(6,9,12,.32) 78%, rgba(6,9,12,.46) 100%), linear-gradient(0deg, rgba(6,9,12,.58), transparent 52%); }
.tour-intro-content { position: relative; width: min(1180px, calc(100% - 64px)); padding: clamp(28px, 6vw, 82px); display: grid; justify-items: start; align-content: center; }
.tour-intro-brand { margin-bottom: clamp(38px, 7vh, 78px); display: flex; align-items: center; gap: 10px; }
.tour-intro-brand > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 13px; background: var(--tour-accent); box-shadow: 0 18px 38px rgba(var(--tour-accent-rgb), .32); }
.tour-intro-brand strong { font-size: 13px; letter-spacing: .2em; }
.tour-intro-brand small { color: rgba(255,255,255,.63); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.tour-intro-location { margin-bottom: 14px; color: color-mix(in srgb, var(--tour-accent) 72%, #fff); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.tour-intro h1 { max-width: 850px; margin: 0; font-size: clamp(38px, 6.3vw, 92px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 6px 32px rgba(0,0,0,.35); }
.tour-intro p { max-width: 630px; margin: 22px 0 0; color: rgba(255,255,255,.78); font-size: clamp(13px, 1.35vw, 18px); line-height: 1.65; }
.tour-intro-start { min-height: 52px; margin-top: 34px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; border: 1px solid color-mix(in srgb, var(--tour-accent) 62%, #fff); border-radius: 12px; background: var(--tour-accent); box-shadow: 0 16px 38px rgba(var(--tour-accent-rgb), .34); font-weight: 800; transition: transform .18s ease, filter .18s ease; }
.tour-intro-start:hover { transform: translateY(-2px); filter: brightness(1.08); }
.tour-intro-hint { margin-top: 17px; color: rgba(255,255,255,.54); font-size: 9px; font-weight: 700; letter-spacing: .04em; }

.presentation-cta { position: fixed; z-index: 160; right: 18px; bottom: 18px; min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: var(--tour-accent); box-shadow: 0 14px 38px rgba(0,0,0,.35), 0 8px 22px rgba(var(--tour-accent-rgb), .26); font-size: 10px; font-weight: 900; transition: transform .18s ease, filter .18s ease; }
.presentation-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.presentation-page.has-gallery .presentation-cta { bottom: calc(var(--presentation-gallery) + 18px); }
.presentation-page.has-plan .presentation-cta { right: calc(min(31vw, 430px) + 18px); }
.embed-mode .presentation-cta { min-height: 39px; padding-inline: 13px; }

.share-modal-wide { width: min(900px, calc(100vw - 28px)); }
.share-layout { grid-template-columns: minmax(0,1fr) 230px; align-items: start; }
.share-fields { min-width: 0; display: grid; gap: 16px; }
.share-qr-card { min-height: 100%; padding: 16px; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: #f7f8f6; }
.share-qr-card > canvas { width: min(100%, 210px); height: auto; margin: 7px auto; border: 8px solid #fff; border-radius: 8px; box-shadow: 0 10px 28px rgba(17,24,31,.12); }
.share-qr-card > strong { font-size: 11px; }
.share-qr-card > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.share-qr-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: #252d34; }
.share-qr-fallback { display: none; color: var(--danger); font-size: 8px; }
.share-qr-card.is-unavailable canvas { display: none; }
.share-qr-card.is-unavailable .share-qr-fallback { display: block; }
.share-actions { grid-column: 1 / -1; }
.public-share-modal { width: min(720px, calc(100vw - 28px)); }
.public-share-content { padding: 8px 24px 26px; display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 22px; align-items: center; }
.public-share-content h3 { margin: 14px 0 7px; font-size: 25px; letter-spacing: -.04em; }
.public-share-content p { margin-bottom: 18px; color: var(--muted-strong); line-height: 1.55; }
.public-share-scene { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.public-share-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .presentation-page.has-plan .presentation-cta { right: 18px; }
}
@media (max-width: 760px) {
  .settings-toggle-grid, .presentation-numeric-grid { grid-template-columns: 1fr; }
  .tour-intro-content { width: calc(100% - 28px); padding: 30px 12px 52px; align-content: end; }
  .tour-intro-shade { background: linear-gradient(0deg, rgba(6,9,12,.94) 0%, rgba(6,9,12,.68) 58%, rgba(6,9,12,.25) 100%); }
  .tour-intro-brand { margin-bottom: 28px; }
  .tour-intro h1 { font-size: clamp(35px, 12vw, 58px); }
  .tour-intro p { margin-top: 16px; font-size: 12px; line-height: 1.55; }
  .tour-intro-start { width: 100%; margin-top: 24px; }
  .tour-intro-hint { width: 100%; text-align: center; }
  .presentation-cta { right: 10px; bottom: 10px; min-height: 40px; max-width: calc(100vw - 20px); }
  .presentation-page.has-gallery .presentation-cta { bottom: calc(var(--presentation-gallery) + 10px); }
  .presentation-cta span { max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .share-layout, .public-share-content { grid-template-columns: 1fr; }
  .share-qr-card { min-height: 0; }
  .share-actions { grid-column: 1; }
  .public-share-content { padding-inline: 16px; }
  .public-share-actions .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-intro-image { animation: none; }
  .presentation-stage::after { transition-duration: 0ms; }
}

/* A apresentação ocupa uma camada própria; o compartilhamento precisa ficar acima dela. */
.public-share-backdrop { z-index: 420; }

/* ETAPA 10 — ANALYTICS */
.app-shell-analytics .sidebar-nav .ghost-item:last-child { color: #fff; background: rgba(255,255,255,.09); }
.analytics-page { padding-bottom: 56px; }
.analytics-header { align-items: flex-end; }
.analytics-back { width: fit-content; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted-strong); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.analytics-back:hover { color: var(--ink); }
.analytics-toolbar { margin-bottom: 18px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 8px 24px rgba(25,32,39,.04); }
.analytics-range { display: flex; align-items: center; gap: 5px; }
.analytics-range button { min-height: 34px; padding: 0 13px; color: var(--muted-strong); border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 10px; font-weight: 850; }
.analytics-range button:hover { color: var(--ink); background: #f0f2ef; }
.analytics-range button.active { color: #fff; border-color: #202831; background: #202831; box-shadow: 0 8px 18px rgba(21,28,35,.16); }
.analytics-privacy { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 750; }
.analytics-warning { margin-bottom: 18px; padding: 15px 16px; display: flex; align-items: center; gap: 13px; color: #6f4316; border: 1px solid #e8cfa9; border-radius: 14px; background: #fff9ef; }
.analytics-warning > svg { flex: 0 0 auto; }
.analytics-warning > div { flex: 1; }
.analytics-warning strong { display: block; color: #5a3511; font-size: 11px; }
.analytics-warning p { margin: 3px 0 0; color: #86623b; font-size: 10px; }
.analytics-local-banner { margin-bottom: 18px; }
.analytics-kpi-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.analytics-kpi-grid article { min-height: 132px; padding: 19px; display: flex; align-items: flex-start; gap: 14px; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(22,30,37,.055); }
.analytics-kpi-grid article::after { width: 90px; height: 90px; position: absolute; right: -36px; bottom: -44px; content: ''; border-radius: 50%; background: rgba(185,119,63,.075); }
.analytics-kpi-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: #252d34; box-shadow: 0 10px 22px rgba(25,32,39,.15); }
.analytics-kpi-grid article:nth-child(2n) .analytics-kpi-icon { background: var(--accent); }
.analytics-kpi-grid article > div { min-width: 0; display: grid; gap: 3px; }
.analytics-kpi-grid small { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.analytics-kpi-grid strong { margin-top: 3px; color: var(--ink); font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.analytics-kpi-grid em { color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.45; }
.analytics-main-card, .analytics-panel { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(22,30,37,.055); }
.analytics-main-card { padding: 20px; }
.analytics-panel { padding: 19px; }
.analytics-card-heading { margin-bottom: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.analytics-card-heading h2 { margin: 2px 0 0; color: var(--ink); font-size: 18px; letter-spacing: -.035em; }
.analytics-card-heading > span { padding-top: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }
.analytics-chart-wrap { min-width: 0; overflow: hidden; }
.analytics-chart { width: 100%; height: auto; min-height: 210px; display: block; color: var(--accent); overflow: visible; }
.analytics-grid line { stroke: #e8ebe7; stroke-width: 1; }
.analytics-area { fill: url(#analytics-area); }
.analytics-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.analytics-line-open { stroke: var(--accent); }
.analytics-line-session { stroke: #27313a; stroke-width: 2.2; stroke-dasharray: 7 6; }
.analytics-point { stroke: #fff; stroke-width: 2; }
.analytics-point-open { fill: var(--accent); }
.analytics-point-session { fill: #27313a; }
.analytics-axis-labels text { fill: #7a858e; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; }
.analytics-chart-legend { margin-top: 6px; display: flex; align-items: center; gap: 18px; color: var(--muted-strong); font-size: 9px; font-weight: 750; }
.analytics-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-chart-legend i { width: 18px; height: 3px; display: inline-block; border-radius: 3px; }
.analytics-chart-legend i.open { background: var(--accent); }
.analytics-chart-legend i.session { background: #27313a; }
.analytics-chart-legend small { margin-left: auto; color: var(--muted); }
.analytics-chart-empty { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--muted); text-align: center; border: 1px dashed #d7dcd7; border-radius: 14px; background: #fafbf9; }
.analytics-chart-empty strong { color: var(--ink); font-size: 13px; }
.analytics-chart-empty span { max-width: 360px; font-size: 10px; line-height: 1.5; }
.analytics-two-column { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.analytics-breakdown { display: grid; gap: 14px; }
.analytics-breakdown-row { display: flex; align-items: center; gap: 11px; }
.analytics-breakdown-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: #56616a; border: 1px solid #e1e5e1; border-radius: 10px; background: #f6f8f5; }
.analytics-breakdown-row > div { min-width: 0; flex: 1; display: grid; gap: 6px; }
.analytics-breakdown-row > div > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.analytics-breakdown-row strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-breakdown-row em { color: var(--muted-strong); font-size: 10px; font-style: normal; font-weight: 850; }
.analytics-breakdown-row i { height: 5px; overflow: hidden; display: block; border-radius: 5px; background: #edf0ec; }
.analytics-breakdown-row b { height: 100%; display: block; border-radius: inherit; background: var(--accent); }
.analytics-breakdown-empty { min-height: 130px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.analytics-scenes-card { padding-bottom: 8px; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-table { width: 100%; min-width: 690px; border-collapse: collapse; }
.analytics-table th { padding: 11px 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.analytics-table td { padding: 13px 10px; color: var(--muted-strong); border-bottom: 1px solid #edf0ed; font-size: 10px; }
.analytics-table tbody tr:last-child td { border-bottom: 0; }
.analytics-table td:nth-child(n+3), .analytics-table th:nth-child(n+3) { text-align: right; }
.analytics-table td:nth-child(2) strong { display: block; color: var(--ink); font-size: 11px; }
.analytics-table td:nth-child(2) small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.analytics-rank { width: 26px; height: 26px; display: grid; place-items: center; color: #49545d; border-radius: 8px; background: #f0f2ef; font-size: 9px; font-weight: 900; }
.analytics-table-empty { padding: 42px 10px; color: var(--muted); text-align: center; }
.analytics-footnote { padding: 0 4px; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }
.analytics-footnote svg { flex: 0 0 auto; margin-top: 1px; }
.analytics-footnote p { margin: 0; font-size: 9px; line-height: 1.55; }

@media (max-width: 1060px) {
  .analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .analytics-toolbar, .analytics-warning { align-items: stretch; flex-direction: column; }
  .analytics-range { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .analytics-range button { padding-inline: 6px; }
  .analytics-privacy { justify-content: center; }
  .analytics-kpi-grid, .analytics-two-column { grid-template-columns: 1fr; }
  .analytics-kpi-grid article { min-height: 112px; }
  .analytics-main-card, .analytics-panel { padding: 15px; border-radius: 15px; }
  .analytics-card-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .analytics-chart { width: 740px; max-width: none; }
  .analytics-chart-wrap { overflow-x: auto; padding-bottom: 5px; }
  .analytics-chart-legend { flex-wrap: wrap; }
  .analytics-chart-legend small { width: 100%; margin-left: 0; }
}
.analytics-back { display: flex; }
@media (max-width: 760px) {
  .app-shell-analytics .sidebar { display: none; }
  .app-shell-analytics .main-content { padding-bottom: 0; }
}

/* Etapa 11 — conexões rápidas e planta humanizada visível */
.button-navigation { color: #fff; background: #245f70; border-color: #245f70; }
.button-navigation:hover:not(:disabled) { color: #fff; background: #184a58; border-color: #184a58; }
.button-map { color: #fff; background: #4d6540; border-color: #4d6540; }
.button-map:hover:not(:disabled) { color: #fff; background: #354b2b; border-color: #354b2b; }
.editor-nav-list button.needs-attention {
  color: #4a2b13;
  border-color: #d8a77a;
  background: #fff2e6;
  box-shadow: inset 3px 0 0 var(--accent);
}
.editor-nav-list button.needs-attention:hover { color: #2d190c; background: #fbe5d2; border-color: #c98b55; }

.viewer-shell { grid-template-rows: 56px auto minmax(0, 1fr); }
.viewer-shell.has-quick-connect { grid-template-rows: 56px auto auto minmax(0, 1fr); }
.viewer-shell.is-placing { grid-template-rows: 56px auto auto minmax(0, 1fr); }
.viewer-shell.has-quick-connect.is-placing { grid-template-rows: 56px auto auto auto minmax(0, 1fr); }

.viewer-quick-actions {
  min-width: 0;
  padding: 9px 11px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  border-bottom: 1px solid #2c343c;
  background: #10161b;
}
.viewer-quick-action {
  min-width: 0;
  min-height: 52px;
  padding: 7px 10px;
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #e6edf1;
  border: 1px solid #34404a;
  border-radius: 11px;
  background: #1b232a;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.viewer-quick-action:hover:not(:disabled),
.viewer-quick-action.active { color: #fff; border-color: #687681; background: #263039; transform: translateY(-1px); }
.viewer-quick-action:disabled { color: #8b969e; border-color: #2a333a; background: #171d22; box-shadow: none; cursor: not-allowed; }
.viewer-quick-action-primary { border-color: #95653f; background: linear-gradient(135deg, #6d4323, #8c5830); }
.viewer-quick-action-primary:hover:not(:disabled),
.viewer-quick-action-primary.active { border-color: #d2a16f; background: linear-gradient(135deg, #7d4b27, #a36634); }
.viewer-quick-action-plan { border-color: #647c58; background: linear-gradient(135deg, #33462b, #4f6841); }
.viewer-quick-action-plan:hover { border-color: #91ad83; background: linear-gradient(135deg, #3b5131, #5f7c4d); }
.viewer-quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
}
.viewer-quick-action > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.viewer-quick-action strong { overflow: hidden; color: inherit; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.viewer-quick-action small { overflow: hidden; color: #a9b4bc; font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.viewer-quick-action-primary small,
.viewer-quick-action-plan small { color: rgba(255,255,255,.72); }
.viewer-quick-end { display: grid; place-items: center; color: #c8d0d5; }
.viewer-quick-add {
  width: 52px;
  min-width: 52px;
  display: grid;
  place-items: center;
  color: #e8edf0;
  border: 1px solid #34404a;
  border-radius: 11px;
  background: #1b232a;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.viewer-quick-add:hover { color: #fff; border-color: #687681; background: #263039; }

.quick-connect-tray {
  min-width: 0;
  padding: 11px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #34404a;
  background: linear-gradient(180deg, #151d23, #11171c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.quick-connect-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-connect-head > div { min-width: 0; display: grid; gap: 2px; }
.quick-connect-head strong { color: #edf2f5; font-size: 11px; }
.quick-connect-head small { color: #91a0aa; font-size: 8.5px; }
.quick-connect-head .icon-button { width: 34px; height: 34px; min-width: 34px; color: #d8e0e5; border-color: #3a4650; background: #202931; }
.quick-connect-list {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 270px);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.quick-connect-card {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #e7edf1;
  border: 1px solid #35414a;
  border-radius: 10px;
  background: #1d252c;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.quick-connect-card:hover { color: #fff; border-color: #b37b49; background: #28323a; transform: translateY(-1px); }
.quick-connect-card.is-connected { border-color: #57764b; background: #243020; }
.quick-connect-card img { width: 64px; height: 42px; object-fit: cover; border-radius: 7px; background: #090d10; }
.quick-connect-card > span { min-width: 0; display: grid; gap: 4px; }
.quick-connect-card strong,
.quick-connect-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.quick-connect-card strong { color: inherit; font-size: 10px; }
.quick-connect-card small { color: #9eabb4; font-size: 8px; }
.quick-connect-card em { width: 28px; height: 28px; display: grid; place-items: center; color: #e6b17f; border-radius: 50%; background: rgba(230,177,127,.1); font-style: normal; }
.quick-connect-card.is-connected em { color: #b9d8ab; background: rgba(122,164,105,.15); }
.quick-connect-empty { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #9eaab2; }
.quick-connect-empty p { margin: 0; font-size: 10px; }

.viewer-placement-banner { justify-content: flex-start; }
.viewer-placement-banner > span { flex: 1; text-align: center; }
.placement-cancel-inline {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: rgba(0,0,0,.16);
}
.placement-cancel-inline:hover { background: rgba(0,0,0,.3); }

@media (max-width: 980px) {
  .viewer-quick-actions { overflow-x: auto; }
  .viewer-quick-action { min-width: 220px; }
  .viewer-quick-add { min-width: 52px; }
}

@media (max-width: 760px) {
  .viewer-shell { grid-template-rows: 50px auto minmax(0, 1fr); }
  .viewer-shell.has-quick-connect { grid-template-rows: 50px auto auto minmax(0, 1fr); }
  .viewer-shell.is-placing { grid-template-rows: 50px auto auto minmax(0, 1fr); }
  .viewer-shell.has-quick-connect.is-placing { grid-template-rows: 50px auto auto auto minmax(0, 1fr); }
  .viewer-quick-actions { padding: 7px; gap: 6px; }
  .viewer-quick-action { min-width: 190px; min-height: 47px; grid-template-columns: 30px minmax(0,1fr) auto; padding: 6px 8px; }
  .viewer-quick-icon { width: 30px; height: 30px; }
  .viewer-quick-action strong { font-size: 10px; }
  .viewer-quick-action small { font-size: 7.5px; }
  .quick-connect-tray { padding: 8px; }
  .quick-connect-head small { display: none; }
  .quick-connect-list { grid-auto-columns: minmax(190px, 235px); }
  .viewer-placement-banner { min-height: 44px; padding: 7px 9px; font-size: 9px; }
}

@media (max-width: 1380px) {
  .editor-actions .top-plan-button { display: inline-flex; }
}

@media (max-width: 760px) {
  .editor-actions .top-plan-button { width: 44px; padding: 0; font-size: 0; }
}
.viewer-shell .panorama-viewer { min-height: 240px; }
@media (max-width: 760px) { .viewer-shell .panorama-viewer { min-height: 200px; } }

/* ──────────────────────────────────────────────────────────────
   ETAPA 12 — PONTOS INFORMATIVOS
   ────────────────────────────────────────────────────────────── */
.button-info {
  color: #fff;
  border-color: #0b6671;
  background: #0b6671;
}
.button-info:hover:not(:disabled) {
  color: #fff;
  border-color: #074c55;
  background: #074c55;
}
.viewer-quick-action-info {
  color: #fff;
  border-color: #337c87;
  background: linear-gradient(135deg, #155763, #237783);
}
.viewer-quick-action-info small { color: rgba(255,255,255,.76); }
.viewer-quick-action-info:hover:not(:disabled) {
  color: #fff;
  border-color: #75bac3;
  background: linear-gradient(135deg, #196572, #2a8996);
}
.viewer-placement-banner.is-info {
  color: #dffcff;
  border-color: #367b85;
  background: #123d45;
}
.info-placement-card {
  color: #0b4d56;
  border-color: #9fcfd4;
  background: #e9f8f9;
}
.info-point-empty {
  min-height: 128px;
  padding: 22px 15px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
  color: #52616a;
  border: 1px dashed #bbc7cc;
  border-radius: 13px;
  background: #f8fafb;
}
.info-point-empty svg { color: #0b6671; }
.info-point-empty p { margin: 0; color: #24323a; font-size: 11px; font-weight: 800; }
.info-point-empty small { max-width: 240px; font-size: 9px; line-height: 1.5; }
.info-point-list { display: grid; gap: 7px; }
.info-point-card {
  width: 100%;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 18px;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #26353d;
  border: 1px solid #d7dfe3;
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.info-point-card:hover { border-color: #75aab2; background: #f0f8f9; transform: translateY(-1px); }
.info-point-card.active { color: #073e46; border-color: #2c8995; background: #e7f5f6; box-shadow: inset 3px 0 0 #0b6671; }
.info-point-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: #0b6671;
}
.info-point-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.info-point-card strong { overflow: hidden; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
.info-point-card small { overflow: hidden; color: #6d7980; font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.info-image-editor {
  min-height: 145px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #b9c8ce;
  border-radius: 13px;
  background: #f5f8f9;
}
.info-image-editor > img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #d7e0e3;
}
.info-image-editor > div {
  width: 100%;
  min-height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #728087;
  font-size: 9px;
}
.info-image-editor.has-image { border-style: solid; }
.info-link-fields { display: grid; gap: 8px; padding: 10px; border: 1px solid #dbe3e6; border-radius: 12px; background: #f8fafb; }

.panorama-viewer .atrio-info-hotspot,
.presentation-viewer .atrio-info-hotspot {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  overflow: visible;
  cursor: pointer;
  background: none !important;
}
.atrio-info-hotspot-shell { position: relative; display: grid; place-items: center; }
.atrio-info-hotspot-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: #0b6671;
  box-shadow: 0 10px 28px rgba(0,0,0,.42), 0 0 0 4px rgba(11,102,113,.22);
  transition: transform .17s ease, background .17s ease, box-shadow .17s ease;
}
.atrio-info-hotspot:hover .atrio-info-hotspot-icon { transform: scale(1.10); background: #084d55; box-shadow: 0 12px 34px rgba(0,0,0,.48), 0 0 0 6px rgba(26,144,157,.27); }
.atrio-info-hotspot.is-selected .atrio-info-hotspot-icon { background: #0b4f99; box-shadow: 0 0 0 7px rgba(11,79,153,.27), 0 12px 32px rgba(0,0,0,.45); }
.atrio-info-hotspot.is-pending .atrio-info-hotspot-icon { animation: infoHotspotPulse 1.15s ease-in-out infinite; }
.atrio-info-hotspot-label {
  position: absolute;
  top: 54px;
  left: 50%;
  max-width: 220px;
  padding: 7px 10px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  background: rgba(7,31,35,.94);
  box-shadow: 0 9px 26px rgba(0,0,0,.35);
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(10px);
}
@keyframes infoHotspotPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(11,102,113,.22), 0 10px 28px rgba(0,0,0,.42); }
  50% { transform: scale(1.14); box-shadow: 0 0 0 10px rgba(11,102,113,.08), 0 12px 34px rgba(0,0,0,.48); }
}

.info-viewer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(4,10,13,.68);
  backdrop-filter: blur(10px);
  animation: fadeIn .16s ease;
}
.info-viewer-modal {
  position: relative;
  width: min(580px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  color: #1c2a31;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}
.info-viewer-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(7,17,21,.82);
  box-shadow: 0 8px 24px rgba(0,0,0,.26);
}
.info-viewer-close:hover { color: #fff; background: #050c0f; }
.info-viewer-image { aspect-ratio: 16/9; overflow: hidden; background: #e8edef; }
.info-viewer-image img { width: 100%; height: 100%; object-fit: cover; }
.info-viewer-content { padding: 24px; display: grid; gap: 13px; }
.info-viewer-type { width: max-content; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; color: #07515a; border: 1px solid #b9dadd; border-radius: 999px; background: #eaf7f8; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.info-viewer-content h2 { margin: 0; color: #111c22; font-size: clamp(21px, 3vw, 30px); line-height: 1.1; }
.info-viewer-content p { margin: 0; color: #536169; font-size: 13px; line-height: 1.7; }
.info-viewer-content .button { width: max-content; margin-top: 4px; }

@media (max-width: 720px) {
  .info-viewer-modal-backdrop { padding: 10px; align-items: end; }
  .info-viewer-modal { max-height: 82vh; border-radius: 18px 18px 8px 8px; }
  .info-viewer-content { padding: 20px 18px 22px; }
  .atrio-info-hotspot-label { display: none; }
  .panorama-viewer .atrio-info-hotspot,
  .presentation-viewer .atrio-info-hotspot { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .atrio-info-hotspot-icon { width: 44px; height: 44px; }
}

/* ─────────────────────────────────────────────────────────────
   ETAPA 14 · CENTRAL DE HOMOLOGAÇÃO
   ───────────────────────────────────────────────────────────── */
.homologation-page{padding-bottom:56px}
.homologation-result{display:flex;align-items:center;gap:11px;border-radius:14px;padding:13px 16px;margin-bottom:18px;border:1px solid}
.homologation-result.is-approved{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.homologation-result.is-attention{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.homologation-result svg{flex:0 0 auto}
.homologation-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px;border:1px solid #d7dee7;background:linear-gradient(135deg,#111820 0%,#1b2832 65%,#0f766e 145%);border-radius:22px;color:#fff;box-shadow:0 18px 42px rgba(12,20,28,.16);margin-bottom:18px;overflow:hidden;position:relative}
.homologation-hero::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-100px;top:-150px;background:rgba(255,255,255,.08);pointer-events:none}
.homologation-hero>div:first-child{display:flex;align-items:flex-start;gap:16px;min-width:0;position:relative;z-index:1}
.homologation-hero-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center;border-radius:17px;background:#0f766e;color:#fff;box-shadow:0 10px 24px rgba(15,118,110,.32);flex:0 0 auto}
.homologation-hero small{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#8ce5db;margin:2px 0 7px}
.homologation-hero h2{font:700 clamp(20px,2vw,28px)/1.17 Manrope,sans-serif;margin:0 0 8px;color:#fff}
.homologation-hero p{margin:0;color:rgba(255,255,255,.7);font-size:13px;line-height:1.58;max-width:740px}
.homologation-hero-metrics{display:grid;grid-template-columns:repeat(3,minmax(105px,1fr));gap:8px;position:relative;z-index:1}
.homologation-hero-metrics span{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:13px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);font-size:10px;color:rgba(255,255,255,.64);white-space:nowrap}
.homologation-hero-metrics strong{font:700 22px Manrope,sans-serif;color:#fff}
.homologation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:24px}
.homologation-check{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;min-height:122px;padding:15px;border:1px solid #dde3ea;border-radius:17px;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.04);overflow:hidden}
.homologation-check::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#cbd5e1}
.homologation-check.is-ok::before{background:#059669}
.homologation-check.is-fail::before{background:#e11d48}
.homologation-check.is-running::before{background:#d97706}
.homologation-check-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#64748b}
.homologation-check.is-ok .homologation-check-icon{background:#ecfdf5;color:#047857}
.homologation-check.is-fail .homologation-check-icon{background:#fff1f2;color:#be123c}
.homologation-check.is-running .homologation-check-icon{background:#fffbeb;color:#b45309}
.homologation-check.is-running .homologation-check-icon svg{animation:spin .85s linear infinite}
.homologation-check strong{display:block;font-size:13px;color:#111827;margin:2px 0 5px}
.homologation-check p{margin:0;color:#64748b;font-size:11px;line-height:1.45}
.homologation-check em{position:absolute;right:11px;bottom:9px;font-style:normal;font-size:8px;font-weight:900;letter-spacing:.09em;color:#94a3b8}
.homologation-check.is-ok em{color:#047857}
.homologation-check.is-fail em{color:#be123c}
.homologation-check.is-running em{color:#b45309}
.homologation-section{margin-top:4px}
.homologation-section .section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.homologation-section .section-heading h2{font:700 21px Manrope,sans-serif;margin:3px 0 0;color:#111827}
.homologation-project-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;border-radius:17px;background:#fff;border:1px solid #dde3ea;box-shadow:0 6px 18px rgba(15,23,42,.05);margin-bottom:10px}
.homologation-project-card>div:first-child{min-width:0}
.homologation-project-card h3{font:700 16px Manrope,sans-serif;color:#111827;margin:9px 0 4px}
.homologation-project-card p{font-size:11px;line-height:1.45;color:#64748b;margin:0 0 5px;max-width:760px}
.homologation-project-card small{font:600 10px ui-monospace,SFMono-Regular,Consolas,monospace;color:#0f766e}
.homologation-project-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.homologation-manual{display:flex;align-items:flex-start;gap:11px;margin-top:18px;padding:14px 16px;border-radius:15px;background:#eef6ff;border:1px solid #cfe3fa;color:#1e3a5f}
.homologation-manual>span{margin-top:1px;flex:0 0 auto}
.homologation-manual strong{font-size:12px;display:block;margin-bottom:3px}
.homologation-manual p{font-size:11px;line-height:1.48;margin:0;color:#48647e}

body.dark .homologation-check,body.dark .homologation-project-card{background:#111827;border-color:#263247}
body.dark .homologation-check strong,body.dark .homologation-project-card h3,body.dark .homologation-section .section-heading h2{color:#f0f4ff}
body.dark .homologation-check p,body.dark .homologation-project-card p{color:#9ba8c7}
body.dark .homologation-check-icon{background:#1e293b}
body.dark .homologation-manual{background:#101d2c;border-color:#233c58;color:#d7e9fb}
body.dark .homologation-manual p{color:#96afc8}

@media(max-width:1180px){
  .homologation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .homologation-hero{grid-template-columns:1fr}
  .homologation-hero-metrics{width:100%}
}
@media(max-width:720px){
  .homologation-grid{grid-template-columns:1fr}
  .homologation-hero{padding:18px;border-radius:18px}
  .homologation-hero>div:first-child{flex-direction:column}
  .homologation-hero-metrics{grid-template-columns:repeat(3,1fr)}
  .homologation-hero-metrics span{padding:10px 8px;white-space:normal}
  .homologation-project-card{align-items:flex-start;flex-direction:column}
  .homologation-project-actions{width:100%;flex-wrap:wrap}
  .homologation-project-actions .button{flex:1}
  .homologation-section .section-heading{align-items:flex-start;flex-direction:column}
}
@media(max-width:430px){
  .homologation-hero-metrics{grid-template-columns:1fr}
  .homologation-check{min-height:112px}
}


/* ──────────────────────────────────────────────────────────────
   V24 — editor central, painéis deslizantes e conexões no ponto exato
   ────────────────────────────────────────────────────────────── */
.editor-workspace {
  --left-panel-width: 326px;
  --right-panel-width: 360px;
  grid-template-columns: var(--left-panel-width) minmax(0, 1fr) var(--right-panel-width) !important;
  transition: grid-template-columns .28s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.editor-workspace.left-collapsed { --left-panel-width: 0px; }
.editor-workspace.right-collapsed { --right-panel-width: 0px; }
.editor-workspace > .scene-panel,
.editor-workspace > .properties-panel {
  min-width: 0;
  overflow: auto;
  transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1), padding .28s ease, border-color .28s ease;
}
.editor-workspace.left-collapsed > .scene-panel {
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-right-color: transparent !important;
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
  overflow: hidden;
}
.editor-workspace.right-collapsed > .properties-panel {
  border-left-color: transparent !important;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  overflow: hidden;
}
.editor-center { padding: 10px !important; }
.viewer-stage, .viewer-main, .viewer-shell { min-width: 0; min-height: 0; }
.viewer-shell {
  position: relative;
  isolation: isolate;
  display: block !important;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
}
.viewer-shell .panorama-viewer { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.viewer-head {
  position: absolute !important;
  z-index: 70;
  top: 12px;
  left: 12px;
  right: 12px;
  min-height: 50px;
  padding: 8px 10px 8px 13px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 13px;
  background: rgba(9,13,17,.70) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
}
.viewer-head-tools { display: flex !important; align-items: center; gap: 7px !important; }
.viewer-head-tools > span { margin-right: 4px; }
.viewer-head .viewer-action { width: 34px; height: 34px; background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.14); }
.viewer-overlay-toolbar {
  position: absolute;
  z-index: 72;
  top: 76px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(9,13,17,.66);
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}
.viewer-overlay-tool {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #eef3f6;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.viewer-overlay-tool:hover:not(:disabled), .viewer-overlay-tool.active { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.11); transform: translateY(-1px); }
.viewer-overlay-tool:disabled { opacity: .42; cursor: not-allowed; }
.viewer-overlay-tool input { display: none; }
.panel-reveal {
  position: absolute;
  z-index: 73;
  top: 50%;
  width: 31px;
  height: 56px;
  display: none;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(9,13,17,.78);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}
.panel-reveal-left { left: 0; border-radius: 0 10px 10px 0; }
.panel-reveal-right { right: 0; border-radius: 10px 0 0 10px; }
.editor-workspace.left-collapsed .panel-reveal-left,
.editor-workspace.right-collapsed .panel-reveal-right { display: grid; }
.viewer-connection-chips {
  position: absolute;
  z-index: 71;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(8,12,16,.58);
  backdrop-filter: blur(13px);
  scrollbar-width: none;
}
.viewer-connection-chips:empty { display: none; }
.viewer-connection-chip {
  flex: 0 0 auto;
  height: 42px;
  padding: 4px 8px 4px 4px;
  display: grid;
  grid-template-columns: 48px minmax(50px, 120px) 20px;
  align-items: center;
  gap: 7px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: rgba(255,255,255,.075);
  font-size: 9px;
  font-weight: 800;
}
.viewer-connection-chip:hover { background: rgba(255,255,255,.14); }
.viewer-connection-chip img { width: 48px; height: 32px; object-fit: cover; border-radius: 6px; }
.viewer-connection-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer-connection-chip em { display: grid; place-items: center; color: #e5ad78; font-style: normal; }
.connection-dock {
  position: absolute !important;
  z-index: 95;
  left: 50%;
  bottom: 14px;
  width: min(980px, calc(100% - 36px));
  min-height: 88px;
  padding: 10px 46px 10px 12px;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  background: rgba(9,13,17,.86);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  transform: translateX(-50%);
}
.connection-dock-copy { min-width: 0; display: grid; gap: 2px; }
.connection-dock-copy strong { font-size: 12px; }
.connection-dock-copy small { color: rgba(255,255,255,.66); font-size: 8.5px; line-height: 1.35; }
.connection-dock-scenes { min-width: 0; display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: thin; }
.connection-scene-card {
  flex: 0 0 190px;
  min-width: 0;
  height: 64px;
  padding: 5px;
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) 22px;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.075);
  cursor: grab;
}
.connection-scene-card:hover, .connection-scene-card.is-selected { border-color: rgba(213,155,99,.88); background: rgba(183,121,67,.18); }
.connection-scene-card:active { cursor: grabbing; }
.connection-scene-card img { width: 70px; height: 52px; object-fit: cover; border-radius: 7px; }
.connection-scene-card span { min-width: 0; display: grid; gap: 3px; }
.connection-scene-card strong, .connection-scene-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.connection-scene-card strong { font-size: 10px; }
.connection-scene-card small { color: rgba(255,255,255,.65); font-size: 7.5px; }
.connection-dock-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(255,255,255,.08); }
.connection-dock.is-empty { grid-template-columns: 28px 1fr; min-height: 62px; }
.panorama-viewer.connection-active { cursor: crosshair; }
.panorama-viewer.is-environment-drop-target { box-shadow: inset 0 0 0 4px rgba(207,143,82,.95) !important; }
.panorama-viewer.is-environment-drop-target::after { content: 'SOLTE AQUI — A SETA FICARÁ NESTE PONTO'; position: absolute; z-index: 90; left: 50%; top: 50%; padding: 13px 18px; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(8,12,16,.86); backdrop-filter: blur(14px); box-shadow: 0 16px 45px rgba(0,0,0,.42); font-size: 11px; font-weight: 900; letter-spacing: .04em; transform: translate(-50%,-50%); pointer-events: none; }
.atrio-scene-drag-ghost { position: fixed; z-index: 2147482000; width: 190px; padding: 7px; display: flex; align-items: center; gap: 8px; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(9,13,17,.94); box-shadow: 0 18px 50px rgba(0,0,0,.42); pointer-events: none; font: 700 11px/1.2 system-ui,sans-serif; }
.atrio-scene-drag-ghost img { width: 62px; height: 42px; object-fit: cover; border-radius: 7px; }
.panorama-viewer .atrio-nav-hotspot { width: 76px !important; height: 76px !important; margin: -38px 0 0 -38px !important; overflow: visible !important; background: none !important; }
.atrio-hotspot-shell { position: relative; display: grid; place-items: center; overflow: visible !important; filter: drop-shadow(0 8px 16px rgba(0,0,0,.42)); }
.atrio-connection-marker { position: relative; width: 72px; height: 72px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.96); border-radius: 19px; background: #161d23; box-shadow: 0 0 0 7px rgba(183,121,67,.20), 0 15px 35px rgba(0,0,0,.46); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.atrio-nav-hotspot:hover .atrio-connection-marker { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(183,121,67,.22), 0 18px 42px rgba(0,0,0,.50); }
.atrio-hotspot-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.atrio-connection-marker::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(5,8,11,.72)); }
.atrio-hotspot-arrow { position: absolute !important; z-index: 2; right: 5px; bottom: 5px; width: 30px !important; height: 30px !important; display: grid !important; place-items: center !important; color: #fff; border: 2px solid #fff !important; border-radius: 50% !important; background: rgba(183,121,67,.96) !important; box-shadow: 0 5px 14px rgba(0,0,0,.38) !important; transform: none !important; }
.atrio-hotspot-arrow svg { width: 16px !important; height: 16px !important; fill: currentColor !important; transform: none !important; }
.atrio-hotspot-label { top: 82px !important; margin: 0 !important; padding: 6px 9px !important; border-radius: 999px !important; font-size: 9px !important; background: rgba(7,10,14,.88) !important; }
.atrio-nav-hotspot.is-pending .atrio-connection-marker { animation: v24PendingConnection 1.05s ease-in-out infinite; }
@keyframes v24PendingConnection { 0%,100% { box-shadow: 0 0 0 7px rgba(183,121,67,.22),0 15px 35px rgba(0,0,0,.46); } 50% { box-shadow: 0 0 0 15px rgba(183,121,67,.08),0 20px 44px rgba(0,0,0,.52); } }
.connection-popover {
  position: absolute;
  z-index: 110;
  left: 50%;
  top: 92px;
  width: 310px;
  padding: 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(8,12,16,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 65px rgba(0,0,0,.48);
  transform: translateX(-50%);
  pointer-events: auto;
}
.connection-popover.above { top: auto; bottom: 92px; }
.connection-popover.align-right { left: auto; right: -18px; transform: none; }
.connection-popover-target { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 9px; }
.connection-popover-target img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; }
.connection-popover-target span { min-width: 0; display: grid; gap: 2px; }
.connection-popover-target small { color: #d5a36f; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.connection-popover-target strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.connection-popover label { margin-top: 9px; display: grid; gap: 5px; }
.connection-popover label > span { color: rgba(255,255,255,.7); font-size: 8px; font-weight: 800; }
.connection-popover input { width: 100%; height: 37px; padding: 0 10px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.08); outline: none; }
.connection-popover input:focus { border-color: #d29a63; box-shadow: 0 0 0 3px rgba(183,121,67,.18); }
.connection-popover-actions { margin-top: 9px; display: flex; justify-content: flex-end; gap: 6px; }
.audit-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #5f6971; }
.audit-loading > div { display: grid; gap: 4px; }
.audit-loading p { margin: 0; font-size: 10px; }
.audit-failure { min-height: 260px; padding: 32px; display: grid; place-content: center; justify-items: center; text-align: center; color: #7b2f2a; }
.audit-failure h3 { margin: 12px 0 5px; }
.audit-failure p { max-width: 480px; margin: 0 0 18px; color: #6c4b49; line-height: 1.5; }
@media (max-width: 1380px) {
  .editor-workspace { --left-panel-width: 270px; --right-panel-width: 310px; }
  .viewer-overlay-tool span { display: none; }
  .viewer-overlay-tool { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 980px) {
  .editor-workspace { display: grid !important; grid-template-columns: 0 minmax(0,1fr) 0 !important; }
  .scene-panel, .properties-panel { position: fixed; z-index: 120; top: 0; bottom: 0; width: min(360px, 88vw); box-shadow: 0 20px 70px rgba(0,0,0,.35); }
  .scene-panel { left: 0; }
  .properties-panel { right: 0; }
  .editor-workspace:not(.left-collapsed) > .scene-panel { opacity: 1; transform: translateX(0); pointer-events: auto; }
  .editor-workspace:not(.right-collapsed) > .properties-panel { opacity: 1; transform: translateX(0); pointer-events: auto; }
  .editor-center { grid-column: 2; }
  .viewer-shell { min-height: 460px; }
  .connection-dock { grid-template-columns: 1fr; width: calc(100% - 20px); padding-right: 44px; }
  .connection-dock-copy small { display: none; }
}
@media (max-width: 700px) {
  .viewer-head { top: 7px; left: 7px; right: 7px; }
  .viewer-overlay-toolbar { top: 66px; left: 7px; }
  .viewer-connection-chips { left: 7px; bottom: 7px; max-width: calc(100% - 14px); }
  .connection-dock { bottom: 7px; }
  .connection-popover { width: 270px; }
}

/* V24.0.1 — arrasto de conexões controlado por Pointer Events */
.connection-scene-card { touch-action: none; user-select: none; -webkit-user-drag: none; }
.connection-scene-card img { pointer-events: none; -webkit-user-drag: none; }


/* =====================================================================
   ÁTRIO TOUR 2.0 — MOTOR DE HOTSPOTS ESFÉRICOS
   A seta é permanente; a miniatura e o nome aparecem somente no hover.
   ===================================================================== */
.panorama-viewer .atrio-nav-hotspot,
.presentation-viewer .atrio-nav-hotspot,
.pnlm-hotspot-base.atrio-nav-hotspot {
  width: 56px !important;
  height: 56px !important;
  margin: -28px 0 0 -28px !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  cursor: pointer !important;
}
.atrio-hotspot-shell {
  position: relative !important;
  width: 56px !important;
  height: 56px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  outline: none !important;
  filter: none !important;
}
.atrio-connection-marker {
  position: relative !important;
  z-index: 4 !important;
  width: 56px !important;
  height: 56px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: filter .16s ease !important;
}
.atrio-hotspot-arrow {
  position: relative !important;
  inset: auto !important;
  z-index: 5 !important;
  width: 50px !important;
  height: 50px !important;
  display: grid !important;
  place-items: center !important;
  color: #26292d !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.atrio-hotspot-arrow svg {
  width: 48px !important;
  height: 48px !important;
  overflow: visible !important;
  fill: currentColor !important;
  stroke: #fff !important;
  stroke-width: 5 !important;
  stroke-linejoin: round !important;
  paint-order: stroke fill !important;
  transform: none !important;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.46)) !important;
}
.atrio-nav-hotspot:hover .atrio-connection-marker,
.atrio-nav-hotspot:focus-visible .atrio-connection-marker,
.atrio-nav-hotspot:focus-within .atrio-connection-marker {
  transform: none !important;
  filter: brightness(1.18) drop-shadow(0 0 7px rgba(255,255,255,.22)) !important;
  box-shadow: none !important;
  background: transparent !important;
}
.atrio-nav-hotspot.is-selected .atrio-hotspot-arrow { color: #b9773f !important; }
.atrio-nav-hotspot.is-pending .atrio-connection-marker {
  animation: atrioTour2Pending 1.05s ease-in-out infinite !important;
  background: transparent !important;
}
.atrio-nav-hotspot.is-pending .atrio-hotspot-preview { display: none !important; }
@keyframes atrioTour2Pending {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(183,121,67,0)); }
  50% { filter: drop-shadow(0 0 12px rgba(183,121,67,.95)); }
}
.atrio-hotspot-preview {
  position: absolute !important;
  z-index: 12 !important;
  width: 194px !important;
  min-height: 98px !important;
  display: grid !important;
  grid-template-rows: 72px auto !important;
  overflow: hidden !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.96) !important;
  border-radius: 8px !important;
  background: rgba(8,11,14,.96) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.48) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .14s ease, visibility .14s ease, transform .16s ease !important;
}
.atrio-hotspot-preview::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(8,11,14,.96);
  border-right: 2px solid rgba(255,255,255,.96);
  border-bottom: 2px solid rgba(255,255,255,.96);
  transform: rotate(45deg);
}
.atrio-hotspot-preview.preview-above { bottom: 68px !important; top: auto !important; }
.atrio-hotspot-preview.preview-below { top: 68px !important; bottom: auto !important; }
.atrio-hotspot-preview.preview-center { left: 50% !important; right: auto !important; transform: translate(-50%, 7px) !important; }
.atrio-hotspot-preview.preview-left { left: -8px !important; right: auto !important; transform: translateY(7px) !important; }
.atrio-hotspot-preview.preview-right { right: -8px !important; left: auto !important; transform: translateY(7px) !important; }
.atrio-hotspot-preview.preview-above::after { bottom: -8px; left: calc(50% - 7px); }
.atrio-hotspot-preview.preview-below::after { top: -8px; left: calc(50% - 7px); transform: rotate(225deg); }
.atrio-hotspot-preview.preview-left::after { left: 24px; }
.atrio-hotspot-preview.preview-right::after { left: auto; right: 24px; }
.atrio-nav-hotspot:hover .atrio-hotspot-preview,
.atrio-nav-hotspot:focus-visible .atrio-hotspot-preview,
.atrio-nav-hotspot:focus-within .atrio-hotspot-preview {
  opacity: 1 !important;
  visibility: visible !important;
}
.atrio-nav-hotspot:hover .atrio-hotspot-preview.preview-center,
.atrio-nav-hotspot:focus-visible .atrio-hotspot-preview.preview-center,
.atrio-nav-hotspot:focus-within .atrio-hotspot-preview.preview-center { transform: translate(-50%, 0) !important; }
.atrio-nav-hotspot:hover .atrio-hotspot-preview.preview-left,
.atrio-nav-hotspot:focus-visible .atrio-hotspot-preview.preview-left,
.atrio-nav-hotspot:focus-within .atrio-hotspot-preview.preview-left,
.atrio-nav-hotspot:hover .atrio-hotspot-preview.preview-right,
.atrio-nav-hotspot:focus-visible .atrio-hotspot-preview.preview-right,
.atrio-nav-hotspot:focus-within .atrio-hotspot-preview.preview-right { transform: translateY(0) !important; }
.atrio-hotspot-thumbnail {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 72px !important;
  object-fit: cover !important;
  opacity: 1 !important;
}
.atrio-hotspot-preview-copy {
  min-width: 0;
  padding: 7px 10px 8px;
  display: grid;
  gap: 2px;
  text-align: center;
}
.atrio-hotspot-preview-copy small {
  color: #dba36e;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}
.atrio-hotspot-preview-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.atrio-hotspot-label { display: none !important; }


/* =====================================================================
   ÁTRIO TOUR 2.1 — NAVEGAÇÃO PROFISSIONAL 360
   Hotspots continuam posicionados exclusivamente por yaw/pitch do Pannellum.
   Este bloco consolida apenas a geometria visual do marcador em torno da
   origem esférica fornecida pelo viewer e transforma Ambientes em overlay.
   ===================================================================== */
.panorama-viewer .pnlm-hotspot-base.atrio-nav-hotspot,
.presentation-viewer .pnlm-hotspot-base.atrio-nav-hotspot,
.pnlm-hotspot-base.atrio-nav-hotspot {
  width: 48px !important;
  height: 48px !important;
  margin: -24px 0 0 -24px !important;
  overflow: visible !important;
  background: transparent !important;
}
.atrio-hotspot-shell {
  width: 48px !important;
  height: 48px !important;
  overflow: visible !important;
}
.atrio-connection-marker {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(12,16,20,.82) !important;
  border: 2px solid rgba(255,255,255,.96) !important;
  box-shadow: 0 6px 22px rgba(0,0,0,.38), 0 0 0 4px rgba(var(--tour-accent-rgb,183,121,63),.18) !important;
  backdrop-filter: blur(5px) !important;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease !important;
}
.atrio-hotspot-arrow {
  width: 30px !important;
  height: 30px !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
}
.atrio-hotspot-arrow svg {
  width: 25px !important;
  height: 25px !important;
  stroke: none !important;
  fill: currentColor !important;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)) !important;
}
.atrio-nav-hotspot:hover .atrio-connection-marker,
.atrio-nav-hotspot:focus-visible .atrio-connection-marker,
.atrio-nav-hotspot:focus-within .atrio-connection-marker {
  transform: scale(1.1) !important;
  background: var(--tour-accent, #b9773f) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.44), 0 0 0 6px rgba(var(--tour-accent-rgb,183,121,63),.22) !important;
}
.atrio-nav-hotspot.is-selected .atrio-connection-marker {
  background: #b9773f !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.44), 0 0 0 7px rgba(183,121,63,.28) !important;
}
.atrio-hotspot-label { display: none !important; }
.atrio-hotspot-shell.has-static-label .atrio-hotspot-label {
  position: absolute !important;
  left: 50% !important;
  top: 56px !important;
  display: block !important;
  max-width: 180px !important;
  padding: 6px 9px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  background: rgba(7,10,13,.86) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(8px) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

/* Ambientes: faixa flutuante sobre o 360, nunca reduz a área do panorama. */
.presentation-page.has-gallery .presentation-stage { bottom: 0 !important; }
.presentation-page.has-gallery .presentation-plan { bottom: 0 !important; }
.presentation-page.has-gallery .embed-watermark { bottom: 12px !important; }
.presentation-page.has-gallery .presentation-cta { bottom: 18px !important; }
.presentation-gallery {
  left: clamp(12px, 2vw, 28px) !important;
  right: clamp(12px, 2vw, 28px) !important;
  bottom: clamp(12px, 2vw, 24px) !important;
  height: 116px !important;
  padding: 10px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  background: rgba(7,10,13,.78) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.34) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  transition: transform .22s ease, opacity .18s ease, visibility .18s ease !important;
}
.presentation-gallery.is-closed {
  transform: translateY(calc(100% + 36px)) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.presentation-gallery-track { scrollbar-width: none !important; }
.presentation-gallery-track::-webkit-scrollbar { display: none !important; }
.presentation-scene-card { flex-basis: 148px !important; border-radius: 12px !important; }

@media (max-width: 760px) {
  .presentation-gallery {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    height: 104px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }
  .presentation-scene-card { flex-basis: 126px !important; }
  .atrio-hotspot-shell.has-static-label .atrio-hotspot-label { font-size: 9px !important; top: 53px !important; }
}

/* ==========================================================
   ÁTRIO TOUR 2.2.3 — armazenamento, duplicação e navegação
   ========================================================== */
.scene-card { cursor: pointer; }
.scene-card:focus-visible { outline: 2px solid rgba(183,121,63,.42); outline-offset: 2px; }
.scene-card-delete { position:absolute; right:7px; bottom:7px; width:26px; height:26px; display:grid; place-items:center; padding:0; color:#8d4541; border:1px solid rgba(157,75,68,.18); border-radius:8px; background:rgba(255,255,255,.88); box-shadow:0 3px 10px rgba(25,31,36,.08); opacity:.72; cursor:pointer; transition:opacity .15s ease,color .15s ease,background .15s ease,border-color .15s ease,transform .15s ease; }
.scene-card:hover .scene-card-delete,.scene-card:focus-within .scene-card-delete{opacity:1}.scene-card-delete:hover,.scene-card-delete:focus-visible{color:#fff;border-color:#a54d47;background:#a54d47;transform:translateY(-1px);outline:none}
.storage-capacity-card{margin:14px 0 24px;padding:18px 20px;display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:15px;border:1px solid #dfe3df;border-radius:15px;background:#fff;box-shadow:var(--shadow-xs)}
.storage-capacity-icon{width:46px;height:46px;display:grid;place-items:center;color:#9a6538;border-radius:12px;background:#f5eadf}.storage-capacity-main{min-width:0;display:grid;gap:9px}.storage-capacity-head,.storage-capacity-foot{display:flex;align-items:center;justify-content:space-between;gap:16px}.storage-capacity-head>div{min-width:0;display:grid;gap:2px}.storage-capacity-head small{color:#8a7460;font-size:8px;font-weight:900;letter-spacing:.12em}.storage-capacity-head strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#1b2024;font-size:14px}.storage-capacity-head>span{flex:0 0 auto;color:#8c5d35;font-size:13px;font-weight:900}.storage-capacity-bar{height:8px;overflow:hidden;border-radius:999px;background:#ecefeb;box-shadow:inset 0 1px 2px rgba(20,27,31,.08)}.storage-capacity-bar i{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#b9773f,#d49a64);transition:width .3s ease}.storage-capacity-foot{color:#758087;font-size:9px}.storage-capacity-card.is-warning .storage-capacity-bar i{background:#bf7d2f}.storage-capacity-card.is-warning .storage-capacity-head>span{color:#a9681f}.storage-capacity-card.is-critical .storage-capacity-bar i{background:#a84b46}.storage-capacity-card.is-critical .storage-capacity-head>span{color:#a84b46}.storage-capacity-card.is-unavailable{opacity:.84}.storage-capacity-card.is-unavailable p{margin:0;color:#778187;font-size:10px}
.presentation-gallery{overflow:visible!important}.presentation-gallery-track{padding-inline:42px!important;scroll-snap-type:x proximity;scroll-behavior:smooth;overscroll-behavior-x:contain}.presentation-scene-card{scroll-snap-align:center}.presentation-gallery-count{position:absolute;z-index:5;left:10px;top:-31px;height:25px;padding:0 9px;display:inline-flex;align-items:center;gap:7px;color:#fff;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(7,10,13,.82);box-shadow:0 7px 20px rgba(0,0,0,.22);backdrop-filter:blur(10px)}.presentation-gallery-count strong{font-size:9px;font-weight:800}.presentation-gallery-count span{min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:rgba(183,121,63,.92);font-size:8px;font-weight:900}.presentation-gallery-nav{position:absolute;z-index:6;top:50%;width:34px;height:54px;display:grid;place-items:center;padding:0;color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(9,12,15,.82);box-shadow:0 8px 24px rgba(0,0,0,.28);backdrop-filter:blur(10px);transform:translateY(-50%);cursor:pointer;transition:background .16s ease,transform .16s ease}.presentation-gallery-nav:hover{background:rgba(183,121,63,.94);transform:translateY(-50%) scale(1.04)}.presentation-gallery-nav.is-prev{left:9px}.presentation-gallery-nav.is-next{right:9px}
.atrio-hotspot-arrow .atrio-nav-shadow{fill:rgba(0,0,0,.28)!important;transform:translateY(3px)}.atrio-hotspot-arrow .atrio-nav-face{fill:rgba(22,27,31,.82)!important;stroke:rgba(255,255,255,.96)!important;stroke-width:2.4px!important;stroke-linejoin:round!important}.atrio-hotspot-arrow .atrio-nav-accent{fill:var(--tour-accent,#b9773f)!important}.atrio-nav-hotspot .atrio-connection-marker{transition:filter .14s ease,transform .14s ease!important}.atrio-nav-hotspot:hover .atrio-connection-marker,.atrio-nav-hotspot:focus-visible .atrio-connection-marker,.atrio-nav-hotspot:focus-within .atrio-connection-marker{transform:translateY(-1px) scale(1.045)!important;filter:brightness(1.08) drop-shadow(0 6px 8px rgba(0,0,0,.28))!important;background:transparent!important;box-shadow:none!important}.atrio-nav-hotspot.is-selected .atrio-hotspot-arrow .atrio-nav-face{fill:rgba(183,121,63,.88)!important}.atrio-nav-hotspot.is-selected .atrio-hotspot-arrow .atrio-nav-accent{fill:#fff!important}.atrio-nav-hotspot.is-pending .atrio-connection-marker{animation:none!important}
@media(max-width:760px){.storage-capacity-card{grid-template-columns:38px minmax(0,1fr);padding:14px}.storage-capacity-icon{width:38px;height:38px}.storage-capacity-foot{align-items:flex-start;flex-direction:column;gap:3px}.presentation-gallery-track{padding-inline:36px!important}.presentation-gallery-nav{width:30px;height:48px}.presentation-gallery-nav.is-prev{left:6px}.presentation-gallery-nav.is-next{right:6px}}

/* =========================================================
   ÁTRIO TOUR 2.2.5 — painel de setas em largura útil do viewer
   Desktop: ocupa praticamente toda a largura do panorama.
   Scroll horizontal só aparece quando as miniaturas realmente
   excedem o espaço disponível.
   ========================================================= */
@media (min-width: 761px) {
  .connection-dock {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    grid-template-columns: minmax(190px, 235px) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .connection-dock-scenes {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    scrollbar-width: thin;
  }

  .connection-scene-card {
    flex: 1 0 170px !important;
    max-width: 220px !important;
  }
}

/* =========================================================
   ÁTRIO TOUR 2.2.6 — gaveta de ambientes na apresentação
   Botão inferior sempre visível. Abre/fecha a faixa de
   miniaturas sem recriar o viewer, permitindo animação real.
   ========================================================= */
.presentation-gallery-handle {
  position: absolute;
  z-index: 29;
  left: 50%;
  bottom: clamp(12px, 2vw, 24px);
  min-height: 38px;
  padding: 0 13px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(7,10,13,.84);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  backdrop-filter: blur(14px) saturate(1.12);
  transform: translateX(-50%);
  cursor: pointer;
  transition: bottom .22s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.presentation-gallery-handle:hover,
.presentation-gallery-handle:focus-visible {
  border-color: rgba(212,154,100,.7);
  background: rgba(31,26,22,.94);
  outline: none;
}
.presentation-gallery-handle:active { transform: translateX(-50%) scale(.98); }
.presentation-gallery-handle-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.presentation-gallery-handle-icon svg {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
  transition: transform .22s ease;
}
.presentation-gallery-handle strong {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .01em;
}
.presentation-gallery-handle small {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(183,121,63,.92);
  font-size: 8px;
  font-weight: 900;
}
.presentation-page.has-gallery .presentation-gallery-handle {
  bottom: calc(clamp(12px, 2vw, 24px) + 124px);
}
.presentation-page.has-gallery .presentation-gallery-handle-icon svg {
  transform: rotate(0deg);
}
.presentation-gallery.is-closed {
  pointer-events: none !important;
}
.presentation-gallery.is-open {
  pointer-events: auto !important;
}

@media (max-width: 760px) {
  .presentation-gallery-handle {
    bottom: 8px;
    min-height: 36px;
    padding-inline: 9px 11px;
    gap: 7px;
  }
  .presentation-page.has-gallery .presentation-gallery-handle {
    bottom: 120px;
  }
  .presentation-gallery-handle strong { font-size: 9px; }
}

