/* Hover List — AgentBro-style flat session list */

.hover-list {
  display: flex;
  flex-direction: column;
  padding: 2px 0 16px;
  scroll-padding-bottom: 16px;
  font-family: var(--font-sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.hover-list__hook-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 8px 6px;
  padding: 8px 10px;
  border: 1px solid var(--island-border);
  border-radius: 8px;
  background: var(--island-card);
  color: var(--island-text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

.hover-list__hook-notice--restored {
  color: #4ade80;
}

.hover-list__hook-notice--rate_limited {
  color: #f59e0b;
}

.hover-list__hook-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

/* Session card — compact rounded-lg card */
.hover-list__card {
  position: relative;
  margin: 0 9px;
  padding: 8px 11px 9px;
  color: var(--island-text);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.hover-list__card:hover {
  background: var(--island-card-hover);
}

.hover-list__card--selected {
  background: var(--island-card-hover);
  box-shadow: inset 0 0 0 1px var(--island-border);
}

.hover-list__card--selected .hover-list__jump,
.hover-list__card--selected .hover-list__mute-btn {
  opacity: 1;
}

/* Multi-row layout */
.hover-list__row-layout {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.hover-list__status-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  width: 22px;
  padding-top: 0;
  flex-shrink: 0;
}

.hover-list__status-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hover-list__status-icon {
  position: relative;
  display: flex;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
}

.hover-list__expired-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(148, 148, 154, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hover-list__status-activity {
  position: absolute;
  right: -1px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--island-bg, #000);
  border-radius: 999px;
  background: var(--island-accent, #007aff);
  box-shadow: 0 0 8px var(--island-accent, rgba(0, 122, 255, 0.55));
}

.hover-list__content-col {
  min-width: 0;
  flex: 1;
}

/* Row 1: title + badge + duration + jump */
.hover-list__row1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hover-list__session-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--island-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__card--passive .hover-list__session-title {
  color: var(--island-text-secondary);
}

.hover-list__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Agent badge: rounded-full transparent pill */
.hover-list__agent-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
  white-space: nowrap;
}

.hover-list__source-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

.hover-list__app-badge {
  display: inline-flex;
  align-items: center;
}

.hover-list__terminal-badge {
  letter-spacing: 0;
}

.hover-list__remote-badge {
  background: rgba(20, 184, 166, 0.16);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.24);
}

.hover-list__yolo-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 159, 10, 0.15);
  color: #FF9F0A;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.hover-list__model-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.4;
  white-space: nowrap;
}

.hover-list__duration {
  color: var(--island-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.hover-list__statusline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  color: var(--island-text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.hover-list__statusline-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__statusline-pill {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--island-subtle, rgba(255, 255, 255, 0.05));
  color: var(--island-text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* Jump button — small arrow */
.hover-list__jump {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--island-text-muted);
  background: var(--island-subtle, rgba(255, 255, 255, 0.05));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.hover-list__card:hover .hover-list__jump {
  opacity: 1;
}

.hover-list__jump:hover {
  background: var(--island-button-hover);
  color: var(--island-text);
}

.hover-list__mute-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--island-text-muted);
  background: var(--island-subtle, rgba(255, 255, 255, 0.05));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.hover-list__card:hover .hover-list__mute-btn {
  opacity: 1;
}

.hover-list__mute-btn--active {
  opacity: 1;
  color: #f59e0b;
}

.hover-list__mute-btn:hover {
  background: var(--island-button-hover);
  color: var(--island-text);
}

.hover-list__card--muted {
  opacity: 0.5;
}

.hover-list__card--passive {
  color: var(--island-text-secondary);
}

/* Row 2: user message */
.hover-list__row2 {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 2px;
}

.hover-list__you-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 450;
  line-height: 16px;
  color: color-mix(in srgb, var(--island-text) 34%, var(--island-text-muted));
}

.hover-list__user-msg {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 450;
  line-height: 16px;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--island-text) 48%, var(--island-text-muted));
}

/* Row 3: tool action */
.hover-list__row3 {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 1px;
}

.hover-list__tool-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
  color: #fa216e;
}

.hover-list__tool-label--compact {
  color: #a855f7;
}

.hover-list__tool-target {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 450;
  line-height: 16px;
  color: color-mix(in srgb, var(--island-text) 42%, var(--island-text-muted));
}

.hover-list__tool-target--changes {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.hover-list__tool-target-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2f8cff;
}

.hover-list__tool-count {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.hover-list__tool-count--add {
  color: #22c55e;
}

.hover-list__tool-count--del {
  color: #ef4444;
}

.hover-list__row3-preview {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 450;
  line-height: 16px;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--island-text) 44%, var(--island-text-muted));
}

.hover-list__active-tool-diff {
  margin-top: 6px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.hover-list__active-tool-diff .diff-view {
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  background: rgba(12, 12, 13, 0.72) !important;
}

.hover-list__active-tool-diff .diff-view__header {
  min-height: 28px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.025);
}

.hover-list__active-tool-diff .diff-view__filepath {
  font-size: 11px;
  font-weight: 650;
}

.hover-list__active-tool-diff .diff-view__stats {
  font-size: 10px;
  font-weight: 750;
}

.hover-list__active-tool-diff .diff-view__lines {
  max-height: 118px;
  font-size: 10px;
  line-height: 1.45;
}

.hover-list__active-tool-diff .diff-view__line {
  padding: 1px 10px;
}

.hover-list__active-tool-diff .diff-view__line-num {
  width: 24px;
}

.hover-list__notice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--island-border) 78%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--island-card-hover) 76%, transparent);
}

.hover-list__notice-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--island-accent);
  font-size: 11px;
  font-weight: 800;
}

.hover-list__notice--terminal_approval .hover-list__notice-icon,
.hover-list__notice--terminal_question .hover-list__notice-icon {
  color: #f59e0b;
}

.hover-list__notice--restart .hover-list__notice-icon,
.hover-list__notice--trust .hover-list__notice-icon {
  color: #60a5fa;
}

.hover-list__notice--compact_complete .hover-list__notice-icon {
  color: #a855f7;
}

.hover-list__notice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.hover-list__notice-title {
  overflow: hidden;
  color: var(--island-text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__notice-detail {
  overflow: hidden;
  color: var(--island-text-muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__notice-action {
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--island-text);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.hover-list__notice-action:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hover-list__state-ribbon {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.hover-list__state-ribbon--warning {
  background: rgba(245, 158, 11, 0.13);
  color: #f59e0b;
}

.hover-list__state-ribbon--done {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.hover-list__state-ribbon--compact {
  background: rgba(168, 85, 247, 0.13);
  color: #a855f7;
}

/* Row 4: error */
.hover-list__row4-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.hover-list__error-icon {
  flex-shrink: 0;
  font-size: 11px;
  color: #f59e0b;
}

.hover-list__error-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #f59e0b;
}

/* Row 5: Subagents */
.hover-list__subagents {
  margin-top: 4px;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid var(--island-border);
  background: color-mix(in srgb, var(--island-card) 82%, var(--island-warning) 4%);
}

.hover-list__subagents-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--island-text-muted);
}

.hover-list__subagents-icon {
  color: var(--island-text-muted);
  font-size: 13px;
}

.hover-list__subagents-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hover-list__subagent-item {
  width: 100%;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 1px 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--island-text-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.24;
  text-align: left;
}

.hover-list__subagent-item--clickable {
  cursor: pointer;
}

.hover-list__subagent-item--clickable:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hover-list__subagent-item:disabled {
  cursor: default;
}

.hover-list__subagent-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--island-danger);
  flex-shrink: 0;
}

.hover-list__subagent-dot--running {
  background: var(--island-warning);
}

.hover-list__subagent-dot--completed {
  background: var(--island-success);
}

.hover-list__subagent-dot--error {
  background: var(--island-danger);
}

.hover-list__subagent-type {
  flex-shrink: 0;
  overflow: hidden;
  color: var(--island-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__subagent-desc {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--island-text-secondary);
}

.hover-list__subagent-status {
  flex-shrink: 0;
  color: var(--island-text-muted);
}

.hover-list__subagent-status--completed {
  color: var(--island-text-secondary);
}

.hover-list__subagent-status--running {
  color: var(--island-warning-text);
}

.hover-list__subagent-status--error {
  color: var(--island-danger-text);
}

/* Row 6: Tasks */
.hover-list__tasks {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--island-border);
  background: var(--island-bg);
}

.hover-list__tasks-header {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--island-text-muted);
}

.hover-list__tasks-stats {
  font-size: 9px;
}

.hover-list__tasks-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hover-list__task-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hover-list__task-icon {
  flex-shrink: 0;
  color: var(--island-text-muted);
}

.hover-list__task-icon--done {
  color: #22c55e;
}

.hover-list__task-icon--active {
  color: var(--island-accent);
}

.hover-list__task-subject {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--island-text-secondary);
}

.hover-list__task-subject--done {
  color: var(--island-text-muted);
  text-decoration: line-through;
}

.hover-list__tasks-more {
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  color: var(--island-accent);
  transition: opacity 0.15s;
}

.hover-list__tasks-more:hover {
  opacity: 0.8;
}

/* Row 7: Inline Permission */
.hover-list__inline-perm {
  margin-top: 8px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 7, 8, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hover-list__inline-perm-titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px 8px;
}

.hover-list__inline-perm-alert {
  display: flex;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #ff8a1f;
}

.hover-list__inline-perm-tool {
  min-width: 0;
  color: #ff8a1f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.hover-list__inline-perm-tool-name {
  min-width: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.12);
  color: #ffb36b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__inline-perm-diff {
  padding: 0 10px 10px;
}

.hover-list__inline-perm-diff .diff-view {
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
  background: rgba(13, 13, 14, 0.86) !important;
}

.hover-list__inline-perm-diff .diff-view__header {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
}

.hover-list__inline-perm-diff .diff-view__filepath {
  font-size: 12px;
  font-weight: 600;
}

.hover-list__inline-perm-diff .diff-view__stats {
  font-size: 11px;
  font-weight: 700;
}

.hover-list__inline-perm-diff .diff-view__lines {
  max-height: 190px;
  font-size: 11px;
  line-height: 1.55;
}

.hover-list__inline-perm-diff .diff-view__line {
  padding: 1px 12px;
}

.hover-list__inline-perm-preview {
  margin: 0 10px 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.hover-list__inline-perm-preview-label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--island-text-secondary);
}

.hover-list__inline-perm-preview-text {
  display: block;
  overflow: hidden;
  color: var(--island-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__inline-perm-preview--write {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hover-list__inline-perm-file-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.hover-list__inline-perm-path {
  min-width: 0;
  overflow: hidden;
  color: var(--island-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__inline-perm-new-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.hover-list__inline-perm-code {
  max-height: 190px;
  margin: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(14, 14, 16, 0.72);
  color: var(--island-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.5;
  padding: 8px 10px;
}

.hover-list__inline-perm-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 8px;
}

.hover-list__inline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  height: 28px;
  padding: 0 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-size: 11px;
  font-weight: 780;
  line-height: 1;
  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;
}

.hover-list__inline-btn kbd {
  flex-shrink: 0;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  opacity: 0.8;
}

.hover-list__inline-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.hover-list__inline-btn--deny {
  border-color: var(--island-action-deny-border);
  background: var(--island-action-deny-bg);
  color: var(--island-action-deny-text);
}

.hover-list__inline-btn--allow {
  border-color: var(--island-action-allow-border);
  background: var(--island-action-allow-bg);
  color: var(--island-action-allow-text);
}

.hover-list__inline-btn--always {
  border-color: var(--island-action-always-border);
  background: var(--island-action-always-bg);
  color: var(--island-action-always-text);
}

.hover-list__inline-btn--auto {
  border-color: var(--island-action-auto-border);
  background: var(--island-action-auto-bg);
  color: var(--island-action-auto-text);
}

.hover-list__inline-btn--deny:hover {
  background: var(--island-action-deny-bg-hover);
}

.hover-list__inline-btn--allow:hover {
  background: var(--island-action-allow-bg-hover);
}

.hover-list__inline-btn--always:hover {
  background: var(--island-action-always-bg-hover);
}

.hover-list__inline-btn--auto:hover {
  background: var(--island-action-auto-bg-hover);
}

/* Row 8: Inline Question */
.hover-list__inline-question {
  --inline-question-accent: var(--island-warning);
  --inline-question-border: color-mix(in srgb, var(--island-border) 78%, var(--inline-question-accent) 22%);
  --inline-question-surface: color-mix(in srgb, var(--island-card) 88%, var(--inline-question-accent) 5%);
  margin-top: 6px;
  border-radius: 8px;
  overflow: visible;
}

.hover-list__inline-question-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 2px 5px;
  font-size: 12px;
}

.hover-list__inline-question-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--inline-question-accent);
}

.hover-list__inline-question-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--inline-question-accent);
}

.hover-list__inline-question-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--island-text-secondary);
}

.hover-list__inline-question-text {
  padding: 0 2px 10px 23px;
  margin: 0;
  color: var(--island-text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.hover-list__inline-question-tag {
  margin-right: 5px;
  color: var(--inline-question-accent);
  font-weight: 820;
}

.hover-list__inline-question-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.hover-list__inline-question-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--inline-question-border);
  border-radius: 8px;
  background: var(--inline-question-surface);
  color: var(--island-text-secondary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.hover-list__inline-question-opt--selected {
  border-color: color-mix(in srgb, var(--inline-question-accent) 48%, var(--inline-question-border));
  background: color-mix(in srgb, var(--island-card-hover) 78%, var(--inline-question-accent) 14%);
  color: var(--island-text);
}

.hover-list__inline-question-opt:hover {
  border-color: color-mix(in srgb, var(--inline-question-accent) 42%, var(--inline-question-border));
  background: color-mix(in srgb, var(--island-card-hover) 86%, var(--inline-question-accent) 10%);
}

.hover-list__inline-question-opt:active {
  transform: scale(0.99);
}

.hover-list__inline-question-opt-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  background: color-mix(in srgb, var(--inline-question-accent) 70%, transparent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: var(--island-on-accent, #ffffff);
}

.hover-list__inline-question-opt--selected .hover-list__inline-question-opt-index {
  background: var(--inline-question-accent);
}

.hover-list__inline-question-opt-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.hover-list__inline-question-opt-label {
  overflow: hidden;
  color: var(--island-text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__inline-question-opt-desc {
  overflow: hidden;
  color: var(--island-text-secondary);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__inline-question-num {
  margin-right: 5px;
  color: var(--inline-question-accent);
  font-size: 12px;
  font-weight: 800;
}

.hover-list__inline-question-multi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.hover-list__inline-question-group {
  border: 1px solid var(--inline-question-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--island-card) 92%, var(--inline-question-accent) 4%);
  padding: 9px 10px;
}

.hover-list__inline-question-group .hover-list__inline-question-text {
  padding: 0 0 8px;
}

.hover-list__inline-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hover-list__inline-chip {
  border: 1px solid color-mix(in srgb, var(--inline-question-accent) 22%, var(--island-border));
  border-radius: 6px;
  background: color-mix(in srgb, var(--island-card-hover) 80%, var(--inline-question-accent) 6%);
  color: var(--island-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  transition: background 0.12s, border-color 0.12s;
}

.hover-list__inline-chip:hover {
  border-color: color-mix(in srgb, var(--inline-question-accent) 42%, var(--island-border));
  background: color-mix(in srgb, var(--island-card-hover) 70%, var(--inline-question-accent) 12%);
}

.hover-list__inline-chip--selected {
  background: var(--inline-question-accent);
  border-color: var(--inline-question-accent);
  color: var(--island-on-accent, #ffffff);
}

.hover-list__inline-chip--checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hover-list__inline-chip-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border: 1.5px solid color-mix(in srgb, var(--inline-question-accent) 45%, var(--island-border));
  border-radius: 3px;
  flex-shrink: 0;
  color: transparent;
}

.hover-list__inline-chip-check--checked {
  background: var(--island-on-accent, #ffffff);
  border-color: var(--island-on-accent, #ffffff);
  color: var(--inline-question-accent);
}

.hover-list__inline-chip:not(.hover-list__inline-chip--selected) .hover-list__inline-chip-check {
  border-color: color-mix(in srgb, var(--inline-question-accent) 45%, var(--island-border));
}

.hover-list__inline-chip--other {
  color: var(--island-text-muted);
  border-style: dashed;
}

.hover-list__inline-chip--other:hover {
  color: var(--island-text);
}

.hover-list__inline-chip-input {
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--inline-question-accent) 40%, var(--island-border));
  border-radius: 6px;
  background: var(--island-input-bg);
  color: var(--island-text);
  font-size: 11px;
  outline: none;
  min-width: 100px;
  transition: border-color 0.15s;
}

.hover-list__inline-chip-input:focus {
  border-color: color-mix(in srgb, var(--inline-question-accent) 68%, var(--island-border));
}

.hover-list__inline-chip-input::placeholder {
  color: var(--island-text-muted);
}

.hover-list__inline-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 6px 10px 0;
  width: calc(100% - 20px);
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--island-warning-bg);
  color: var(--island-warning-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  transition: background 0.15s, color 0.15s;
}

.hover-list__inline-submit:hover {
  background: color-mix(in srgb, var(--island-warning-bg) 72%, var(--inline-question-accent) 16%);
  color: var(--island-text);
}

.hover-list__inline-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hover-list__inline-question-opt--other .hover-list__inline-question-opt-label {
  color: var(--island-text-muted);
}

.hover-list__inline-question-opt--other .hover-list__inline-question-opt-index {
  opacity: 0.6;
}

.hover-list__inline-question-opt--custom-active {
  cursor: default;
}

.hover-list__inline-question-input {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  background: var(--island-input-bg);
  border: 1px solid color-mix(in srgb, var(--inline-question-accent) 30%, var(--island-border));
  border-radius: 4px;
  color: var(--island-text);
  font-family: var(--font-sans, system-ui);
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.hover-list__inline-question-input::placeholder {
  color: var(--island-text-muted);
}

.hover-list__inline-question-input:focus {
  border-color: color-mix(in srgb, var(--inline-question-accent) 68%, var(--island-border));
}

/* Row 9: Inline Plan */
.hover-list__inline-plan {
  --inline-plan-accent: var(--island-warning);
  --inline-plan-border: color-mix(in srgb, var(--island-border) 78%, var(--inline-plan-accent) 22%);
  --inline-plan-surface: color-mix(in srgb, var(--island-card) 88%, var(--inline-plan-accent) 5%);
  --inline-plan-surface-strong: color-mix(in srgb, var(--island-card) 82%, var(--inline-plan-accent) 8%);
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid var(--inline-plan-border);
  background: var(--island-card);
  overflow: hidden;
}

.hover-list__inline-plan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--inline-plan-border);
}

.hover-list__inline-plan-title {
  min-width: 0;
  flex: 1;
  border-left: 2px solid var(--inline-plan-accent);
  padding-left: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--island-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-list__inline-plan-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--island-subtle);
  font-size: 10px;
  font-weight: 800;
  color: var(--island-text-secondary);
}

.hover-list__inline-plan-content {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--island-text);
  max-height: clamp(240px, 34vh, 420px);
  overflow-y: auto;
  background: var(--inline-plan-surface-strong);
}

.hover-list__inline-plan-content h1,
.hover-list__inline-plan-content h2,
.hover-list__inline-plan-content h3 {
  margin: 8px 0 4px;
  color: var(--island-text);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.25;
}

.hover-list__inline-plan-content h1:first-child,
.hover-list__inline-plan-content h2:first-child,
.hover-list__inline-plan-content h3:first-child,
.hover-list__inline-plan-content p:first-child {
  margin-top: 0;
}

.hover-list__inline-plan-content p {
  margin: 5px 0;
}

.hover-list__inline-plan-content ul,
.hover-list__inline-plan-content ol {
  padding-left: 18px;
  margin: 5px 0;
}

.hover-list__inline-plan-content li + li {
  margin-top: 3px;
}

.hover-list__inline-plan-content code {
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--island-inline-code-text);
  background: var(--island-inline-code-bg);
  font-family: var(--font-mono, monospace);
  font-size: 0.92em;
}

.hover-list__inline-plan-content pre {
  overflow-x: auto;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--island-code-border);
  background: var(--island-code-block-bg, var(--island-code-bg));
}

.hover-list__inline-plan-content pre code {
  padding: 0;
  color: var(--island-code-text);
  background: none;
}

.hover-list__inline-plan-perms {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  max-height: 86px;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--inline-plan-border) 82%, transparent);
  border-radius: 10px;
  margin: 7px 12px 0;
  padding: 9px 11px 10px;
  background: color-mix(in srgb, var(--island-card) 92%, #000 12%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: var(--island-text-secondary);
  font-size: 10px;
  font-weight: 620;
  line-height: 1.35;
}

.hover-list__inline-plan-perms-label {
  display: block;
  color: var(--island-text-muted);
  font-weight: 760;
  line-height: 1.2;
}

.hover-list__inline-plan-perms-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}

.hover-list__inline-plan-perm {
  margin: 0;
  min-width: 0;
  color: inherit;
}

.hover-list__inline-plan-perm::marker {
  color: color-mix(in srgb, var(--island-text-muted) 84%, transparent);
  font-size: 10px;
}

.hover-list__inline-plan-perm-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hover-list__inline-plan-perm-tool {
  color: color-mix(in srgb, var(--inline-plan-accent) 82%, #ff8a1c);
  font-weight: 760;
}

.hover-list__inline-plan-perm-prompt {
  color: var(--island-text-secondary);
}

.hover-list__inline-plan-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--inline-plan-border);
  padding: 7px 12px;
}

.hover-list__inline-plan-input {
  min-width: 0;
  flex: 1;
  width: 100%;
  border: 1px solid var(--inline-plan-border);
  border-radius: 12px;
  background: var(--inline-plan-surface-strong);
  color: var(--island-text);
  font-size: 11px;
  font-weight: 650;
  outline: none;
  padding: 7px 9px;
}

.hover-list__inline-plan-input:focus {
  border-color: color-mix(in srgb, var(--inline-plan-accent) 45%, var(--inline-plan-border));
}

.hover-list__inline-plan-input[data-has-draft="true"] {
  border-color: color-mix(in srgb, var(--inline-plan-accent) 68%, var(--inline-plan-border));
  background:
    linear-gradient(90deg, var(--inline-plan-accent) 0 3px, transparent 3px),
    var(--inline-plan-surface-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--inline-plan-accent) 20%, transparent);
}

.hover-list__inline-plan-send {
  flex: 0 0 auto;
  height: 32px;
  max-width: 112px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: var(--inline-plan-accent);
  color: var(--island-on-accent, #ffffff);
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  transition: opacity 0.15s, filter 0.15s, transform 0.15s;
  white-space: nowrap;
}

.hover-list__inline-plan-send:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.hover-list__inline-plan-send:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.hover-list__inline-plan-actions {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--inline-plan-border);
  padding: 8px 12px;
}

.hover-list__inline-plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s, transform 0.15s;
  white-space: nowrap;
}

.hover-list__inline-plan-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.hover-list__inline-plan-btn--feedback {
  color: var(--island-text);
  background: var(--island-btn-bg);
}

.hover-list__inline-plan-btn--accept {
  color: var(--island-on-accent, #ffffff);
  background: var(--inline-plan-accent);
}

.hover-list__inline-plan-btn--auto {
  color: var(--island-on-accent, #ffffff);
  background: var(--island-danger);
}

/* Empty state */
.hover-list__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 34px 28px 38px;
  gap: 14px;
  overflow: hidden;
  color: var(--island-text-secondary);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.1), transparent 23%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 52%);
}

.hover-list__empty-orbit {
  position: relative;
  display: grid;
  width: 66px;
  height: 50px;
  place-items: center;
  color: var(--island-text-secondary);
}

.hover-list__empty-orbit::before,
.hover-list__empty-orbit::after {
  position: absolute;
  inset: 8px 2px;
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.hover-list__empty-orbit::after {
  transform: rotate(90deg) scaleX(0.66);
  opacity: 0.72;
}

.hover-list__empty-pulse {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--island-accent, #0a84ff);
  box-shadow: 0 0 18px var(--island-accent, rgba(10, 132, 255, 0.8));
  transform: translate(25px, -2px);
  animation: hover-empty-pulse 2.8s ease-in-out infinite;
}

.hover-list__empty-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  max-width: min(640px, calc(100vw - 96px));
}

.hover-list__empty-title {
  color: var(--island-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.hover-list__empty-text {
  max-width: 760px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--island-text-secondary);
  line-height: 1.55;
}

.hover-list__empty-logo {
  width: 60px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 16px rgba(248, 164, 0, 0.24));
}

.hover-list__empty-agents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.hover-list__empty-agents span {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--island-text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

@keyframes hover-empty-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(25px, -2px) scale(0.82);
  }
  50% {
    opacity: 1;
    transform: translate(20px, -8px) scale(1);
  }
}

/* Done highlight — green border flash */
.hover-list__card--done {
  animation: hover-list-done-flash 2s ease-out forwards;
}

@keyframes hover-list-done-flash {
  0% { background: rgba(74, 222, 128, 0.06); }
  100% { background: transparent; }
}

/* Show all sessions button */
.hover-list__show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin: 4px 8px 0;
  color: var(--island-accent);
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.hover-list__show-all:hover {
  background: var(--island-card-hover);
  opacity: 0.8;
}

.hover-list__brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 8px 12px 0;
  padding-top: 8px;
  border-top: 1px solid var(--island-brand-footer-border, color-mix(in srgb, var(--island-text) 10%, transparent));
  color: var(--island-brand-slogan, var(--island-text-secondary));
  pointer-events: none;
}

.hover-list__brand-footer--light {
  color: var(--island-brand-slogan, color-mix(in srgb, var(--island-text-secondary) 82%, var(--island-text) 18%));
}

.hover-list__brand-footer--dark {
  color: var(--island-brand-slogan, color-mix(in srgb, var(--island-text-secondary) 76%, var(--island-text) 24%));
  border-top-color: var(--island-brand-footer-border, rgba(255, 255, 255, 0.075));
}

.hover-list__brand-logo-stack {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hover-list__brand-logo {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.hover-list__brand-logo--light {
  filter: drop-shadow(0 1px 8px rgba(248, 164, 0, 0.16));
  opacity: var(--island-brand-logo-light-opacity, 1);
}

.hover-list__brand-logo--dark {
  filter: drop-shadow(0 1px 8px rgba(255, 255, 255, 0.18));
  opacity: var(--island-brand-logo-dark-opacity, 0);
}

@media (prefers-color-scheme: dark) {
  .hover-list__brand-footer--system {
    color: var(--island-brand-slogan, color-mix(in srgb, var(--island-text-secondary) 76%, var(--island-text) 24%));
    border-top-color: var(--island-brand-footer-border, rgba(255, 255, 255, 0.075));
  }
}

.hover-list__brand-slogan {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
