.account { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.account #user-name { font-weight: 700; color: var(--ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.record-actions { position: static; display: flex; justify-content: flex-start; align-items: center; gap: 9px; padding: 0 0 12px; border: 0; background: transparent; }
.record-actions button { flex: 0 0 auto; }
.icon-button { display: grid; place-items: center; width: 46px; height: 42px; padding: 0; font-size: 18px; }
.snapshot-number { margin-left: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 700; }
dialog { width: min(520px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 15px; background: var(--panel); color: var(--ink); padding: 20px; box-shadow: var(--shadow); }
dialog::backdrop { background: #1e27228c; backdrop-filter: blur(3px); }
dialog h2 { font-family: Georgia, serif; margin: 0; }
dialog p { color: var(--muted); }
dialog textarea, .session-note { width: 100%; min-height: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; resize: vertical; line-height: 1.45; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.notes-panel { margin-bottom: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.notes-panel textarea { background: transparent; }
.resume-panel { margin-bottom: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.resume-panel .panel-head { align-items: flex-start; gap: 14px; }
.resume-panel .panel-head h2 { font-family: Georgia, serif; margin: 0; font-size: 21px; }
.resume-panel .panel-head small { display: block; color: var(--muted); margin-top: 4px; }
.resume-actions,.resume-edit-actions { display: flex; gap: 8px; }
.resume-actions button,.resume-edit-actions button { padding: 9px 14px; }
.resume-edit-actions { justify-content: flex-end; margin-top: 10px; }
.resume-editor { width: 100%; min-height: 260px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; resize: vertical; line-height: 1.5; }
.markdown-body { line-height: 1.58; max-width: 82ch; }
.markdown-body h3,.markdown-body h4,.markdown-body h5 { margin: 18px 0 6px; font-family: Georgia, serif; }
.markdown-body h3:first-child,.markdown-body h4:first-child,.markdown-body h5:first-child { margin-top: 4px; }
.markdown-body p { margin: 7px 0; }
.markdown-body ul { margin: 7px 0; padding-left: 24px; }
@media(max-width:720px){.resume-panel .panel-head{display:block}.resume-actions{margin-top:12px}.resume-actions button{flex:1}}
.destructive-zone { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-outline, .delete-pdf { border: 1px solid #d8aaa5; background: transparent; color: var(--danger); border-radius: 9px; padding: 8px 11px; }
.pdf-card { gap: 10px; }
.pdf-open { display: flex; align-items: center; gap: 12px; flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.pdf-open .session-main { min-width: 0; }
.folder-select-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.folder-select-label select { max-width: 210px; padding: 8px 28px 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); }
.record-folder-path { margin: 0 0 5px 2px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.3; }
.folder-bar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 3px 0 13px; scrollbar-width: thin; }
.folder-bar #folder-list { display: contents; }
.folder-chip { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); }
.folder-chip.active { background: var(--ink); border-color: var(--ink); color: white; }
.folder-chip small { margin-left: 4px; opacity: .7; }
.folder-actions { display: flex; gap: 8px; margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff80; }
.dialog-field { display: grid; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 13px; font-weight: 700; }
.dialog-field input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 16px; }
.detail-head { gap: 12px; flex-wrap: wrap; }
.tree-hint { margin: -5px 0 9px; color: var(--muted); font-size: 12px; }
.session-tree, .tree-search-results { padding: 7px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.tree-line { display: flex; align-items: center; min-height: 28px; }
.tree-toggle, .tree-folder-name, .tree-session { border: 0; background: transparent; color: var(--ink); border-radius: 4px; padding: 3px 4px; text-align: left; }
.tree-toggle { width: 24px; color: var(--muted); }
.tree-toggle:disabled { opacity: .35; }
.tree-folder-name:hover, .tree-session:hover { background: #24312b12; }
.tree-folder-name { font-weight: 650; }
.folder-modified { margin-left: 8px; color: var(--muted); font-family: inherit; font-size: 11px; white-space: nowrap; }
.root-name { font-weight: 800; }
.tree-children { margin-left: 12px; padding-left: 11px; border-left: 1px solid var(--line); }
.tree-session { display: block; width: calc(100% - 5px); margin-left: 23px; color: var(--ink); font-weight: 400; }
.tree-session small { margin-left: 8px; color: var(--muted); font-family: inherit; }
.tree-pdf { display: block; margin-left: 42px; padding: 3px 4px; color: var(--muted); text-decoration: none; }
.tree-pdf:hover { color: var(--ink); background: #24312b12; }
.tree-empty { margin-left: 28px; padding: 3px; color: var(--muted); font-style: italic; }
.folder-menu { position: fixed; z-index: 100; width: 170px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.folder-menu button { display: block; width: 100%; padding: 8px 9px; border: 0; background: transparent; color: var(--ink); text-align: left; border-radius: 5px; }
.folder-menu button:hover { background: #24312b12; }
.folder-menu .danger-text { color: var(--danger); }
.session-list-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 1; }
.session-list-tools #session-search { flex: 0 1 330px; }
.sort-button { min-width: 38px; padding: 8px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sort-button.active { background: var(--ink); border-color: var(--ink); color: white; }
@media (max-width: 720px) {
  main { padding-bottom: 60px; }
  .record-actions { position: static; left: auto; right: auto; bottom: auto; padding: 0 0 10px; border: 0; background: transparent; }
  .record-actions button { flex: 0 0 auto; max-width: none; }
  .snapshot-number { font-size: 11px; }
  .account { gap: 0; }
  .account #user-name { max-width: 78px; }
  .account .quiet { padding: 8px 5px; }
  .record-head { flex-wrap: wrap; }
  .record-head #session-title { flex: 1 1 100%; }
  .folder-select-label { flex: 1; }
  .folder-select-label select { max-width: 170px; }
  .folder-actions { flex-wrap: wrap; }
  .session-list-tools { flex-wrap: wrap; }
  .session-list-tools #session-search { order: 2; flex-basis: 100%; }
}
