.agent-identity { position: relative; }
.agent-identity__trigger { min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; display: inline-flex; align-items: center; gap: 7px; color: var(--text, oklch(0.22 0.012 250)); font-weight: 400; cursor: pointer; }
.agent-identity__trigger:hover, .agent-identity__trigger[aria-expanded="true"] { background: var(--v2-nav-selected, oklch(0.945 0.004 245)); }
.agent-identity__status { width: 16px; height: 16px; display: grid; place-items: center; }
.agent-identity__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success, var(--v2-success, oklch(0.46 0.075 153))); }
.agent-identity__pause { display: none; width: 16px; height: 16px; color: var(--danger, oklch(0.48 0.1 28)); }
.agent-identity__status.is-paused .agent-identity__dot { display: none; }
.agent-identity__status.is-paused .agent-identity__pause { display: block; }
.agent-identity__chevron { width: 16px; height: 16px; color: var(--text-tertiary, oklch(0.61 0.014 250)); transition: transform 140ms ease; }
.agent-identity__trigger[aria-expanded="true"] .agent-identity__chevron { transform: rotate(180deg); }
.agent-identity__panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 320px; padding: 8px; border: 1px solid var(--line, oklch(0.89 0.006 245)); border-radius: 12px; background: var(--surface, oklch(0.992 0.0018 245)); box-shadow: var(--shadow-float, 0 16px 40px oklch(0.22 0.018 250 / 0.14)); }
.agent-identity__current, .agent-identity__option { width: 100%; padding: 10px 12px; border-radius: 8px; display: grid; grid-template-columns: 1fr auto; color: var(--text, oklch(0.22 0.012 250)); text-align: left; text-decoration: none; }
.agent-identity__current { position: relative; background: transparent; }
.agent-identity__current:hover, .agent-identity__option:hover { background: var(--surface-muted, var(--surface-soft, oklch(0.975 0.003 245))); }
.agent-identity__current strong, .agent-identity__option strong { font-size: 13px; line-height: 1.4; font-weight: 600; }
.agent-identity__current .agent-identity__current-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.agent-identity__current-check { position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; color: var(--text, oklch(0.22 0.012 250)); transform: translateY(-50%); }
.agent-identity__current small, .agent-identity__option small { grid-column: 1 / -1; color: var(--text-secondary, oklch(0.46 0.016 250)); font-size: 11px; line-height: 1.45; }
.agent-identity__divider { height: 1px; margin: 8px 12px; background: color-mix(in oklch, var(--line, oklch(0.89 0.006 245)) 54%, transparent); }
.agent-control-row { min-height: 42px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.agent-control-row__label { min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--text, oklch(0.22 0.012 250)); font-size: 13px; line-height: 1.4; font-weight: 580; }
.agent-control-info { position: relative; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--text-tertiary, oklch(0.61 0.014 250)); cursor: help; }
.agent-control-info:hover, .agent-control-info:focus-visible { background: var(--surface-muted, var(--surface-soft, oklch(0.975 0.003 245))); color: var(--text-secondary, oklch(0.46 0.016 250)); }
.agent-control-info svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.agent-control-tooltip { position: absolute; z-index: 2; top: calc(100% + 7px); left: -12px; width: 236px; padding: 9px 10px; border-radius: 7px; background: var(--text, oklch(0.22 0.012 250)); color: var(--surface, oklch(0.992 0.0018 245)); font-size: 11px; font-weight: 400; line-height: 1.55; text-align: left; opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease; pointer-events: none; }
.agent-control-info:hover .agent-control-tooltip, .agent-control-info:focus-visible .agent-control-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.agent-switch-control { position: relative; flex: 0 0 auto; display: inline-flex; cursor: pointer; }
.agent-switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.agent-switch-control > .switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--text, oklch(0.22 0.012 250)); display: block; transition: background 140ms ease; }
.agent-switch-control > .switch::after { position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface, oklch(0.992 0.0018 245)); content: ""; transition: transform 140ms ease; }
.agent-switch-control > input:not(:checked) + .switch { background: var(--line-strong, oklch(0.78 0.01 245)); }
.agent-switch-control > input:not(:checked) + .switch::after { transform: translateX(-16px); }
.agent-switch-control > input:focus-visible + .switch { outline: 2px solid var(--agent, var(--blue, oklch(0.46 0.065 242))); outline-offset: 3px; }
.agent-identity__link { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; justify-content: space-between; color: var(--text, oklch(0.22 0.012 250)); font-size: 13px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.agent-identity__link:hover { background: var(--surface-muted, var(--surface-soft, oklch(0.975 0.003 245))); }
.agent-identity__link svg { width: 16px; height: 16px; fill: currentColor; }
.agent-identity__link-copy { min-width: 0; display: grid; gap: 2px; }
.agent-identity__link-copy > span { color: inherit; }
.agent-identity__link-copy small { color: var(--text-secondary, oklch(0.46 0.016 250)); font-size: 11px; font-weight: 400; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .agent-identity__chevron, .agent-control-tooltip, .agent-switch-control > .switch, .agent-switch-control > .switch::after { transition: none; } }
