/**
 * SVG-Edit leftover hygiene (Sep 2026 leftover audit).
 * Surgical hide/cull only — keep paint/fill-stroke bridge DOM intact.
 */

/* --------------------------------------------------------------------------
 * 1. Bottom bar: hide legacy fill/stroke chrome. Keep #tools_bottom, #zoom,
 *    and #vector_status_bar. #fill_color / #stroke_color / #stroke_width stay
 *    in the DOM for the Studio↔Vector paint bridge + color-system listeners.
 * -------------------------------------------------------------------------- */
#tools_bottom #fill_color,
#tools_bottom #stroke_color,
#tools_bottom #stroke_width,
#tools_bottom #stroke_style,
#tools_bottom #stroke_linejoin,
#tools_bottom #stroke_linecap,
#tools_bottom #opacity,
#tools_bottom #palette {
  display: none !important;
}

/* Status + zoom are the only intentional bottom chrome now. */
#tools_bottom > *:not(#vector_status_bar):not(#zoom) {
  /* Replaces the old 0.55 dimming of leftover color widgets. */
  pointer-events: none;
}

#tools_bottom #zoom {
  margin-left: 8px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
 * 2. Document tabs (#67) own the doc title — hide SVG-Edit #title_panel.
 *    Do not remove from DOM (TopPanel.updateTitle still writes it).
 * -------------------------------------------------------------------------- */
#title_panel {
  display: none !important;
}

/* --------------------------------------------------------------------------
 * 3. Marker / star / polygon context leftovers in the options bar.
 *    Left-toolbar star/polygon tools remain; Properties integration deferred.
 *    Unsafe to delete extension DOM (ext-polystar still wires it). ext-markers is
 *    no longer loaded: arrowheads live in the Stroke dock (visteras-arrowheads.js).
 * -------------------------------------------------------------------------- */
#tools_top #star_panel,
#tools_top #polygon_panel,
#tools_top #marker_panel {
  display: none !important;
}

/* --------------------------------------------------------------------------
 * 4. Dead Path & Nodes controls (replaced by Direct Selection Convert + menu).
 *    Keep elements for SVG-Edit click wiring; never surface in Properties.
 * -------------------------------------------------------------------------- */
#tool_node_clone,
#tool_node_delete,
#tool_node_link,
#seg_type {
  display: none !important;
}

/* path_node_x/y: shown again in Properties ▸ Path & Nodes for Direct Selection /
   pathedit (gravit-gap-4). Still relocated out of #tools_top. */

/* --------------------------------------------------------------------------
 * 5. Orphan options-bar tools that stay permanently unused under the Visteras
 *    shell (menus / Properties own these flows). Leave in DOM — Editor.js
 *    still binds handlers by id.
 * -------------------------------------------------------------------------- */
#tools_top #tool_make_link,
#tools_top #tool_make_link_multi,
#tools_top #tool_clone_multi,
#tools_top #tool_delete_multi,
#tools_top #tool_unlink_use,
#tools_top #tool_position,
#tools_top #g_title,
#tools_top #link_url,
#tools_top #linkLabel,
#tools_top #image_url,
#tools_top #elem_id,
#tools_top #elem_class {
  display: none !important;
}

/* --------------------------------------------------------------------------
 * 6. SVG-Edit off-screen text input buffer (#text).
 *    Used to capture keyboard events during canvas text editing.
 *    CRITICAL: Must NEVER be display:none, otherwise browser focus() fails
 *    and the Type tool receives zero keyboard input!
 * -------------------------------------------------------------------------- */
#text,
#tools_top #text,
#tools_top > #text {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* --------------------------------------------------------------------------
 * 7. Text selection highlight block (#text_selectblock).
 *    Matches Studio's accent blue (#1C79C4) selection highlight style.
 * -------------------------------------------------------------------------- */
#text_selectblock {
  fill: #1C79C4 !important;
  opacity: 0.45 !important;
}


