/* ── cnats · message-bus console ───────────────────────────────────────── dark phosphor terminal: deep green-black ground, mint signal, amber id. type: Archivo (UI voice) + IBM Plex Mono (wire voice). */ :root { --ink-0: #060a09; --ink-1: #0b1210; --ink-2: #101a17; --ink-3: #16241f; --line: #1e332c; --line-hot: #2c4a3f; --text: #d7e6df; --text-dim: #7d968c; --text-faint: #4d6159; --signal: #4ef0b1; --signal-dim: #2a8f6c; --amber: #ffb454; --alarm: #ff6b6b; --mono: "IBM Plex Mono", ui-monospace, monospace; --sans: "Archivo", system-ui, sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; } body { font-family: var(--sans); background: var(--ink-0); color: var(--text); overflow: hidden; } /* phosphor atmosphere: faint scanlines + vignette over everything */ body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px), radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.45)); } ::selection { background: var(--signal); color: var(--ink-0); } /* ── gate (login / 404 / loading) ──────────────────────────────────────── */ .gate { height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(78, 240, 177, 0.07), transparent 70%), linear-gradient(var(--ink-0), var(--ink-1)); } .gate-loading { font-family: var(--mono); color: var(--signal-dim); animation: blink 1.1s steps(2) infinite; } .gate-card { width: min(30rem, 100%); border: 1px solid var(--line); background: linear-gradient(160deg, var(--ink-2), var(--ink-1) 60%); padding: 3rem 2.75rem 2.5rem; position: relative; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); animation: rise 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both; } /* corner ticks, oscilloscope style */ .gate-card::before, .gate-card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--signal); } .gate-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; } .gate-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; } .gate-badge { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.28em; color: var(--signal-dim); margin-bottom: 1.5rem; } .gate-title { font-size: clamp(3.2rem, 9vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; } .gate-title-accent { color: var(--signal); } .gate-sub { margin: 1.1rem 0 2rem; color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; max-width: 24rem; } .gate-btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--ink-0); background: var(--signal); text-decoration: none; padding: 0.85rem 1.4rem; border: 1px solid var(--signal); transition: background 120ms, color 120ms, box-shadow 120ms; } .gate-btn:hover { background: transparent; color: var(--signal); box-shadow: 0 0 24px rgba(78, 240, 177, 0.25), inset 0 0 12px rgba(78, 240, 177, 0.08); } .gate-btn-glyph { font-size: 1.05rem; } .gate-meta { display: flex; gap: 1.6rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); } .gate-meta dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem; } .gate-meta dd code { font-family: var(--mono); font-size: 0.75rem; color: var(--amber); } /* ── console layout ────────────────────────────────────────────────────── */ .console { display: grid; grid-template-columns: 17rem 1fr; height: 100vh; } /* rail */ .rail { background: var(--ink-1); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.5rem 0 1rem; min-height: 0; } .wordmark { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; padding: 0 1.4rem 1.4rem; border-bottom: 1px solid var(--line); } .wordmark-accent { color: var(--signal); } .wordmark-sub { display: block; font-family: var(--mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.22em; color: var(--text-faint); margin-top: 0.35rem; text-transform: uppercase; } .rail-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--text-faint); padding: 1.4rem 1.4rem 0.6rem; } .rooms { display: flex; flex-direction: column; gap: 2px; padding: 0 0.7rem; } .room-link { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.6rem 0.7rem; text-decoration: none; border-left: 2px solid transparent; transition: background 100ms, border-color 100ms; } .room-link:hover { background: var(--ink-2); } .room-link.active { background: var(--ink-3); border-left-color: var(--signal); } .room-hash { font-family: var(--mono); color: var(--text-faint); font-size: 0.8rem; } .room-link.active .room-hash { color: var(--signal); } .room-text { display: flex; flex-direction: column; gap: 0.15rem; } .room-name { font-family: var(--mono); font-weight: 600; font-size: 0.88rem; color: var(--text); } .room-link.active .room-name { color: var(--signal); } .room-desc { font-size: 0.72rem; color: var(--text-faint); } .rail-foot { margin-top: auto; padding: 1rem 1.4rem 0.4rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.8rem; } .user-chip { display: flex; align-items: center; gap: 0.7rem; min-width: 0; flex: 1; } .user-avatar { width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; color: var(--ink-0); background: var(--amber); border-radius: 2px; } .user-names { display: flex; flex-direction: column; min-width: 0; } .user-display { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .user-handle { font-family: var(--mono); font-size: 0.68rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .logout { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--text-faint); text-decoration: none; border: 1px solid var(--line); padding: 0.4rem 0.55rem; transition: color 120ms, border-color 120ms; } .logout:hover { color: var(--alarm); border-color: var(--alarm); } /* deck */ .deck { display: flex; flex-direction: column; min-width: 0; min-height: 0; } .topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.6rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-1), transparent); } .topbar-room { display: flex; align-items: baseline; gap: 1rem; } .topbar-room h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; } .subject-code { font-family: var(--mono); font-size: 0.72rem; color: var(--signal-dim); border: 1px solid var(--line); padding: 0.2rem 0.5rem; background: var(--ink-1); } .topbar-status { display: flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--text-faint); } .led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); transition: background 200ms; } .topbar-status.live .led { background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: pulse 2.2s ease-in-out infinite; } .topbar-status.live .status-text { color: var(--signal); } .topbar-status.offline .led { background: var(--alarm); box-shadow: 0 0 8px var(--alarm); } .topbar-status.offline .status-text { color: var(--alarm); } /* stream */ .stream { flex: 1; overflow-y: auto; padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.15rem; scrollbar-width: thin; scrollbar-color: var(--line-hot) transparent; } .stream-empty { margin: auto; text-align: center; color: var(--text-faint); } .empty-glyph { font-family: var(--mono); font-size: 1.6rem; color: var(--signal-dim); display: block; margin-bottom: 0.8rem; } .stream-empty p { font-size: 0.85rem; } .msg { display: grid; grid-template-columns: 4.6rem 9rem 1fr; gap: 1rem; align-items: baseline; padding: 0.42rem 0.6rem; border-left: 2px solid transparent; animation: msg-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1) both; } .msg:hover { background: var(--ink-1); } .msg.mine { border-left-color: var(--amber); } .msg-time { font-family: var(--mono); font-size: 0.68rem; color: var(--text-faint); } .msg-user { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--signal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .msg.mine .msg-user { color: var(--amber); } .msg-text { font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; } /* composer */ .composer { display: flex; align-items: center; gap: 0.9rem; margin: 0 1.6rem 1.4rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border: 1px solid var(--line-hot); background: var(--ink-1); transition: border-color 120ms, box-shadow 120ms; } .composer:focus-within { border-color: var(--signal-dim); box-shadow: 0 0 0 1px var(--signal-dim), 0 0 30px rgba(78, 240, 177, 0.08); } .composer-prompt { font-family: var(--mono); color: var(--signal); animation: blink 1.4s steps(2) infinite; } .composer-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 0.9rem; padding: 0.6rem 0; } .composer-input::placeholder { color: var(--text-faint); } .composer-send { font-family: var(--mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-0); background: var(--signal); border: none; padding: 0.7rem 1.1rem; cursor: pointer; transition: filter 120ms; } .composer-send:hover { filter: brightness(1.15); } .composer-send:disabled { filter: grayscale(0.6) brightness(0.7); cursor: wait; } /* motion */ @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } } @keyframes msg-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } } @keyframes blink { 50% { opacity: 0.15; } } @keyframes pulse { 50% { box-shadow: 0 0 14px var(--signal); } } @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } } /* small screens: collapse the rail into a top strip */ @media (max-width: 760px) { .console { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .rail { flex-direction: row; align-items: center; overflow-x: auto; padding: 0.6rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); } .wordmark { border: 0; padding: 0 1rem 0 0; font-size: 1.1rem; } .wordmark-sub, .rail-label, .room-desc, .rail-foot { display: none; } .rooms { flex-direction: row; padding: 0; } .room-link { border-left: 0; border-bottom: 2px solid transparent; } .room-link.active { border-bottom-color: var(--signal); } .msg { grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .msg-time { grid-row: 1; order: 2; justify-self: end; } .msg-text { grid-column: 1 / -1; } }