/* 印象笔记风格：白底、绿色强调、浅灰边框、无深色 */
* { box-sizing: border-box; }

:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #fafafa;
  --color-bg-hover: #f5f5f5;
  --color-bg-active: #e8e8e8;
  --color-border: #e8e8e8;
  --color-text: #2c2c2c;
  --color-text-secondary: #6b7280;
  --color-accent: #00a82d;
  --color-accent-hover: #009128;
  --color-star: #d4a534;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-text); }

/* Header：笔记 | 话术 | 账号 */
.header {
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav .nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 0.25rem 0;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.nav .nav-link:hover { color: var(--color-text); }
.nav .nav-link.nav-link-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Main */
.main { padding: 0; max-width: none; margin: 0; min-height: 60vh; background: var(--color-bg); }
.main:has(.split-layout) { max-width: none; padding: 0; min-height: calc(100vh - 48px); }

/* Page header（编辑页等） */
.page-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.page-header h1 { margin: 0; font-size: 1.5rem; flex: 1 1 auto; color: var(--color-text); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.inline-form { display: inline; margin: 0; }
.inline-form button {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  background: var(--color-bg-active);
  border: none;
  border-radius: 4px;
  color: var(--color-text);
}
.inline-form button:hover { background: #d1d5db; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: auto;
  line-height: 1.4;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--color-bg-active); color: var(--color-text); }
.btn-secondary:hover { background: #d1d5db; text-decoration: none; color: var(--color-text); }
.btn-sm { padding: 6px 12px; font-size: 14px; min-height: auto; }

/* Split layout：左侧 260px，右侧自适应 */
.split-layout { display: flex; height: calc(100vh - 48px); overflow: hidden; background: var(--color-bg); }
.pane-left {
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  overflow: hidden;
}
.pane-left-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.pane-left-actions { display: flex; align-items: center; gap: 6px; }
.pane-title { font-weight: 600; font-size: 14px; color: var(--color-text); }
.snippet-new-group-form-wrap { padding: 8px 12px; border-bottom: 1px solid var(--color-border); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.snippet-new-group-form-wrap .snippet-new-group-input { flex: 1; min-width: 100px; padding: 6px 8px; font-size: 14px; border: 1px solid var(--color-border); border-radius: 4px; }
.btn-link { background: none; border: none; padding: 0; color: var(--color-accent); cursor: pointer; font-size: inherit; }
.btn-link:hover { text-decoration: underline; }
.btn-icon { background: none; border: none; padding: 0 4px; cursor: pointer; font-size: 14px; color: var(--color-text-secondary); line-height: 1; }
.btn-icon:hover { color: var(--color-text); }
.pane-title:hover { color: var(--color-text); text-decoration: none; }

.search-wrap { padding: 8px 12px; flex-shrink: 0; }
.search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
}
.search-input::placeholder { color: var(--color-text-secondary); }
.search-input:focus { outline: none; border-color: var(--color-accent); }

.filter-links {
  padding: 0 12px 8px;
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  font-size: 14px;
}
.filter-links a { color: var(--color-text-secondary); }
.filter-links a:hover { color: var(--color-text); }
.filter-links a.active { color: var(--color-accent); font-weight: 600; }

.pane-list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; }
.pane-list-item { margin: 0; border-bottom: none; }
.pane-list-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 8px 2px;
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
}
.pane-list-link:hover { background: var(--color-bg-hover); text-decoration: none; color: var(--color-text); }
.pane-list-link-full { flex-direction: column; align-items: stretch; }
.pane-list-link-full .pane-list-link-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pane-list-link-full .item-preview { padding-left: 0; padding-right: 0; }
.pane-list-link-full .item-meta { padding-left: 0; padding-right: 0; }
.pane-list-item.active { position: relative; }
.pane-list-item.active .pane-list-link {
  background: var(--color-bg-active);
  color: var(--color-text);
  text-decoration: none;
}
.pane-list-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  pointer-events: none;
}
.item-star { color: var(--color-star); flex-shrink: 0; }
.item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.item-preview {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 0 12px 8px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-height: 2.6em;
}
.pane-list-empty { padding: 12px 12px; color: var(--color-text-secondary); font-size: 14px; }
.pane-list-empty a { color: var(--color-accent); }
.pane-list-empty a:hover { text-decoration: underline; }

.pane-left-pagination { padding: 8px 12px; border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--color-text-secondary); }
.pane-left-pagination .pagination-link { color: var(--color-accent); text-decoration: none; }
.pane-left-pagination .pagination-link:hover { text-decoration: underline; }
.pane-left-pagination .pagination-info { margin: 0 4px; }

/* 账号侧栏：分类折叠 */
.entry-category-block { list-style: none; margin: 0; padding: 0; }
.entry-category-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}
.entry-category-header:hover { color: var(--color-text); background: var(--color-bg-hover); }
.entry-category-toggle {
  flex-shrink: 0;
  font-size: 10px;
  transition: transform 0.15s ease;
}
.entry-category-block.collapsed .entry-category-toggle { transform: rotate(-90deg); }
.entry-category-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.entry-category-count { flex-shrink: 0; opacity: 0.8; }
.entry-category-body { list-style: none; margin: 0; padding: 0; }
.entry-category-block.collapsed .entry-category-body { display: none; }

/* 笔记侧栏：分类折叠 */
.note-category-block { list-style: none; margin: 0; padding: 0; }
.note-category-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}
.note-category-header:hover { color: var(--color-text); background: var(--color-bg-hover); }
.note-category-toggle {
  flex-shrink: 0;
  font-size: 10px;
  transition: transform 0.15s ease;
}
.note-category-block.collapsed .note-category-toggle { transform: rotate(-90deg); }
.note-category-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.note-category-count { flex-shrink: 0; opacity: 0.8; }
.note-category-body { list-style: none; margin: 0; padding: 0; }
.note-category-block.collapsed .note-category-body { display: none; }

.pane-right { flex: 1; overflow-y: auto; background: var(--color-bg-subtle); display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--color-border); }
.pane-right-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  padding: 2rem;
  font-size: 14px;
}
.pane-right-placeholder a { color: var(--color-accent); }
.pane-right-placeholder a:hover { text-decoration: underline; }
.pane-right-content { padding: 24px; max-width: none; background: var(--color-bg); }

.detail-header { margin-bottom: 16px; }
.detail-title { margin: 0 0 4px 0; font-size: 24px; font-weight: 600; color: var(--color-text); }
.detail-meta { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-actions .btn-primary { background: var(--color-accent); color: #fff; }
.detail-actions .inline-form button { background: var(--color-bg-active); color: var(--color-text); padding: 6px 12px; border-radius: 6px; }
.detail-actions .inline-form button:hover { background: #d1d5db; }

/* Markdown 正文 */
.md-body {
  flex: 1;
  min-width: 0;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;
  font-size: 15px;
}
.md-body h1, .md-body h2, .md-body h3 { margin-top: 1.25em; margin-bottom: 0.5em; color: var(--color-text); border-bottom: 1px solid var(--color-border); padding-bottom: 0.35em; }
.md-body h1 { font-size: 1.5rem; }
.md-body h2 { font-size: 1.25rem; }
.md-body pre { margin: 1em 0; overflow-x: auto; background: #f0f0f0; border-radius: 4px; padding: 16px; border: none; }
.md-body code { font-size: 14px; color: var(--color-text); }
.md-body pre code { padding: 0; display: block; background: transparent; }
.md-body :not(pre) > code { background: #f0f0f0; padding: 2px 6px; border-radius: 2px; font-size: 14px; }
.md-body p { margin: 0.75em 0; color: var(--color-text); }
.md-body ul, .md-body ol { margin: 0.75em 0; padding-left: 1.5em; color: var(--color-text); }

/* 代码块：语言标签 + 复制 */
.code-block-wrap {
  position: relative;
  margin: 1em 0;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #e8e8e8;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
}
.code-lang { color: var(--color-text-secondary); font-family: inherit; }
.code-block-wrap pre { margin: 0; background: #f0f0f0 !important; border-radius: 0; max-height: 50vh; overflow: auto; padding: 16px; }
.code-block-wrap pre code { padding: 0; display: block; background: transparent !important; }
.code-block-wrap pre code.hljs { background: transparent !important; }
.copy-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-text-secondary);
}
.copy-code-btn:hover { background: #d1d5db; color: var(--color-text); }
.copy-code-btn.copied { color: var(--color-accent); }
.copy-code-btn svg { width: 14px; height: 14px; fill: currentColor; }

.snippet-content-copyable .snippet-line-copyable { cursor: pointer; }
.snippet-content-copyable .snippet-line-copyable:hover { background: var(--color-bg-hover); border-radius: 4px; }
/* 话术列表紧凑显示，一屏约 10 条（用 #snippet-content 保证命中详情区） */
#snippet-content .code-block-wrap { margin: 0.2em 0 !important; }
#snippet-content .code-block-header { padding: 4px 10px !important; font-size: 12px; }
#snippet-content .code-block-wrap pre { padding: 6px 12px !important; max-height: none !important; }
#snippet-content p { margin: 0.3em 0 !important; }
#snippet-content { line-height: 1.5 !important; font-size: 14px !important; }
.snippet-content-copyable .code-block-wrap { margin: 0.2em 0; }
.snippet-content-copyable .code-block-header { padding: 4px 10px; font-size: 12px; }
.snippet-content-copyable .code-block-wrap pre { padding: 6px 12px; max-height: none; }
.snippet-content-copyable p { margin: 0.3em 0; }
.snippet-content-copyable { line-height: 1.5; font-size: 14px; }
.snippet-add-line-wrap { margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.snippet-add-line-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.snippet-add-line-form .snippet-add-line-input { flex: 1 1 100%; min-width: 200px; padding: 8px 10px; font-size: 14px; border: 1px solid var(--color-border); border-radius: 4px; resize: vertical; font-family: inherit; }
.snippet-add-line-form .snippet-add-line-input:focus { outline: none; border-color: var(--color-accent); }
.snippet-inline-edit-form .snippet-edit-block-text { border: 1px solid var(--color-border); border-radius: 4px; font-family: inherit; resize: vertical; }
.snippet-inline-edit-form .snippet-edit-block-row .snippet-row-up,
.snippet-inline-edit-form .snippet-edit-block-row .snippet-row-down { min-width: 32px; }

.hljs { background: #f0f0f0 !important; }
.md-body pre code.hljs { background: transparent !important; }

/* Note list 页面用 */
.note-list, .snippet-list { list-style: none; padding: 0; margin: 0; }
.note-item, .snippet-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.75rem; border-bottom: 1px solid var(--color-border); }
.note-item:hover, .snippet-item:hover { background: var(--color-bg-hover); }
.note-star { margin-right: 0.25rem; color: var(--color-star); }
.note-title, .snippet-title { font-weight: 500; color: var(--color-text); }
.note-meta, .snippet-meta { font-size: 13px; color: var(--color-text-secondary); }
.note-tags, .snippet-tags { font-size: 12px; color: var(--color-text-secondary); }
.note-actions, .snippet-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.note-actions a, .snippet-actions a { font-size: 14px; color: var(--color-accent); }
.empty { padding: 1.5rem; color: var(--color-text-secondary); text-align: center; }

.snippet-item { align-items: center; }
.snippet-main { flex: 1 1 auto; min-width: 0; }
.snippet-copy-btn { flex-shrink: 0; min-width: 80px; }

/* Forms */
.form-note .checkbox-label, .form-snippet label, .form-entry label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--color-text);
}
.form-note input[type="text"], .form-snippet input[type="text"],
.form-entry input[type="text"], .form-entry input[type="password"], .form-entry input[type="url"],
.entry-category-select {
  width: 100%;
  max-width: 500px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-note textarea, .form-snippet textarea, .form-entry textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  resize: vertical;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-note input:focus, .form-snippet input:focus, .form-note textarea:focus, .form-snippet textarea:focus,
.form-entry input:focus { outline: none; border-color: var(--color-accent); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.editor-toolbar .toolbar-label { font-size: 14px; color: var(--color-text-secondary); }
.editor-toolbar .toolbar-lang-label { display: flex; align-items: center; gap: 0.25rem; font-size: 14px; color: var(--color-text-secondary); margin: 0; }
.editor-toolbar .code-lang-select, .editor-toolbar .code-label-input {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-actions { margin-top: 1.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-actions .btn { min-height: auto; }

.tag-chips-wrap { margin-top: 4px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag-chips-label { font-size: 12px; color: var(--color-text-secondary); margin-right: 4px; }
.tag-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-hover);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.tag-chip:hover { background: var(--color-bg-active); color: var(--color-text); }

/* Snippet 侧栏分类 */
.snippet-categories-wrap { padding: 8px 12px; flex-shrink: 0; border-bottom: 1px solid var(--color-border); }
.snippet-categories-wrap .filter-links { flex-wrap: wrap; padding: 0; }
.pane-list-item .item-meta { display: block; font-size: 12px; color: var(--color-text-secondary); padding: 0 12px 4px; }
.snippet-content-preview { margin-top: 1rem; }
.snippet-content-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin: 0;
  padding: 16px;
  background: #f0f0f0;
  border-radius: 4px;
  color: var(--color-text);
  line-height: 1.6;
  border: 1px solid var(--color-border);
}

.snippet-paragraphs .snippet-paragraph-list {
  list-style: decimal;
  margin: 0;
  padding: 16px 16px 16px 36px;
  background: #f0f0f0;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}
.snippet-paragraph-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  min-height: 2rem;
}
.snippet-paragraph-item:last-child { margin-bottom: 0; }
.snippet-paragraph-text { flex: 1; min-width: 0; word-break: break-word; }
.snippet-paragraph-copy { flex-shrink: 0; }
.snippet-empty-hint { margin: 0; padding: 16px; background: #f0f0f0; border-radius: 4px; border: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 14px; }

/* 账号 Entries */
.entry-item-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.entry-favicon { display: block; border-radius: 4px; }
.entry-favicon-placeholder { width: 20px; height: 20px; border-radius: 4px; background: var(--color-bg-active); display: inline-block; }
.entry-detail-favicon-placeholder { width: 32px; height: 32px; border-radius: 6px; background: var(--color-bg-active); display: inline-block; }
.entry-detail-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.detail-header-row { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 auto; min-width: 0; }
.entry-detail-favicon { flex-shrink: 0; border-radius: 6px; }
.entry-detail-fields { margin-top: 1rem; }
.entry-detail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.entry-detail-label { font-size: 14px; color: var(--color-text-secondary); min-width: 4rem; }
.entry-detail-value { flex: 1 1 auto; min-width: 0; color: var(--color-text); word-break: break-all; }
.entry-detail-meta { margin-top: 1.25rem; font-size: 13px; color: var(--color-text-secondary); display: flex; flex-direction: column; gap: 0.25rem; }
.entry-remark { white-space: pre-wrap; }
.entry-category-select { display: block; }
.entry-category-new-wrap { display: inline-block; margin-top: 0.5rem; }
.entry-category-new-wrap .entry-category-new-input { max-width: 280px; margin-left: 0; }

.note-category-select { display: block; }
.note-category-new-wrap { display: inline-block; margin-top: 0.5rem; }
.note-category-new-wrap .note-category-new-input { max-width: 280px; margin-left: 0; }

/* 话术侧栏：分类折叠 */
.snippet-category-block { list-style: none; margin: 0; padding: 0; }
.snippet-category-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}
.snippet-category-header:hover { color: var(--color-text); background: var(--color-bg-hover); }
.snippet-category-toggle {
  flex-shrink: 0;
  font-size: 10px;
  transition: transform 0.15s ease;
}
.snippet-category-block.collapsed .snippet-category-toggle { transform: rotate(-90deg); }
.snippet-category-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.snippet-category-count { flex-shrink: 0; opacity: 0.8; }
.snippet-category-body { list-style: none; margin: 0; padding: 0; }
.snippet-category-block.collapsed .snippet-category-body { display: none; }
.snippet-category-select { display: block; }
.snippet-category-new-wrap { display: inline-block; margin-top: 0.5rem; }
.snippet-category-new-wrap .snippet-category-new-input { max-width: 280px; margin-left: 0; }

/* 话术分组（与 category 样式一致，增加分组操作） */
.snippet-group-block { list-style: none; margin: 0; padding: 0; }
.snippet-group-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}
.snippet-group-header:hover { color: var(--color-text); background: var(--color-bg-hover); }
.snippet-group-toggle {
  flex-shrink: 0;
  font-size: 10px;
  transition: transform 0.15s ease;
}
.snippet-group-block.collapsed .snippet-group-toggle { transform: rotate(-90deg); }
.snippet-group-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.snippet-group-count { flex-shrink: 0; opacity: 0.8; }
.snippet-group-actions { flex-shrink: 0; display: flex; align-items: center; gap: 0; }
.snippet-group-body { list-style: none; margin: 0; padding: 0; }
.snippet-group-block.collapsed .snippet-group-body { display: none; }
.snippet-group-select { display: block; }

/* Flash */
.flash { padding: 8px 12px; margin: 12px; background: #e8f5e9; border: 1px solid var(--color-accent); border-radius: 4px; color: var(--color-text); }

/* Mobile */
@media (max-width: 768px) {
  .main { padding: 0.75rem; }
  .main:has(.split-layout) { min-height: auto; }
  .split-layout { flex-direction: column; height: auto; min-height: 70vh; }
  .pane-left { width: 100%; min-width: 100%; min-height: 200px; max-height: 45vh; border-right: none; border-bottom: 1px solid var(--color-border); }
  .pane-right { border-left: none; }
  .pane-right-placeholder { padding: 2rem 1rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .note-item, .snippet-item { flex-direction: column; align-items: flex-start; }
  .snippet-copy-btn { align-self: stretch; width: 100%; max-width: 120px; }
  .btn { min-height: auto; padding: 6px 12px; }
  .form-note input[type="text"], .form-snippet input[type="text"], .form-entry input[type="text"] { max-width: none; }
}
