/* ==========================================================
   Grafo 3D Standalone — style_graph_v2_3d.css
   Layout e estilo visual idêntico ao componente 2D
   ========================================================== */

/* ----------------------------------------------------------
   Tooltip on-hover do 3d-force-graph
   .scene-tooltip é injetado pela biblioteca apenas no canvas
   3D — escopo automático, não afeta o 2D.
   ---------------------------------------------------------- */
.scene-tooltip {
  background: rgba(15, 23, 42, 0.94) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: #f8fafc !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  text-shadow: none !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.08) inset !important;
  max-width: 360px !important;
  pointer-events: none !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.scene-tooltip .graph-tooltip {
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 340px;
  color: #f8fafc;
}

.scene-tooltip .graph-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: #38bdf8;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.scene-tooltip .graph-tooltip small {
  display: block;
  color: #cbd5e1;
  font-size: 11.5px;
  line-height: 1.5;
}

.scene-tooltip .graph-tooltip small + small {
  margin-top: 2px;
  color: #94a3b8;
}

/* ---------- variáveis ---------- */
:root {
  --g3d-toolbar-h: 52px;
  --g3d-status-h: 28px;
  --g3d-sidebar-w: 380px;
  --g3d-bg: #e2e7ee;
  --g3d-surface: #ffffff;
  --g3d-border: #dfe3e8;
  --g3d-text: #1c3d59;
  --g3d-text-muted: #637381;
  --g3d-accent: #116593;
  --g3d-accent-hover: #0d4f73;
  --g3d-green: #3ec26e;
  --g3d-red: #e74c3c;
  --g3d-radius: 6px;
  --g3d-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --g3d-transition: 0.2s ease;
}

/* ---------- page reset ---------- */
html,
body {
  height: 100%;
}

.g3d-page {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--g3d-bg);
}

/* ---------- container ---------- */
.g3d-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.g3d-page > .g3d-container {
  min-height: calc(100dvh - 60px);
}

/* ---------- app shell ---------- */
.g3d-app {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* ---------- toolbar ---------- */
.g3d-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: var(--g3d-toolbar-h);
  padding: 0 16px;
  background: var(--g3d-surface);
  border-bottom: 1px solid var(--g3d-border);
  box-shadow: var(--g3d-shadow);
  z-index: 10;
  flex-shrink: 0;
}

.g3d-toolbar__center,
.g3d-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g3d-toolbar__center {
  flex: 1 1 auto;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}
.g3d-toolbar__right {
  flex: 0 0 auto;
  min-width: 0;
}

.g3d-toolbar__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  min-width: 0;
}

.g3d-toolbar__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--g3d-accent);
  background: rgba(17, 101, 147, 0.08);
  border-radius: 10px;
  white-space: nowrap;
}

/* ---------- search ---------- */
.g3d-search {
  position: relative;
  width: min(240px, 100%);
  max-width: 100%;
  flex: 1 1 220px;
}

.g3d-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--g3d-text-muted);
  pointer-events: none;
}

.g3d-search__input {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 30px;
  border: 1px solid var(--g3d-border);
  border-radius: var(--g3d-radius);
  font-size: 13px;
  color: var(--g3d-text);
  background: var(--g3d-bg);
  outline: none;
  transition:
    border-color var(--g3d-transition),
    box-shadow var(--g3d-transition);
}
.g3d-search__input:focus {
  border-color: var(--g3d-accent);
  box-shadow: 0 0 0 3px rgba(17, 101, 147, 0.12);
}
.g3d-search__input::placeholder {
  color: var(--g3d-text-muted);
  opacity: 0.6;
}

.g3d-search__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--g3d-text-muted);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.g3d-search__clear:hover {
  background: var(--g3d-border);
}

/* ---------- select ---------- */
.g3d-select {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--g3d-border);
  border-radius: var(--g3d-radius);
  font-size: 12px;
  color: var(--g3d-text);
  background: var(--g3d-bg);
  cursor: pointer;
  outline: none;
}
.g3d-select:focus {
  border-color: var(--g3d-accent);
}

/* ---------- buttons ---------- */
.g3d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  gap: 6px;
  border: 1px solid var(--g3d-border);
  border-radius: var(--g3d-radius);
  background: var(--g3d-surface);
  color: var(--g3d-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--g3d-transition);
}
.g3d-btn:hover {
  background: var(--g3d-bg);
  color: var(--g3d-accent);
  border-color: var(--g3d-accent);
}
.g3d-btn--primary {
  background: var(--g3d-accent);
  color: #fff;
  border-color: var(--g3d-accent);
}
.g3d-btn--primary:hover {
  background: var(--g3d-accent-hover);
}
.g3d-btn--active {
  background: rgba(17, 101, 147, 0.08);
  color: var(--g3d-accent);
  border-color: var(--g3d-accent);
}

.g3d-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px;
  border: 1px solid var(--g3d-border);
  border-radius: 8px;
  background: #f8fafc;
}

#g3dForceGroup {
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
}

#g3dForceGroup .g3d-btn--chip {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

#g3dForceMedium {
  min-width: 34px;
  width: 34px;
}

#g3dLayoutGroup .g3d-btn--chip {
  min-width: auto;
  width: auto;
  padding: 0 10px;
  font-size: 11px;
}

.g3d-btn--chip {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- content ---------- */
.g3d-content {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* ---------- canvas ---------- */
.g3d-canvas {
  flex: 1;
  min-width: 0;
  min-height: 240px;
  position: relative;
  background: #0b1120;
  overflow: hidden;
}

.g3d-canvas-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.g3d-canvas canvas {
  outline: none;
}

.g3d-canvas-toolbar {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #b8cfde;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.g3d-canvas-toolbar .g3d-canvas-btn,
.g3d-canvas-toolbar .g3d-canvas-toolbar__sep {
  pointer-events: auto;
}

.g3d-canvas-toolbar__sep {
  width: 24px;
  border: none;
  border-top: 1px solid var(--g3d-border);
  margin: 2px 0;
}

.g3d-canvas-btn {
  width: 31px;
  height: 31px;
  font-size: 12px;
  border: 1px solid var(--g3d-border);
  border-radius: 7px;
  background: #fff;
  color: var(--g3d-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--g3d-transition);
}

.g3d-canvas-btn:hover {
  border-color: var(--g3d-accent);
  color: var(--g3d-accent);
  background: #f7fbff;
}

/* ---------- bottom bar ---------- */
.g3d-bottombar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: var(--g3d-surface);
  border-top: 1px solid var(--g3d-border);
  overflow-x: auto;
  flex-shrink: 0;
}

.g3d-bottombar__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- sidebar ---------- */
.g3d-sidebar {
  width: clamp(280px, 32vw, 380px);
  max-width: 100%;
  height: min(100%, calc(100dvh - var(--navbar-total-offset, 96px) - 24px));
  max-height: calc(100dvh - var(--navbar-total-offset, 96px) - 24px);
  min-height: 0;
  align-self: stretch;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid var(--g3d-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    margin-right var(--g3d-transition),
    opacity var(--g3d-transition);
}
.g3d-sidebar--hidden {
  margin-right: calc(-1 * clamp(280px, 32vw, 380px));
  opacity: 0;
  pointer-events: none;
}

.g3d-sidebar__headerbar {
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f4f7a 0%, #1f6fa8 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.g3d-sidebar__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.g3d-sidebar__close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
}

.g3d-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.g3d-sidebar__body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.g3d-sidebar__body > .rel-list {
  flex: 1 1 auto;
  min-height: 0;
}

.g3d-sidebar__footer {
  padding: 8px 12px;
  background: #f4f8fc;
  border-top: 1px solid #d9e5f2;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.g3d-sidebtn {
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #6c757d;
  color: #fff;
}

.g3d-sidebtn:hover:not(:disabled) {
  background: #5a6268;
}
.g3d-sidebtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.g3d-sidebtn--primary {
  background: linear-gradient(135deg, #116593 0%, #1c3d59 100%);
}
.g3d-sidebtn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f4f7a 0%, #16364c 100%);
}

/* ---------- filter chips ---------- */
.g3d-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  margin: 0 4px 4px 0;
  border: 1px solid var(--g3d-border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--g3d-text);
  background: var(--g3d-surface);
  cursor: pointer;
  transition: all var(--g3d-transition);
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}
.g3d-filter-chip:hover {
  border-color: var(--g3d-accent);
}
.g3d-filter-chip--active {
  background: rgba(17, 101, 147, 0.08);
  border-color: var(--g3d-accent);
  color: var(--g3d-accent);
  font-weight: 600;
}
.g3d-filter-chip:not(.g3d-filter-chip--active) {
  background: #e6e8eb;
  border-color: #c6cbd1;
  color: #7a808a;
  font-weight: 500;
}
.g3d-filter-chip:not(.g3d-filter-chip--active) .g3d-filter-chip__dot {
  filter: grayscale(1);
  opacity: 0.55;
}
.g3d-filter-chip:not(.g3d-filter-chip--active):hover {
  border-color: #9aa1ab;
  color: #4a5059;
}
.g3d-filter-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.g3d-filter-chip__count {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 700;
}

/* ---------- detail ---------- */
.g3d-detail__empty {
  font-size: 12px;
  color: var(--g3d-text-muted);
  margin: 0;
}

/* ---------- status bar ---------- */
.g3d-statusbar {
  height: var(--g3d-status-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  color: var(--g3d-text-muted);
  background: var(--g3d-surface);
  border-top: 1px solid var(--g3d-border);
  flex-shrink: 0;
  z-index: 10;
}

/* ---------- overlays ---------- */
.g3d-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 246, 248, 0.92);
  z-index: 50;
  transition: opacity 0.3s ease;
}
.g3d-overlay[hidden] {
  display: none;
}

.g3d-overlay__content {
  text-align: center;
  color: var(--g3d-text);
  font-size: 14px;
}
.g3d-overlay__content p {
  margin: 12px 0 0;
}

.g3d-overlay__icon {
  font-size: 40px;
  color: var(--g3d-text-muted);
  opacity: 0.5;
}
.g3d-overlay--error .g3d-overlay__icon {
  color: var(--g3d-red);
  opacity: 0.8;
}

.g3d-overlay--error .g3d-btn {
  margin-top: 16px;
}

/* ---------- spinner ---------- */
.g3d-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 4px;
  border: 3px solid var(--g3d-border);
  border-top-color: var(--g3d-accent);
  border-radius: 50%;
  animation: g3d-spin 0.8s linear infinite;
}
@keyframes g3d-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- node details sidebar content ---------- */
.node-details {
  font-size: 12px;
  color: #1a3a54;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

@media (max-width: 1080px) {
  .g3d-toolbar {
    height: auto;
    align-items: flex-start;
    padding: 10px 12px;
  }

  .g3d-content {
    flex-direction: column;
  }

  .g3d-canvas {
    min-height: 320px;
  }

  .g3d-sidebar,
  .g3d-sidebar--hidden {
    width: 100%;
    margin-right: 0;
    border-left: none;
    border-top: 1px solid var(--g3d-border);
  }

  .g3d-sidebar--hidden {
    max-height: 0;
    opacity: 0;
  }
}

.node-details p {
  margin: 0 0 4px 0;
  color: #1a3a54;
  font-size: 12px;
  line-height: 1.35;
}

.node-details p strong {
  color: #12324a;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.node-identity {
  background: linear-gradient(135deg, #f0f6fc 0%, #e8f0fe 100%);
  border: 1px solid #d0dce8;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.node-id-line code {
  background: #e2e8f0;
  color: #2d3748;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

.node-details h4 {
  margin: 12px 0 6px 0;
  color: #1f6fa8;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.properties-list {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.property-row {
  display: table-row;
}
.property-row:hover {
  background: #f0f4f8;
}
.property-row--metric:hover {
  background: #f3e8ff;
}

.property-key {
  display: table-cell;
  font-weight: 700;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
  padding: 4px 6px 4px 0;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
  border-bottom: 1px solid #eef1f5;
}

.property-key--metric {
  color: #7c3aed;
}

.property-value {
  display: table-cell;
  color: #1e293b;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.35;
  padding: 4px 0 4px 6px;
  text-align: right;
  vertical-align: top;
  word-break: break-word;
  border-bottom: 1px solid #eef1f5;
}

.rel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  overflow-y: auto;
}

.rel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f0f6fc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.rel-item:hover {
  background: #ddeaf7;
  border-color: #9ebfdd;
  transform: translateX(3px);
}

.rel-direction {
  font-size: 14px;
  font-weight: 700;
  color: #1f6fa8;
  min-width: 18px;
  text-align: center;
}

.rel-type-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: #1f6fa8;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.rel-target {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.type-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rel-target-label {
  font-size: 11px;
  font-weight: 600;
  color: #12324a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rel-target-type {
  font-size: 10px;
  color: #6c8a9e;
  white-space: nowrap;
}

.rel-empty,
.empty-message {
  font-size: 11px;
  color: #6c8a9e;
  font-style: italic;
  padding: 8px 0;
}

.metrics-details {
  margin-top: 12px;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  overflow: hidden;
}

.metrics-details summary {
  padding: 6px 10px;
  background: #faf5ff;
  color: #7c3aed;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  text-transform: uppercase;
}

.metrics-details summary:hover {
  background: #f3e8ff;
}
.prop-val-null {
  color: #94a3b8;
  font-style: italic;
}
.prop-val-url {
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}
.prop-val-url:hover {
  text-decoration: underline;
}
.prop-val-keywords {
  display: inline;
}
.keyword-badge::after {
  content: ", ";
}
.keyword-badge:last-child::after {
  content: "";
}

/* ==========================================================
   Compactação obrigatória (-10%) + toolbar/bottombar em 1 linha
   ========================================================== */

.g3d-toolbar {
  height: 47px;
  gap: 10px;
  padding: 0 12px;
  overflow: hidden;
}

.g3d-toolbar__center {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 7px;
}
.g3d-toolbar__center::-webkit-scrollbar {
  height: 4px;
}
.g3d-toolbar__center::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.g3d-toolbar__tools {
  flex-wrap: nowrap;
  gap: 5px;
}

.g3d-control-group {
  flex-wrap: nowrap;
  gap: 5px;
}

.g3d-btn {
  min-width: 29px;
  height: 29px;
  padding: 0 7px;
  font-size: 12px;
  gap: 5px;
}

.g3d-btn--chip {
  min-width: 29px;
  width: 29px;
  height: 29px;
  font-size: 11px;
}

#g3dLayoutGroup .g3d-btn--chip {
  padding: 0 9px;
  font-size: 10px;
  width: auto;
  min-width: auto;
}

#g3dForceGroup .g3d-btn--chip {
  width: 25px;
  min-width: 25px;
  height: 25px;
  font-size: 14px;
}

#g3dForceMedium {
  min-width: 30px;
  width: 30px;
}

.g3d-select {
  height: 29px;
  padding: 0 7px;
  font-size: 11px;
}

.g3d-search {
  width: min(216px, 100%);
  flex: 1 1 198px;
}
.g3d-search__input {
  height: 29px;
  font-size: 12px;
  padding: 0 27px 0 27px;
}

.g3d-toolbar__badge {
  padding: 2px 7px;
  font-size: 10px;
}

/* Bottombar em linha única com chips compactos */
.g3d-bottombar {
  flex-wrap: nowrap;
  gap: 9px;
  padding: 7px 11px;
}
.g3d-bottombar > .g3d-toolbar__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g3d-bottombar__filters {
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  gap: 5px;
}
.g3d-bottombar__filters::-webkit-scrollbar {
  height: 4px;
}
.g3d-bottombar__filters::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.g3d-bottombar__filters > * {
  flex: 0 0 auto;
}

/* ==========================================================
   Painel extra de física (drawer) - 3D
   ========================================================== */
.g3d-phys-extra {
  position: relative;
  display: inline-flex;
}
.g3d-phys-drawer {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  background: var(--g3d-surface);
  color: var(--g3d-text);
  font-family: inherit;
  font-size: 12px;
  border: 1px solid var(--g3d-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  width: max-content;
  min-width: 300px;
  max-width: 360px;
}
.g3d-phys-drawer[hidden] {
  display: none !important;
}
.g3d-phys-drawer.is-open {
  display: flex;
}
.g3d-phys-drawer::before {
  content: "Física avançada";
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--g3d-accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--g3d-border);
  margin-bottom: 2px;
}
.g3d-phys-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.g3d-phys-label {
  flex: 0 0 150px;
  color: var(--g3d-text);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.g3d-phys-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 90px;
  height: 4px;
  border-radius: 2px;
  background: var(--g3d-border);
  outline: none;
  cursor: pointer;
}
.g3d-phys-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--g3d-green);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.g3d-phys-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--g3d-green);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.g3d-phys-val {
  color: var(--g3d-accent);
  font-size: 11px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}
.g3d-phys-reset {
  align-self: flex-start;
  background: var(--g3d-surface);
  border: 1px solid var(--g3d-border);
  color: var(--g3d-text);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 4px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.g3d-phys-reset:hover {
  background: #f7fbff;
  border-color: var(--g3d-accent);
  color: var(--g3d-accent);
}
