:root {
  --lr-bg: #12172a;
  --lr-panel: #1a2140;
  --lr-border: #2a3358;
  --lr-text: #e8ecf7;
  --lr-muted: #93a0c6;
  --lr-accent: #3fd0c9;
  --lr-low: #34d399;
  --lr-elevated: #eab308;
  --lr-high: #ef5757;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--lr-bg);
  color: var(--lr-text);
}

.lr-panel {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lr-panel-header h1 {
  margin: 0;
  font-size: 16px;
}

.lr-panel-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--lr-muted);
}

.lr-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lr-history-item {
  background: var(--lr-panel);
  border: 1px solid var(--lr-border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.lr-history-band {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0d1226;
}

.lr-history-band.low { background: var(--lr-low); }
.lr-history-band.elevated { background: var(--lr-elevated); }
.lr-history-band.high { background: var(--lr-high); }

.lr-history-body { min-width: 0; flex: 1; }

.lr-history-title {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lr-history-meta {
  font-size: 10px;
  color: var(--lr-muted);
  margin: 2px 0 0;
}

.lr-history-flags {
  font-size: 10px;
  color: var(--lr-muted);
  margin: 4px 0 0;
}

.lr-hint {
  font-size: 11px;
  color: var(--lr-muted);
}

.lr-hidden { display: none; }

.lr-panel-footer { margin-top: auto; }

.lr-plan {
  margin: 0;
  font-size: 10px;
  color: var(--lr-muted);
  text-align: center;
}

.lr-plan a { color: var(--lr-accent); }
