.chat-preset-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  height: 40px;
  font: inherit;
  font-size: 11px;
}

.chat-preset-trigger,
.chat-thinking-trigger,
.chat-preset-action,
.chat-preset-chip,
.chat-preset-tool {
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.chat-preset-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex: 0 0 40px;
  padding: 0;
  border-radius: 50%;
  white-space: nowrap;
}

.chat-thinking-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex: 0 0 40px;
  padding: 0;
  border-radius: 50%;
  color: var(--accent);
}

.chat-thinking-level {
  position: absolute;
  bottom: 0;
  right: 2px;
  font-size: 9px;
  line-height: 12px;
  color: var(--muted);
}

.chat-preset-sheet {
  box-sizing: border-box;
  width: min(360px, calc(100% - 24px));
  max-height: min(480px, 70dvh);
  margin: auto auto 12px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--shell-layer-paper, var(--surface));
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  box-shadow: var(--theme-control-shadow);
  backdrop-filter: blur(12px);
}

.chat-preset-sheet::backdrop {
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.chat-preset-sheet-content {
  padding: 8px;
}

.chat-preset-sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 8px;
  color: var(--muted);
}

.chat-preset-action {
  width: 40px;
  padding: 0;
  font-size: 20px;
}

.chat-preset-favorites {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 42dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.chat-preset-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

.chat-preset-chip[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.chat-preset-sheet-tools {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding-top: 4px;
}

.chat-preset-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 11px;
}

.chat-preset-picker button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.chat-preset-picker button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.chat-preset-picker button:disabled {
  opacity: 0.5;
  cursor: default;
}

.chat-preset-error,
.chat-preset-empty {
  display: block;
  padding: 8px;
  color: var(--muted);
}
