/**
 * @file web/src/components/tools/ToolPicker.module.css
 * @description Compact header dropdown styles for the M3 tool-mode picker.
 */
.wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.trigger {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: all 150ms var(--ease-out);
}
.cycle {
  height: 30px;
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms var(--ease-out);
}
.trigger:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
}
.cycle:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
  color: var(--color-accent);
}
.emoji { font-size: 14px; line-height: 1; }
.label { white-space: nowrap; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 280px;
  max-height: min(520px, calc(100vh - 90px));
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-elevated);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  z-index: 250;
}
.item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.item:hover { background: var(--color-bg-hover); }
.itemActive {
  background: var(--color-accent-dim);
  color: var(--color-accent);
}
.itemEmoji { width: 22px; text-align: center; font-size: 16px; }
.itemText { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.itemText strong { font-size: 12px; font-weight: 800; }
.itemText small { color: var(--color-text-dim); font-family: var(--font-mono); font-size: 10px; }
.activeDot { color: var(--color-accent); font-size: 10px; }
.compact .trigger { width: 100%; justify-content: flex-start; }
.compact .menu { left: 0; right: auto; }
@media (max-width: 1024px) {
  .label { display: none; }
  .trigger { padding: 0 8px; }
}
