:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-tertiary: #161c2e;
  --bg-glass: rgba(16, 21, 34, 0.75);
  --bg-glass-card: rgba(22, 28, 46, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(147, 51, 234, 0.45);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-purple: #9333ea;
  --accent-purple-glow: rgba(147, 51, 234, 0.3);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.3);
  --accent-gold: #fbbf24;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-mono: 'Fira Code', Consolas, monospace;
  --font-display: 'Outfit', sans-serif;
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

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

body {
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Header */
.studio-header {
  height: 72px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.accent-purple {
  color: var(--accent-purple);
}

.text-gold {
  color: var(--accent-gold);
}

.gradient-text {
  background: linear-gradient(135deg, #c084fc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-dim);
}

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

.search-input-wrap {
  position: relative;
  width: 320px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 13px;
}

.search-input-wrap input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 12.5px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrap input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.btn-primary-purple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.btn-primary-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.45);
}

.btn-sub-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sub-ai:hover {
  background: rgba(251, 191, 36, 0.2);
  transform: translateY(-1px);
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* App Layout Grid */
.app-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 72px);
  overflow: hidden;
}

/* Sidebar Vault */
.sidebar-vault {
  width: 340px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-section-title {
  padding: 16px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.badge-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-main);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--border-color);
}

.cat-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.cat-pill.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
  font-weight: 600;
}

.note-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-card-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.note-card-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.note-card-item.active {
  background: rgba(147, 51, 234, 0.15);
  border-color: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.note-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.note-item-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.has-audio-tag {
  font-size: 10.5px;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.note-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item-preview {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-item-date {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: right;
}

/* Daemon Info Footer */
.daemon-card {
  margin: 12px;
  padding: 12px;
  background: rgba(16, 21, 34, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 11px;
}

.daemon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.daemon-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.daemon-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 9.5px;
  font-weight: 700;
}

.daemon-desc {
  color: var(--text-muted);
  font-size: 10.5px;
  margin-bottom: 6px;
}

.daemon-metrics {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 10px;
}

/* Center Stage */
.main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Note Meta Bar */
.note-meta-bar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.active-note-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.file-path-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-toggle-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mode-toggle-btn.active {
  background: rgba(147, 51, 234, 0.2);
  border-color: var(--accent-purple);
  color: #c084fc;
}

.btn-voice-now {
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-voice-now:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Audio Player Banner */
.voice-briefing-banner {
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(22, 28, 46, 0.9), rgba(16, 21, 34, 0.95));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.voice-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.voice-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #9333ea, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 14px var(--accent-purple-glow);
}

.voice-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-title-row strong {
  font-size: 14px;
  color: #fff;
}

.voice-persona-badge {
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
}

.voice-timestamp {
  font-size: 11px;
  color: var(--text-dim);
}

/* Custom Audio Player */
.custom-audio-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  max-width: 580px;
}

.btn-play {
  width: 40px;
  height: 40px;
  background: var(--accent-green);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.btn-play:hover {
  transform: scale(1.06);
}

.audio-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.time-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  min-width: 38px;
}

.audio-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.1s;
}

.audio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-extra-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-speed {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-speed:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-audio-download {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-audio-download:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Workspace: Viewer & Editor */
.note-workspace {
  flex: 1;
  overflow-y: auto;
  padding: 32px 48px;
}

.markdown-body {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.75;
  color: #d1d5db;
  font-size: 15px;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  color: #fff;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.markdown-body h1 {
  font-size: 26px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.markdown-body h2 {
  font-size: 21px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.markdown-body h3 {
  font-size: 17px;
}

.markdown-body p {
  margin-bottom: 1.2em;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 1.2em;
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 0.4em;
}

.markdown-body a {
  color: #38bdf8;
  text-decoration: none;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
}

.markdown-body a:hover {
  border-bottom-style: solid;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent-purple);
  padding: 8px 16px;
  margin: 1.2em 0;
  background: rgba(147, 51, 234, 0.08);
  border-radius: 0 8px 8px 0;
  color: #c084fc;
}

.markdown-body code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  color: #f472b6;
}

.markdown-body pre {
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 1.4em 0;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  color: #e5e7eb;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
}

.markdown-body th, .markdown-body td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.markdown-body th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.15);
}

.empty-state h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13.5px;
}

/* Raw Editor Mode */
.editor-area {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
}

.editor-area textarea {
  flex: 1;
  min-height: 480px;
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #f3f4f6;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 20px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.editor-area textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px var(--accent-purple-glow);
}

.editor-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 12px;
}

.btn-save-note {
  padding: 10px 20px;
  background: var(--accent-purple);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-save-note:hover {
  background: #7c3aed;
  box-shadow: 0 4px 12px var(--accent-purple-glow);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-large {
  max-width: 720px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.form-group select option {
  background: #161c2e;
  color: #fff;
}

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

.briefing-opt-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-main);
  background: rgba(147, 51, 234, 0.08);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(147, 51, 234, 0.2);
}

.briefing-opt-box input {
  cursor: pointer;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-submit {
  padding: 8px 18px;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-submit:hover {
  transform: translateY(-1px);
}

/* AI Ask Modal */
.ai-hint {
  font-size: 12.5px;
  color: var(--text-muted);
}

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

.ai-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

.btn-ai-submit {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold);
  border: none;
  color: #000;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.btn-ai-submit:hover {
  transform: scale(1.05);
}

.ai-answer-box {
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 180px;
  max-height: 340px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.65;
  color: #d1d5db;
}

.ai-placeholder {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding-top: 60px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 10px 16px;
  background: rgba(16, 21, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { border-color: var(--accent-green); }
.toast.info { border-color: var(--accent-cyan); }
.toast.error { border-color: var(--accent-red); }

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

/* Responsive */
@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
    height: auto;
  }
  .sidebar-vault {
    width: 100%;
    height: 300px;
  }
  .search-input-wrap {
    width: 180px;
  }
  .note-workspace {
    padding: 20px;
  }
  .voice-briefing-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-audio-controls {
    width: 100%;
  }
}
