/*
 * AI Browser Guard - Popup Stylesheet
 *
 * Bright, professional theme aligned with the OpenA2A website design.
 * Clean typography and clear visual hierarchy.
 * No decorative elements or emojis. Information density is prioritized.
 */

/* ============================================================
   Font - Self-hosted Inter (no external network requests)
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* ============================================================
   Reset and Base
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color system - bright theme aligned with OpenA2A website */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-hover: #eff6ff;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --border-default: #e5e7eb;
  --border-muted: #f3f4f6;

  /* Brand colors - OpenA2A blue-to-teal gradient */
  --color-accent: #0ea5e9;
  --color-accent-hover: #0284c7;
  --color-accent-light: rgba(14, 165, 233, 0.08);
  --color-gradient-from: #2563eb;
  --color-gradient-to: #0d9488;

  /* Status colors */
  --color-safe: #16a34a;
  --color-safe-bg: rgba(22, 163, 74, 0.08);
  --color-warning: #d97706;
  --color-warning-bg: rgba(217, 119, 6, 0.08);
  --color-danger: #dc2626;
  --color-danger-bg: rgba(220, 38, 38, 0.08);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.08);

  /* Severity colors */
  --severity-critical: #dc2626;
  --severity-high: #ea580c;
  --severity-medium: #d97706;
  --severity-low: #6b7280;

  /* Typography - Inter for readability */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', ui-monospace, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 13px;
  --font-size-lg: 14px;
  --font-size-xl: 15px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;

  /* Layout */
  --popup-width: 360px;
  --border-radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

body {
  width: var(--popup-width);
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Scrollbar
   ============================================================ */

body::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

body::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   Layout
   ============================================================ */

#app {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
}

/* ============================================================
   Header
   ============================================================ */

#header {
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-default);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ============================================================
   Status Badge
   ============================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 2px var(--spacing-sm);
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-idle {
  background-color: var(--color-safe-bg);
  color: var(--color-safe);
}

.status-idle .status-dot {
  background-color: var(--color-safe);
}

.status-detected {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-detected .status-dot {
  background-color: var(--color-warning);
  animation: pulse 2s ease-in-out infinite;
}

.status-killed {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.status-killed .status-dot {
  background-color: var(--color-danger);
}

.status-delegated {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.status-delegated .status-dot {
  background-color: var(--color-accent);
}

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

/* ============================================================
   Panels
   ============================================================ */

.panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.panel-danger {
  border-color: rgba(220, 38, 38, 0.25);
  background-color: rgba(220, 38, 38, 0.03);
}

.panel-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-sm);
}

.panel-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

.placeholder-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gradient-from), var(--color-gradient-to));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.25);
  filter: brightness(1.05);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 600;
  font-size: var(--font-size-base);
  box-shadow: var(--shadow-sm);
}

.btn-danger:hover:not(:disabled) {
  background-color: #b91c1c;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-hover);
  border-color: var(--color-accent);
}

/* ============================================================
   Event List (Timeline & Violations)
   ============================================================ */

.event-list {
  max-height: 200px;
  overflow-y: auto;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-muted);
}

.event-item:last-child {
  border-bottom: none;
}

.event-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.event-indicator-allowed {
  background-color: var(--color-safe);
}

.event-indicator-blocked {
  background-color: var(--color-danger);
}

.event-indicator-info {
  background-color: var(--color-info);
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-description {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  word-break: break-word;
}

.event-meta {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.event-url {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

/* ============================================================
   Detection Info
   ============================================================ */

.detection-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
}

.detection-type {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-warning);
}

.detection-confidence {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.detection-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.method-tag {
  display: inline-block;
  padding: 1px var(--spacing-xs);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   Delegation Wizard
   ============================================================ */

.wizard-step {
  padding: var(--spacing-sm) 0;
}

.wizard-step-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.preset-card {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.preset-card:hover {
  border-color: var(--color-accent);
  background-color: var(--bg-hover);
  box-shadow: var(--shadow-md);
}

.preset-card.selected {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.preset-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.preset-description {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-muted);
}

/* ============================================================
   Severity Indicators
   ============================================================ */

.severity-critical { color: var(--severity-critical); }
.severity-high { color: var(--severity-high); }
.severity-medium { color: var(--severity-medium); }
.severity-low { color: var(--severity-low); }

.severity-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.severity-badge-critical {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--severity-critical);
}

.severity-badge-high {
  background-color: rgba(234, 88, 12, 0.1);
  color: var(--severity-high);
}

.severity-badge-medium {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--severity-medium);
}

.severity-badge-low {
  background-color: rgba(107, 114, 128, 0.1);
  color: var(--severity-low);
}

/* ============================================================
   Keyboard Shortcut Badge
   ============================================================ */

kbd {
  display: inline-block;
  padding: 1px 5px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  box-shadow: 0 1px 0 var(--border-default);
}

/* ============================================================
   Footer
   ============================================================ */

#footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-muted);
}

.footer-text {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-separator {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================================
   Utility Classes
   ============================================================ */

.hidden {
  display: none !important;
}

.text-mono {
  font-family: var(--font-mono);
}

.text-muted {
  color: var(--text-muted);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.flex-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   Form Elements
   ============================================================ */

.input-field,
.form-input {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field:focus,
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-light);
}

.input-field::placeholder,
.form-input::placeholder {
  color: var(--text-muted);
}

/* ============================================================
   Compact Layout - Header Actions & Kill Switch
   ============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.header-shortcut {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.btn-danger-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background-color: var(--color-danger);
  color: #fff;
  border: 1px solid var(--color-danger);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-danger-compact:hover:not(:disabled) {
  background-color: #b91c1c;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25);
}

.btn-danger-compact:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Compact inline placeholders */
.placeholder-text-inline {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Delegation empty state - inline row */
.delegation-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Small button variant */
.btn-sm {
  padding: 4px 10px;
  font-size: var(--font-size-sm);
}

/* Compact panel title */
.panel-title-sm {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-xs);
}

/* Collapsible panels */
.panel-collapsible {
  padding: var(--spacing-sm) var(--spacing-md);
}

/* Tighter gap for compact layout */
#app {
  gap: 6px;
}

/* ============================================================
   Protection Summary Metrics Panel
   ============================================================ */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.metric-cell {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  padding: var(--spacing-xs) var(--spacing-sm);
  text-align: center;
}

.metric-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

.metrics-since {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   Event Outcome Dots (violations list)
   ============================================================ */

.event-outcome {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.outcome-allowed {
  background-color: var(--color-safe);
}

.outcome-blocked {
  background-color: var(--color-danger);
}

.outcome-info {
  background-color: var(--color-info);
}

/* ============================================================
   Session Timeline — Grouped View
   ============================================================ */

.session-group {
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius);
  margin-bottom: 6px;
  overflow: hidden;
}

.session-group:last-child {
  margin-bottom: 0;
}

.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px var(--spacing-sm);
  background-color: var(--bg-tertiary);
  cursor: pointer;
  user-select: none;
  gap: var(--spacing-xs);
}

.session-header:hover {
  background-color: var(--bg-hover);
}

.session-header:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.session-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-width: 0;
  flex: 1;
}

.session-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.session-agent-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.session-time-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.session-event-count {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0 6px;
  white-space: nowrap;
}

.session-status-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.session-status-active {
  background-color: var(--color-safe-bg);
  color: var(--color-safe);
}

.session-chevron {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.session-events {
  border-top: 1px solid var(--border-muted);
  background-color: var(--bg-primary);
}

.session-event-row {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
  padding: 4px var(--spacing-sm);
  border-bottom: 1px solid var(--border-muted);
  font-size: var(--font-size-xs);
}

.session-event-row:last-child {
  border-bottom: none;
}

.session-event-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 10px;
}

.session-event-time {
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
}

.session-event-capability {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}

.session-event-target {
  font-family: var(--font-mono);
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-chip {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: lowercase;
  flex-shrink: 0;
}

.outcome-chip-allowed {
  background-color: var(--color-safe-bg);
  color: var(--color-safe);
}

.outcome-chip-blocked {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.outcome-chip-info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

/* ============================================================
   Settings Panel
   ============================================================ */

.settings-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.settings-btn svg {
  display: block;
}

.settings-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-muted);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.settings-description {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 1px;
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-default);
  border-radius: 20px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.settings-aim-section {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 2px;
}

.settings-aim-logged-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.settings-aim-email {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* ============================================================
   Contribute Tip Banner
   ============================================================ */

.contribute-tip {
  background-color: var(--color-info-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: 6px;
}

.contribute-tip-text {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.contribute-tip-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

.contribute-stat {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

/* ============================================================
   Recently-blocked call-out (P0-UX-1 Layer 3)
   ============================================================ */

#recent-block-callout {
  border-left: 3px solid #dc2626;
}

.recent-block-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  border-top: 1px solid var(--border-default);
}

.recent-block-row:first-child {
  border-top: none;
}

.recent-block-meta {
  flex: 1;
  min-width: 0;
}

.recent-block-action {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.recent-block-url {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-block-ts {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.recent-block-actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.recent-block-btn {
  padding: 4px 10px;
  font-size: var(--font-size-xs);
}
