.approval-bar {
  position: relative;
  z-index: 11;
  padding: 8px 16px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--island-border);
}

/* Warning header: ⚠ ToolName in orange */
.approval-bar__warning {
  display: flex;
  align-items: center;
  gap: 6px;
}

.approval-bar__warning-icon {
  color: #f59e0b;
  font-size: 14px;
}

.approval-bar__warning-text {
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 11px;
  color: #f59e0b;
  font-weight: 600;
}

/* Tool detail card */
.approval-bar__tool-card {
  background: var(--island-card);
  border: 1px solid var(--island-border);
  border-radius: 6px;
  padding: 8px 10px;
}

.approval-bar__tool-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.approval-bar__tool-icon {
  font-size: 14px;
}

.approval-bar__tool-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--island-text);
}

.approval-bar__tool-input {
  font-size: 11px;
  color: var(--island-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 4 action buttons row */
.approval-bar__buttons {
  display: flex;
  gap: 6px;
}

.approval-bar__btn {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--island-action-neutral-border);
  border-radius: 6px;
  background: var(--island-action-neutral-bg);
  color: var(--island-action-neutral-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--island-card) 70%, transparent);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.approval-bar__btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.approval-bar__btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.approval-bar__btn:disabled:hover {
  opacity: 0.45;
  transform: none;
}

/* Permission actions inherit semantic theme colors from island-color-theme.css. */
.approval-bar__btn--deny {
  border-color: var(--island-action-deny-border);
  background: var(--island-action-deny-bg);
  color: var(--island-action-deny-text);
}

.approval-bar__btn--allow {
  border-color: var(--island-action-allow-border);
  background: var(--island-action-allow-bg);
  color: var(--island-action-allow-text);
}

.approval-bar__btn--always {
  border-color: var(--island-action-always-border);
  background: var(--island-action-always-bg);
  color: var(--island-action-always-text);
}

.approval-bar__btn--auto {
  border-color: var(--island-action-auto-border);
  background: var(--island-action-auto-bg);
  color: var(--island-action-auto-text);
}

.approval-bar__btn--accept-edits {
  border-color: var(--island-action-allow-border);
  background: var(--island-action-allow-bg);
  color: var(--island-action-allow-text);
}

/* Option buttons */
.approval-bar__btn--option {
  display: flex;
  align-items: center;
  gap: 4px;
}

.approval-bar__btn--selected {
  background: color-mix(in srgb, var(--island-accent, #7b78ff) 28%, var(--island-btn-bg, rgba(255, 255, 255, 0.08)));
  color: var(--island-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--island-accent, #7b78ff) 62%, transparent);
}

.approval-bar__btn--confirm {
  border-color: var(--island-action-always-border);
  background: var(--island-action-always-bg);
  color: var(--island-action-always-text);
}

.approval-bar__btn--deny:hover {
  background: var(--island-action-deny-bg-hover);
}

.approval-bar__btn--allow:hover,
.approval-bar__btn--accept-edits:hover {
  background: var(--island-action-allow-bg-hover);
}

.approval-bar__btn--always:hover,
.approval-bar__btn--confirm:hover {
  background: var(--island-action-always-bg-hover);
}

.approval-bar__btn--auto:hover {
  background: var(--island-action-auto-bg-hover);
}

.approval-bar__shortcut {
  font-size: 10px;
  opacity: 0.5;
  font-family: var(--font-mono);
}

.approval-bar__options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.approval-bar__question-set {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.approval-bar__question-title {
  font-size: 11px;
  font-weight: 650;
  color: var(--island-text-secondary);
}

.approval-bar__question-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--island-border);
  border-radius: 6px;
  background: var(--island-card);
}

.approval-bar__question-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--island-text);
}

.approval-bar__question-mode {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  font-size: 10px;
  font-weight: 650;
}

/* Input row */
.approval-bar__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.approval-bar__input {
  flex: 1;
  padding: 6px 12px;
  background: var(--island-input-bg, #0d0d0d);
  border: 1px solid var(--island-border);
  border-radius: 8px;
  color: var(--island-text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.approval-bar__input::placeholder {
  color: var(--island-text-muted);
}

.approval-bar__input:focus {
  border-color: var(--island-accent, #7b78ff);
}

.approval-bar__input[data-has-draft="true"] {
  border-color: color-mix(in srgb, var(--island-accent, #7b78ff) 78%, var(--island-border));
  background:
    linear-gradient(90deg, var(--island-accent, #7b78ff) 0 3px, transparent 3px),
    var(--island-input-bg, #0d0d0d);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--island-accent, #7b78ff) 22%, transparent);
}

.approval-bar__send {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--island-border);
  background: var(--island-subtle, rgba(255, 255, 255, 0.05));
  color: var(--island-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease-out;
}

.approval-bar__send:hover {
  background: rgba(123, 120, 255, 0.15);
  color: var(--island-accent, #7b78ff);
}

.approval-bar__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--island-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--island-border);
  color: var(--island-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.approval-bar__hint-text {
  flex: 1;
  min-width: 0;
}

.approval-bar__hint-cta {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--island-border);
  background: transparent;
  color: var(--island-accent, #7b78ff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease-out;
}

.approval-bar__hint-cta:hover {
  background: rgba(123, 120, 255, 0.12);
}
