/* Roadsign Drawings — chart left dock, tool buttons/icons, magnet trigger, context menu, transition note */

.chart-context-menu {
  position: fixed;
  z-index: 9999;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  padding: 4px 0;
  min-width: 160px;
}

.chart-context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.chart-context-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chart-context-menu-item.danger {
  color: var(--red);
}

.chart-context-menu-sep {
  height: 1px;
  margin: 4px 8px;
  background: var(--line);
}

/* T-035/T-036/T-037: Engine-rendered chart drawing status strip (in info bar) */
.chart-tool-status-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.chart-tool-status-count {
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.chart-tool-status-selection {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-tool-status-badge {
  color: #fff;
  background: var(--accent, #f0b90b);
  font-size: 10px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
}

.chart-left-dock {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--chart-dock-width);
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
  padding: 6px 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(10px);
}

.chart-left-dock-tools {
  display: grid;
  gap: 2px;
}

.chart-left-dock-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
}

.chart-left-dock-btn {
  width: 100%;
  min-height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #8a919c;
  display: grid;
  place-items: center;
  padding: 4px 0;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.chart-left-dock-btn.icon-only {
  min-height: 28px;
  padding: 0;
  border-radius: 6px;
}

.chart-left-dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #d8e0ea;
}

.chart-left-dock-btn.active {
  background: rgba(78, 140, 255, 0.14);
  color: #7bb3ff;
}

.chart-left-dock-btn.select.active {
  background: rgba(245, 184, 61, 0.12);
  color: #f5c842;
}

.chart-left-dock-btn .dock-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  display: block;
  flex: 0 0 auto;
}

.chart-left-dock-btn .dock-icon path,

.chart-left-dock-btn .dock-icon circle,

.chart-left-dock-btn .dock-icon line,

.chart-left-dock-btn .dock-icon polyline {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.chart-left-dock-btn .dock-icon .fill {
  fill: currentColor;
  stroke: none;
}

.chart-left-dock-btn.toggle.active {
  background: rgba(47, 180, 99, 0.14);
  color: #2fb463;
}

.chart-magnet-shell {
  position: relative;
}

.chart-magnet-trigger {
  width: 100%;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #8a919c;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.chart-magnet-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.chart-magnet-trigger svg {
  width: 28px;
  height: 28px;
  display: block;
  color: currentColor;
}

.chart-magnet-trigger svg path,

.chart-magnet-trigger svg line,

.chart-magnet-trigger svg polyline,

.chart-magnet-trigger svg circle {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.chart-magnet-trigger.active {
  background: rgba(245, 184, 61, 0.14);
  border-color: rgba(245, 184, 61, 0.42);
  color: #fff1c9;
  box-shadow: inset 0 0 0 1px rgba(245, 184, 61, 0.18);
}

.chart-drawing-transition-note {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(78, 140, 255, 0.08);
  color: #d7e3f6;
  font-size: 11px;
  line-height: 1.45;
}
