* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0e0e10;
  color: #fff;
}

/* Top Navigation Header & Toolbar */
#header {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(24, 24, 28, 0.9);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #2a2a30;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#breadcrumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#breadcrumbs::-webkit-scrollbar {
  display: none;
}
.crumb {
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}
.crumb.active { color: #30d158; font-weight: 700; cursor: default; }

#header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  min-height: 44px;
  padding: 0 16px;
  background: #30d158;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.action-btn:active { opacity: 0.8; }

.action-btn.secondary-btn {
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  color: #0a84ff;
}
.action-btn.secondary-btn:active {
  background: #3a3a3c;
}

.action-btn.icon-only-btn {
  padding: 0 10px;
  font-size: 16px;
}

.btn-group {
  position: relative;
  display: flex;
  align-items: center;
}

.run-btn {
  background: #30d158;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.run-btn.running {
  background: #ff453a !important;
  animation: pulse-run-btn 1.2s infinite;
}

@keyframes pulse-run-btn {
  0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 69, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

.run-options-btn {
  min-height: 44px;
  padding: 0 8px;
  background: #28b84b;
  color: #fff;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 12px;
}

#run-btn-group .run-btn.has-options {
  border-radius: 8px 0 0 8px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 200;
  min-width: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hidden {
  display: none !important;
}

.dropdown-menu.hidden {
  display: none;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid #2c2c2e;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover, .dropdown-item:active {
  background: #2c2c2e;
  color: #30d158;
}

/* Canvas Grid */
#viewport {
  width: 100vw; height: 100vh; position: relative; overflow: hidden;
  background-image: radial-gradient(circle, #25252a 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
#canvas {
  position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none;
}
#canvas.transitioning {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
}

/* SVG Layer for Wires */
svg#connections {
  position: absolute; top: 0; left: 0; width: 10000px; height: 10000px; pointer-events: auto; z-index: 1; overflow: visible;
}
path.wire { fill: none; stroke: #30d158; stroke-width: 4; cursor: pointer; pointer-events: stroke; transition: stroke 0.2s ease, stroke-width 0.2s ease; }
path.wire:active { stroke: #ff453a; stroke-width: 6; }
path.wire.drop-target { stroke: #ff9f0a; stroke-width: 6; stroke-dasharray: 8 4; animation: wire-pulse 0.8s infinite linear; }
path.wire.wire-glowing { stroke: #0a84ff; stroke-width: 5; filter: drop-shadow(0 0 6px #0a84ff); }

@keyframes wire-pulse {
  to { stroke-dashoffset: -12; }
}

path.temp-wire { fill: none; stroke: #0a84ff; stroke-width: 3; stroke-dasharray: 6; pointer-events: none; }

/* Node Cards */
.node {
  position: absolute; width: 190px; background: #1c1c1e; border: 1.5px solid #3a3a3c;
  border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); pointer-events: auto;
  user-select: none; -webkit-user-select: none; z-index: 2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.node.node-running {
  border-color: #0a84ff;
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.8);
  animation: pulse-node-running 1s infinite alternate;
}

@keyframes pulse-node-running {
  0% { box-shadow: 0 0 8px rgba(10, 132, 255, 0.5); }
  100% { box-shadow: 0 0 20px rgba(10, 132, 255, 0.9); }
}

.node.node-success {
  border-color: #30d158;
  box-shadow: 0 0 16px rgba(48, 209, 88, 0.8);
}
.node-header {
  background: #2c2c2e; padding: 8px 12px; font-weight: 600; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #3a3a3c;
  border-radius: 13px 13px 0 0; cursor: move; gap: 6px;
}

.node-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.node-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-body { padding: 12px; font-size: 12px; color: #8e8e93; display: flex; flex-direction: column; gap: 8px; position: relative; }

/* Node Controls & Custom Input Components */
.node-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.node-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* Shared Control Label Style */
.control-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8e8e93;
  text-transform: none;
  letter-spacing: 0.2px;
}

/* Toggle Control Switch */
.control-toggle {
  user-select: none;
  -webkit-user-select: none;
}
.control-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  min-height: 28px;
}
.control-toggle-label input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 36px;
  height: 20px;
  background-color: #3a3a3c;
  border-radius: 10px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}
.control-toggle-label input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.control-toggle-label input[type="checkbox"]:checked {
  background-color: #30d158;
}
.control-toggle-label input[type="checkbox"]:checked::before {
  transform: translateX(16px);
}
.control-toggle-label input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 2px #0a84ff;
}

/* Slider Control */
.control-slider {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.control-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.control-slider-value {
  color: #30d158;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.control-slider input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.control-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a84ff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease;
}
.control-slider input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.15);
  background: #0071e3;
}
.control-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a84ff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease;
}
.control-slider input[type="range"]::-moz-range-thumb:active {
  transform: scale(1.15);
  background: #0071e3;
}
.control-slider input[type="range"]::-moz-range-track {
  background: #2c2c2e;
  height: 6px;
  border-radius: 3px;
}

/* Button Control */
.control-button {
  width: 100%;
}
.control-btn {
  width: 100%;
  min-height: 32px;
  padding: 6px 12px;
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  color: #0a84ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.control-btn:hover {
  background: #3a3a3c;
  color: #30d158;
}
.control-btn:active {
  transform: scale(0.97);
  background: #0a84ff;
  color: #ffffff;
  border-color: #0a84ff;
}

/* Text Input Control */
.control-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.control-input {
  width: 100%;
  height: 32px;
  background: #141416;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.control-input::placeholder {
  color: #636366;
}
.control-input:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.25);
}

/* Select Dropdown Control */
.control-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.control-select {
  width: 100%;
  height: 32px;
  background-color: #141416;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  padding: 6px 26px 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.control-select:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.25);
}
.control-select option {
  background-color: #1c1c1e;
  color: #ffffff;
}

/* Multi-Port Node UI Layout & Touch Ports */
.ports-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 4px;
  gap: 8px;
}

.ports-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ports-group.inputs {
  align-items: flex-start;
  margin-left: -16px;
}

.ports-group.outputs {
  align-items: flex-end;
  margin-right: -16px;
}

.port {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  padding: 4px;
  border-radius: 6px;
  z-index: 5;
  transition: transform 0.15s ease;
}

.port.input {
  flex-direction: row;
}

.port.output {
  flex-direction: row;
  justify-content: flex-end;
}

.port-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #1c1c1e;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.port.input .port-dot {
  background: #ff9f0a;
}

.port.output .port-dot {
  background: #30d158;
}

.port[data-port-type="cv"] .port-dot {
  background: #bf5af2;
}

.port[data-port-type="event"] .port-dot {
  background: #64d2ff;
}

.port-label {
  font-size: 11px;
  font-weight: 500;
  color: #a0a0a5;
  white-space: nowrap;
  pointer-events: none;
}

/* Tap Selection Highlight */
.port.selected {
  z-index: 10;
}

.port.selected .port-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px #0a84ff, 0 0 12px #0a84ff;
  animation: pulse-selected 1.5s infinite;
}

@keyframes pulse-selected {
  0% { box-shadow: 0 0 0 3px #0a84ff, 0 0 8px #0a84ff; }
  50% { box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.6), 0 0 16px #0a84ff; }
  100% { box-shadow: 0 0 0 3px #0a84ff, 0 0 8px #0a84ff; }
}

/* Magnetic Target Highlight */
.port.magnetic-target {
  z-index: 10;
}

.port.magnetic-target .port-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 5px #ff2d55, 0 0 16px #ff2d55;
  animation: pulse-magnetic 0.8s infinite alternate;
}

@keyframes pulse-magnetic {
  0% { box-shadow: 0 0 0 4px #ff2d55, 0 0 10px #ff2d55; }
  100% { box-shadow: 0 0 0 8px rgba(255, 45, 85, 0.8), 0 0 20px #ff2d55; }
}

/* Touch Action Buttons */
.touch-btn {
  min-height: 44px;
  width: 100%;
  background: #0a84ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.touch-btn.has-children { background: #30d158; }

.node-actions {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.node-menu-btn {
  background: transparent;
  color: #8e8e93;
  border: none;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.node-menu-btn:hover, .node-menu-btn:active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.node-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 100;
  min-width: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.node-menu-item {
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 14px;
  min-height: 44px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #3a3a3c;
}
.node-menu-item:last-child {
  border-bottom: none;
}
.node-menu-item:hover, .node-menu-item:active {
  background: #3a3a3c;
  color: #30d158;
}
.node-menu-item.danger {
  color: #ff453a;
}
.node-menu-item.danger:hover, .node-menu-item.danger:active {
  background: rgba(255, 69, 58, 0.2);
}

.delete-btn {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.3);
  min-height: 30px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delete-btn:active { background: #ff453a; color: #fff; }

/* Modal Overlay & Toolbox UI */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.modal-overlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #2a2a30;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.icon-btn {
  background: transparent;
  border: none;
  color: #8e8e93;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.icon-btn:active { color: #fff; background: rgba(255,255,255,0.1); }

.toolbox-search-bar {
  padding: 12px 16px 8px 16px;
}
.toolbox-search-bar input {
  width: 100%;
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.toolbox-search-bar input:focus {
  border-color: #0a84ff;
}

.category-pills {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.pill-btn {
  background: #2c2c2e;
  color: #8e8e93;
  border: 1px solid #3a3a3c;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
}
.pill-btn.active {
  background: #0a84ff;
  color: #fff;
  border-color: #0a84ff;
  font-weight: 600;
}

.toolbox-grid {
  padding: 16px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1;
}

.toolbox-item-card {
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.toolbox-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toolbox-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.toolbox-item-badge {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.toolbox-item-desc {
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.4;
}

.toolbox-item-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.add-template-btn {
  background: #30d158;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.add-template-btn:active { opacity: 0.8; }

/* Settings & Logs Console Modal Styling */
.settings-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 70vh;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workspace-management-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-management-row .action-btn {
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

/* Nodeset Cards in Settings Modal */
.nodesets-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.nodeset-card {
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nodeset-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nodeset-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.nodeset-card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, 0.3);
}

.nodeset-card-badge.builtin {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
  border-color: rgba(48, 209, 88, 0.3);
}

.nodeset-card-desc {
  font-size: 12px;
  color: #8e8e93;
  line-height: 1.3;
}

.nodeset-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 11px;
  color: #636366;
}

.remove-nodeset-btn {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.remove-nodeset-btn:active {
  background: #ff453a;
  color: #fff;
}

.action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.logs-console {
  background: #0e0e10;
  border: 1px solid #2a2a30;
  border-radius: 10px;
  padding: 12px;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-entry {
  line-height: 1.4;
  word-break: break-word;
}
.log-entry.info { color: #d1d1d6; }
.log-entry.success { color: #30d158; font-weight: 600; }
.log-entry.warn { color: #ff9f0a; }
.log-entry.error { color: #ff453a; font-weight: 600; }
.log-entry .log-time { color: #636366; margin-right: 8px; }

.log-empty {
  color: #636366;
  text-align: center;
  padding: 40px 0;
}

.logs-footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  #header {
    padding: 6px 10px;
  }
  .crumb {
    font-size: 13px;
  }
  .action-btn {
    padding: 0 12px;
    font-size: 13px;
  }
}
