  .panel {
    width: 100%;
    margin: 20px 00px 20px 0px;
    margin: 0 auto;
    background: var(--wash-1);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / 0.1);
    font-size: var(--fs-md);
    position: relative;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;    /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }
  .panel:-webkit-scrollbar {
  display: none;            /* Chrome, Safari, Opera */
  }

  #objectTable {
  border: 2px solid transparent;
  border-collapse: collapse;
  }

  #objectTable .fth,
  #objectTable .ftd {
  border: 1px solid var(--line-2);
  padding: var(--sp-3);
 }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  .fth, .ftd {
    padding: var(--sp-1) var(--sp-2);
    border-bottom: 1px solid var(--ink-4);
    text-align: left;
  }

  .fth {
    color: var(--fg-1);
    font-weight: 200;
    font-size: var(--fs-base);
  }

  .ftr:hover {
    background-color: var(--wash-1);
  }

  .ftr.selected {
    background-color: var(--accent-color);
  }

  .icon {
    text-align: center;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    font-size: var(--fs-lg);
  }

  .icon img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
  }

  .icon:hover img {
    filter: var(--accent-color);
  }
  .icon.copy {
    font-weight: var(--fw-normal);
    font-size: var(--fs-2xl);
  }

  .icon.copy:hover {
    transform: scale(1.1);
    border: 1px solid var(--wash-4);
  }
  .icon.delete:hover {
    color: var(--danger-strong);
  }

  /* Name scrolling behavior */
  .name-cell {
    position: relative;
    width: 100px; /* about 10 characters */
    overflow: hidden;
  }

  .name-inner {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
  }

  .name-scroll {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    transform: translateX(0%);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .name-cell:hover .name-inner {
    opacity: 0;
  }

  .name-cell:hover .name-scroll {
    opacity: 1;
    animation: scroll-left 4s linear infinite;
  }

  @keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
  }

  /* Inline rename (double-click the name): the input takes the cell over,
     both labels and the hover marquee step aside. */
  .name-cell.is-editing .name-inner,
  .name-cell.is-editing .name-scroll {
    display: none;
  }
  .cv-fb-rename {
    box-sizing: border-box;
    width: 100%;
    padding: 1px var(--sp-1);
    border: 1px solid var(--accent-fg);
    border-radius: var(--radius-4);
    background: var(--bg-color);
    color: var(--fg-1);
    font: inherit;
  }

  input[type="number"] {
    width: 45px;
    padding: 2px;
    border: 1px solid var(--ink-3);
    border-radius: var(--radius-4);
    font-size: var(--fs-base);
  }

  /* Error popup */
  .error-panel {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--overlay-light);
    color: var(--danger);
    border: 2px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: var(--sp-3-5) var(--sp-5);
    font-size: var(--fs-md);
    box-shadow: var(--shadow-sm);
    display: none;
    z-index: var(--z-inline-alert);
  }


.add-structure-button {
  background-color: var(--bg-color);; /* Green background */
  border: none;
  color: var(--fg-1);
  padding: 5px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius-4);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--popup-border)
}

.add-structure-button:hover {
    transform: scale(1.1);
    border: 1px solid var(--hover-color)
}

.combine-trajectories-button {
  background-color: var(--bg-color);
  border: 1px solid var(--popup-border);
  color: var(--fg-1);
  padding: 5px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius-4);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.combine-trajectories-button:hover:not(:disabled) {
  transform: scale(1.1);
  border: 1px solid var(--hover-color);
}

.combine-trajectories-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* --- Row-action popups (ui/FileBrowswerPanel.js) --- shared chrome between
   the "combine checked rows" name prompt and the per-row "copy" options
   dropdown: same dark card, just centered-over-a-scrim vs. anchored near the
   click. --- */

.combine-name-popup-overlay {
  position: fixed;
  inset: 0;
  /* Matches --z-tooltip's role but not its value (5000) — same reasoning as
     .cv-background-picker-panel (sceneWidgets.css): kept as the original
     literal so adopting a token doesn't reorder stacking as a side effect. */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--shadow-rgb) / 0.4);
}

.cv-fb-popup {
  background: var(--popup-bg-deep);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-12);
  box-shadow: 0 2px 5px rgb(var(--shadow-rgb) / 0.2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3-5);
  padding: var(--sp-5);
}

/* The combine-name prompt only — the copy-options popup below sizes to its
   own content instead. */
.cv-fb-popup--modal {
  min-width: 260px;
}

/* The copy-options popup positions itself near the clicked row (JS-computed
   left/top) rather than being centered by an overlay, and runs tighter than
   the combine-name prompt. */
.cv-fb-popup--anchored {
  position: absolute;
  /* Above the side dock pane (--z-dock-pane 1300): the copy button lives inside
     that pane when the Files panel is docked right/bottom or is the mobile
     sheet, so without this the body-appended popup stacks behind the opaque
     pane and never shows. */
  z-index: var(--z-popup);
  padding: var(--sp-3-5);
}

.cv-fb-popup-label {
  color: var(--fg-1);
  font-size: var(--fs-base);
}

.cv-fb-popup-input {
  background: var(--bg-color);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  border-radius: var(--radius-4);
  font-size: var(--fs-base);
  padding: var(--sp-2);
}

.cv-fb-popup-btn-row {
  display: flex;
  gap: var(--sp-3-5);
  justify-content: flex-end;
}

.cv-fb-popup-btn {
  background: var(--bg-color);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  border-radius: var(--radius-4);
  cursor: pointer;
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-3-5);
}

/* Copy-options popup's own controls run one size down from the combine-name
   prompt's buttons above (10px vs 11-12px text) — same family, smaller
   footprint since several of them share one row. */
.cv-fb-popup-btn--compact {
  font-size: var(--fs-xs);
  padding: var(--sp-1) var(--sp-3);
}

.cv-fb-copy-select {
  background: var(--bg-color);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  border-radius: var(--radius-4);
  cursor: pointer;
  font-size: var(--fs-xs);
  padding: var(--sp-1);
}

.cv-fb-copy-range {
  display: none;
  gap: var(--sp-3-5);
  flex-direction: column;
}

.cv-fb-copy-range.is-visible {
  display: flex;
}

.cv-fb-copy-step-row {
  display: flex;
  gap: var(--sp-2); /* was a literal 5px, equidistant between --sp-1/--sp-2 — snapped up, same call as sceneWidgets.css's .cv-cus-bond-fields-row */
  align-items: center;
}

.cv-fb-copy-step-label {
  color: var(--fg-1);
  font-size: var(--fs-xs);
}

.cv-fb-copy-step-input {
  background: var(--bg-color);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  border-radius: var(--radius-4);
  font-size: var(--fs-xs);
  width: 50px;
  padding: var(--sp-1);
}
