/* ═══════════════════════════════════════════════════════
   Envoy Manager — Tree + Detail Styles
   ═══════════════════════════════════════════════════════ */

/* ── Tree ───────────────────────────────────────────── */

.envoy-tree {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  font-size: 13px;
  user-select: none;
}

.envoy-tree__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted, #888);
}

.envoy-tree__btn {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

.envoy-tree__btn:hover {
  background: var(--hover-bg, rgba(255,255,255,0.06));
  color: var(--text-primary, #e0e0e0);
}

.envoy-tree__section {
  margin-bottom: 4px;
}

.envoy-tree__section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #aaa);
}

.envoy-tree__badge {
  margin-left: auto;
  background: var(--surface-elevated, rgba(255,255,255,0.06));
  color: var(--text-muted, #888);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
}

.envoy-tree__items {
  padding-left: 8px;
}

.envoy-tree__empty {
  padding: 8px 16px;
  color: var(--text-muted, #666);
  font-style: italic;
  font-size: 12px;
}

/* ── Folder ─────────────────────────────────────────── */

.envoy-tree__folder {
  margin: 1px 0;
}

.envoy-tree__folder-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.envoy-tree__folder-header:hover {
  background: var(--hover-bg, rgba(255,255,255,0.04));
}

.envoy-tree__folder-header--drop {
  background: rgba(99, 102, 241, 0.15) !important;
  outline: 2px dashed rgba(99, 102, 241, 0.5);
  outline-offset: -2px;
}

.envoy-tree__folder-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary, #e0e0e0);
}

.envoy-tree__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.envoy-tree__chevron--open {
  transform: rotate(90deg);
}

.envoy-tree__folder-children {
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  margin-left: 12px;
}

/* ── Envoy Item ─────────────────────────────────────── */

.envoy-tree__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-secondary, #aaa);
}

.envoy-tree__item:hover {
  background: var(--hover-bg, rgba(255,255,255,0.04));
  color: var(--text-primary, #e0e0e0);
}

.envoy-tree__item--selected {
  background: var(--selected-bg, rgba(99, 102, 241, 0.12));
  color: var(--accent, #818cf8);
}

.envoy-tree__item--dragging {
  opacity: 0.4;
}

.envoy-tree__item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.envoy-tree__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.envoy-tree__status--ready { background: #10b981; }
.envoy-tree__status--preparing { background: #f59e0b; animation: pulse 1.5s infinite; }
.envoy-tree__status--failed { background: #ef4444; }
.envoy-tree__status--expired { background: #6b7280; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Envoy Expand Toggle ───────────────────────────── */

.envoy-tree__item-wrapper {
  margin: 1px 0;
}

.envoy-tree__expand-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted, #888);
  transition: transform 0.2s ease, color 0.15s ease;
  cursor: pointer;
  border-radius: 3px;
}

.envoy-tree__expand-toggle:hover {
  color: var(--text-primary, #e0e0e0);
  background: var(--hover-bg, rgba(255,255,255,0.06));
}

.envoy-tree__expand-toggle--open {
  transform: rotate(90deg);
}

/* ── Envoy File Sub-Tree ───────────────────────────── */

.envoy-tree__file-subtree {
  padding-left: 24px;
  border-left: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  margin-left: 14px;
  margin-top: 1px;
  margin-bottom: 4px;
}

.envoy-tree__subtree-loading,
.envoy-tree__subtree-empty {
  padding: 4px 8px;
  color: var(--text-muted, #666);
  font-style: italic;
  font-size: 11px;
}

/* ── Envoy Sub-Tree Items ──────────────────────────── */

.envoy-subtree__item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease;
  color: var(--text-secondary, #aaa);
  font-size: 12px;
  user-select: none;
}

.envoy-subtree__item:hover {
  background: var(--hover-bg, rgba(255,255,255,0.04));
  color: var(--text-primary, #e0e0e0);
}

.envoy-subtree__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted, #888);
  transition: transform 0.2s ease;
}

.envoy-subtree__chevron--open {
  transform: rotate(90deg);
}

.envoy-subtree__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--color-text-tertiary, #666);
}

.envoy-subtree__icon svg {
  width: 12px;
  height: 12px;
}

.envoy-subtree__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.envoy-subtree__children {
  padding-left: 14px;
  border-left: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  margin-left: 8px;
}

.envoy-subtree__children--collapsed {
  display: none;
}

/* ── Highlighted Envoy Sub-Tree Items ──────────────── */

/* Memory — teal colored pill badge (matches Vault Explorer) */
.envoy-subtree__item--memory {
  background: var(--color-memory-subtle, rgba(20, 184, 166, 0.08));
  border: 1px solid color-mix(in srgb, var(--color-memory, hsl(173, 80%, 40%)) 20%, transparent);
  border-radius: var(--radius-md, 6px);
  margin-bottom: 1px;
}
.envoy-subtree__item--memory .envoy-subtree__name {
  color: var(--color-memory-text, hsl(173, 58%, 68%));
  font-weight: 600;
  letter-spacing: 0.01em;
}
.envoy-subtree__item--memory .envoy-subtree__icon {
  filter: saturate(1.4) brightness(1.1);
}
.envoy-subtree__item--memory .envoy-subtree__chevron {
  color: var(--color-memory-text, hsl(173, 58%, 68%));
  opacity: 0.7;
}
.envoy-subtree__item--memory:hover {
  background: var(--color-memory-muted, rgba(20, 184, 166, 0.14));
  border-color: color-mix(in srgb, var(--color-memory, hsl(173, 80%, 40%)) 35%, transparent);
}

/* Storage — amber colored pill badge (matches Vault Explorer) */
.envoy-subtree__item--storage {
  background: var(--color-storage-subtle, rgba(245, 158, 11, 0.08));
  border: 1px solid color-mix(in srgb, var(--color-storage, hsl(38, 92%, 50%)) 20%, transparent);
  border-radius: var(--radius-md, 6px);
  margin-bottom: 1px;
}
.envoy-subtree__item--storage .envoy-subtree__name {
  color: var(--color-storage-text, hsl(38, 70%, 68%));
  font-weight: 600;
  letter-spacing: 0.01em;
}
.envoy-subtree__item--storage .envoy-subtree__icon {
  filter: saturate(1.4) brightness(1.1);
}
.envoy-subtree__item--storage .envoy-subtree__chevron {
  color: var(--color-storage-text, hsl(38, 70%, 68%));
  opacity: 0.7;
}
.envoy-subtree__item--storage:hover {
  background: var(--color-storage-muted, rgba(245, 158, 11, 0.14));
  border-color: color-mix(in srgb, var(--color-storage, hsl(38, 92%, 50%)) 35%, transparent);
}

/* index.md — primary knowledge file highlight */
.envoy-subtree__item--index .envoy-subtree__name {
  color: hsl(340, 70%, 76%);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.envoy-subtree__item--index .envoy-subtree__icon {
  filter: brightness(1.3);
}

/* log.md — secondary reference file highlight */
.envoy-subtree__item--log .envoy-subtree__name {
  color: hsl(250, 55%, 76%);
  font-weight: 500;
}
.envoy-subtree__item--log .envoy-subtree__icon {
  filter: brightness(1.15);
}

/* ── Detail Panel ───────────────────────────────────── */

#envoy-detail-panel {
  height: 100%;
  overflow-y: auto;
}

.envoy-detail {
  padding: 24px;
  color: var(--text-primary, #e0e0e0);
  max-width: 600px;
}

.envoy-detail--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
}

.envoy-detail__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted, #666);
}

.envoy-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.envoy-detail__name {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.envoy-detail__badges {
  display: flex;
  gap: 6px;
}

.envoy-detail__badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
}

.envoy-detail__desc {
  color: var(--text-secondary, #aaa);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

/* ── Sections ───────────────────────────────────────── */

.envoy-detail__section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}

.envoy-detail__section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted, #888);
  margin-bottom: 12px;
}

.envoy-detail__field {
  margin-bottom: 14px;
}

.envoy-detail__field:last-child {
  margin-bottom: 0;
}

/* ── Stats ──────────────────────────────────────────── */

.envoy-detail__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.envoy-detail__stat {
  background: var(--surface-elevated, rgba(255,255,255,0.04));
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.envoy-detail__stat-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #888);
  margin-bottom: 4px;
}

.envoy-detail__stat-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #e0e0e0);
}

/* ── Summary ────────────────────────────────────────── */

.envoy-detail__summary {
  background: var(--surface-elevated, rgba(255,255,255,0.04));
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.envoy-detail__summary-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #888);
  margin-bottom: 6px;
}

.envoy-detail__summary p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #aaa);
  line-height: 1.5;
}

/* ── Share / Label ──────────────────────────────────── */

.envoy-detail__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #888);
  margin-bottom: 6px;
}

.envoy-detail__share-row {
  display: flex;
  gap: 6px;
}

.envoy-detail__share-input {
  flex: 1;
  max-width: 360px;
  background: var(--input-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary, #e0e0e0);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.envoy-detail__share-input:focus {
  outline: none;
  border-color: var(--accent, #818cf8);
}

/* ── Buttons ────────────────────────────────────────── */

.envoy-detail__btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.envoy-detail__btn--copy {
  background: var(--surface-elevated, rgba(255,255,255,0.08));
  color: var(--text-secondary, #aaa);
}

.envoy-detail__btn--copy:hover {
  background: var(--surface-elevated, rgba(255,255,255,0.12));
  color: var(--text-primary, #e0e0e0);
}

.envoy-detail__btn--primary {
  background: var(--accent, #6366f1);
  color: white;
}

.envoy-detail__btn--primary:hover {
  background: #4f46e5;
}

.envoy-detail__btn--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.envoy-detail__btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ── Duration Picker ────────────────────────────────── */

.envoy-detail__duration {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.envoy-detail__radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary, #aaa);
  cursor: pointer;
}

.envoy-detail__radio-label input[type="radio"] {
  accent-color: var(--accent, #818cf8);
}

.envoy-detail__duration-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.envoy-detail__duration-inputs--hidden {
  display: none;
}

.envoy-detail__dur-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.envoy-detail__dur-input {
  width: 56px;
  padding: 6px 4px;
  text-align: center;
  background: var(--input-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #e0e0e0);
  appearance: textfield;
  -moz-appearance: textfield;
}

.envoy-detail__dur-input::-webkit-inner-spin-button,
.envoy-detail__dur-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.envoy-detail__dur-input:focus {
  outline: none;
  border-color: var(--accent, #818cf8);
}

.envoy-detail__dur-unit {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted, #888);
}

.envoy-detail__dur-summary {
  font-size: 12px;
  color: var(--text-secondary, #aaa);
  font-style: italic;
}

/* ── Visibility Toggles (horizontal pill buttons) ──── */

.envoy-detail__vis-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.envoy-detail__vis-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 20px;
  background: var(--surface-elevated, rgba(255,255,255,0.04));
  color: var(--text-muted, #777);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.envoy-detail__vis-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary, #aaa);
}

.envoy-detail__vis-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted, #555);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.envoy-detail__vis-toggle--on {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.envoy-detail__vis-toggle--on .envoy-detail__vis-indicator {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.envoy-detail__vis-toggle--on:hover {
  background: rgba(16, 185, 129, 0.18);
}

/* ── Hint Text ──────────────────────────────────────── */

.envoy-detail__hint {
  font-size: 11px;
  color: var(--text-muted, #777);
  margin: 0 0 8px;
  line-height: 1.4;
}

/* ── Select Dropdown ────────────────────────────────── */

.envoy-detail__select {
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
  background: var(--input-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary, #e0e0e0);
  cursor: pointer;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.envoy-detail__select:focus {
  outline: none;
  border-color: var(--accent, #818cf8);
}

.envoy-detail__select option,
.envoy-detail__select optgroup {
  background: var(--surface-bg, #1e1e2e);
  color: var(--text-primary, #e0e0e0);
}

/* ── Actions / Error ────────────────────────────────── */

.envoy-detail__actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}

.envoy-detail__error {
  margin-top: 16px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  font-size: 13px;
}

/* ── Sharing Toggle ────────────────────────────────── */

.envoy-detail__sharing-toggle {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  margin-bottom: 8px;
}

.envoy-detail__sharing-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: var(--surface-elevated, rgba(255,255,255,0.04));
  color: var(--text-muted, #888);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.envoy-detail__sharing-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary, #e0e0e0);
}

.envoy-detail__sharing-btn--active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.envoy-detail__sharing-btn--active.envoy-detail__sharing-btn--private {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

/* ── Shared Badge (Tree Item) ──────────────────────── */

.envoy-tree__shared-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary, #888);
  opacity: 0.7;
}

.envoy-tree__shared-badge svg {
  width: 12px;
  height: 12px;
}

.envoy-tree__shared-badge--private {
  opacity: 0.4;
}

/* ── Share Feedback Messages ──────────────────────── */

.envoy-detail__share-feedback {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  animation: envoy-feedback-slide 0.2s ease-out;
}

@keyframes envoy-feedback-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.envoy-detail__share-feedback--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.envoy-detail__share-feedback--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.envoy-detail__share-feedback--warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.envoy-detail__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Access List ──────────────────────────────────────── */

.envoy-detail__access-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-elevated, rgba(255,255,255,0.03));
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  border-radius: 10px;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.envoy-detail__access-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
}

.envoy-detail__access-item:hover {
  background: var(--hover-bg, rgba(255,255,255,0.04));
}

.envoy-detail__access-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #a78bfa);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.envoy-detail__access-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.envoy-detail__access-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #e0e0e0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.envoy-detail__access-sub {
  font-size: 11px;
  color: var(--text-muted, #777);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.envoy-detail__access-revoke {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #666);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.envoy-detail__access-revoke:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.envoy-detail__access-revoke:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.envoy-detail__access-revoke svg {
  width: 12px;
  height: 12px;
}

.envoy-detail__access-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--text-muted, #666);
  font-size: 12px;
  font-style: italic;
}

.envoy-detail__access-empty svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.envoy-detail__access-loading {
  padding: 12px 14px;
  color: var(--text-muted, #666);
  font-size: 12px;
  font-style: italic;
}
