:root { --bg: #121418; --bg-soft: #181b21; --panel: #1d2129; --panel-2: #232834; --border: #31394a; --text: #e8edf3; --muted: #9aa7b8; --accent: #4da3ff; --accent-soft: rgba(77, 163, 255, 0.15); --danger: #ff6b6b; --ok: #2ecc71; --shadow: 0 8px 24px rgba(0, 0, 0, 0.35); --radius: 12px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font-family: var(--sans); background: linear-gradient(180deg, #101318 0%, var(--bg) 100%); color: var(--text); } input, button { font: inherit; border-radius: 8px; border: 1px solid var(--border); padding: 0.55rem 0.75rem; } input { background: #151922; color: var(--text); width: 100%; } input:focus, button:focus { outline: 2px solid rgba(77,163,255,0.35); outline-offset: 1px; border-color: var(--accent); } button { cursor: pointer; background: var(--accent); color: #08111d; border-color: var(--accent); font-weight: 600; } button:hover { filter: brightness(1.05); } .ghost-btn { background: transparent; color: var(--text); border-color: var(--border); } .ghost-btn:hover { background: var(--panel-2); } .topbar { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); background: rgba(20, 24, 31, 0.95); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; } .brand { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.2px; } .me { margin-left: auto; color: var(--muted); font-size: 0.9rem; } .topbar-actions { display: flex; gap: 0.5rem; align-items: center; } main { padding: 1rem; max-width: 1600px; margin: 0 auto; } .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); } .card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,0.2); } .login-panel { max-width: 440px; margin: 4rem auto; padding: 1.25rem; } .login-panel form { display: grid; gap: 0.75rem; } .login-panel label { display: grid; gap: 0.3rem; font-size: 0.95rem; color: var(--muted); } .login-panel h1 { margin-top: 0; margin-bottom: 0.25rem; } .chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1rem; min-height: calc(100vh - 8rem); } .sidebar { display: flex; flex-direction: column; gap: 1rem; min-width: 0; } .sidebar-section { padding: 0.9rem; } .sidebar-section h2, .chat-header h2 { margin: 0 0 0.65rem 0; font-size: 0.95rem; color: #dce6f2; } .inline-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; } .list { list-style: none; padding: 0; margin: 0.6rem 0 0 0; display: grid; gap: 0.35rem; } .list button { width: 100%; text-align: left; background: transparent; color: var(--text); border: 1px solid transparent; padding: 0.45rem 0.55rem; font-weight: 500; } .list button:hover, .list button.active { background: var(--accent-soft); border-color: rgba(77,163,255,0.3); color: #fff; } .chat-panel { display: grid; grid-template-rows: auto auto 1fr auto auto; min-height: 60vh; min-width: 0; } .tabs-bar { border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.08); border-radius: var(--radius) var(--radius) 0 0; overflow-x: auto; } .tabs { list-style: none; margin: 0; padding: 0.5rem 0.5rem 0; display: flex; gap: 0.35rem; min-width: max-content; } .tabs li { margin: 0; } .tabs button { background: #1a1f29; color: var(--muted); border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; padding: 0.5rem 0.75rem; font-weight: 500; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tabs button:hover { color: var(--text); background: #232a36; border-color: #4a5568; } .tabs button.active { color: var(--text); background: var(--panel); border: 2px solid var(--accent); border-bottom: 1px solid var(--panel); margin-bottom: -1px; font-weight: 600; } .chat-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; align-items: center; } .chat-header h2 { margin: 0; font-size: 1rem; } .messages { padding: 1rem; overflow: auto; display: flex; flex-direction: column; gap: 0.5rem; background: #171b22; } /* Classic AIM/IRC style */ .messages.style-classic .msg { max-width: 100%; padding: 0.1rem 0; background: transparent; border: none; align-self: flex-start; } .messages.style-classic .msg.me { align-self: flex-start; } .messages.style-classic .msg .meta { display: inline; margin-right: 0.4rem; color: var(--muted); font-size: 0.85rem; font-family: var(--mono); } .messages.style-classic .msg .body { display: inline; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 0.93rem; } .messages.style-classic .msg.me .meta { color: var(--muted); } .messages.style-classic .msg.me .body { color: var(--text); } /* Bubble style */ .messages.style-bubbles .msg { max-width: min(70ch, 85%); padding: 0.55rem 0.75rem; border-radius: 14px; background: #2a3140; border: 1px solid #364055; } .messages.style-bubbles .msg.me { align-self: flex-end; background: #1f4b7a; border-color: #2d639e; } .messages.style-bubbles .msg .meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.2rem; } .messages.style-bubbles .msg.me .meta { color: #bfdcff; } .messages.style-bubbles .msg .body { white-space: pre-wrap; word-break: break-word; } .message-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 0.75rem 1rem 0; border-top: 1px solid var(--border); } .muted { color: var(--muted); font-size: 0.9rem; } .error { color: var(--danger); min-height: 1.2em; margin: 0.5rem 1rem 0.75rem; font-size: 0.9rem; } .banner { margin: 0.75rem 1rem 0; padding: 0.6rem 0.75rem; background: #3a3118; border: 1px solid #6f5a1d; border-radius: 8px; color: #ffe8a3; } .hidden { display: none !important; } .invite { border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem; background: var(--panel-2); display: grid; gap: 0.35rem; } .invite .meta { font-size: 0.8rem; color: var(--muted); } .invite-actions { display: flex; gap: 0.5rem; } .invite-actions button { padding: 0.25rem 0.55rem; font-size: 0.85rem; } .toc-status { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 1rem; font-size: 0.85rem; color: var(--muted); } .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .dot-on { background: var(--ok); box-shadow: 0 0 0 2px rgba(46,204,113,0.2); } .dot-off { background: #e74c3c; box-shadow: 0 0 0 2px rgba(231,76,60,0.2); } .toc-label { font-size: 0.8rem; } @media (max-width: 980px) { .chat-layout { grid-template-columns: 1fr; } .sidebar { order: 2; } .chat-panel { min-height: 55vh; } }