:root {
  /* Warm cream theme */
  --bg-deep: #f8f4ec;
  --bg-surface: #faf7f0;
  --bg-elevated: #fff9eb;
  --glass-border: rgba(120, 100, 70, 0.2);
  --text-primary: #2c2416;
  --text-secondary: #4a3f30;
  --text-muted: #6b5d4d;
  --accent-primary: #d4932a;
  --accent-secondary: #e8a838;
  --accent-glow: rgba(212, 147, 42, 0.3);
  --accent-subtle: rgba(212, 147, 42, 0.15);
  --success: #4a9e2f;
  --success-glow: rgba(74, 158, 47, 0.25);
  --gradient-accent: linear-gradient(135deg, #d4932a 0%, #e8a838 50%, #f0b848 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(232, 168, 56, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(106, 176, 76, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #f5efe3 100%);
  z-index: 0;
}

/* ========== UNIFIED HEADER ========== */
.unified-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.unified-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unified-header .brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.unified-header .brand:hover {
  opacity: 0.7;
}

.session-indicator {
  display: none;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-secondary);
  border-radius: 12px;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-indicator.active {
  display: inline-block;
}

.session-indicator::before {
  content: '📝 ';
}

.unified-header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-icon-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  border-radius: var(--radius-sm);
}

.settings-icon-btn:hover {
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

/* ========== COMPACT SELECT ========== */
.compact-select {
  padding: 6px 10px;
  font-size: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  max-width: 140px;
}

.compact-select:hover {
  border-color: var(--accent-primary);
}

.compact-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.full-width-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

.full-width-select:hover {
  border-color: var(--accent-primary);
}

.full-width-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ========== BUTTONS ========== */
.btn-icon {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon.small {
  width: 28px;
  height: 28px;
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
}

.btn-icon.small:hover {
  border-color: var(--accent-primary);
  background: var(--bg-surface);
}

.btn-icon.primary {
  background: var(--gradient-accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-icon.primary:hover { transform: scale(1.05); }
.btn-icon.primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-icon.secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
}

.btn-icon.secondary:hover { background: var(--bg-surface); }

/* ========== STATUS BADGE ========== */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-indicator.active {
  background: var(--success);
  box-shadow: 0 0 12px var(--success-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.status-text {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

/* ========== TAB CONTENT ========== */
.tab-content {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.tab-content.active { display: flex; }

/* ========== LIVE VIEW ========== */
.live-view {
  display: flex;
  width: 100%;
  height: 100%;
}

.live-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

/* ========== LIVE PANELS (2-Column) ========== */
.live-panels {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.live-panels.two-col {
  flex-direction: row;
  gap: 0;
  background: var(--bg-deep);
}

.live-panels.two-col .panel {
  flex: 1;
  min-width: 150px;
  border-bottom: none;
  border-right: none;
  background: var(--bg-surface);
}

.live-panels.two-col .panel.ai-panel {
  flex: none;
  width: 50%;
  min-width: 150px;
  max-width: calc(100% - 150px);
}

.live-panels.two-col .panel.right-panel {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}

/* ========== SUB-PANELS (Right Panel) ========== */
.sub-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sub-panel.transcript-section {
  flex: 1;
  min-height: 100px;
}

.sub-panel.context-section {
  flex: none;
  height: 200px;
  min-height: 80px;
  max-height: calc(100% - 100px);
}

/* ========== RESIZE HANDLES ========== */
.resize-handle {
  width: 8px;
  background: var(--glass-border);
  cursor: col-resize;
  transition: background 0.2s;
  position: relative;
  flex-shrink: 0;
}

.resize-handle:hover {
  background: rgba(255, 107, 53, 0.5);
}

.resize-handle.dragging {
  background: var(--accent-primary);
}

.resize-handle::after {
  content: '⋮';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0.5;
}

.resize-handle:hover::after {
  opacity: 1;
  color: white;
}

.resize-handle-vertical {
  height: 8px;
  background: var(--glass-border);
  cursor: row-resize;
  transition: background 0.2s;
  position: relative;
  flex-shrink: 0;
}

.resize-handle-vertical:hover {
  background: rgba(255, 107, 53, 0.5);
}

.resize-handle-vertical.dragging {
  background: var(--accent-primary);
}

.resize-handle-vertical::after {
  content: '⋯';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0.5;
}

.resize-handle-vertical:hover::after {
  opacity: 1;
  color: white;
}

/* ========== CONTEXT TEXTAREA ========== */
.context-textarea {
  flex: 1;
  width: 100%;
  padding: 12px;
  border: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.context-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ========== PANEL COMMON ========== */
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.panel:last-child { border-bottom: none; }

.panel-header {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

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

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.panel-content::-webkit-scrollbar { width: 4px; }
.panel-content::-webkit-scrollbar-track { background: transparent; }
.panel-content::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* ========== AI MODE TOGGLE ========== */
.ai-mode-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.ai-mode-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.ai-mode-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.ai-mode-btn.active {
  background: var(--accent-primary);
  color: white;
}

/* ========== AI CHAT INPUT ========== */
.ai-chat-input {
  display: none;
  padding: 12px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-elevated);
}

.ai-chat-input.visible {
  display: flex;
  gap: 8px;
}

.ai-chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
}

.ai-chat-input button {
  padding: 10px 16px;
  background: var(--gradient-accent);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  cursor: pointer;
}

/* ========== AI HISTORY ITEMS ========== */
.ai-item {
  position: relative;
  padding: 10px 12px 6px 12px;
  background: linear-gradient(135deg, #fffbf5 0%, #fef8ee 100%);
  border: 1px solid rgba(212, 147, 42, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ai-item.thinking, .ai-item.chat-thinking {
  opacity: 0.7;
  border-style: dashed;
  background: var(--bg-elevated);
}

.ai-item.thinking .ai-text, .ai-item.chat-thinking .ai-text { animation: blink 1s infinite; }

.ai-item.user-msg {
  background: linear-gradient(135deg, rgba(106, 176, 76, 0.08) 0%, rgba(106, 176, 76, 0.04) 100%);
  border-color: rgba(106, 176, 76, 0.2);
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* AI Card Footer */
.ai-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.ai-text {
  display: inline;
  font-size: 13px;
  line-height: 1.5;
}

.ai-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* Copy Button */
.ai-copy-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  position: relative;
  font-size: 0;
  color: transparent;
  flex-shrink: 0;
}

.ai-copy-btn:hover {
  opacity: 1;
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
}

.ai-copy-btn::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 11px;
  top: 3px;
  right: 4px;
  border: 1.5px solid var(--text-secondary);
  border-radius: 2px;
  background: var(--bg-elevated);
}

.ai-copy-btn::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 11px;
  top: 7px;
  left: 4px;
  border: 1.5px solid var(--text-secondary);
  border-radius: 2px;
  background: var(--bg-surface);
}

.ai-copy-btn.copied {
  opacity: 1;
  border-color: var(--success);
  background: rgba(74, 158, 47, 0.1);
}

.ai-copy-btn.copied::before {
  width: 5px;
  height: 9px;
  border: none;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(45deg);
  top: 5px;
  right: 7px;
  background: transparent;
  border-radius: 0;
}

.ai-copy-btn.copied::after {
  display: none;
}

/* AI Text Formatting */
.ai-text ul, .ai-text ol {
  margin: 4px 0;
  padding-left: 1.2em;
  list-style-position: outside;
}

.ai-text li {
  margin: 1px 0;
  padding-left: 0.2em;
  line-height: 1.4;
}

.ai-text ul br, .ai-text ol br, .ai-text li + br {
  display: none;
}

.ai-text h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--accent-primary);
}

.ai-text h2 + br, .ai-text h3 + br {
  display: none;
}

.ai-text h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0 3px;
  color: var(--text-primary);
}

.ai-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

.ai-text p {
  margin: 2px 0;
}

.ai-text hr {
  margin: 6px 0;
  border: none;
  border-top: 1px solid var(--glass-border);
}

/* ========== TRANSCRIPT ITEMS ========== */
.transcript-item {
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.transcript-item.interim {
  opacity: 0.5;
  border-style: dashed;
}

.transcript-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}

.transcript-text {
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 13px; }

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal.modal-wide {
  max-width: 700px;
}

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

.modal-header h3 { font-size: 16px; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-body { padding: 20px; }

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.modal-btn.primary {
  background: var(--gradient-accent);
  color: white;
}

.modal-btn.secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.modal-btn.danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.modal-btn.danger:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
}

/* ========== BOT MODAL ========== */
.bot-status-section {
  text-align: center;
  padding: 20px;
}

.bot-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}

.bot-status-icon {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

.bot-status-icon.connected {
  animation: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bot-status-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.bot-meeting-url {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  word-break: break-all;
}

.bot-info {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 20px 0;
}

/* ========== FORM ELEMENTS ========== */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* ========== PROMPT MODAL ========== */
.prompt-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
}

.prompt-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.prompt-tab.active {
  background: var(--accent-primary);
  color: white;
}

.prompt-textarea {
  width: 100%;
  min-height: 300px;
  padding: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}

.prompt-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* ========== PROMPT TABS ========== */
.prompt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
  max-width: 616px; /* 7タブ(80px×7) + 6ギャップ(8px×6) = 608px → 8個目から折り返し */
}

.prompt-tab {
  width: 80px;
  min-width: 80px;
  flex: 0 0 80px; /* grow=0, shrink=0, basis=80px */
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.prompt-tab:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.prompt-tab.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.prompt-tab.add-tab {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
}

.prompt-tab.add-tab:hover {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.prompt-edit-area {
  margin-bottom: 16px;
}

.prompt-actions {
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn.danger {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.modal-btn.danger:hover {
  background: #e74c3c;
  color: white;
}

/* ========== TIMING SETTINGS ========== */
.timing-settings {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.timing-settings h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.timing-row {
  display: flex;
  gap: 20px;
}

.timing-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.timing-row label span {
  min-width: 100px;
}

.timing-row input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  text-align: center;
}

.timing-row input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.timing-row small {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ========== ACCOUNT SECTION ========== */
.account-section label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.account-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.account-info .user-email {
  font-size: 13px;
  color: var(--text-primary);
  max-width: none;
}

.account-info .logout-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 12px;
  transition: all 0.2s;
}

.account-info .logout-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #dc3545;
}

/* ========== API COST SECTION ========== */
.api-cost-section label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.api-cost-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.cost-item.total {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
}

.cost-icon { font-size: 16px; }

.cost-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.cost-item .cost-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.cost-item.total .cost-value {
  color: var(--accent-primary);
}

/* ========== AUTH SCREEN ========== */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.auth-screen.hidden { display: none; }

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 48px;
  margin-bottom: 16px;
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.auth-error.show { display: block; }

.auth-success {
  background: rgba(106, 176, 76, 0.1);
  border: 1px solid rgba(106, 176, 76, 0.3);
  color: var(--success);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.auth-success.show { display: block; }

/* ========== VISUAL MODE - SLIDE CARDS ========== */
.toggle-divider {
  color: var(--glass-border);
  margin: 0 4px;
  font-size: 12px;
}

#modeVisualBtn.active {
  background: var(--gradient-accent);
  color: white;
  border-color: var(--accent-primary);
}

/* Visual Mode Container */
.ai-item.visual-mode {
  background: transparent;
  border: none;
  padding: 8px 0;
}

.ai-item.visual-mode .ai-text {
  display: none;
}

/* ===== NEW VISUAL SLIDE STYLE ===== */
.visual-slide {
  background: linear-gradient(145deg, #fffdf9 0%, #faf6ee 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 4px 20px rgba(44, 36, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 147, 42, 0.15);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Main Message (Hero section) */
.slide-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 147, 42, 0.12);
}

.slide-main .slide-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.slide-main .slide-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}

/* Cards Grid (horizontal layout) */
.slide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.slide-card {
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.slide-card:nth-child(1) { animation-delay: 0.1s; }
.slide-card:nth-child(2) { animation-delay: 0.15s; }
.slide-card:nth-child(3) { animation-delay: 0.2s; }
.slide-card:nth-child(4) { animation-delay: 0.25s; }
.slide-card:nth-child(5) { animation-delay: 0.3s; }

@keyframes cardPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.slide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.slide-card .card-icon {
  font-size: 24px;
  line-height: 1;
}

.slide-card .card-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
}

/* Action Box (CTA) */
.slide-action {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.slide-action .action-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.slide-action .action-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== Compare Type (比較型) ===== */
.visual-slide.slide-compare {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
}

.visual-slide.slide-compare .slide-main {
  flex-shrink: 0;
  width: 120px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.visual-slide.slide-compare .slide-main .slide-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.visual-slide.slide-compare .slide-main .slide-message {
  font-size: 14px;
  line-height: 1.4;
}

.slide-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.compare-column {
  border-radius: 12px;
  padding: 12px 14px;
  animation: cardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  display: flex;
  flex-direction: column;
}

.compare-column.good {
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
  animation-delay: 0.1s;
}

.compare-column.bad {
  background: linear-gradient(145deg, #ffebee 0%, #ffcdd2 100%);
  animation-delay: 0.15s;
}

.compare-header {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.compare-item {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  padding: 4px 0;
}

.compare-item:last-child {
  padding-bottom: 0;
}

/* ===== Steps Type (ステップ型) ===== */
.slide-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
  padding: 14px 18px;
  animation: cardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  flex: 1;
  min-width: 120px;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(3) { animation-delay: 0.15s; }
.step-item:nth-child(5) { animation-delay: 0.2s; }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.step-arrow {
  font-size: 24px;
  color: var(--accent-primary);
  font-weight: bold;
  animation: fadeIn 0.3s ease backwards;
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Metrics Type (数値型) ===== */
.slide-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.metric-card {
  background: linear-gradient(145deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  animation: cardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  transition: transform 0.2s ease;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.15s; }
.metric-card:nth-child(3) { animation-delay: 0.2s; }

.metric-card:hover {
  transform: scale(1.03);
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Timeline Type (タイムライン型) ===== */
.slide-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s ease backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.25s; }

.timeline-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(145deg, #e8f4fd 0%, #d1e9fc 100%);
  border-radius: 10px;
}

.timeline-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ===== Quote Type (引用型) ===== */
.slide-quote {
  background: linear-gradient(145deg, #f5f5f5 0%, #eeeeee 100%);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  margin-top: 8px;
  animation: fadeIn 0.4s ease;
}

.quote-mark {
  font-size: 48px;
  color: var(--accent-primary);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  padding-left: 32px;
  font-style: italic;
}

.quote-footer {
  margin-top: 12px;
  padding-left: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.quote-speaker {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.quote-context {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== Checklist Type (チェックリスト型) ===== */
.slide-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: 10px;
  animation: slideIn 0.3s ease backwards;
  transition: transform 0.2s ease;
}

.checklist-item:nth-child(1) { animation-delay: 0.1s; }
.checklist-item:nth-child(2) { animation-delay: 0.15s; }
.checklist-item:nth-child(3) { animation-delay: 0.2s; }
.checklist-item:nth-child(4) { animation-delay: 0.25s; }

.checklist-item.checked {
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
}

.checklist-item.checked .checklist-text {
  text-decoration: line-through;
  opacity: 0.7;
}

.checklist-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.checklist-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ===== Matrix Type (マトリクス型) ===== */
.slide-matrix {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.matrix-axis-y {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  position: relative;
}

.matrix-cell {
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  animation: cardPop 0.3s ease backwards;
}

.matrix-cell.top-left {
  background: linear-gradient(145deg, #ffcdd2 0%, #ef9a9a 100%);
  animation-delay: 0.1s;
}

.matrix-cell.top-right {
  background: linear-gradient(145deg, #c8e6c9 0%, #a5d6a7 100%);
  animation-delay: 0.15s;
}

.matrix-cell.bottom-left {
  background: linear-gradient(145deg, #fff3e0 0%, #ffe0b2 100%);
  animation-delay: 0.2s;
}

.matrix-cell.bottom-right {
  background: linear-gradient(145deg, #e1f5fe 0%, #b3e5fc 100%);
  animation-delay: 0.25s;
}

.matrix-axis-x {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== Highlight Type (ハイライト型) ===== */
.slide-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(145deg, #fff8e1 0%, #ffecb3 100%);
  border-radius: 16px;
  margin-top: 8px;
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.highlight-icon {
  font-size: 40px;
  margin-bottom: 12px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.highlight-message {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.highlight-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== Q&A Type (Q&A型) ===== */
.slide-qa {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.qa-question, .qa-answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  animation: slideIn 0.3s ease backwards;
}

.qa-question {
  background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
  animation-delay: 0.1s;
}

.qa-answer {
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
  animation-delay: 0.2s;
}

.qa-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.qa-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ===== Warning Type (警告型) ===== */
.slide-warning {
  background: linear-gradient(145deg, #ffebee 0%, #ffcdd2 100%);
  border-radius: 14px;
  padding: 16px;
  margin-top: 8px;
  border-left: 4px solid #ef5350;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.warning-header {
  font-size: 14px;
  font-weight: 700;
  color: #c62828;
  margin-bottom: 10px;
}

.warning-risks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.warning-risk {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.warning-action {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
}

/* ===== Prompt Manager Modal ===== */
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.prompt-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-list-item:hover {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

.prompt-list-item .prompt-info {
  flex: 1;
  min-width: 0;
}

.prompt-list-item .prompt-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-list-item .prompt-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-list-item .prompt-edit-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.prompt-list-item .prompt-edit-btn:hover {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

.prompt-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.prompt-list-empty .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.prompt-list-empty p {
  font-size: 14px;
}

.prompt-limit-info {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* Required field indicator */
.required {
  color: #e74c3c;
}

/* Select optgroup styling */
select optgroup {
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-top: 8px;
}

select optgroup option {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-primary);
  text-transform: none;
}

/* ========== SESSION HISTORY SIDEBAR ========== */
.sidebar {
  position: fixed;
  left: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 1001;
  transition: left 0.3s ease;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-elevated);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.sidebar-close:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.sidebar-empty p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.sidebar-empty small {
  font-size: 12px;
  opacity: 0.7;
}

/* Session date group */
.session-date-group {
  margin-bottom: 8px;
}

.session-date-header {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--glass-border);
}

/* Session item */
.session-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--glass-border);
}

.session-item:hover {
  background: var(--bg-elevated);
}

.session-item.active {
  background: var(--accent-light);
  border-left: 3px solid var(--accent-primary);
  padding-left: 17px;
}

.session-info {
  flex: 1;
  min-width: 0;
}

.session-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  /* 2行まで表示して省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.session-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.session-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.session-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.session-item:hover .session-actions {
  opacity: 1;
}

.session-delete-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.session-delete-btn:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-elevated);
}

.sidebar-load-more {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  color: var(--accent-primary);
  background: transparent;
  border: 1px dashed var(--glass-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-load-more:hover {
  background: var(--accent-light);
  border-color: var(--accent-primary);
}

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar toggle button */
.sidebar-toggle {
  font-size: 18px !important;
  padding: 6px 10px !important;
}

/* Mode icons for sessions */
.mode-icon {
  font-size: 14px;
  margin-right: 4px;
}

/* Session loading state */
.session-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

.session-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

