/* Active-session pin control. Uses shared CTM theme variables with fallbacks. */
.session-provider-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--fg-muted, var(--fg, #9aa0a6));
  font: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.session-provider-pin:hover {
  border-color: var(--border, rgba(128, 128, 128, 0.45));
  color: var(--fg, inherit);
}

.session-provider-pin:focus-visible {
  outline: 2px solid var(--accent, #f0a020);
  outline-offset: 1px;
}

.session-provider-pin .session-pin-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.session-provider-pin .session-pin-logo svg,
.session-provider-pin .session-pin-logo img {
  display: block;
  width: 14px;
  height: 14px;
}

.session-provider-pin.is-pinned {
  color: var(--yellow, #e0af68);
  background: var(--warning-soft, rgba(224, 175, 104, 0.14));
  border-color: var(--yellow, #e0af68);
}

.session-pin-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--yellow, #e0af68);
  box-shadow: 0 0 0 1px var(--bg, rgba(0, 0, 0, 0.35));
}

.session-pin-badge svg {
  display: block;
  width: 7px;
  height: 7px;
  color: var(--bg, #202333);
}

.session-pin-saving {
  display: none;
  position: absolute;
  inset: 0;
  border: 1px dotted currentColor;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.75;
}

.session-provider-pin.is-pending {
  opacity: 0.6;
  cursor: progress;
}

.session-provider-pin.is-pending .session-pin-saving {
  display: block;
}

.session-pinned-sep {
  color: var(--yellow, #e0af68);
  margin-top: 6px;
}

.session-pin-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
  .session-provider-pin {
    transition: none;
  }
}
/* WP-1 D-7: inside the 24px icon slot the pin button keeps no outer margin, so it never overflows the column. */
.session-icon-slot > .session-provider-pin { margin: 0; }
