@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap"); :root { --bg-primary: #0a0a0d; --bg-secondary: #121216; --bg-tertiary: #1a1a1f; --bg-card: #0f0f13; --bg-elevated: #18181d; --bg-hover: #1e1e24; --text-primary: #eaeaee; --text-secondary: #b7b6c5; --text-tertiary: #6e6d7a; --border: rgba(183, 182, 197, 0.12); --border-hover: rgba(183, 182, 197, 0.2); --accent: #957a86; --accent-hover: #a98d98; --accent-subtle: rgba(149, 122, 134, 0.15); --accent-text: #c4a8b2; --success: #7fb069; --error: #d97766; --warning: #e8a54b; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px; --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4); } @media (prefers-color-scheme: light) { :root { --bg-primary: #f8f8fa; --bg-secondary: #ffffff; --bg-tertiary: #f0f0f4; --bg-card: #ffffff; --bg-elevated: #ffffff; --bg-hover: #eeeef2; --text-primary: #18171c; --text-secondary: #5c495a; --text-tertiary: #8a8494; --border: rgba(92, 73, 90, 0.12); --border-hover: rgba(92, 73, 90, 0.22); --accent: #7a5f6d; --accent-hover: #664e5b; --accent-subtle: rgba(149, 122, 134, 0.12); --accent-text: #5c495a; --shadow-sm: 0 1px 3px rgba(92, 73, 90, 0.06); --shadow-md: 0 4px 12px rgba(92, 73, 90, 0.08); } } body.light { --bg-primary: #f8f8fa; --bg-secondary: #ffffff; --bg-tertiary: #f0f0f4; --bg-card: #ffffff; --bg-elevated: #ffffff; --bg-hover: #eeeef2; --text-primary: #18171c; --text-secondary: #5c495a; --text-tertiary: #8a8494; --border: rgba(92, 73, 90, 0.12); --border-hover: rgba(92, 73, 90, 0.22); --accent: #7a5f6d; --accent-hover: #664e5b; --accent-subtle: rgba(149, 122, 134, 0.12); --accent-text: #5c495a; --shadow-sm: 0 1px 3px rgba(92, 73, 90, 0.06); --shadow-md: 0 4px 12px rgba(92, 73, 90, 0.08); } body.dark { --bg-primary: #0a0a0d; --bg-secondary: #121216; --bg-tertiary: #1a1a1f; --bg-card: #0f0f13; --bg-elevated: #18181d; --bg-hover: #1e1e24; --text-primary: #eaeaee; --text-secondary: #b7b6c5; --text-tertiary: #6e6d7a; --border: rgba(183, 182, 197, 0.12); --border-hover: rgba(183, 182, 197, 0.2); --accent: #957a86; --accent-hover: #a98d98; --accent-subtle: rgba(149, 122, 134, 0.15); --accent-text: #c4a8b2; --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; -webkit-font-smoothing: antialiased; } .sidebar { display: flex; flex-direction: column; height: 100vh; background: var(--bg-primary); } .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-primary); } .sidebar-brand { display: flex; align-items: center; gap: 10px; } .sidebar-logo { color: var(--accent); } .sidebar-title { font-weight: 600; font-size: 15px; color: var(--text-primary); letter-spacing: -0.02em; } .user-info { display: flex; align-items: center; gap: 8px; } .user-handle { font-size: 12px; color: var(--text-secondary); background: var(--bg-tertiary); padding: 4px 10px; border-radius: var(--radius-full); } .current-page-info { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg-primary); border-bottom: 1px solid var(--border); } .page-url { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; } .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-tertiary); gap: 12px; } .spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .login-prompt { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 32px; text-align: center; gap: 20px; } .login-at-logo { font-size: 3.5rem; font-weight: 700; color: var(--accent); line-height: 1; } .login-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); } .login-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; } .tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-primary); padding: 4px 8px; gap: 4px; margin: 0; } .tab-btn { flex: 1; padding: 10px 8px; background: transparent; border: none; font-size: 12px; font-weight: 500; color: var(--text-tertiary); cursor: pointer; border-radius: var(--radius-sm); transition: all 0.15s; } .tab-btn:hover { color: var(--text-secondary); background: var(--bg-hover); } .tab-btn.active { color: var(--text-primary); background: var(--bg-tertiary); } .tab-content { display: none; flex: 1; flex-direction: column; overflow-y: auto; } .tab-content.active { display: flex; } .quick-actions { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-primary); } .btn { padding: 10px 18px; border-radius: var(--radius-md); border: none; font-weight: 600; cursor: pointer; font-size: 13px; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .btn-small { padding: 8px 14px; font-size: 12px; } .btn-primary { background: var(--accent); color: white; } .btn-primary:hover { background: var(--accent-hover); } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } .btn-secondary { background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-primary); flex: 1; } .btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); } .btn-icon-text { flex: 1; } .btn-icon { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 6px; border-radius: var(--radius-sm); } .btn-icon:hover { color: var(--text-primary); background: var(--bg-hover); } .create-form { padding: 16px; border-bottom: 1px solid var(--border); background: var(--bg-primary); } .form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .form-title { font-size: 12px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; } .annotation-input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-family: inherit; font-size: 13px; resize: none; margin-bottom: 10px; background: var(--bg-elevated); color: var(--text-primary); transition: border-color 0.15s; } .annotation-input::placeholder { color: var(--text-tertiary); } .annotation-input:focus { outline: none; border-color: var(--accent); } .form-actions { display: flex; justify-content: flex-end; } .quote-preview { margin-bottom: 12px; padding: 12px; background: var(--accent-subtle); border-left: 2px solid var(--accent); border-radius: var(--radius-sm); } .quote-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-text); } .quote-preview-clear { background: none; border: none; color: var(--text-tertiary); font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1; } .quote-preview-clear:hover { color: var(--text-primary); } .quote-preview-text { font-size: 12px; font-style: italic; color: var(--text-secondary); line-height: 1.5; } .annotations-section { flex: 1; } .section-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--bg-primary); border-bottom: 1px solid var(--border); } .section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: 0.5px; } .annotation-count { font-size: 11px; background: var(--bg-tertiary); padding: 3px 8px; border-radius: var(--radius-full); color: var(--text-secondary); } .annotations-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); } .annotation-item { padding: 14px 16px; background: var(--bg-primary); transition: background 0.15s; } .annotation-item:hover { background: var(--bg-hover); } .annotation-item-header { display: flex; align-items: center; margin-bottom: 8px; gap: 10px; } .annotation-item-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; } .annotation-item-meta { flex: 1; } .annotation-item-author { font-size: 12px; font-weight: 600; color: var(--text-primary); } .annotation-item-time { font-size: 11px; color: var(--text-tertiary); } .annotation-type-badge { font-size: 10px; padding: 3px 8px; border-radius: var(--radius-full); font-weight: 500; } .annotation-type-badge.highlight { background: var(--accent-subtle); color: var(--accent-text); } .annotation-item-quote { padding: 8px 12px; border-left: 2px solid var(--accent); margin-bottom: 8px; font-size: 12px; color: var(--text-secondary); font-style: italic; background: var(--accent-subtle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; } .annotation-item-text { font-size: 13px; line-height: 1.5; color: var(--text-primary); } .bookmarks-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); } .bookmark-item { padding: 14px 16px; background: var(--bg-primary); text-decoration: none; color: inherit; display: block; transition: background 0.15s; } .bookmark-item:hover { background: var(--bg-hover); } .bookmark-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); } .bookmark-url { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; text-align: center; color: var(--text-tertiary); } .empty-icon { margin-bottom: 12px; color: var(--text-tertiary); opacity: 0.4; } .empty-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; } .empty-hint { font-size: 12px; color: var(--text-tertiary); } .sidebar-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-primary); } .sidebar-link { font-size: 12px; color: var(--text-tertiary); text-decoration: none; } .sidebar-link:hover { color: var(--accent-text); } .settings-view { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-primary); z-index: 20; display: flex; flex-direction: column; padding: 16px; } .settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: var(--text-primary); } .settings-title { font-size: 18px; font-weight: 600; } .setting-item { margin-bottom: 20px; } .setting-item label { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; display: block; } .settings-input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-family: inherit; font-size: 13px; background: var(--bg-elevated); color: var(--text-primary); transition: border-color 0.15s; } .settings-input:focus { outline: none; border-color: var(--accent); } .setting-help { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; } .scroll-to-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 11px; color: var(--accent-text); background: var(--accent-subtle); border: none; border-radius: var(--radius-sm); cursor: pointer; margin-top: 8px; transition: all 0.15s; } .scroll-to-btn:hover { background: rgba(149, 122, 134, 0.25); } ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: var(--radius-full); } ::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); } .collection-selector { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-primary); z-index: 30; display: flex; flex-direction: column; padding: 16px; } .collection-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; } .collection-select-btn { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px; cursor: pointer; text-align: left; transition: all 0.15s; } .collection-select-btn:hover { border-color: var(--accent); background: var(--bg-hover); } .collection-select-btn:disabled { opacity: 0.6; cursor: not-allowed; } .annotation-item-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; } .toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-tertiary); transition: 0.2s; border-radius: 22px; } .toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: var(--text-tertiary); transition: 0.2s; border-radius: 50%; } .toggle-switch input:checked + .toggle-slider { background-color: var(--accent); } .toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); background-color: white; } .theme-toggle-group { display: flex; background: var(--bg-tertiary); padding: 3px; border-radius: var(--radius-md); gap: 2px; margin-top: 8px; } .theme-btn { flex: 1; padding: 6px; border: none; background: transparent; color: var(--text-tertiary); font-size: 12px; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s ease; } .theme-btn:hover { color: var(--text-secondary); } .theme-btn.active { background: var(--bg-primary); color: var(--text-primary); }