/* One visual contract for every composer menu. Existing controllers own behavior. */
:root {
  --composer-menu-width: 248px;
  --composer-menu-surface: rgba(254,253,251,.985);
  --composer-menu-border: rgba(61,46,36,.08);
  --composer-menu-shadow: 0 5px 16px rgba(24,15,8,.07), 0 1px 3px rgba(24,15,8,.035);
  --composer-menu-hover: rgba(24,15,8,.035);
  --composer-menu-muted: var(--secondary-300);
}
html[data-theme="dark"] {
  --composer-menu-surface: #242424;
  --composer-menu-border: rgba(255,255,255,.075);
  --composer-menu-shadow: 0 5px 16px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.1);
  --composer-menu-hover: rgba(255,255,255,.045);
  --composer-menu-muted: #a3a3a3;
}
html[data-theme] .composer-menu {
  width: var(--composer-menu-width) !important;
  max-width: calc(100vw - 32px);
  padding: 5px;
  border: 1px solid var(--composer-menu-border);
  border-radius: 12px;
  background: var(--composer-menu-surface);
  box-shadow: var(--composer-menu-shadow);
  gap: 0;
}
html[data-theme] .composer-menu.project-dropdown-menu { --composer-menu-width: 218px; }
html[data-theme] .composer-menu :is(.agent-mode-option,.effort-option,.project-dropdown-item) {
  position: relative;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  color: var(--foreground, #180f08);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
html[data-theme] .composer-menu :is(.agent-mode-option,.effort-option) {
  display: grid;
  min-height: 44px;
  grid-template-columns: 16px minmax(0,1fr) 14px;
  padding-block: 5px;
}
html[data-theme] .composer-menu :is(.agent-mode-option,.effort-option,.project-dropdown-item):is(.is-selected,[aria-selected="true"],[aria-checked="true"]) { background: transparent; }
html[data-theme] .composer-menu :is(.agent-mode-option,.effort-option,.project-dropdown-item):is(:hover,:focus-visible) { background: var(--composer-menu-hover); }
html[data-theme] .composer-menu :is(.agent-mode-copy,.effort-copy) { display: grid; gap: 0; min-width: 0; }
html[data-theme] .composer-menu :is(.agent-mode-copy,.effort-copy) strong { font-size: 13px; font-weight: 500; line-height: 18px; }
html[data-theme] .composer-menu :is(.agent-mode-copy,.effort-copy) small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 15px; font-weight: 400; color: var(--composer-menu-muted); }
html[data-theme] .composer-menu :is(.agent-mode-icon,.effort-icon,.project-dropdown-item > svg) { width: 16px; height: 16px; margin: 0; stroke-width: 1.2; }
html[data-theme] .composer-menu svg.effort-icon { width: 15px; height: 15px; }
html[data-theme] .composer-menu svg.composer-menu-check {
  position: static;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
}
html[data-theme] .composer-menu .agent-mode-selected { opacity: 0; }
html[data-theme] .composer-menu .is-selected .agent-mode-selected { opacity: 1; }
html[data-theme] .composer-menu .project-dropdown-item .plugins-youtube-logo { width: 18px; height: 18px; stroke: none; }
html[data-theme] .composer-menu :is(.plugins-trailing,.plugins-connected svg) { width: 14px; height: 14px; }
html[data-theme] .composer-menu .plugins-connected { gap: 4px; font-size: 11px; font-weight: 400; }
html[data-theme] .composer-menu :is(.agent-mode-options,.project-dropdown-list) { gap: 0; }
html[data-theme] .composer-menu .project-dropdown-divider { margin: 4px 3px; background: var(--composer-menu-border); }
html[data-theme] .composer-menu .agent-mode-shortcut { height: 28px; margin-top: 4px; padding: 4px 8px; gap: 3px; border-color: var(--composer-menu-border); font-size: 11px; color: var(--composer-menu-muted); }
html[data-theme] .composer-menu .agent-mode-shortcut kbd { min-width: 15px; padding: 2px 3px; border-radius: 3px; background: var(--composer-menu-hover); font-size: 10px; line-height: 13px; color: var(--composer-menu-muted); }
html[data-theme] .composer-pill {
  position: relative;
  height: 29px;
  min-height: 29px;
  min-width: 0;
  gap: 6px;
  padding: 0 8px;
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
  border-radius: 999px;
}
html[data-theme] .composer-pill svg { width: 15px; height: 15px; }
html[data-theme] .composer-pill .chevron { width: 12px; height: 12px; }
html[data-theme] .composer-pill[aria-haspopup][aria-expanded="true"] { background: var(--composer-menu-hover); }
@media(max-width:480px) {
  html[data-theme] .composer-menu :is(.agent-mode-option,.effort-option,.project-dropdown-item) { min-height: 40px; }
  html[data-theme] .composer-menu :is(.agent-mode-option,.effort-option) { min-height: 44px; }
  /* Real 40px button boxes, with the visual pill inset to 30px. */
  html[data-theme] .composer-pill { height: 40px; min-height: 40px; padding-block: 5px; isolation: isolate; background: transparent !important; }
  html[data-theme] .composer-pill::before { content: ""; position: absolute; inset: 5px 0; z-index: -1; border-radius: inherit; background: transparent; pointer-events: none; }
  html[data-theme] .composer-pill:is(:hover,[aria-expanded="true"])::before { background: var(--composer-menu-hover); }
  .context-strip { height: 52px; }
  :is(.credits-pill,.image-credit,.video-credit) .credit-unit { display: none; }
}
