:root { /* Cryptic lab terminal: deep "blueprint" ink surfaces, monospace everything, restrained motion. Accent stays Fabric purple. */ --ink: #080a0d; --rail: #0b0e12; --side: #0f141b; --main: #0a0d12; --elevated: #11161d; --input: #0b0e12; --hover: rgba(168, 85, 247, 0.1); --active: rgba(168, 85, 247, 0.18); --text: #c7d0dc; --text-muted: #6f7d92; --text-faint: #4f5b6b; --text-h: #e9f0fa; --border: #1d2733; --accent: #a855f7; --accent-strong: #9333ea; --accent-soft: rgba(168, 85, 247, 0.16); --danger: #ff5a52; --online: #23a55a; --radius: 12px; --radius-sm: 8px; --display: 'Major Mono Display', ui-monospace, monospace; --sans: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace; --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace; color-scheme: dark; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } body { font: 15px/1.5 var(--sans); color: var(--text); background: var(--main); } #root { width: 100%; display: flex; flex-direction: column; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } h1, h2, h3, h4 { color: var(--text-h); font-weight: 600; margin: 0; } p { margin: 0; } button { font-family: inherit; } ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #00000050; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; } /* ---------- shared controls ---------- */ .input { width: 100%; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 12px; background: var(--input); color: var(--text-h); font-size: 14px; outline: none; transition: border-color 0.12s ease; } .input::placeholder { color: var(--text-faint); } .input:focus { border-color: var(--accent); } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 14px; font-weight: 600; color: #fff; background: var(--accent); cursor: pointer; transition: background 0.12s ease, opacity 0.12s ease, transform 0.05s ease; } .btn:hover { background: var(--accent-strong); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-secondary { background: #3a3d44; color: var(--text-h); } .btn-secondary:hover { background: #44474f; } .btn-xs { padding: 2px 8px; font-size: 11px; line-height: 1.4; white-space: nowrap; flex: 0 0 auto; } .btn-ghost { background: transparent; color: var(--text-muted); } .btn-ghost:hover { background: var(--hover); color: var(--text-h); } .btn-danger { background: var(--danger); } .btn-danger:hover { background: #d83a3d; } .muted { color: var(--text-muted); } .error-text { color: #f87171; } .list-reset { list-style: none; padding: 0; margin: 0; } /* ---------- login ---------- */ .login-screen { flex: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, rgba(168, 85, 247, 0.22), transparent 60%), var(--main); } .login-card { width: min(420px, 100%); background: var(--side); border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); } .brand-wordmark { font-family: var(--display); text-transform: lowercase; font-size: 30px; color: var(--accent); text-shadow: 0 0 32px rgba(168, 85, 247, 0.4); margin-bottom: 18px; } .brand-logo { max-height: 44px; width: auto; margin-bottom: 18px; } .login-or { text-align: center; color: var(--text-faint); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin: 14px 0; } .login-card h1 { font-size: 24px; margin-bottom: 4px; } .login-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; } .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; } .field label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); } .login-card .btn { width: 100%; margin-top: 4px; } /* ---------- chat shell ---------- */ .dc-shell { flex: 1; height: 100vh; display: flex; overflow: hidden; background: var(--main); } /* server rail */ .dc-rail { width: 72px; background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; } .dc-rail::-webkit-scrollbar { display: none; } .rail-btn { position: relative; width: 48px; height: 48px; border: none; border-radius: 24px; background: var(--side); color: var(--text-h); font-weight: 700; font-size: 15px; cursor: pointer; transition: border-radius 0.15s ease, background 0.15s ease; } .rail-btn:hover { border-radius: 16px; background: var(--accent); color: #fff; } .rail-btn.active { border-radius: 16px; background: var(--accent); color: #fff; } .rail-btn.active::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 4px; height: 28px; background: #fff; border-radius: 0 4px 4px 0; } .rail-add { background: transparent; color: var(--online); border: 1px solid var(--border); font-size: 22px; line-height: 1; } .rail-add:hover { background: var(--online); color: #fff; } .rail-sep { width: 32px; height: 1px; background: var(--border); flex: none; } /* channel sidebar */ .dc-sidebar { width: 248px; background: var(--side); display: flex; flex-direction: column; } .dc-sidebar-head { height: 50px; padding: 0 16px; display: flex; align-items: center; font-weight: 700; color: var(--text-h); border-bottom: 1px solid #00000040; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); } .dc-sidebar-scroll { flex: 1; overflow-y: auto; padding: 12px 8px; } .dc-section-label { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); } .dc-section-label button { border: none; background: transparent; color: var(--text-faint); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; } .dc-section-label button:hover { color: var(--text-h); } .chan-btn { --xt: #9aa0a6; position: relative; width: 100%; display: flex; align-items: center; gap: 6px; text-align: left; border: none; background: color-mix(in srgb, var(--xt) 9%, transparent); border-radius: var(--radius-sm); padding: 8px 10px 8px 14px; margin: 2px 0; color: color-mix(in srgb, var(--xt) 55%, var(--text)); font-size: 15px; cursor: pointer; } .chan-btn::before { content: ''; position: absolute; left: 3px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--xt); opacity: 0.7; } .chan-btn .hash { color: var(--xt); font-weight: 700; } .chan-btn .chan-tag { color: var(--xt); border-color: color-mix(in srgb, var(--xt) 60%, transparent); background: color-mix(in srgb, var(--xt) 14%, transparent); } .chan-btn:hover { background: color-mix(in srgb, var(--xt) 18%, transparent); color: var(--text-h); } .chan-btn.active { background: color-mix(in srgb, var(--xt) 26%, transparent); color: var(--text-h); } .chan-btn.active::before { opacity: 1; } /* per x_type accent */ .chan-btn.xt-general { --xt: #9aa0a6; } .chan-btn.xt-work { --xt: #5865f2; } .chan-btn.xt-report { --xt: #faa61a; } .chan-btn.xt-discuss { --xt: #3ba55d; } .chan-btn.xt-triage { --xt: #ed4245; } .chan-btn.xt-custom { --xt: #c084fc; } .chan-btn.xt-dm { --xt: #a855f7; } /* x-type group headers in the channel sidebar */ .dc-chan-group { margin-bottom: 6px; } .dc-group-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); padding: 8px 8px 4px; } .chan-tag { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; } .dc-empty { color: var(--text-faint); font-size: 13px; padding: 8px 10px; } /* user bar */ .dc-userbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--elevated); } .dc-userbar .who { flex: 1; min-width: 0; } .dc-userbar .who .nm { color: var(--text-h); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dc-userbar .who .sub { color: var(--text-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .icon-btn { width: 32px; height: 32px; border: none; border-radius: 7px; background: transparent; color: var(--text-muted); font-size: 15px; cursor: pointer; } .icon-btn:hover { background: var(--hover); color: var(--text-h); } /* avatar */ .avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #6d28d9); } .avatar.lg { width: 40px; height: 40px; font-size: 15px; } /* main column */ .dc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--main); } .dc-topbar { height: 50px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid #00000040; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); } .dc-topbar .title { font-weight: 700; color: var(--text-h); } .dc-topbar .hash { color: var(--text-faint); margin-right: 2px; } .dc-topbar .spacer { flex: 1; } .dc-messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 2px; } .msg { display: flex; gap: 12px; padding: 6px 8px; border-radius: 8px; } .msg:hover { background: rgba(0, 0, 0, 0.12); } .msg .body { min-width: 0; } .msg .meta { display: flex; align-items: baseline; gap: 8px; } .msg .author { font-weight: 600; color: var(--text-h); font-size: 14px; } .msg .time { font-size: 11px; color: var(--text-faint); } .msg .text { color: var(--text); word-break: break-word; } .msg.deleted .text { color: var(--text-faint); font-style: italic; } .md > *:first-child { margin-top: 0; } .md > *:last-child { margin-bottom: 0; } .md p { margin: 4px 0; } .md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 8px 0 4px; line-height: 1.25; } .md h1 { font-size: 20px; } .md h2 { font-size: 18px; } .md h3 { font-size: 16px; } .md ul, .md ol { margin: 4px 0; padding-left: 22px; } .md li { margin: 2px 0; } .md a { color: var(--accent); } .md code { font-family: var(--mono); font-size: 12.5px; background: var(--elevated); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; } .md pre { margin: 6px 0; padding: 10px 12px; background: var(--elevated); border: 1px solid var(--border); border-radius: 8px; overflow: auto; } .md pre code { border: 0; padding: 0; background: none; font-size: 12.5px; white-space: pre; } .md blockquote { margin: 6px 0; padding: 2px 12px; border-left: 3px solid var(--border); color: var(--text-muted); } .md del { color: var(--text-faint); } .mention { color: #c4b5fd; background: var(--accent-soft); border-radius: 4px; padding: 0 3px; font-weight: 600; white-space: nowrap; } .mention:hover { background: rgba(168, 85, 247, 0.28); } .meta-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; } .meta-badge.on { color: #fff; background: var(--online); border-color: var(--online); } .meta-raw { margin: 4px 0 0; padding: 6px 8px; background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-family: var(--mono); font-size: 11px; white-space: pre-wrap; word-break: break-all; } .dc-empty-center { margin: auto; text-align: center; color: var(--text-faint); } /* composer */ .dc-composer { flex: none; display: flex; gap: 10px; padding: 0 16px 20px; } .dc-composer .input { background: #303237; padding: 12px 14px; } .dc-composer .btn { flex: none; } .dc-closed-banner { flex: none; margin: 0 16px 20px; padding: 12px 14px; text-align: center; color: var(--text-muted); background: var(--elevated); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; } /* members */ .dc-members { width: 232px; background: var(--side); padding: 16px 8px; overflow-y: auto; } .dc-members .dc-section-label { cursor: default; } .member-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); } .member-row:hover { background: var(--hover); } .member-row .nm { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .member-row .you { color: var(--text-faint); font-size: 11px; margin-left: 4px; } .dot { position: relative; } .dot::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--online); border: 2px solid var(--side); } /* ---------- modal ---------- */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 50; padding: 20px; } .modal-card { width: min(460px, 100%); max-height: 84vh; overflow: auto; background: var(--side); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); } .modal-card h3 { font-size: 18px; margin-bottom: 14px; } .modal-list { display: flex; flex-direction: column; gap: 2px; margin: 10px 0; max-height: 240px; overflow: auto; } .check-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; } .check-row:hover { background: var(--hover); } .check-row input { accent-color: var(--accent); width: 16px; height: 16px; } .modal-actions { display: flex; gap: 10px; margin-top: 18px; } .modal-actions .btn { flex: 1; } /* ---- right-click context menu ---- */ .ctx-menu { position: fixed; z-index: 1000; background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); padding: 6px; display: flex; flex-direction: column; gap: 1px; user-select: none; } .ctx-menu .ctx-title { font-size: 11px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 8px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ctx-menu .ctx-sep { height: 1px; background: var(--border); margin: 4px 2px; } .ctx-menu .ctx-item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-size: 13px; padding: 7px 8px; border-radius: 5px; cursor: pointer; } .ctx-menu .ctx-item:hover { background: var(--accent-soft); color: var(--text-h); } .ctx-menu .ctx-item.danger { color: var(--danger); } .ctx-menu .ctx-item.danger:hover { background: rgba(242, 63, 66, 0.14); } .ctx-menu .ctx-item:disabled { color: var(--text-faint); cursor: not-allowed; background: none; } /* ---- canvas (pinned document) ---- */ .dc-canvas { border-bottom: 1px solid var(--border); background: var(--elevated); display: flex; flex-direction: column; max-height: 46vh; } .dc-canvas-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); } .dc-canvas-head .cv-title { font-weight: 600; color: var(--text-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; } .dc-canvas-head .cv-meta { font-size: 12px; color: var(--text-faint); white-space: nowrap; } .dc-canvas-head .spacer { flex: 1; } .dc-canvas-body { overflow: auto; padding: 14px 16px; } .dc-canvas-body .cv-frame { width: 100%; min-height: 320px; border: 0; background: #fff; border-radius: var(--radius-sm); } .dc-canvas-body .cv-text { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 13px; color: var(--text); } .dc-canvas-body .cv-md { font-size: 14px; } /* ---- message attachments ---- */ .attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .att-img { max-width: 320px; max-height: 240px; border-radius: var(--radius-sm); display: block; } .att-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--input); border: 1px solid var(--border); color: var(--text); font-size: 13px; padding: 6px 10px; border-radius: var(--radius-sm); text-decoration: none; } .att-chip:hover { border-color: var(--accent); } .pf-x { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; } .pf-x:hover { color: var(--danger); } /* ---- composer with attachments ---- */ .dc-composer-wrap { display: flex; flex-direction: column; border-top: 1px solid var(--border); } .pending-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; } .dc-composer-wrap .dc-composer { border-top: 0; } .attach-btn { cursor: pointer; display: inline-flex; align-items: center; } .attach-btn[aria-disabled='true'] { opacity: 0.4; pointer-events: none; } textarea.canvas-src { width: 100%; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.5; } .modal-card.modal-wide { max-width: 720px; width: 92vw; } /* ---- slash command autocomplete ---- */ .slash-panel { border: 1px solid var(--border); border-bottom: 0; background: var(--elevated); border-radius: var(--radius-sm) var(--radius-sm) 0 0; max-height: 320px; overflow: auto; padding: 6px; } .slash-panel .slash-hint { font-size: 11px; color: var(--text-faint); padding: 4px 8px 6px; text-transform: uppercase; letter-spacing: 0.04em; } .slash-item { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 7px 8px; border-radius: 5px; cursor: pointer; } .slash-item.sel, .slash-item:hover { background: var(--accent-soft); } .slash-item .sc-name { font-family: var(--mono); font-size: 13px; color: var(--text-h); white-space: nowrap; } .sc-desc { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .slash-arg { padding: 6px 8px; border-top: 1px solid var(--border); } .slash-arg .sa-name { font-family: var(--mono); font-size: 13px; color: var(--text-h); } .slash-arg .sa-req { color: var(--danger); margin-left: 1px; } .slash-arg .sa-type { font-size: 11px; color: var(--text-faint); margin: 0 8px; } .sa-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .sa-choice { font-size: 12px; background: var(--input); border: 1px solid var(--border); color: var(--text); padding: 3px 8px; border-radius: 999px; cursor: pointer; } .sa-choice:hover { border-color: var(--accent); color: var(--text-h); }