:root { --bg-main: #1e1e2e; --bg-card: #302d41; --accent-primary: #f28fad; --accent-secondary: #cba6f7; --text-primary: #d9e0ee; --text-muted: #988ba2; --border-subtle: rgba(203, 166, 247, 0.18); --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.45); --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem; --radius-md: 6px; --radius-lg: 10px; --radius-pill: 999px; } .bookmark-glyph { display: block; width: 0.9rem; height: 0.9rem; background: currentColor; mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzODQgNTEyJz48cGF0aCBkPSdNMCA0OEMwIDIxLjUgMjEuNSAwIDQ4IDBIMzM2YzI2LjUgMCA0OCAyMS41IDQ4IDQ4VjQ2NGMwIDE3LjctMTQuMyAzMi0zMiAzMi02LjEgMC0xMi4xLTEuNy0xNy4yLTVMMTkyIDM5OS42IDQ5LjIgNDkxQzQ0LjEgNDk0LjMgMzguMSA0OTYgMzIgNDk2Yy0xNy43IDAtMzItMTQuMy0zMi0zMlY0OHpNNDggNDhWNDM0LjdsMTI2LjgtODEuMmMxMC41LTYuNyAyMy45LTYuNyAzNC40IDBMMzM2IDQzNC43VjQ4SDQ4eicvPjwvc3ZnPg=="); mask-repeat: no-repeat; mask-position: center; mask-size: contain; } .bookmark-glyph.filled { color: var(--accent-secondary); mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzODQgNTEyJz48cGF0aCBkPSdNMCA0OFY0ODcuN0MwIDUwMS4xIDEwLjkgNTEyIDI0LjMgNTEyYzUgMCA5LjktMS41IDE0LTQuNEwxOTIgNDAxLjMgMzQ1LjcgNTA3LjZjNC4xIDIuOCA5IDQuNCAxNCA0LjQgMTMuNCAwIDI0LjMtMTAuOSAyNC4zLTI0LjNWNDhjMC0yNi41LTIxLjUtNDgtNDgtNDhINDhDMjEuNSAwIDAgMjEuNSAwIDQ4eicvPjwvc3ZnPg=="); } *, *::before, *::after { box-sizing: border-box; } html, body { height: 100%; } .note-fallback { min-height: 100%; display: grid; place-items: center; padding: 2rem; } .note-fallback section { width: min(680px, 100%); } .note-fallback h1 { margin: 0.25rem 0 0.75rem; font-size: clamp(2rem, 7vw, 4.5rem); } .note-fallback p { max-width: 55ch; color: var(--text-muted); } .note-fallback .note-kicker { color: var(--accent-secondary); font-weight: 700; } .note-fallback textarea { width: 100%; min-height: 220px; margin-top: 1.5rem; padding: 1rem; resize: vertical; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-primary); font: inherit; } .load-status { align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--accent-primary); border-radius: var(--radius-md); color: var(--text-primary); } .load-status:not([hidden]) { display: flex; } .load-status button { padding: 0.4rem 0.75rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); color: var(--text-primary); font: inherit; cursor: pointer; } body { margin: 0; background: var(--bg-main); color: var(--text-primary); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; } h1, h2, h3 { margin: 0; line-height: 1.2; } .btn { padding: 0.55rem 1.1rem; border: 1px solid transparent; border-radius: var(--radius-md); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; } .btn-primary { background: var(--accent-primary); color: var(--bg-main); } .btn-primary:hover { background: color-mix(in srgb, var(--accent-primary) 85%, white); } .banner-action { appearance: none; display: inline-flex; flex: none; align-items: center; gap: 0.45rem; min-height: 2.25rem; padding: 0.48rem 0.8rem; line-height: 1; white-space: nowrap; } .btn-ghost { background: transparent; border-color: var(--border-subtle); color: var(--text-primary); } .btn-ghost:hover { border-color: var(--accent-secondary); color: var(--accent-secondary); } .chat-panel .chat-users { max-height: 11rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.45rem var(--space-md); border-bottom: 1px solid var(--border-subtle); background: color-mix(in srgb, var(--bg-main) 55%, var(--bg-card)); } .chat-panel .chat-users button, .chat-panel .chat-message header button, .chat-panel .chat-reply, .chat-panel .chat-replying button { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; } .chat-panel .chat-users button { display: flex; justify-content: space-between; padding: 0.35rem 0.45rem; border-radius: var(--radius-md); text-align: left; } .chat-panel .chat-users button:hover { background: color-mix(in srgb, var(--accent-secondary) 10%, transparent); } .chat-panel .chat-users button:disabled, .chat-panel .chat-message header button:disabled { cursor: default; } .chat-panel .chat-users button:disabled { background: transparent; color: var(--text-muted); } .chat-panel .chat-users small { color: var(--accent-secondary); } .chat-panel .chat-message { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.55rem 0.65rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-main); } .chat-panel .chat-message.self { align-self: flex-end; background: color-mix(in srgb, var(--accent-secondary) 10%, var(--bg-main)); } .chat-panel .chat-message.mention { border-color: var(--accent-primary); box-shadow: inset 3px 0 0 var(--accent-primary); } .chat-panel .chat-message header, .chat-panel .chat-replying { display: flex; align-items: center; } .chat-panel .chat-message header { gap: 0.35rem; } .chat-panel .chat-message header button { padding: 0; color: var(--accent-secondary); font-size: 0.74rem; font-weight: 700; } .chat-panel .chat-message header button:hover, .chat-panel .chat-reply:hover, .chat-panel .chat-replying button:hover { color: var(--accent-secondary); } .chat-panel .chat-message time, .chat-panel .chat-role { color: var(--text-muted); font-size: 0.66rem; } .chat-panel .chat-message time { margin-left: auto; } .chat-panel .chat-role { padding: 0.05rem 0.25rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); } .chat-panel .chat-message p, .chat-panel .chat-system, .chat-panel .chat-empty { margin: 0; } .chat-panel .chat-message p { overflow-wrap: anywhere; white-space: pre-wrap; font-size: 0.82rem; } .chat-panel .chat-reply-reference { overflow: hidden; padding-left: 0.4rem; border-left: 2px solid var(--accent-secondary); color: var(--text-muted); font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; } .chat-panel .chat-reply { align-self: flex-start; padding: 0; color: var(--text-muted); font-size: 0.67rem; } .chat-panel .chat-system, .chat-panel .chat-empty { align-self: center; padding: 0.25rem 0.5rem; color: var(--text-muted); font-size: 0.72rem; text-align: center; } .chat-panel .chat-replying { flex: 1 0 100%; justify-content: space-between; color: var(--text-muted); font-size: 0.72rem; } .chat-panel .chat-replying button { color: var(--text-muted); font-size: inherit; } .chat-panel.full { left: 0; width: 100%; border-left: 0; } .chat-panel.full .chat-session, .chat-panel.full .chat-users, .chat-panel.full .chat-messages, .chat-panel.full .chat-typing, .chat-panel.full .chat-compose, .chat-panel.full .chat-error { width: min(960px, 100%); margin-right: auto; margin-left: auto; } .chat-panel.full .chat-join { width: min(520px, 100%); margin-right: auto; margin-left: auto; } .chat-panel.full .chat-message { max-width: min(74%, 680px); } .chat-notification { position: absolute; top: 4.5rem; right: var(--space-md); z-index: 75; width: min(360px, calc(100% - 2 * var(--space-md))); display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.8rem; border: 1px solid color-mix(in srgb, var(--accent-secondary) 55%, var(--border-subtle)); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-panel); cursor: pointer; animation: chat-notification-in 180ms ease-out both; } .shell[data-browser-position="bottom"] .chat-notification { top: var(--space-md); } .chat-notification-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; } .chat-notification-copy > span { display: flex; align-items: baseline; gap: 0.45rem; } .chat-notification-copy strong { overflow: hidden; color: var(--accent-secondary); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; } .chat-notification-copy small { flex: none; color: var(--text-muted); font-size: 0.68rem; } .chat-notification-copy p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--text-primary); font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; } .chat-notification > button { position: relative; flex: none; width: 1.55rem; height: 1.55rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; } .chat-notification > button:hover { background: color-mix(in srgb, var(--accent-secondary) 10%, transparent); color: var(--text-primary); } .chat-notification > button::before, .chat-notification > button::after { position: absolute; top: 50%; left: 50%; width: 0.7rem; height: 1px; content: ''; background: currentColor; } .chat-notification > button::before { transform: translate(-50%, -50%) rotate(45deg); } .chat-notification > button::after { transform: translate(-50%, -50%) rotate(-45deg); } @keyframes chat-notification-in { from { opacity: 0; transform: translateX(calc(100% + var(--space-lg))); } to { opacity: 1; transform: translateX(0); } } :focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 2px; } ::selection { background: var(--accent-primary); color: var(--bg-main); } ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg-main); } ::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: var(--radius-lg); } ::-webkit-scrollbar-thumb:hover { background: var(--accent-secondary); } @keyframes note-spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }