:root { --bg: #1a1b26; --bg-surface: #24283b; --bg-hover: #292e42; --bg-selected: #33394d; --text: #c0caf5; --text-dim: #565f89; --text-muted: #3b4261; --accent: #7aa2f7; --accent-dim: #3d59a1; --green: #9ece6a; --red: #f7768e; --yellow: #e0af68; --orange: #ff9e64; --purple: #bb9af7; --cyan: #7dcfff; --border: #292e42; --radius: 6px; --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, monospace; --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-sans); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; height: 100vh; overflow: hidden; } #app { display: flex; flex-direction: column; height: 100vh; } /* Header */ header { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--bg-surface); flex-shrink: 0; } .header-left { display: flex; align-items: center; gap: 16px; flex-shrink: 0; } .logo { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; } nav { display: flex; gap: 4px; } .nav-btn { background: none; border: 1px solid transparent; color: var(--text-dim); padding: 4px 12px; border-radius: var(--radius); cursor: pointer; font-size: 13px; font-family: var(--font-mono); transition: all 0.15s; } .nav-btn:hover { color: var(--text); background: var(--bg-hover); } .nav-btn.active { color: var(--accent); border-color: var(--accent-dim); background: var(--bg); } #capture-bar { flex: 1; max-width: 600px; } #capture-input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; outline: none; transition: border-color 0.15s; } #capture-input:focus { border-color: var(--accent); } #capture-input::placeholder { color: var(--text-muted); } /* Main layout */ main { display: grid; grid-template-columns: 180px 1fr 320px; flex: 1; overflow: hidden; } /* Tag rail */ #tag-rail { border-right: 1px solid var(--border); padding: 12px 0; overflow-y: auto; } .tag-item { display: flex; justify-content: space-between; padding: 6px 16px; cursor: pointer; font-size: 13px; color: var(--text-dim); transition: all 0.1s; } .tag-item:hover { background: var(--bg-hover); color: var(--text); } .tag-item.active { color: var(--accent); background: var(--bg-selected); } .tag-name { font-family: var(--font-mono); } .tag-name::before { content: '#'; color: var(--text-muted); } .tag-count { font-size: 11px; color: var(--text-muted); min-width: 20px; text-align: right; } /* Entity list */ #entity-list { overflow-y: auto; padding: 8px 0; } .date-header { padding: 8px 20px 4px; font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); text-transform: lowercase; letter-spacing: 0.5px; } .entity-item { display: flex; align-items: center; gap: 10px; padding: 8px 20px; cursor: pointer; transition: background 0.1s; border-left: 2px solid transparent; } .entity-item:hover { background: var(--bg-hover); } .entity-item.selected { background: var(--bg-selected); border-left-color: var(--accent); } .entity-glyph { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; } .glyph-note { color: var(--text-dim); } .glyph-todo { color: var(--green); } .glyph-event { color: var(--yellow); } .glyph-snippet { color: var(--accent); } .glyph-template { color: var(--purple); } .glyph-checklist { color: var(--orange); } .glyph-decision { color: var(--cyan); } .glyph-link { color: var(--red); } .entity-body { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .entity-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); flex-shrink: 0; } .entity-tags { display: flex; gap: 4px; flex-shrink: 0; } .entity-tag { font-family: var(--font-mono); font-size: 10px; color: var(--accent-dim); background: rgba(122, 162, 247, 0.1); padding: 1px 6px; border-radius: 3px; } .entity-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); flex-shrink: 0; display: flex; gap: 8px; } .use-badge { color: var(--yellow); font-size: 10px; } /* Detail pane */ #detail-pane { border-left: 1px solid var(--border); padding: 20px; overflow-y: auto; } .detail-empty { color: var(--text-muted); font-size: 13px; text-align: center; margin-top: 40px; } .detail-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; } .detail-glyph { font-size: 20px; } .detail-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); } .detail-body { font-size: 14px; line-height: 1.7; margin-bottom: 16px; white-space: pre-wrap; word-break: break-word; } .detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; } .detail-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: rgba(122, 162, 247, 0.1); padding: 2px 8px; border-radius: 4px; } .detail-actions { display: flex; gap: 8px; flex-wrap: wrap; } .action-btn { background: var(--bg-hover); border: 1px solid var(--border); color: var(--text); padding: 6px 14px; border-radius: var(--radius); cursor: pointer; font-size: 12px; font-family: var(--font-mono); transition: all 0.15s; } .action-btn:hover { border-color: var(--accent); color: var(--accent); } .action-btn.primary { background: var(--accent-dim); border-color: var(--accent); color: white; } .action-btn.danger { border-color: var(--red); color: var(--red); } .action-btn.danger:hover { background: rgba(247, 118, 142, 0.1); } /* Template slot form */ .slot-form { margin: 16px 0; } .slot-field { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .slot-label { font-family: var(--font-mono); font-size: 12px; color: var(--purple); min-width: 80px; } .slot-input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 4px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; outline: none; } .slot-input:focus { border-color: var(--purple); } /* Checklist */ .checklist-step { display: flex; align-items: center; gap: 8px; padding: 4px 0; } .checklist-step input[type="checkbox"] { accent-color: var(--green); } .checklist-step.done span { text-decoration: line-through; color: var(--text-dim); } /* Decision card */ .decision-field { margin-bottom: 12px; } .decision-label { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); margin-bottom: 4px; } .decision-value { font-size: 13px; color: var(--text); } /* Modal */ .modal { display: none; } .modal.visible { display: flex; } .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 100; } .modal-content { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; z-index: 101; min-width: 320px; } .modal-content h3 { font-family: var(--font-mono); font-size: 14px; color: var(--text); margin-bottom: 16px; font-weight: 500; } .type-picker { display: flex; flex-direction: column; gap: 6px; } .type-btn { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); cursor: pointer; font-size: 13px; transition: all 0.15s; } .type-btn:hover { border-color: var(--accent); background: var(--bg-hover); } .type-btn.suggested { border-color: var(--accent-dim); background: rgba(122, 162, 247, 0.05); } .type-glyph { font-size: 16px; width: 24px; text-align: center; } .modal-close { display: block; width: 100%; margin-top: 12px; padding: 6px; background: none; border: none; color: var(--text-muted); font-size: 11px; cursor: pointer; font-family: var(--font-mono); } /* Responsive */ @media (max-width: 900px) { main { grid-template-columns: 1fr; } #tag-rail { display: none; } #detail-pane { position: fixed; inset: 0; top: auto; height: 50vh; background: var(--bg-surface); border-top: 1px solid var(--border); border-left: none; transform: translateY(100%); transition: transform 0.2s; z-index: 50; } #detail-pane.visible { transform: translateY(0); } }