:root { /* rendering optimizations */ color-scheme: light dark; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; /* sizes */ --avatar-size: 48px; /* light theme */ --bg-primary: #f5f0f8; --bg-secondary: #e8dff0; --text-primary: #2d1b3d; --text-secondary: #6b5573; --text-muted: rgba(45, 27, 61, 0.5); --border: #d4c5de; --accent: #e6613c; --accent-hover: #e49424; --error: #c0392b; } [data-theme="lighter"] { /* lighter theme */ --bg-primary: #fdf8fc; --bg-secondary: #f5ecf3; --text-primary: #1a1a2e; --text-secondary: #4a5568; --text-muted: rgba(26, 26, 46, 0.5); --border: #e5dfe8; --accent: #5c64ff; --accent-hover: #5295ff; --error: #e63946; } @media (prefers-color-scheme: dark) { :root { /* dark theme */ --bg-primary: #2a1f3d; --bg-secondary: #3d2f54; --text-primary: #f5e6ff; --text-secondary: #d4b5e0; --text-muted: rgba(245, 230, 255, 0.6); --border: #4a3a5f; --accent: #fcbb6c; --accent-hover: #ff8a7a; --error: #e74c3c; } } [data-theme="darker"] { /* darker theme */ --bg-primary: #1a0f24; --bg-secondary: #2d1b3d; --text-primary: #fef5f0; --text-secondary: #e8b5a0; --text-muted: rgba(254, 245, 240, 0.6); --border: #3d2750; --accent: #fcbb6c; --accent-hover: #ff8a7a; --error: #e74c3c; } #login-container { max-width: 400px; margin: 2rem auto; padding: 2rem; } #handle-input { width: 100%; padding: 0.5rem; margin-bottom: 1rem; } #login-error { color: var(--error); margin-top: 1rem; } a { font-weight: 500; color: var(--accent); text-decoration: inherit; } a:hover { color: var(--accent-hover); } body { background: var(--bg-primary); color: var(--text-primary); margin: 0; display: flex; min-height: 100vh; font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; } h1 { font-size: 3.2em; line-height: 1.1; } #app { max-width: 1280px; margin: 0 auto; padding: 2rem; } .note { display: flex; gap: 10px; background: var(--bg-secondary); border: 2px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; } .note-avatar { width: var(--avatar-size); height: var(--avatar-size); flex-shrink: 0; } .note-content { flex: 1; } .note-text { white-space: pre-wrap; } .muted { color: var(--text-muted); font-size: 12px; } .spinner { border: 8px solid #f3f3f3; border-top: 8px solid var(--accent); border-radius: 50%; width: 64px; height: 64px; animation: spin 2s linear infinite; margin: 20px auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }