: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, textarea { font: inherit; border-radius: 8px; border: 1px solid var(--border); padding: 0.55rem 0.75rem; } input, textarea { background: #151922; color: var(--text); width: 100%; } textarea { resize: vertical; min-height: 2.4rem; max-height: 10rem; } input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance: textfield; appearance: textfield; } input:focus, button:focus, textarea: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: 620px; margin: 3rem auto; padding: 1.25rem; } .login-panel form { display: grid; gap: 0.75rem; } .login-panel label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); } .login-panel h1 { margin: 0 0 0.2rem 0; font-size: 1.4rem; } .login-hint { margin: 0 0 1rem 0; font-size: 0.9rem; } .login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; } .login-grid-server { grid-template-columns: minmax(0, 1fr) 110px 90px; } .login-grid-captcha { grid-template-columns: 1fr auto; align-items: end; } .captcha-label { min-width: 0; } .captcha-q { color: var(--text); font-weight: 600; margin-left: 0.35rem; font-family: var(--mono); font-size: 0.9rem; } .login-submit { min-width: 120px; height: 2.5rem; } .login-submit[disabled] { opacity: 0.8; cursor: wait; } .spinner { display: inline-block; width: 0.95em; height: 0.95em; border: 2px solid rgba(255,255,255,0.35); border-top-color: currentColor; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -0.15em; margin-right: 0.45em; } @keyframes spin { to { transform: rotate(360deg); } } @media (max-width: 560px) { .login-grid, .login-grid-server, .login-grid-captcha { grid-template-columns: 1fr; } .login-submit { width: 100%; } } .chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1rem; height: calc(100vh - 8rem); min-height: 500px; } .sidebar { display: flex; flex-direction: column; gap: 1rem; min-width: 0; overflow-y: auto; padding-right: 0.2rem; } .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 minmax(0, 1fr) auto auto; min-height: 0; min-width: 0; overflow: hidden; } .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; overflow-y: hidden; } .tabs { list-style: none; margin: 0; padding: 0.5rem 0.5rem 0; display: flex; gap: 0.35rem; min-width: max-content; } .tabs li.tab { margin: 0; display: inline-flex; align-items: stretch; background: #1a1f29; border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; max-width: 260px; } .tabs li.tab:hover { background: #232a36; border-color: #4a5568; } .tabs li.tab.active { background: var(--panel); border: 2px solid var(--accent); border-bottom: 1px solid var(--panel); margin-bottom: -1px; } .tabs .tab-label, .tabs .tab-close { background: transparent; color: var(--muted); border: 0; border-radius: 0; padding: 0.45rem 0.6rem; font-weight: 500; } .tabs .tab-label { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 0.2rem; } .tabs .tab-close { padding-left: 0.25rem; padding-right: 0.55rem; color: #8090a5; font-size: 1rem; line-height: 1; } .tabs .tab-close:hover { color: #ff8b8b; background: rgba(255,107,107,0.08); } .tabs li.tab.active .tab-label { color: var(--text); font-weight: 600; } .tabs li.tab:hover .tab-label { color: var(--text); } .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-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 0.5rem; background: #171b22; scrollbar-width: thin; scrollbar-color: #4a5568 #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; height: auto; min-height: 0; } .sidebar { order: 2; overflow: visible; } .chat-panel { min-height: 55vh; height: 70vh; } } #invitesCard.invite-attention { animation: invite-pulse 2.4s ease-in-out infinite; border-color: rgba(255, 209, 102, 0.7); } @keyframes invite-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(255, 209, 102, 0); border-color: rgba(255, 209, 102, 0.35); } 50% { box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12), 0 0 18px rgba(255, 209, 102, 0.18); border-color: rgba(255, 209, 102, 0.9); } } .buddy-item { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; background: rgba(255,255,255,0.02); color: var(--text); border: 1px solid var(--border); padding: 0.45rem 0.55rem; } .buddy-item:hover { background: var(--accent-soft); border-color: rgba(77,163,255,0.3); } .status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; } .status-online { background: #2ecc71; box-shadow: 0 0 0 2px rgba(46,204,113,0.15); } .status-away { background: #f1c40f; box-shadow: 0 0 0 2px rgba(241,196,15,0.15); } .status-offline { background: #e74c3c; box-shadow: 0 0 0 2px rgba(231,76,60,0.15); } .buddy-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }