/* ============================================================
   V01 Interactive Sandbox Styles — Expanded Chat Mode & IDE Parity
   ============================================================ */

:root {
  --sb-bg-canvas: #101010;       /* Monolith Slate canvas background */
  --sb-bg-panel: #1A1A1A;        /* Monolith Slate panel background */
  --sb-bg-surface: #242424;      /* Monolith Slate surface background */
  --sb-bg-editor: #101010;       /* Monaco editor background */
  --sb-line: #2E2E2E;            /* Hairline border divider */
  --sb-ink: #EBEBEB;             /* Primary text color */
  --sb-muted: #8C8C8C;           /* Muted text color */
  --sb-brand: #4D9EFF;           /* Accent electric blue */
  --sb-accent: #FF7A5C;          /* Accent warm coral */
  --sb-terminal: #101010;        /* Docked terminal background */
  --sb-terminal-text: #D4D4D4;   /* Terminal font color */
  --sb-success: #10B981;         /* Green status badge */
  --sb-warning: #E0A05A;         /* Amber status badge */
  --sb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
  --sb-mono: "Cascadia Code", "Fira Code", "Consolas", monospace;
  --sb-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

/* Sandbox Section with Impressionist Abstract Canvas Backdrop */
.sandbox-section {
  position: relative;
  background: #060607;
  padding: 85px 0 85px 0;
  border-top: 1px solid var(--sb-line);
  overflow: hidden;
}

.sandbox-canvas-backdrop {
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  bottom: 40px;
  border-radius: 24px;
  background-image: url('assets/abstract_canvas_bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.96) contrast(1.02) saturate(1.05);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.15), 0 16px 48px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0.98;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.sandbox-canvas-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.15) 100%);
}

/* Minimalist & Aesthetic Section Header for Spatial Canvas */
.sandbox-section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 32px auto;
  position: relative;
  z-index: 3;
}

.sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(14, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.sandbox-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.sandbox-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.sandbox-title .serif-accent {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  text-shadow: 0 0 24px rgba(139, 157, 255, 0.35), 0 2px 10px rgba(0, 0, 0, 0.7);
}

.sandbox-subtitle {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.88);
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.text-center {
  text-align: center;
}

#interactive-sandbox .container {
  max-width: 1480px;
  width: 96%;
}

/* Outer IDE Window Container (Floating over Abstract Canvas Backdrop) */
.ide-sandbox-container {
  width: 100%;
  max-width: 1440px; /* Increased breadth for immersive experience */
  height: 760px; /* Increased from 680px for expansive room */
  max-height: 88vh;
  margin: 28px auto 0 auto;
  background: rgba(14, 15, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--sb-font);
  color: var(--sb-ink);
  position: relative;
  user-select: none;
  backdrop-filter: blur(20px);
  z-index: 2;
}

/* Topbar Window Header (36px high matching TopBar.tsx) */
.sandbox-topbar {
  height: 36px;
  background: rgba(26, 26, 26, 0.8); /* bg-panel/80 */
  border-bottom: 1px solid rgba(46, 46, 46, 0.3); /* border-line/30 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sandbox-window-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-toggle-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topBarIconButton {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(140, 140, 140, 0.85);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.15s ease;
  padding: 0;
}
.topBarIconButton:hover {
  background: rgba(36, 36, 36, 0.6);
  color: var(--sb-ink);
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(46, 46, 46, 0.25);
  margin: 0 4px;
}

.sandbox-title-brand {
  font-weight: 600;
  font-size: 0.84rem;
  color: rgba(235, 235, 235, 0.9);
  letter-spacing: -0.02em;
}

.sandbox-title-dash {
  color: rgba(140, 140, 140, 0.7);
  font-size: 0.8rem;
}

.sandbox-title-project {
  color: var(--sb-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Topbar Mode Toggle Switch */
.sandbox-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  margin-left: 8px;
}

.mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--sb-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--sb-font);
}
.mode-toggle-btn:hover {
  color: var(--sb-ink);
  background: rgba(255, 255, 255, 0.05);
}
.mode-toggle-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--sb-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.chat-compact-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sb-ink);
  transition: all 0.2s ease;
}
.chat-compact-btn:hover {
  background: rgba(77, 158, 255, 0.18) !important;
  border-color: rgba(77, 158, 255, 0.45) !important;
  color: var(--sb-brand) !important;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(77, 158, 255, 0.3);
}

.code-line.demo-highlight {
  background: rgba(77, 158, 255, 0.12) !important;
  border-left: 2px solid var(--sb-brand);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.promptbar-card.demo-active {
  border-color: rgba(77, 158, 255, 0.5) !important;
  box-shadow: 0 0 24px -2px rgba(77, 158, 255, 0.25) !important;
  transition: all 0.3s ease;
}

.sandbox-window-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.topbar-right-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

/* Windows Window Controls */
.sandbox-windows-controls {
  display: flex;
  align-items: stretch;
  height: 36px;
}

.win-btn {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(140, 140, 140, 0.7);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-size: 0.82rem;
  font-weight: 400;
}

.win-btn.minimize { width: 44px; }
.win-btn.maximize { width: 44px; }
.win-btn.close { width: 48px; }

.win-btn:hover {
  background: rgba(36, 36, 36, 0.85);
  color: var(--sb-ink);
}

.win-btn.close:hover {
  background: #DC2626;
  color: #FFFFFF;
}

/* Main Workspace Layout */
.sandbox-workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.sandbox-sidebar,
.sandbox-middle-col,
.sandbox-editor-col,
.sandbox-view-expanded,
.sandbox-view-canvas {
  min-width: 0;
  overflow: hidden;
}

.sandbox-view-expanded {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 62%) minmax(0, 38%);
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.sandbox-view-canvas {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #0a0b0e;
}

/* Leftmost Workspace Navigation Bar (Unified background matching sidebar) */
.sandbox-toolbelt {
  width: 36px;
  background: var(--sb-bg-panel);
  border-right: 1px solid rgba(46, 46, 46, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  justify-content: space-between;
  flex-shrink: 0;
}

.toolbelt-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.toolbelt-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  border-radius: 6px;
  background: transparent;
  border: none;
  padding: 0;
}

.toolbelt-icon:hover {
  color: var(--sb-ink);
  background: rgba(36, 36, 36, 0.6);
}

.toolbelt-icon:active {
  transform: scale(0.95);
}

.toolbelt-icon.active {
  color: var(--sb-ink);
  background: rgba(36, 36, 36, 0.8);
}

/* File Tree Sidebar Panel */
.sandbox-sidebar {
  flex: 0 0 clamp(180px, 18%, 230px);
  width: clamp(180px, 18%, 230px);
  background: var(--sb-bg-panel);
  border-right: 1px solid rgba(46, 46, 46, 0.3);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  overflow: hidden;
}

.sidebar-header-title {
  padding: 10px 12px 6px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sb-ink);
  letter-spacing: -0.01em;
}

.sidebar-search-box {
  padding: 6px 10px 8px 10px;
  border-bottom: 1px solid rgba(46, 46, 46, 0.3);
  position: relative;
}

.sidebar-search-input {
  width: 100%;
  background: rgba(16, 16, 16, 0.5);
  border: 1px solid rgba(46, 46, 46, 0.5);
  border-radius: 6px;
  padding: 5px 8px 5px 26px;
  color: var(--sb-ink);
  font-size: 0.72rem;
  outline: none;
}

.sidebar-search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sb-muted);
  pointer-events: none;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 6px 4px;
}

.file-tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--sb-muted);
  transition: background 0.15s, color 0.15s;
  font-size: 0.76rem;
  white-space: nowrap;
}

.file-tree-item:hover {
  background: rgba(36, 36, 36, 0.6);
  color: var(--sb-ink);
}

.file-tree-item.folder {
  font-weight: 500;
  color: var(--sb-ink);
}

.file-tree-item.active {
  background: var(--sb-bg-surface);
  color: var(--sb-brand) !important;
  font-weight: 500;
}

.file-tree-arrow {
  width: 10px;
  font-size: 0.65rem;
  color: var(--sb-muted);
  display: flex;
  align-items: center;
}

.file-tree-icon-span {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
}

/* History Chat Session View */
.history-sub-item {
  padding-left: 32px;
  font-size: 0.72rem;
  color: var(--sb-muted);
  line-height: 1.6;
  cursor: pointer;
}
.history-sub-item:hover {
  color: var(--sb-ink);
}

/* Middle Column: EXPANDED CHAT MODE & DOCKED TERMINAL */
.sandbox-middle-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(46, 46, 46, 0.3);
  position: relative;
  background: var(--sb-bg-canvas);
}

.expanded-chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.chat-header {
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(46, 46, 46, 0.3);
  background: var(--sb-bg-panel);
  flex-shrink: 0;
}

.chat-header-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sb-ink);
}

.chat-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--sb-muted);
}

.token-count-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--sb-mono);
  font-size: 0.65rem;
}

.chat-stream-container, .editor-content, .sidebar-content, .terminal-body {
  overscroll-behavior: contain;
}

.chat-stream-container::-webkit-scrollbar,
.editor-content::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar,
.terminal-body::-webkit-scrollbar {
  width: 6px;
}

.chat-stream-container::-webkit-scrollbar-track,
.editor-content::-webkit-scrollbar-track,
.sidebar-content::-webkit-scrollbar-track,
.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-stream-container::-webkit-scrollbar-thumb,
.editor-content::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb,
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.chat-stream-container::-webkit-scrollbar-thumb:hover,
.editor-content::-webkit-scrollbar-thumb:hover,
.sidebar-content::-webkit-scrollbar-thumb:hover,
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-stream-container,
.editor-content,
.sidebar-content,
.terminal-body {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-stream-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Special Interactive Cards matching Screenshot */
.chat-card-box {
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(46, 46, 46, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.74rem;
}

.chat-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-card-btn {
  background: rgba(36, 36, 36, 0.6);
  border: 1px solid rgba(56, 56, 56, 0.5);
  color: var(--sb-ink);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.chat-card-btn:hover {
  background: rgba(56, 56, 56, 0.8);
}
.chat-card-btn.primary {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--sb-brand);
}
.chat-card-btn.primary:hover {
  background: rgba(59, 130, 246, 0.3);
}

/* User Message Bubble */
.chat-message-user {
  align-self: flex-end;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-user-bubble {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 18px;
  border-top-right-radius: 2px;
  padding: 10px 16px;
  color: rgba(235, 235, 235, 0.95);
  font-size: 0.78rem;
}

.chat-timestamp {
  font-size: 0.62rem;
  color: rgba(140, 140, 140, 0.4);
  margin-top: 4px;
  padding-right: 4px;
}

/* AI Assistant Response Markdown */
.chat-message-assistant {
  align-self: flex-start;
  width: 100%;
  color: var(--sb-ink);
}

.chat-assistant-markdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-assistant-markdown p {
  color: rgba(235, 235, 235, 0.9);
  margin: 0;
}

.chat-assistant-markdown h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 8px 0 4px 0;
}

.chat-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(235, 235, 235, 0.85);
  font-size: 0.76rem;
}

.chat-bullet-dot {
  color: var(--sb-muted);
  font-size: 0.7rem;
  margin-top: 1px;
}

.code-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--sb-mono);
  font-size: 0.7rem;
  color: var(--sb-brand);
}

/* Floating PromptBar Card */
.promptbar-container {
  padding: 10px 16px 14px 16px;
  flex-shrink: 0;
}

.promptbar-card {
  background: rgba(22, 22, 24, 0.95);
  border: 1px solid rgba(46, 46, 46, 0.6);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.promptbar-textarea {
  background: transparent;
  border: none;
  outline: none;
  color: var(--sb-ink);
  font-family: var(--sb-font);
  font-size: 0.8rem;
  resize: none;
  height: 32px;
}
.promptbar-textarea::placeholder {
  color: rgba(140, 140, 140, 0.5);
}

.promptbar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promptbar-left-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promptbar-btn-attach {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-muted);
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
}
.promptbar-btn-attach:hover {
  color: var(--sb-ink);
  background: rgba(255, 255, 255, 0.06);
}

.promptbar-select-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.68rem;
  color: var(--sb-muted);
  cursor: pointer;
}
.promptbar-select-pill:hover {
  color: var(--sb-ink);
  background: rgba(255, 255, 255, 0.08);
}

.promptbar-submit-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(77, 158, 255, 0.2);
  border: 1px solid rgba(77, 158, 255, 0.4);
  color: var(--sb-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.promptbar-submit-btn:hover {
  background: var(--sb-brand);
  color: #000000;
}

/* Authentic Docked Terminal Panel (Bottom of Middle Column) */
.sandbox-terminal-panel {
  height: 160px;
  background: var(--sb-terminal);
  border-top: 1px solid rgba(46, 46, 46, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.terminal-header {
  height: 32px;
  background: var(--sb-bg-panel);
  border-bottom: 1px solid rgba(46, 46, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.terminal-tabs-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--sb-bg-surface);
  border: 1px solid var(--sb-line);
  font-size: 0.72rem;
  color: var(--sb-ink);
  font-weight: 500;
}

.terminal-add-btn {
  color: var(--sb-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
}
.terminal-add-btn:hover {
  color: var(--sb-ink);
  background: rgba(255, 255, 255, 0.06);
}

.terminal-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-muted);
}

.terminal-action-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.terminal-action-btn:hover {
  color: var(--sb-ink);
}

.terminal-body {
  flex: 1;
  padding: 10px 12px;
  font-family: var(--sb-mono);
  font-size: 0.72rem;
  color: var(--sb-terminal-text);
  overflow-y: auto;
  line-height: 1.45;
  white-space: pre-wrap;
}

.terminal-line {
  margin-bottom: 3px;
}
.terminal-line.command { color: var(--sb-ink); font-weight: 600; }
.terminal-line.success { color: var(--sb-success); }
.terminal-line.warning { color: var(--sb-warning); }
.terminal-line.prompt { color: var(--sb-brand); }

/* Monaco Code Editor Column (Right Section) */
.sandbox-editor-col {
  background: var(--sb-bg-editor);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.editor-tabs {
  height: 35px;
  background: var(--sb-bg-panel);
  border-bottom: 1px solid rgba(46, 46, 46, 0.3);
  display: flex;
  align-items: center;
}

.editor-tab {
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--sb-muted);
  border-right: 1px solid rgba(46, 46, 46, 0.3);
  cursor: pointer;
  background: rgba(0,0,0,0.15);
}

.editor-tab.active {
  background: var(--sb-bg-editor);
  color: var(--sb-ink);
  border-top: 2px solid var(--sb-brand);
}

.editor-tab-close {
  opacity: 0.5;
  font-size: 0.65rem;
}
.editor-tab-close:hover {
  opacity: 1;
}

.editor-tab-control-icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  color: var(--sb-muted);
}

.editor-breadcrumb {
  height: 26px;
  background: var(--sb-bg-editor);
  border-bottom: 1px solid rgba(46, 46, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.68rem;
  color: var(--sb-muted);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.breadcrumb-path span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-outline {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 0.68rem;
}

.editor-content {
  flex: 1;
  font-family: var(--sb-mono);
  font-size: 0.73rem;
  padding: 12px 14px;
  overflow-y: auto;
  overflow-x: auto;
  line-height: 1.6;
  color: #D4D4D4;
  height: 0;
  min-height: 0;
  white-space: pre;
}

.code-line {
  display: flex;
  align-items: center;
  font-family: var(--sb-mono);
  font-size: 0.73rem;
  line-height: 1.6;
  height: 1.6em;
  min-height: 1.6em;
  white-space: pre;
  flex-wrap: nowrap;
}

.line-no {
  width: 38px;
  min-width: 38px;
  color: #555555;
  text-align: right;
  padding-right: 14px;
  user-select: none;
  font-family: var(--sb-mono);
  font-size: 0.73rem;
  line-height: 1.6;
  height: 1.6em;
  flex-shrink: 0;
}

.code-text {
  font-family: var(--sb-mono);
  font-size: 0.73rem;
  line-height: 1.6;
  height: 1.6em;
  white-space: pre !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  display: inline-block;
}

.code-text .keyword { color: #569CD6; }
.code-text .comment { color: #6A9955; font-style: italic; }
.code-text .string { color: #CE9178; }
.code-text .type { color: #4EC9B0; }
.code-text .addition { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; }

.editor-bottom-bar {
  height: 24px;
  background: var(--sb-bg-panel);
  border-top: 1px solid rgba(46, 46, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.65rem;
  color: var(--sb-muted);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .sandbox-workspace {
    grid-template-columns: 36px calc(20% - 36px) 50% 30%;
  }
}

@media (max-width: 768px) {
  .ide-sandbox-container {
    height: auto;
  }
  .sandbox-workspace {
    flex-direction: column;
  }
  .sandbox-toolbelt {
    flex-direction: row;
    height: 36px;
    width: 100%;
    padding: 0 10px;
    border-right: none;
    border-bottom: 1px solid rgba(46, 46, 46, 0.3);
  }
  .toolbelt-group {
    flex-direction: row;
    gap: 10px;
    justify-content: space-around;
  }
  .sandbox-sidebar {
    height: 180px;
    width: 100%;
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(46, 46, 46, 0.3);
  }
  .sandbox-view-expanded {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   AUTHENTIC V01 SPATIAL INFINITE CANVAS DESIGN SYSTEM
   ============================================================ */

.sandbox-view-canvas {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #0b0c10;
}

.canvas-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  background: #0b0c10;
  touch-action: none;
}

.canvas-viewport.is-panning {
  cursor: grabbing !important;
}

/* Plain Matte Background Surface (Zero Grid Dots / Plain Finish) */
.canvas-grid-bg {
  display: none !important;
}

/* Coordinate Axes & Scale Grid hidden for clean aesthetic */
.canvas-scale-grid {
  display: none !important;
}

/* Virtual 2D Panning & Zooming Scene */
.canvas-scene {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

/* ============================================================
   AUTHENTIC V01 CONTEXT REGIONS & SPATIAL CANVAS SYSTEM
   (Pixel-perfect 1:1 parity with V01 Desktop Architecture)
   ============================================================ */

/* 1. Context Region Boundaries */
.context-region-box {
  position: absolute;
  border-radius: 10px;
  background: rgba(16, 17, 22, 0.35);
  box-sizing: border-box;
  pointer-events: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.context-region-box.region-rose {
  border: 1px solid rgba(244, 63, 94, 0.65);
  background: rgba(244, 63, 94, 0.012);
}
.context-region-box.region-rose:hover {
  border-color: rgba(244, 63, 94, 0.9);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.08);
}

.context-region-box.region-lime {
  border: 1px solid rgba(132, 204, 22, 0.65);
  background: rgba(132, 204, 22, 0.012);
}
.context-region-box.region-lime:hover {
  border-color: rgba(132, 204, 22, 0.9);
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.08);
}

.context-region-box.region-amber {
  border: 1px solid rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.012);
}
.context-region-box.region-amber:hover {
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

.context-region-box.region-blue {
  border: 1px solid rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.012);
}

/* 4 Corner Resize Handle Dots */
.region-corner-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  z-index: 6;
  pointer-events: none;
}
.region-rose .region-corner-dot {
  background: #f43f5e;
  box-shadow: 0 0 4px rgba(244, 63, 94, 0.7);
}
.region-lime .region-corner-dot {
  background: #84cc16;
  box-shadow: 0 0 4px rgba(132, 204, 22, 0.7);
}
.region-amber .region-corner-dot {
  background: #f59e0b;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.7);
}
.region-blue .region-corner-dot {
  background: #3b82f6;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.7);
}

.corner-tl { top: -4px; left: -4px; }
.corner-tr { top: -4px; right: -4px; }
.corner-bl { bottom: -4px; left: -4px; }
.corner-br { bottom: -4px; right: -4px; }

/* Top-Left Region Pill Tab */
.region-pill-tab {
  position: absolute;
  top: -13px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: #111216;
  font-family: var(--sb-font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  user-select: none;
}
.region-pill-rose {
  border: 1px solid rgba(244, 63, 94, 0.7);
  color: #f43f5e;
}
.region-pill-lime {
  border: 1px solid rgba(132, 204, 22, 0.7);
  color: #84cc16;
}
.region-pill-amber {
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #f59e0b;
}
.region-pill-blue {
  border: 1px solid rgba(59, 130, 246, 0.7);
  color: #3b82f6;
}

.region-pill-icon {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
}
.region-pill-title {
  color: #ebebeb;
  font-size: 0.7rem;
  font-weight: 600;
}
.region-pill-count {
  color: var(--sb-muted);
  font-size: 0.68rem;
  font-weight: 500;
  margin-left: -2px;
}
.region-pill-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
}
.region-pill-action {
  background: transparent;
  border: none;
  color: var(--sb-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.region-pill-action:hover {
  color: #ebebeb;
}

/* ============================================================
   2. V01 CHAT CARDS UI (Exact 1:1 Replicas)
   ============================================================ */
.v01-chat-card,
.spatial-card {
  position: absolute;
  z-index: 15;
  border-radius: 14px;
  background: rgba(18, 19, 24, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: text;
}
.v01-chat-card:hover,
.spatial-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
}
.v01-chat-card.is-dragging,
.spatial-card.is-dragging {
  cursor: grabbing !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  z-index: 45 !important;
}

/* Card Topbar */
.v01-card-topbar {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(22, 23, 29, 0.9);
  cursor: grab;
  user-select: none;
}
.v01-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v01-category-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.v01-category-dot.tag-rose { background: #f43f5e; box-shadow: 0 0 5px rgba(244, 63, 94, 0.5); }
.v01-category-dot.tag-lime { background: #84cc16; box-shadow: 0 0 5px rgba(132, 204, 22, 0.5); }
.v01-category-dot.tag-amber { background: #f59e0b; box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
.v01-category-dot.tag-blue { background: #3b82f6; box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }

.v01-category-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: #a1a1aa;
}

.v01-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}
.v01-complete-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.65rem;
  font-weight: 500;
  color: #34d399;
}
.v01-topbar-icon-btn,
.spatial-card-btn-expand {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--sb-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}
.v01-topbar-icon-btn:hover,
.spatial-card-btn-expand:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ebebeb;
}

/* Card Header / Title */
.v01-card-header {
  padding: 14px 16px 8px;
}
.v01-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}
.v01-card-submeta {
  font-size: 0.68rem;
  color: #71717a;
  margin-top: 4px;
  line-height: 1.4;
}

/* Card Content Body */
.v01-card-content {
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #d4d4d8;
  max-height: 380px;
  overflow-y: auto;
}

/* Error Alert Box */
.v01-error-banner {
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fca5a5;
  font-size: 0.72rem;
  line-height: 1.45;
}

/* User Turn */
.v01-user-turn-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
}
.v01-user-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #a1a1aa;
}
.v01-user-av {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v01-user-speech-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 7px 12px;
  color: #f4f4f5;
  max-width: 90%;
  font-size: 0.74rem;
  text-align: right;
}

/* Agent Turn */
.v01-agent-turn-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v01-agent-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #a1a1aa;
  font-weight: 500;
}
.v01-exec-drawer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.67rem;
  color: #a1a1aa;
  width: fit-content;
  cursor: pointer;
  transition: background 0.15s ease;
}
.v01-exec-drawer-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.v01-agent-prose {
  color: #d4d4d8;
  font-size: 0.74rem;
  line-height: 1.55;
  margin: 0;
}

/* Numbered Architecture List */
.v01-arch-numbered-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v01-arch-list-item {
  display: flex;
  gap: 8px;
  line-height: 1.5;
}
.v01-arch-item-num {
  color: #71717a;
  font-family: var(--sb-mono);
  font-weight: 600;
  min-width: 14px;
}
.v01-arch-item-text {
  color: #d4d4d8;
}
.v01-arch-item-text strong {
  color: #ffffff;
}
.v01-arch-summary {
  font-size: 0.73rem;
  color: #a1a1aa;
  line-height: 1.55;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

/* Read-Only Badge */
.v01-readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-family: var(--sb-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #34d399;
  margin: 4px 16px 10px;
  width: fit-content;
}
.v01-ro-dot {
  color: #10b981;
  font-size: 0.6rem;
}

/* Card Footer */
.v01-card-footer {
  height: 36px;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 19, 24, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v01-footer-meta {
  font-family: var(--sb-mono);
  font-size: 0.66rem;
  color: #71717a;
}
.v01-footer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.v01-footer-action-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}
.v01-footer-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ebebeb;
}

/* ============================================================
   3. V01 STICKY NOTE (Annotation)
   ============================================================ */
.v01-sticky-note,
.spatial-note {
  position: absolute;
  z-index: 18;
  border-radius: 12px;
  background: #141712;
  border: 1px solid rgba(132, 204, 22, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 8px;
  cursor: grab;
}
.v01-sticky-note.is-dragging,
.spatial-note.is-dragging {
  cursor: grabbing !important;
  z-index: 45 !important;
}
.sticky-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sticky-tag-label {
  font-family: var(--sb-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #84cc16;
}
.sticky-close-btn {
  background: transparent;
  border: none;
  color: var(--sb-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
}
.sticky-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ebebeb;
  margin: 0;
}
.sticky-body-text {
  font-size: 0.73rem;
  color: #d4d4d8;
  line-height: 1.4;
  margin: 0;
}
.sticky-capture-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(132, 204, 22, 0.1);
  border: 1px solid rgba(132, 204, 22, 0.3);
  color: #a3e635;
  font-size: 0.62rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
}
.sticky-capture-btn:hover {
  background: rgba(132, 204, 22, 0.2);
}

/* ============================================================
   4. TOP-RIGHT CANVAS HUD CONTROLS
   ============================================================ */
.canvas-floating-toolbar {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 25;
}

.canvas-zoom-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sb-mono);
  font-size: 0.68rem;
  color: var(--sb-ink);
}

.canvas-zoom-label {
  min-width: 32px;
  text-align: center;
}

.canvas-tool-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.canvas-tool-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--sb-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.canvas-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sb-ink);
}
.canvas-tool-btn.active-tool {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Bottom Pen Tool on Canvas (Bottom Left) */
.canvas-pen-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(18, 20, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-muted);
  cursor: pointer;
  z-index: 25;
  transition: all 0.15s ease;
}
.canvas-pen-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(26, 28, 34, 0.95);
}

/* ============================================================
   5. HISTORY SIDEBAR VIEW (Matching Screenshot)
   ============================================================ */
.history-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}
.history-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-muted);
}
.history-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.history-icon-btn {
  background: transparent;
  border: none;
  color: var(--sb-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.history-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.history-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}
.history-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.12s ease;
}
.history-tree-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ebebeb;
}
.history-tree-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.history-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.history-arrow {
  font-size: 0.68rem;
  color: var(--sb-muted);
  width: 10px;
}
.history-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-meta-badge {
  font-size: 0.62rem;
  color: #71717a;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}
.history-meta-pill {
  font-size: 0.62rem;
  color: #71717a;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.history-sub-leaf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px 3px 24px;
  font-size: 0.72rem;
  color: #8c8c8c;
  cursor: pointer;
}
.history-sub-leaf:hover {
  color: #ebebeb;
}
.leaf-title {
  color: #a1a1aa;
}
.leaf-time {
  font-size: 0.6rem;
  color: #555555;
}

