@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");
:root {
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.16);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme=paper] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-pulse: #ffffff;
  --fg: #2d2c2a;
  --muted: #7c766e;
  --link: #2563eb;
  --accent: #3b82f6;
  --code-bg: #f2f0e8;
  --danger: #ef4444;
  --border-color: #e6e1d6;
  --hover-bg: rgba(243, 239, 235, 0.8470588235);
  --sidebar-bg: #f4f1ea;
}

html[data-theme=mist] {
  color-scheme: light;
  --bg: #f3f6f9;
  --bg-pulse: #ffffff;
  --fg: #1e293b;
  --muted: #64748b;
  --link: #0d9488;
  --accent: #0f766e;
  --code-bg: #e2e8f0;
  --danger: #e11d48;
  --border-color: #cbd5e1;
  --hover-bg: rgba(226, 232, 240, 0.6901960784);
  --sidebar-bg: #e8edf2;
}

html[data-theme=sand] {
  color-scheme: light;
  --bg: #faf6f0;
  --bg-pulse: #ffffff;
  --fg: #451a03;
  --muted: #a16207;
  --link: #b45309;
  --accent: #d97706;
  --code-bg: #f5efe6;
  --danger: #dc2626;
  --border-color: #e9dfd0;
  --hover-bg: rgba(242, 229, 213, 0.6901960784);
  --sidebar-bg: #f3e9dc;
}

html[data-theme=ink] {
  color-scheme: dark;
  --bg: #0b0f19;
  --bg-pulse: #1e293b;
  --fg: #f8fafc;
  --muted: #94a3b8;
  --link: #38bdf8;
  --accent: #0ea5e9;
  --code-bg: #1e293b;
  --danger: #f43f5e;
  --border-color: #334155;
  --hover-bg: rgba(51, 65, 85, 0.6274509804);
  --sidebar-bg: #121418;
}

html[data-theme=ocean] {
  color-scheme: dark;
  --bg: #070f1e;
  --bg-pulse: #1c2541;
  --fg: #edf2f4;
  --muted: #8d99ae;
  --link: #48cae4;
  --accent: #00b4d8;
  --code-bg: #1c2541;
  --danger: #ef233c;
  --border-color: #3b4b72;
  --hover-bg: rgba(59, 75, 114, 0.6274509804);
  --sidebar-bg: #0b1520;
}

html[data-theme=forest] {
  color-scheme: dark;
  --bg: #060d0a;
  --bg-pulse: #16281e;
  --fg: #f0fdf4;
  --muted: #a7f3d0;
  --link: #34d399;
  --accent: #10b981;
  --code-bg: #16281e;
  --danger: #f87171;
  --border-color: #1d3e2c;
  --hover-bg: rgba(29, 62, 44, 0.6274509804);
  --sidebar-bg: #0f1812;
}

html[data-theme=dusk] {
  color-scheme: dark;
  --bg: #0e0b16;
  --bg-pulse: #301e67;
  --fg: #f5f3c1;
  --muted: #b1a2ca;
  --link: #c084fc;
  --accent: #a855f7;
  --code-bg: #301e67;
  --danger: #f472b6;
  --border-color: #432c7a;
  --hover-bg: rgba(67, 44, 122, 0.6274509804);
  --sidebar-bg: #1a1523;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

a {
  color: var(--link);
  transition: color var(--transition-fast);
  text-decoration: none;
}
a:hover {
  filter: brightness(1.15);
}

/* Button Icon helper */
.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Layout variants */
body[data-variant=home] {
  max-width: none;
  padding: 0;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-variant=home] header {
  display: none;
}

body[data-variant=inner] {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Home Panel Layout */
.home-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.home-sidebar {
  width: 25rem;
  min-width: 22rem;
  max-width: 30rem;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  overflow: hidden; /* Static frame, only the notes tree nested list scrolls */
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.home-main {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 3rem;
  transition: background var(--transition-normal);
}

/* Responsive sidebar for mobile */
@media (max-width: 768px) {
  .home-container {
    flex-direction: column;
  }
  .home-sidebar {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 60vh;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
  }
  .home-main {
    flex: 1;
    padding: 2rem 1.5rem;
    justify-content: flex-start;
  }
  .empty-state {
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }
}
/* Sidebar Branding & Info */
.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-header h1.brand {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--fg);
  line-height: 1.05;
}
.sidebar-header .brand-glowing {
  background: linear-gradient(135deg, var(--accent), var(--link));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar-header .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
}

/* Sidebar Search Bar */
.search-wrapper {
  position: relative;
  width: 100%;
}
.search-wrapper .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  pointer-events: none;
}
.search-wrapper #note-search {
  width: 100%;
  padding: 0.75rem 0.85rem 0.75rem 2.4rem;
  background: var(--bg-pulse);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}
.search-wrapper #note-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Sidebar Top Actions */
.sidebar-top-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Sidebar Footer Bar — pinned to bottom, holds small auth button & settings icon */
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  flex-shrink: 0;
}
.sidebar-footer .btn {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Compact, icon-only button style for settings */
.btn-icon-only {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}
.btn-icon-only svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Notes Cards List */
ul.notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  overflow-x: auto; /* Pinned horizontal slider for deeply nested notes */
  flex: 1;
}
ul.notes li.note-card-item {
  margin: 0;
  width: max-content;
  min-width: 100%;
}

.no-notes, .no-results {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  padding: 1.5rem 1rem;
  text-align: center;
}

/* Individual Note Card */
.note-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--bg-pulse);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--fg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-width: max-content; /* Ensure items do not compress under deep nesting */
}
.note-card:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(59, 130, 246, 0.12);
}
.note-card .note-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.85;
}
.note-card .note-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.note-card .note-card-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

/* Active note highlight — visually marks the currently viewed note in the sidebar */
.note-card.note-card-active {
  background: var(--hover-bg);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(59, 130, 246, 0.18);
}

/* Category Folders Collapsible FTP-like Tree */
.folder-details {
  margin-bottom: 0.25rem;
  width: max-content;
  min-width: 100%;
}

.folder-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none; /* hide default arrow */
  border-radius: var(--radius-sm);
  color: var(--fg);
  transition: background var(--transition-fast);
  width: 100%;
  min-width: max-content; /* Ensure folders do not compress under deep nesting */
}
.folder-summary::-webkit-details-marker {
  display: none; /* hide Safari arrow */
}
.folder-summary:hover {
  background: var(--hover-bg);
}

.folder-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.folder-details[open] > .folder-summary .folder-icon {
  transform: rotate(90deg);
}

.folder-content {
  list-style: none;
  padding-left: 1.25rem; /* indent children folders/notes */
  margin: 0.2rem 0;
  border-left: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  max-width: 32rem;
  background: var(--bg-pulse);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}
.empty-state .empty-state-illustration {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
}
.empty-state .empty-state-illustration svg {
  width: 2.75rem;
  height: 2.75rem;
}
.empty-state .empty-state-illustration {
  /* Sprite-based icon used in the empty-state illustration */
}
.empty-state .empty-state-illustration .empty-state-icon {
  width: 2.75rem;
  height: 2.75rem;
}
.empty-state h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.empty-state p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.quick-tips {
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}
.quick-tips h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.quick-tips ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.quick-tips ul li {
  margin-bottom: 0.4rem;
}
.quick-tips ul li code {
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

/* Inner Page Header & Navigation */
header {
  margin-bottom: 2rem;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.nav-inner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.nav-inner-actions form {
  display: inline;
}

body[data-variant=inner] h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.15;
}

/* Interactive Split Editor layout */
.editor-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.editor-tabs {
  display: flex;
  background: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.2rem;
  gap: 0.15rem;
}

.editor-tab-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  box-shadow: none;
}
.editor-tab-btn:hover {
  background: var(--hover-bg);
  color: var(--fg);
  transform: none;
  box-shadow: none;
}
.editor-tab-btn.active {
  background: var(--accent);
  color: #fff;
}

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  height: calc(100vh - 350px);
  min-height: 480px;
}
@media (max-width: 900px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-layout .editor-preview-pane {
    display: none;
  }
  .editor-layout.mode-preview .editor-preview-pane {
    display: flex;
  }
  .editor-layout.mode-preview .editor-edit-pane {
    display: none;
  }
}
.editor-layout.mode-edit {
  grid-template-columns: 1fr;
}
.editor-layout.mode-edit .editor-preview-pane {
  display: none;
}
.editor-layout.mode-edit .editor-edit-pane {
  grid-column: span 2;
}
.editor-layout.mode-preview .editor-edit-pane {
  display: none;
}
.editor-layout.mode-preview .editor-preview-pane {
  grid-column: span 2;
}

.editor-edit-pane, .editor-preview-pane {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.editor-pane-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.editor-preview-content {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-pulse);
  padding: 1.25rem 1.5rem;
  overflow: auto;
  flex: 1;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Ensure markdown content wraps correctly in preview mode */
.markdown-body {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.markdown-body pre {
  white-space: pre-wrap !important;
  word-break: break-all !important;
}

/* Code block typography and wrappers */
pre, code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

pre {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--fg);
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Copy to Clipboard in Pre Blocks */
.code-block-wrapper {
  position: relative;
  margin: 1.5rem 0;
}
.code-block-wrapper pre {
  margin: 0;
}
.code-block-wrapper:hover .copy-btn {
  opacity: 1;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  background: var(--bg-pulse);
  color: var(--fg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  font-weight: 600;
}
.copy-btn:hover {
  background: var(--hover-bg);
}

textarea#content {
  flex: 1;
  min-height: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: none;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Dialog Modals */
dialog {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-pulse);
  color: var(--fg);
  padding: 2rem;
  max-width: 25rem;
  width: calc(100vw - 2rem);
  box-shadow: var(--shadow-lg);
  border: none;
  outline: none;
}
dialog[open] {
  animation: dlg-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
dialog[open]::backdrop {
  opacity: 1;
}
dialog h2 {
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@keyframes dlg-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.dialog-actions button.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* Settings Dialog Layout styles for scalability */
#dlg-settings {
  max-width: 36rem;
}

.settings-container {
  display: flex;
  gap: 1.5rem;
  min-height: 18rem;
  margin-top: 1rem;
}

.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--border-color);
  padding-right: 1rem;
  width: 9.5rem;
  flex-shrink: 0;
}

.settings-tab-btn {
  background: transparent !important;
  color: var(--muted) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
}
.settings-tab-btn:hover {
  background: var(--hover-bg) !important;
  color: var(--fg) !important;
  transform: none !important;
}
.settings-tab-btn.active {
  background: var(--hover-bg) !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.settings-panes {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.settings-pane {
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: pane-fade-in 0.2s ease forwards;
}
.settings-pane.active {
  display: flex;
}

@keyframes pane-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Forms, Inputs, Buttons styling */
input[type=text],
input[type=password],
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg-pulse);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}
input[type=text]:focus,
input[type=password]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  user-select: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
button:hover, .btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn-ghost:hover {
  filter: none;
  background: var(--hover-bg);
  box-shadow: none;
}

a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
a.btn:link, a.btn:visited {
  color: #fff;
  opacity: 1;
}
a.btn.btn-ghost:link, a.btn.btn-ghost:visited {
  color: var(--accent);
}

.appearance-field {
  margin: 1rem 0;
}
.appearance-field label {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.appearance-field select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--fg);
  background: var(--bg-pulse);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.appearance-field select:focus {
  border-color: var(--accent);
}

.error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.25rem;
  background: var(--bg-pulse);
  color: var(--fg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  animation: slideIn var(--transition-normal) forwards;
}
.toast-success {
  border-left: 4px solid var(--accent);
}
.toast-error {
  border-left: 4px solid var(--danger);
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
