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

body {
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  height: 100vh;
}

/* ═══════════ Loading Screen ═══════════ */
#loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-content { text-align: center; }
.loading-logo {
  font-size: 48px;
  margin-bottom: 12px;
  animation: loadingPulse 1.5s ease-in-out infinite;
}
@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}
.loading-title {
  font-size: 24px;
  font-weight: bold;
  color: #e94560;
  letter-spacing: 6px;
  margin-bottom: 4px;
}
.loading-subtitle {
  font-size: 11px;
  color: #533483;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.loading-bar {
  width: 200px;
  height: 3px;
  background: #0f3460;
  border-radius: 2px;
  margin: 0 auto 12px;
  overflow: hidden;
}
.loading-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e94560, #533483, #00d2ff);
  border-radius: 2px;
  animation: loadingBar 2s ease-in-out infinite;
}
@keyframes loadingBar {
  0% { width: 0%; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}
.loading-status {
  font-size: 10px;
  color: #98c1d9;
  letter-spacing: 1px;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

#office-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16213e;
  position: relative;
}

#game-canvas {
  width: 100%;
  height: 100%;
}

#game-canvas canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Camera controls hint — fades out after 4s */
#camera-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #98c1d9;
  background: rgba(10, 10, 26, 0.8);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(83, 52, 131, 0.3);
  letter-spacing: 0.5px;
  pointer-events: none;
  opacity: 1;
  animation: hintFadeOut 6s ease-in-out forwards;
  z-index: 10;
}
@keyframes hintFadeOut {
  0%, 60% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* Quick navigation buttons */
#quick-nav {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(10, 10, 26, 0.85);
  border: 1px solid rgba(83, 52, 131, 0.4);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}
.nav-btn:hover {
  background: rgba(83, 52, 131, 0.6);
  border-color: #7a5aad;
  transform: scale(1.1);
}

/* ═══════════ Chat FAB — bottom-left game HUD ═══════════ */
#chat-fab {
  position: fixed;
  bottom: 8px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
#chat-fab:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}
#chat-fab.fab-hidden { display: none; }
.chat-fab-icon { font-size: 18px; }
.chat-fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #e94560;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  font-family: inherit;
}

/* ═══════════ Game HUD Chat — bottom bar ═══════════ */
#panel-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  min-height: 160px;
  max-height: 95vh;
  background: rgba(0,0,0,0.65);
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  z-index: 950;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: bottom center;
  overflow: hidden;
  pointer-events: all;
}
#panel-container.panel-closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Drag handle — top edge resize grip */
#panel-drag-handle {
  width: 100%;
  height: 6px;
  min-height: 6px;
  cursor: ns-resize;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
#panel-drag-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  transition: background 0.15s ease;
}
#panel-drag-handle:hover::after {
  background: rgba(255,255,255,0.35);
}
#panel-container.dragging #panel-drag-handle::after {
  background: rgba(233, 69, 96, 0.6);
}

/* Header — thin inline bar */
#panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 28px;
  min-height: 28px;
  background: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#panel-agent-name {
  font-weight: bold;
  font-size: 11px;
  color: #e94560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#panel-agent-state {
  font-size: 9px;
  color: rgba(152, 193, 217, 0.5);
}
#panel-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
#panel-controls button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  padding: 2px 6px;
  cursor: pointer;
  font-size: 11px;
  border-radius: 2px;
  transition: color 0.15s ease;
}
#panel-controls button:hover {
  color: rgba(255,255,255,0.7);
}

/* Messages — the main scrolling area */
#panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px;
  scroll-behavior: smooth;
}

/* Empty state */
.panel-empty-state {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.3;
  gap: 10px;
}
.empty-icon { font-size: 20px; margin-bottom: 0; }
.empty-text { font-size: 11px; line-height: 1.4; color: #98c1d9; }

/* ═══════════ Game-log messages ═══════════ */
.msg {
  margin-bottom: 4px;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: msgFadeIn 0.15s ease-out;
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Prefix tag (YOU, AGENT, THINKING, TOOL) */
.msg-prefix {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-right: 6px;
  flex-shrink: 0;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 2px;
}

/* Inline content */
.msg .msg-content {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* Timestamp — right-aligned, dim */
.msg .msg-time {
  font-size: 9px;
  color: rgba(255,255,255,0.2);
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* === User === */
.msg-user { color: #e8e8e8; }
.msg-user .msg-prefix { color: #e94560; background: rgba(233,69,96,0.15); }

/* === Assistant === */
.msg-assistant { color: #dce6f0; }
.msg-assistant .msg-prefix { color: #00d2ff; background: rgba(0,210,255,0.12); }

/* === Thinking — collapsed by default === */
.msg-thinking {
  color: rgba(255, 215, 0, 0.6);
  cursor: pointer;
}
.msg-thinking .msg-prefix { color: #ffd700; background: rgba(255,215,0,0.1); }
.msg-thinking:hover { color: rgba(255,215,0,0.8); }
.msg-thinking.collapsed .msg-content {
  max-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.5;
}
.msg-thinking.collapsed .msg-prefix::after {
  content: ' ▸';
  font-size: 8px;
}
.msg-thinking:not(.collapsed) .msg-prefix::after {
  content: ' ▾';
  font-size: 8px;
}

/* === Tool calls === */
.msg-tool {
  color: rgba(0, 255, 136, 0.75);
  font-family: 'Courier New', monospace;
  font-size: 11px;
}
.msg-tool .msg-prefix { color: #00ff88; background: rgba(0,255,136,0.1); }

/* Typing indicator */
.msg-typing {
  padding: 3px 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  animation: msgFadeIn 0.15s ease-out;
}
.typing-dots span {
  animation: typingBounce 1.4s ease-in-out infinite;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.2; }
  30% { transform: translateY(-3px); opacity: 0.6; }
}

/* ═══════════ Message bubbles ═══════════ */
.msg-bubble {
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
}
.msg-bubble .msg-prefix { margin-bottom: 4px; display: inline-block; }
.msg-bubble .msg-time { float: right; }
.msg-bubble .msg-content { display: block; margin-top: 4px; }

.msg-bubble-user {
  background: rgba(233, 69, 96, 0.06);
  border-color: rgba(233, 69, 96, 0.15);
}

/* ═══════════ Markdown rendering ═══════════ */
.md-body { font-size: 12px; line-height: 1.6; color: #dce6f0; }
.md-body p.md-p { margin: 0 0 6px 0; }
.md-body p.md-p:last-child { margin-bottom: 0; }
.md-body .md-h1 { font-size: 14px; font-weight: 700; color: #fff; margin: 8px 0 4px; }
.md-body .md-h2 { font-size: 13px; font-weight: 700; color: #e8e8e8; margin: 6px 0 3px; }
.md-body .md-h3 { font-size: 12px; font-weight: 700; color: #c8c8c8; margin: 4px 0 2px; }
.md-body .md-li { padding-left: 12px; position: relative; margin: 2px 0; }
.md-body .md-li::before { content: '•'; position: absolute; left: 0; color: #00d2ff; }
.md-body .md-li.md-ol::before { content: counter(md-ol) '.'; counter-increment: md-ol; color: #00d2ff; }
.md-body pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 8px 10px;
  overflow-x: auto;
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.4;
}
.md-body pre code { color: #98c1d9; font-family: 'Courier New', monospace; }
.md-body .md-inline-code {
  background: rgba(0,0,0,0.3);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #ffd700;
}
.md-body strong { color: #fff; font-weight: 700; }
.md-body em { color: #b8d4e8; font-style: italic; }
.md-body hr.md-hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 8px 0; }

/* Input — inline bar at bottom */
#panel-input-area {
  display: flex;
  flex-direction: row;
  padding: 4px 12px 6px;
  gap: 6px;
  background: none;
  border-top: 1px solid rgba(255,255,255,0.04);
  align-items: center;
}
#panel-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e0e0e0;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.15s ease;
}
#panel-input:focus {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: none;
}
#panel-input::placeholder { color: rgba(255,255,255,0.35); }

#btn-send {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255, 255, 255, 0.5);
  width: 28px;
  height: 28px;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
#btn-send:hover {
  background: rgba(233, 69, 96, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

#approval-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#approval-overlay.hidden {
  display: none;
}

.approval-card {
  background: #0f3460;
  border: 2px solid #e94560;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
}

.approval-card h3 {
  color: #e94560;
  margin-bottom: 8px;
}

.approval-card pre {
  background: #1a1a2e;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  overflow-x: auto;
  margin: 8px 0;
}

.approval-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.approval-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

.btn-approve { background: #00ff88; color: #1a1a2e; }
.btn-deny { background: #e94560; color: white; }

/* ═══════════ Watcher Control Bar ═══════════ */
#watcher-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px; background: linear-gradient(180deg, #0e0e1e 0%, #0a0a1a 100%);
  border-bottom: 2px solid #533483;
  font-size: 12px; min-height: 38px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#watcher-controls { display: flex; align-items: center; gap: 4px; }
#watcher-controls button {
  background: #1a1a2e; border: 1px solid #533483; color: #e0e0e0;
  padding: 4px 10px; cursor: pointer; border-radius: 4px; font-size: 14px;
  transition: all 0.15s ease;
}
#watcher-controls button:hover { background: #533483; border-color: #7a5aad; }
#watcher-controls button.active { background: #533483; border-color: #7a5aad; box-shadow: 0 0 6px rgba(83,52,131,0.4); }
#watcher-mode {
  margin-left: 8px; font-weight: bold; font-size: 10px; padding: 3px 10px;
  border-radius: 10px; letter-spacing: 1px; text-transform: uppercase;
}
.mode-observe { color: #00ff88; background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.2); }
.mode-ff { color: #ffd700; background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.2); animation: ffGlow 1s ease-in-out infinite; }
@keyframes ffGlow { 0%, 100% { box-shadow: 0 0 4px rgba(255,215,0,0.1); } 50% { box-shadow: 0 0 8px rgba(255,215,0,0.3); } }
.mode-paused { color: #e94560; background: rgba(233,69,96,0.12); border: 1px solid rgba(233,69,96,0.2); }
#office-title { font-size: 13px; font-weight: bold; color: #fff; letter-spacing: 1px; padding-right: 12px; border-right: 1px solid rgba(255,255,255,0.08); }
#watcher-clock { display: flex; align-items: center; gap: 8px; font-family: 'Courier New', monospace; font-size: 11px; padding: 0 12px; border-right: 1px solid rgba(255,255,255,0.08); }
#clock-time { color: #98c1d9; }
#clock-status { font-size: 9px; letter-spacing: 0.5px; }
.clock-open { color: #00ff88; }
.clock-closed { color: #e94560; }
#watcher-stats { display: flex; gap: 18px; color: #98c1d9; font-size: 11px; letter-spacing: 0.5px; }
#watcher-stats span { display: flex; align-items: center; gap: 4px; }
#watcher-cost { color: #00d2ff; font-weight: bold; transition: color 0.3s ease; }
#watcher-cost.cost-flash { color: #ffd700; text-shadow: 0 0 6px rgba(255,215,0,0.5); }
#watcher-actions { display: flex; align-items: center; gap: 10px; }
#budget-label { font-size: 11px; color: #b0b0b0; display: flex; align-items: center; gap: 2px; }
#watcher-budget { width: 50px; background: #1a1a2e; border: 1px solid #533483; color: #00d2ff; padding: 2px 4px; border-radius: 4px; font-size: 11px; text-align: right; }
#watcher-reset-timer { font-size: 10px; color: #888; font-family: monospace; letter-spacing: 0.5px; }
#watcher-next-cycle { font-size: 11px; color: #98c1d9; font-family: monospace; }
#btn-hint {
  background: none; border: 1px solid #ffd700; color: #ffd700;
  padding: 4px 12px; cursor: pointer; border-radius: 4px; font-size: 11px;
  letter-spacing: 0.5px; transition: all 0.15s ease;
}
#btn-hint:hover { background: rgba(255,215,0,0.15); box-shadow: 0 0 8px rgba(255,215,0,0.2); }

#main-content { display: flex; flex: 1; overflow: hidden; }

/* Office gets full width now — no sidebar stealing space */
#office-container { width: 100%; }

/* Custom scrollbar for chat panel */
#panel-messages::-webkit-scrollbar { width: 3px; }
#panel-messages::-webkit-scrollbar-track { background: transparent; }
#panel-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 1px; }
#panel-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Smooth hover on watcher buttons */
#watcher-controls button { transition: all 0.15s ease; }
#btn-hint { transition: all 0.15s ease; }

/* Approval card polish */
.approval-card { animation: approvalSlideIn 0.25s ease-out; }
@keyframes approvalSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.btn-approve:hover { background: #33ffaa; transform: translateY(-1px); }
.btn-deny:hover { background: #ff4060; transform: translateY(-1px); }
.approval-buttons button { transition: all 0.15s ease; }

/* ═══════════ Agent Roster Overlay ═══════════ */
#agent-roster {
  position: fixed;
  top: 50px;
  right: 12px;
  width: 170px;
  background: rgba(10, 10, 26, 0.92);
  border: 1px solid rgba(83, 52, 131, 0.4);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 800;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.roster-title {
  font-size: 9px;
  color: #533483;
  letter-spacing: 2px;
  padding: 2px 12px 6px;
  border-bottom: 1px solid rgba(83, 52, 131, 0.2);
  text-transform: uppercase;
}
.roster-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
}
.roster-agent:hover {
  background: rgba(83, 52, 131, 0.2);
}
.roster-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.roster-dot.status-idle { background: #555; }
.roster-dot.status-thinking { background: #ffd700; box-shadow: 0 0 6px rgba(255,215,0,0.5); }
.roster-dot.status-speaking { background: #00d2ff; box-shadow: 0 0 6px rgba(0,210,255,0.5); }
.roster-dot.status-using_tool { background: #00ff88; box-shadow: 0 0 6px rgba(0,255,136,0.5); }
.roster-dot.status-waiting_approval { background: #ff6b35; box-shadow: 0 0 6px rgba(255,107,53,0.5); animation: approvalPulse 1s ease-in-out infinite; }
@keyframes approvalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}
.roster-name {
  font-size: 11px;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.roster-state {
  font-size: 8px;
  color: #666;
  letter-spacing: 0.3px;
}
.roster-agent.active .roster-name {
  color: #e94560;
}

/* ═══════════ Activity Ticker ═══════════ */
#activity-ticker {
  display: none;
}
#ticker-content {
  display: flex;
  gap: 24px;
  font-size: 10px;
  color: #6a7a8e;
  letter-spacing: 0.3px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}
.ticker-item .ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #533483;
}
.ticker-item.ticker-new {
  color: #98c1d9;
  opacity: 1;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════ Furniture Restore Panel ═══════════ */
#furniture-restore-panel {
  position: fixed;
  top: 50px;
  left: 50px;
  width: 240px;
  max-height: 400px;
  background: rgba(10, 10, 26, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.frp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 215, 0, 0.08);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  font-size: 11px;
  color: #ffd700;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.frp-header button {
  background: none;
  border: none;
  color: #ffd700;
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
}
.frp-header button:hover { color: #fff; }
.frp-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.frp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  font-size: 11px;
  color: #98c1d9;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.frp-item:hover { background: rgba(255,255,255,0.04); }
.frp-restore {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.frp-restore:hover { background: rgba(0, 255, 136, 0.3); }
#frp-restore-all {
  margin: 8px 12px;
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.3);
  color: #e94560;
  font-size: 11px;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
#frp-restore-all:hover { background: rgba(233, 69, 96, 0.3); }
.frp-list::-webkit-scrollbar { width: 4px; }
.frp-list::-webkit-scrollbar-track { background: transparent; }
.frp-list::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.2); border-radius: 2px; }
