/* LiveAgent Panel — bottom devtools panel */

#la-root * {
  box-sizing: border-box;
}

/* ── Toggle button ─────────────────────────────────────────────────────────── */

#la-toggle {
  position: fixed;
  bottom: 16px;
  right: 20px;
  z-index: 2147483646;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.15s;
}

#la-toggle:hover {
  background: #6d28d9;
}

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

#la-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: #1e1e2e;
  color: #cdd6f4;
  border-top: 1px solid #313244;
  z-index: 2147483645;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  transition: height 0.2s ease;
}

/* ── Toolbar ────────────────────────────────────────────────────────────────── */

#la-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181825;
  border-bottom: 1px solid #313244;
  padding: 0 10px;
  height: 36px;
  flex-shrink: 0;
}

/* ── Launcher (panel toggle buttons) ─────────────────────────────────────── */

#la-launcher {
  display: flex;
  gap: 2px;
}

.la-launch-btn {
  background: none;
  border: none;
  color: #7f849c;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  border-radius: 4px;
  transition: color 0.1s, background 0.1s;
}

.la-launch-btn:hover {
  background: #313244;
  color: #cdd6f4;
}

.la-launch-btn.la-launch-active {
  background: #313244;
  color: #cba6f7;
  font-weight: 500;
}

#la-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

#la-drive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #cdd6f4;
  padding: 3px 6px;
  border-radius: 4px;
  background: #313244;
  cursor: pointer;
  user-select: none;
}

#la-drive-toggle input {
  margin: 0;
  cursor: pointer;
  accent-color: #f9e2af;
}

#la-drive-toggle:has(input:checked) {
  background: #45402a;
  color: #f9e2af;
  box-shadow: 0 0 0 1px #f9e2af inset;
}

#la-statusbar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #cdd6f4;
  padding: 3px 6px;
  border-radius: 4px;
  background: #313244;
  cursor: pointer;
  user-select: none;
}

#la-statusbar-toggle input {
  margin: 0;
  cursor: pointer;
  accent-color: #89b4fa;
}

#la-statusbar-toggle:has(input:checked) {
  background: #2a3a55;
  color: #89b4fa;
  box-shadow: 0 0 0 1px #89b4fa inset;
}

.la-cmd-pill {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 6px 0 2px;
  background: #6c7086;
  transition: background 0.15s, box-shadow 0.15s;
}

.la-cmd-pill.la-cmd-idle {
  background: #6c7086;
}

.la-cmd-pill.la-cmd-connected {
  background: #a6e3a1;
  box-shadow: 0 0 4px #a6e3a1;
}

.la-cmd-pill.la-cmd-executing {
  background: #f9e2af;
  box-shadow: 0 0 6px #f9e2af;
  animation: la-cmd-pulse 0.8s ease-in-out infinite;
}

.la-cmd-pill.la-cmd-error {
  background: #f38ba8;
  box-shadow: 0 0 4px #f38ba8;
}

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

/* ── Agent highlight overlay (DevTools-style) ─────────────────────────── */

#la-highlight-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483646;
}

.la-hi-band {
  position: fixed;
  pointer-events: none;
  box-sizing: border-box;
}

.la-hi-margin {
  background: rgba(246, 178, 107, 0.30);
}

.la-hi-element {
  background: rgba(111, 168, 220, 0.35);
  outline: 2px solid #6fa8dc;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.la-hi-tip {
  position: fixed;
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 3px 7px;
  border-radius: 3px;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  pointer-events: none;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2147483647;
}

#la-pick-btn {
  background: #313244;
  border: none;
  color: #cdd6f4;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: background 0.1s;
}

#la-pick-btn:hover {
  background: #45475a;
}

#la-pick-btn.la-pick-active {
  background: #7c3aed;
  color: #fff;
}

#la-resize-btn,
#la-close-btn {
  background: none;
  border: none;
  color: #6c7086;
  padding: 4px 7px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  border-radius: 4px;
  transition: background 0.1s, color 0.1s;
}

#la-resize-btn:hover {
  background: #313244;
  color: #cdd6f4;
}

#la-close-btn:hover {
  background: #313244;
  color: #f38ba8;
}

/* ── Split container ────────────────────────────────────────────────────────── */

#la-split {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.la-split-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #45475a;
  font-size: 12px;
}

.la-split-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  overflow: hidden;
}

.la-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  background: #11111b;
  border-bottom: 1px solid #313244;
  flex-shrink: 0;
}

.la-pane-title {
  font-size: 10px;
  font-weight: 600;
  color: #585b70;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.la-pane-close {
  background: none;
  border: none;
  color: #45475a;
  cursor: pointer;
  font-size: 11px;
  padding: 1px 3px;
  font-family: inherit;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.1s, background 0.1s;
}

.la-pane-close:hover {
  color: #f38ba8;
  background: #313244;
}

.la-pane-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
}

/* ── Split divider ──────────────────────────────────────────────────────────── */

.la-split-divider {
  width: 4px;
  background: #313244;
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.1s;
}

.la-split-divider:hover,
.la-split-divider.la-dragging {
  background: #7c3aed;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */

.la-card {
  background: #181825;
  border: 1px solid #313244;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.la-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.la-expand-btn {
  background: none;
  border: none;
  color: #6c7086;
  font-size: 10px;
  padding: 0;
  width: 14px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.la-view-name {
  color: #cba6f7;
  font-weight: 600;
  font-size: 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.la-view-link {
  text-decoration: none;
  cursor: pointer;
}
a.la-view-link:hover {
  color: #89b4fa;
  text-decoration: underline;
}

.la-nav-btn {
  padding: 1px 7px;
  border-radius: 3px;
  background: #89b4fa;
  color: #1e1e2e;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.la-nav-btn:hover {
  opacity: 1;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.la-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.la-green {
  background: #a6e3a1;
  color: #1e1e2e;
}

.la-gray {
  background: #45475a;
  color: #a6adc8;
}

/* ── Meta / dims ────────────────────────────────────────────────────────────── */

.la-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.la-dim {
  color: #6c7086;
  font-size: 11px;
}

.la-pid {
  color: #6c7086;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
}

.la-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ── Chips ──────────────────────────────────────────────────────────────────── */

.la-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.la-chip {
  background: #313244;
  color: #89b4fa;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
}

.la-chip-more {
  color: #6c7086;
}

/* ── Assigns body ───────────────────────────────────────────────────────────── */

.la-assigns-body {
  margin-top: 8px;
}

.la-assigns-body .la-pre {
  max-height: none;
}

/* ── Pre / code ─────────────────────────────────────────────────────────────── */

.la-pre {
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  color: #a6e3a1;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 6px 0 0;
}

/* ── Selected / Context tab details ────────────────────────────────────────── */

.la-element-tag {
  color: #89dceb;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  word-break: break-all;
}

.la-text-preview {
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-section-label {
  color: #585b70;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 10px 0 4px;
}

.la-attrs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.la-attr {
  display: flex;
  gap: 8px;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
}

.la-attr-k {
  color: #f38ba8;
  flex-shrink: 0;
}

.la-attr-v {
  color: #a6e3a1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.la-chain-sep {
  color: #45475a;
  font-size: 11px;
}

/* ── Component info (element picker resolution) ─────────────────────────────── */

.la-component-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.la-component-module {
  color: #cba6f7;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  font-weight: 600;
}

.la-component-id {
  font-size: 11px;
}

.la-component-id code {
  font-family: "SF Mono", "Fira Code", monospace;
  background: #313244;
  padding: 1px 4px;
  border-radius: 3px;
  color: #a6e3a1;
}

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

.la-actions {
  margin-top: 12px;
  display: flex;
  gap: 6px;
}

.la-btn {
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.1s;
}

.la-btn-primary {
  background: #7c3aed;
  color: #fff;
}

.la-btn-primary:hover {
  background: #6d28d9;
}

.la-btn-danger {
  background: #313244;
  color: #f38ba8;
}

.la-btn-danger:hover {
  background: #45475a;
}

/* ── Context badge ──────────────────────────────────────────────────────────── */

.la-context-badge {
  background: #1c2f26;
  border: 1px solid #2d6a4f;
  border-radius: 4px;
  padding: 5px 10px;
  color: #a6e3a1;
  font-size: 11px;
  margin-bottom: 10px;
}

.la-context-badge code {
  font-family: "SF Mono", "Fira Code", monospace;
  background: #313244;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Pin badges (overlaid on page elements) ─────────────────────────────────── */

.la-pin-badge {
  position: absolute;
  z-index: 2147483647;
  pointer-events: none;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", monospace;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Context pane multi-pin layout ──────────────────────────────────────────── */

.la-context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.la-context-header .la-context-badge {
  margin-bottom: 0;
  flex: 1;
}

.la-btn-sm {
  padding: 3px 8px;
  font-size: 11px;
}

.la-pin-card {
  margin-bottom: 8px;
}

.la-pin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.la-pin-number {
  font-size: 13px;
  font-weight: 700;
  color: #cba6f7;
}

.la-pin-note {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  color: #cdd6f4;
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 6px;
  resize: vertical;
}

.la-pin-note:focus {
  outline: none;
  border-color: #cba6f7;
}

.la-pin-note::placeholder {
  color: #6c7086;
}

/* ── Empty state ────────────────────────────────────────────────────────────── */

.la-empty {
  color: #6c7086;
  text-align: center;
  padding: 40px 20px;
  line-height: 1.9;
}

.la-empty strong {
  color: #cdd6f4;
}

/* ── Resources tab ──────────────────────────────────────────────────────────── */

.la-res-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.la-res-tab {
  border: 1px solid #313244;
  background: #181825;
  color: #a6adc8;
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.1s, color 0.1s;
}

.la-res-tab:hover {
  background: #313244;
}

.la-res-tab-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.la-diagram-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.la-diagram-domain {
  background: #181825;
  color: #cdd6f4;
  border: 1px solid #313244;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-family: inherit;
}

.la-diagram-host {
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 6px;
  padding: 12px;
  overflow: auto;
  text-align: center;
}

.la-diagram-host svg {
  max-width: 100%;
  height: auto;
}

.la-diagram-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.la-diagram-actions .la-btn {
  background: #313244;
  color: #cdd6f4;
  text-decoration: none;
  display: inline-block;
}

.la-diagram-actions .la-btn:hover {
  background: #45475a;
}

.la-diagram-source {
  margin-top: 8px;
}

.la-diagram-source summary {
  cursor: pointer;
  font-size: 12px;
  color: #a6adc8;
  user-select: none;
}

.la-diagram-source pre {
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 4px;
  padding: 10px;
  margin-top: 6px;
  overflow: auto;
  max-height: 320px;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  color: #cdd6f4;
}

.la-res-domain {
  margin-left: auto;
  font-size: 11px;
  flex-shrink: 0;
}

.la-res-detail {
  margin-top: 10px;
  border-top: 1px solid #313244;
  padding-top: 10px;
}

.la-res-table {
  width: auto;
  border-collapse: collapse;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  margin-bottom: 4px;
}

.la-res-table td {
  padding: 3px 12px 3px 0;
  vertical-align: middle;
  white-space: nowrap;
}

.la-res-table tr:hover td {
  background: #1e1e2e;
}


.la-res-col-name {
  color: #cdd6f4;
  font-weight: 500;
  min-width: 100px;
}

.la-res-col-type {
  color: #89b4fa;
  min-width: 80px;
}

.la-res-badge {
  display: inline-block;
  font-size: 10px;
  font-family: "SF Mono", "Fira Code", monospace;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}

.la-res-pk      { background: #3a2a1a; color: #fab387; }
.la-res-rel     { background: #1a2a3f; color: #89b4fa; }
.la-res-type-create  { background: #1a3a2a; color: #a6e3a1; }
.la-res-type-read    { background: #1a2a3f; color: #89b4fa; }
.la-res-type-update  { background: #3a3020; color: #f9e2af; }
.la-res-type-destroy { background: #3a1a1a; color: #f38ba8; }
.la-res-type-action  { background: #2a1a3a; color: #cba6f7; }

.la-res-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.la-res-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap;
}

.la-res-action-name {
  color: #cdd6f4;
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 500;
  min-width: 90px;
}

.la-res-primary {
  color: #cba6f7;
  margin-left: 1px;
}

.la-res-rels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.la-res-rel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

/* ── Standalone (new tab) mode ──────────────────────────────────────────────── */

#la-panel.la-panel-standalone {
  position: fixed;
  inset: 0;
  height: 100% !important;
  border-top: none;
  display: flex !important;
}

#la-newtab-btn {
  background: none;
  border: none;
  color: #6c7086;
  padding: 4px 7px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  border-radius: 4px;
  transition: background 0.1s, color 0.1s;
}

#la-newtab-btn:hover {
  background: #313244;
  color: #cdd6f4;
}

/* ── Events tab ─────────────────────────────────────────────────────────────── */

.la-events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 8px;
  gap: 8px;
}

.la-toolbar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #a6adc8;
  cursor: pointer;
  user-select: none;
}

.la-toolbar-toggle input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.la-event-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.la-event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #181825;
  border: 1px solid transparent;
  min-height: 30px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.la-event-row-clickable {
  cursor: pointer;
}

.la-event-row-clickable:hover {
  border-color: #313244;
  background: #1e1e2e;
}

.la-event-row-error {
  background: #1f1520;
  border-color: #452030;
}

.la-event-row-error:hover {
  border-color: #6e3050;
}

/* Event type badges */
.la-ev-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  font-family: "SF Mono", "Fira Code", monospace;
}

.la-ev-event   { background: #3b1f5e; color: #cba6f7; }
.la-ev-mount   { background: #1a3a2a; color: #a6e3a1; }
.la-ev-params  { background: #1a2a3f; color: #89b4fa; }
.la-ev-info    { background: #2a2a3a; color: #a6adc8; }
.la-ev-error   { background: #4a1a2a; color: #f38ba8; }
.la-ev-unknown { background: #2a2630; color: #9399b2; font-style: italic; }
.la-ev-pending { background: #3a3020; color: #f9e2af; }

.la-event-label {
  color: #7f849c;
  font-size: 11px;
  flex-shrink: 0;
}

.la-event-name {
  color: #cdd6f4;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.la-event-view {
  color: #585b70;
  font-size: 11px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-event-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.la-event-time {
  color: #45475a;
  font-size: 10px;
  white-space: nowrap;
}

/* Duration badges */
.la-dur {
  font-size: 10px;
  font-family: "SF Mono", "Fira Code", monospace;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.la-dur-nil  { color: #45475a; }
.la-dur-fast { background: #1a3a2a; color: #a6e3a1; }
.la-dur-mid  { background: #3a3020; color: #f9e2af; }
.la-dur-slow { background: #3a1a1a; color: #f38ba8; }

/* Expanded params / error detail */
.la-event-params {
  background: #11111b;
  border: 1px solid #313244;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 8px;
  margin-bottom: 2px;
}

.la-event-error {
  color: #f38ba8;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  margin-bottom: 4px;
}

/* ── Timeline pane ──────────────────────────────────────────────────────────── */

.la-tl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.la-tl-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.la-tl-group-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 4px 6px;
  border-bottom: 1px solid #313244;
  margin-bottom: 4px;
}

.la-tl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 3px;
}

.la-tl-row:hover {
  background: #1e1e2e;
}

.la-tl-arrow {
  color: #585b70;
  font-size: 9px;
  width: 10px;
  flex-shrink: 0;
}

.la-tl-counts {
  font-size: 11px;
  margin-left: 4px;
}

.la-tl-body {
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 2px 0 4px 18px;
}

/* ── Async pane ─────────────────────────────────────────────────────────────── */

.la-async-section {
  margin-top: 6px;
}

.la-async-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 3px;
}

.la-async-pending:hover {
  background: #1e1e2e;
}

.la-async-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 3px;
}

.la-async-row:hover {
  background: #1e1e2e;
}

.la-async-body {
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 2px 0 4px 18px;
}

/* ── Picker highlight (applied via attribute) ───────────────────────────────── */

[data-la-highlight] {
  outline: 2px solid #7c3aed !important;
  outline-offset: 1px !important;
}

/* ── Error state ────────────────────────────────────────────────────────────── */

.la-error {
  color: #f38ba8;
}

/* ── Screenshots pane ───────────────────────────────────────────────────────── */

.la-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 12px;
}

.la-shot-tile {
  border: 1px solid #2a2a3a;
  border-radius: 6px;
  overflow: hidden;
  background: #14141c;
  display: flex;
  flex-direction: column;
}

.la-shot-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top left;
  background: #0a0a14;
  cursor: zoom-in;
  display: block;
  border-bottom: 1px solid #2a2a3a;
}

.la-shot-meta {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.la-shot-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-shot-time {
  font-weight: 600;
}

.la-shot-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.la-shot-actions .la-btn {
  padding: 2px 8px;
  font-size: 11px;
  flex: 1;
}
