/* Admin, intake tools, gmail toolbar */


.gmail-sync-toolbar {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.gmail-sync-toolbar__button {
  flex-shrink: 0;
}

.admin-tabs {
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
}

.admin-tabs__list {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-tabs__tab {
  display: inline-block;
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.admin-tabs__tab--active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.version-tabs {
  margin-bottom: var(--space-9);
  border-bottom: 1px solid var(--color-border);
}

.version-tabs__list {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.version-tabs__tab {
  display: inline-block;
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.version-tabs__tab:hover {
  color: var(--color-text);
}

.version-tabs__tab--active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.app-tool-assignment__picker {
  margin-bottom: var(--space-6);
  max-width: 28rem;
}

.app-tool-assignment__locked {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Specificity must beat json-formatter-js injected defaults (loads after app CSS). */
.json-tree-host .json-formatter-row,
.json-tree-host .json-formatter-row > a,
.json-tree-host .json-formatter-row > a:hover,
.json-tree-host .json-formatter-row > span {
  color: var(--color-text);
  text-decoration: none;
  white-space: normal;
}

.json-tree-host .json-formatter-row .json-formatter-row {
  margin-left: 0;
  padding-left: var(--space-6);
  border-left: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
}

.json-tree-host .json-formatter-row .json-formatter-key {
  color: var(--json-key);
  padding-right: 0.var(--space-12);
}

.json-tree-host .json-formatter-constructor-name {
  display: none;
}

.json-tree-host .json-formatter-row .json-formatter-toggler-link {
  cursor: pointer;
}

.json-tree-host .json-formatter-row .json-formatter-toggler {
  color: var(--color-text-muted);
  font-size: 0.625rem;
  line-height: 1.2;
  vertical-align: middle;
  opacity: 0.65;
  cursor: pointer;
  padding-right: 0.var(--space-12);
}

.json-tree-host .json-formatter-row .json-formatter-toggler:after {
  display: inline-block;
  transition: transform 100ms ease-in;
  content: "►";
}

.json-tree-host .json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {
  transform: rotate(90deg);
}

.json-tree-host .json-formatter-row .json-formatter-string,
.json-tree-host .json-formatter-row .json-formatter-stringifiable {
  color: var(--json-string);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.json-tree-host .json-formatter-row .json-formatter-number {
  color: var(--json-number);
}

.json-tree-host .json-formatter-row .json-formatter-boolean {
  color: var(--json-boolean);
}

.json-tree-host .json-formatter-row .json-formatter-null,
.json-tree-host .json-formatter-row .json-formatter-undefined {
  color: var(--color-text-muted);
  font-style: italic;
}

.json-tree-host .json-formatter-row .json-formatter-bracket {
  color: var(--color-text-muted);
}

.json-tree-host .json-formatter-row .json-formatter-preview-text {
  color: var(--color-text-muted);
  font-style: italic;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.color-field__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-2_5) 0 var(--space-6);
}

.color-field__swatch {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--swatch-fill, #f4f5f7);
  box-shadow: inset 0 0 0 2px var(--swatch-color, transparent);
  cursor: pointer;
  padding: 0;
}

.color-field__swatch--active {
  outline: 2px solid var(--swatch-color, var(--color-brand));
  outline-offset: 1px;
}

.color-field__custom {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.color-field__custom-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2_5);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
}

.color-field__native {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.color-field__hex {
  max-width: 5.75rem;
  padding: 0.var(--space-12) 0.4rem;
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  text-transform: lowercase;
}

.color-field__hex:hover,
.color-field__hex:focus {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.intake-filter--active {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.intake-table__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2_5);
}

.intake-sparkle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--space-2);
  vertical-align: middle;
}

.intake-sparkle__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.var(--space-8) 0.var(--space-12);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-brand);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.intake-sparkle__button:hover,
.intake-sparkle__button[aria-expanded="true"] {
  background: var(--color-brand-soft);
}

.intake-sparkle__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  width: max-content;
  max-width: min(18rem, 70vw);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(26, 29, 35, 0.12);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
}
