/* Tunnels Panel overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  z-index: 1000;
}

.dashboard {
  width: 700px;
  max-width: 90vw;
  max-height: 70vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-popup);
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.header h3 {
  margin: 0;
  font-size: var(--font-lg);
  font-weight: 600;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--fg-muted);
  font-size: var(--font-md);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}

.row:hover {
  background: var(--bg-tertiary);
}

.rowInfo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.rowName {
  font-size: var(--font-md);
  color: var(--fg-primary);
  font-weight: 500;
}

.rowMeta {
  font-size: var(--font-xs);
  color: var(--fg-muted);
}

.rowActions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.actionBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
}

.actionBtn:hover {
  background: var(--bg-highlight);
  color: var(--fg-primary);
}

.newBtn {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--fg-primary);
  cursor: pointer;
  font-size: var(--font-sm);
}

.newBtn:hover {
  background: var(--bg-highlight);
}

.closeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: var(--radius-sm);
}

.closeBtn:hover {
  color: var(--fg-primary);
  background: var(--bg-highlight);
}

.auditTimeline {
  padding: 4px 16px 10px 32px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--border);
}

.auditEmpty {
  font-size: var(--font-xs);
  color: var(--fg-muted);
  font-style: italic;
}

.auditEntry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--font-xs);
}

.auditTime {
  color: var(--fg-muted);
  flex-shrink: 0;
  font-family: monospace;
}

.auditKind {
  color: var(--fg-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.auditMsg {
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
