:root { color-scheme: dark; --bg-color: #000000; --panel: #0b0b0b; --panel-solid: #101010; --panel-alt: #050505; --text-color: #f2f3f5; --accent: #1fb9aa; --accent-2: #58a6ff; --bubble-own: #12342f; --bubble-other: #171717; --dim: #9aa0a6; --line: #242424; --danger: #ff7373; --ok: #65e6a4; --warn: #f6c969; --info: #8ec7ff; --radius: 18px; --shadow: none; --font-ui: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace; } * { box-sizing: border-box; } body { margin: 0; background: #000; color: var(--text-color); font-family: var(--font-ui); font-size: 15px; line-height: 1.5; } a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--dim); } a:hover, button:hover { border-color: #333; background: #151515; color: var(--text-color); } code, pre, input, button { font: inherit; } .app-shell { height: 100vh; overflow: hidden; display: grid; grid-template-columns: 308px minmax(0, 1fr); } .sidebar { background: #050505; border-right: 1px solid var(--line); padding: 24px 20px; } .content { overflow-y: auto; padding: 24px; max-width: 1440px; width: 100%; } .brand-block h1, .dialog-header h2 { margin: 0; color: var(--accent); font-size: 1.5rem; letter-spacing: -0.04em; } .eyebrow, .section-title { color: var(--dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; } .muted { color: var(--dim); } .small { font-size: 0.82rem; } .nav-links, .jobs-list, .continuous-form { display: grid; gap: 10px; } .nav-links { margin: 28px 0; } .nav-link, .button, input, .content-tab, .viewer-channel-item { border: 1px solid var(--line); background: #101010; color: var(--text-color); border-radius: 999px; } .nav-link, .button, .content-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 13px; cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; } .nav-link.active, .button.primary, .content-tab.active { border-color: #0f6f67; color: #ffffff; background: #0f6f67; box-shadow: none; } .nav-link.active:hover, .button.primary:hover, .content-tab.active:hover { background: #128277; color: #ffffff; } .button.danger { color: var(--danger); } .button.button-small { min-height: 34px; padding: 6px 10px; font-size: 0.82rem; } .button:disabled { cursor: not-allowed; opacity: 0.45; } .status-card, .panel, .stat-panel, .job-card, .message-card, .settings-dialog { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); } .status-card, .panel, .job-card, .message-card { padding: 16px; } .status-card { margin-top: 16px; } .status-card .button { width: 100%; margin-top: 8px; } .status-card .button:first-of-type { margin-top: 0; } .status-badge { display: inline-flex; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ok); } .content-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .tab-panel { display: none; } .tab-panel.active { display: block; } .panel-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; } .settings-health-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .panel { margin-bottom: 16px; } .panel-header, .dialog-header, .job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .stat-value { margin-top: 8px; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.05em; } .stat-compact { font-size: 1.3rem; } .inline-form { display: flex; flex-wrap: wrap; gap: 8px; } .stack-form { display: grid; gap: 8px; margin-top: 12px; } .settings-layout { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr); gap: 16px; align-items: start; } .settings-layout .panel:last-child { grid-column: 1 / -1; } .settings-page-shell .content { max-width: 1280px; } .settings-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .settings-account-list { display: grid; gap: 8px; margin-top: 12px; } .settings-account-button { width: 100%; min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #101010; color: var(--text-color); padding: 10px 12px; cursor: pointer; } .settings-account-button.active { border-color: #0f6f67; background: #092522; } .settings-account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .settings-account-status { color: var(--warn); font-size: 0.78rem; } .settings-account-status.ok { color: var(--ok); } .settings-meta-list { display: grid; gap: 8px; margin-top: 16px; color: var(--dim); } input { min-width: 160px; padding: 10px 13px; outline: 0; border-radius: 14px; } input:focus { border-color: var(--accent); } .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .switch { position: relative; display: inline-flex; width: 48px; min-width: 48px; height: 26px; } .switch input { position: absolute; inset: 0; opacity: 0; min-width: 0; margin: 0; cursor: pointer; } .switch-slider { position: absolute; inset: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); border-radius: 999px; } .switch-slider::before { content: ''; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; background: var(--dim); border-radius: 50%; transition: transform 0.16s ease, background-color 0.16s ease; } .switch input:checked + .switch-slider { border-color: var(--accent); } .switch input:checked + .switch-slider::before { transform: translateX(22px); background: var(--accent); } .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); } tbody tr:hover { background: #111; } .action-row { display: flex; flex-wrap: wrap; gap: 8px; } .job-status { color: var(--dim); font-size: 0.82rem; text-transform: uppercase; } .job-logs { max-height: 220px; margin: 10px 0 0; overflow: auto; white-space: pre-wrap; color: var(--dim); } .continuous-meta { display: grid; gap: 4px; margin: 16px 0; color: var(--dim); font-size: 0.88rem; } .continuous-meta span { color: var(--text-color); } .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; } .checkbox-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #0f0f0f; } .checkbox-row input { min-width: auto; } .checkbox-row.disabled { opacity: 0.45; } .log-viewer { display: grid; max-height: 420px; overflow: auto; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); border-radius: 16px; } .log-line { display: grid; grid-template-columns: 86px 112px 74px minmax(0, 1fr); gap: 10px; padding: 5px 9px; border-bottom: 1px solid #151515; font-size: 0.88rem; } .log-line:hover { background: #111; } .log-time, .log-age, .log-level { color: var(--dim); } .log-message { white-space: pre-wrap; overflow-wrap: anywhere; } .log-line.info .log-level, .log-line.info .log-message { color: var(--info); } .log-line.success .log-level, .log-line.success .log-message { color: var(--ok); } .log-line.warn .log-level, .log-line.warn .log-message { color: var(--warn); } .log-line.error .log-level, .log-line.error .log-message { color: var(--danger); } .settings-dialog { width: min(720px, calc(100vw - 32px)); color: var(--text-color); padding: 0; } .settings-dialog::backdrop { background: rgba(0, 0, 0, 0.72); } .dialog-shell { padding: 18px; } .settings-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); } .qr-wrap { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; } .qr-wrap img { display: block; width: 100%; max-width: 240px; aspect-ratio: 1; margin: 0 auto 10px; background: white; } .hidden { display: none !important; } /* ---------- Viewer layout: sidebar + chat ---------- */ .viewer-shell { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: 100vh; overflow: hidden; } .viewer-sidebar { background: #050505; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; } .sidebar-toggle { display: none; } .viewer-sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 6px 8px; } .viewer-sidebar-head h1 { margin: 0; color: var(--accent); font-size: 1.45rem; letter-spacing: -0.04em; } .viewer-channel-list { display: grid; gap: 2px; } .viewer-channel-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 8px 10px; text-align: left; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--text-color); border-radius: 12px; } .viewer-channel-item.active { border-color: transparent; background: #12342f; box-shadow: none; } .viewer-channel-item:hover { background: #111; } .viewer-channel-avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #5f6b70; color: white; font-weight: 700; letter-spacing: -0.03em; } .viewer-channel-copy { display: grid; gap: 3px; min-width: 0; } .viewer-channel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; } .viewer-channel-name { color: var(--text-color); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .viewer-channel-time, .viewer-channel-preview { color: var(--dim); font-size: 0.82rem; } .viewer-channel-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .viewer-channel-count { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: #12342f; color: var(--accent); font-size: 0.76rem; text-align: center; } /* ---------- Main panel ---------- */ .viewer-main { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.025) 1px, transparent 1.5px), radial-gradient(circle at 58px 54px, rgba(255, 255, 255, 0.018) 1px, transparent 1.5px), #000; background-size: auto, 84px 84px, 84px 84px, auto; } .viewer-header { flex-shrink: 0; padding: 16px 24px; border-bottom: 1px solid var(--line); background: #050505; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .viewer-header h2 { margin: 0; color: var(--accent); font-size: 1.45rem; letter-spacing: -0.04em; } .viewer-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; } .viewer-tools input[type='search'] { min-width: min(260px, 40vw); } .viewer-auto-refresh { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--dim); font-size: 0.82rem; } .viewer-auto-refresh input { min-width: auto; } .messages-list { flex: 1; overflow-y: auto; padding: 18px 34px 22px; display: flex; flex-direction: column; } .scroll-sentinel { flex-shrink: 0; height: 1px; width: 100%; } /* ---------- Date separator ---------- */ .chat-date-sep { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; font-size: 0.78rem; color: #d6e6e8; flex-shrink: 0; } .chat-date-sep::before, .chat-date-sep::after { content: ''; flex: 1; height: 1px; background: #242424; } .chat-date-sep { align-self: center; padding: 5px 12px; border-radius: 999px; background: #111; } .chat-date-sep:empty { display: none; } /* ---------- Bubble wrap ---------- */ .chat-bubble-wrap { display: flex; justify-content: flex-start; flex-shrink: 0; } .chat-bubble-wrap--own { justify-content: flex-end; } /* ---------- Chat bubble ---------- */ .chat-bubble { max-width: min(680px, 74%); padding: 8px 12px 7px; background: var(--bubble-other); border: 1px solid #242424; border-radius: 18px 18px 18px 6px; margin-bottom: 6px; overflow-wrap: anywhere; word-break: break-word; position: relative; box-shadow: none; } .chat-bubble::before { content: ''; position: absolute; top: 8px; border: 6px solid transparent; } .chat-bubble-wrap:not(.chat-bubble-wrap--own) .chat-bubble::before { left: -12px; border-right-color: var(--bubble-other); border-left: 0; } .chat-bubble-wrap--own .chat-bubble::before { right: -12px; border-left-color: var(--bubble-own); border-right: 0; } .chat-bubble-wrap--own .chat-bubble { background: var(--bubble-own); border-color: #1f5b52; border-radius: 18px 18px 6px 18px; } .chat-bubble--highlight { animation: chat-highlight 0.5s ease-in-out 3; } @keyframes chat-highlight { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 180, 248, 0); } 50% { box-shadow: 0 0 0 3px rgba(139, 180, 248, 0.4); } } /* ---------- Sender ---------- */ .chat-sender { font-size: 0.82rem; color: var(--accent); font-weight: 700; margin-bottom: 2px; } .chat-sender:empty { display: none; } /* ---------- Reply preview ---------- */ .chat-reply { display: flex; gap: 6px; margin-bottom: 4px; padding: 6px 8px; cursor: pointer; border-radius: 10px; background: rgba(0, 0, 0, 0.18); } .chat-reply.hidden { display: none; } .chat-reply-border { flex-shrink: 0; width: 2px; background: var(--accent); border-radius: 999px; opacity: 0.5; } .chat-reply-body { min-width: 0; } .chat-reply-author { font-size: 0.78rem; color: var(--info); font-weight: 700; } .chat-reply-text { font-size: 0.82rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ---------- Message text ---------- */ .chat-text { white-space: pre-wrap; line-height: 1.45; font-size: 0.96rem; } .chat-text:empty { display: none; } /* ---------- Media ---------- */ .chat-media { margin-top: 6px; } .chat-media:empty { display: none; } .chat-media img, .chat-media video { display: block; max-width: 100%; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; } /* ---------- Footer ---------- */ .chat-footer { margin-top: 4px; font-size: 0.72rem; color: var(--dim); text-align: right; } .chat-footer:empty { display: none; } .empty-state, .viewer-empty-state { padding: 16px; color: var(--dim); border: 1px solid var(--line); border-radius: 14px; background: #0a0a0a; } .viewer-empty-state { align-self: center; margin-top: 16px; } .toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 1000; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); } .toast { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #111; color: var(--text-color); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36); transition: opacity 0.2s ease, transform 0.2s ease; } .toast-success { border-color: #1f5b52; } .toast-error { border-color: #7a2a2a; color: #ffd4d4; } .toast-hide { opacity: 0; transform: translateY(8px); } .api-docs { display: grid; gap: 16px; } .api-path { margin: 0 0 12px; color: var(--accent); font-size: 1rem; overflow-wrap: anywhere; } .api-methods { display: grid; gap: 12px; } .api-method { border-top: 1px solid var(--line); padding-top: 12px; } .api-method:first-child { border-top: 0; padding-top: 0; } .api-method-head { display: flex; align-items: center; gap: 10px; } .api-verb { min-width: 58px; padding: 2px 6px; border: 1px solid var(--line); color: var(--ok); text-align: center; } .api-summary { font-weight: 700; } .api-body { max-height: none; } @media (max-width: 1100px) { .app-shell, .viewer-shell { grid-template-columns: 1fr; } .app-shell { grid-template-rows: auto 1fr; } .sidebar, .viewer-sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .panel-grid { grid-template-columns: 1fr; } } /* ── Account Tabs ─────────────────────────────────────── */ .account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); } .account-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #101010; color: var(--text-color); cursor: pointer; font: inherit; font-size: 0.88rem; } .account-tab.active { border-color: #0f6f67; color: #ffffff; background: #0f6f67; } .account-tab .account-tab-status { font-size: 0.72rem; opacity: 0.7; } .account-tab .account-tab-status.ok { color: var(--ok); } .account-tab .account-tab-status.errored { color: var(--danger); } /* ── Account Panels ──────────────────────────────────── */ .account-panel { display: block; } .account-panel.hidden { display: none; } /* ── Settings: Account List ──────────────────────────── */ .accounts-list { display: grid; gap: 8px; margin-bottom: 12px; } .account-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #0f0f0f; } .account-list-info { display: grid; gap: 2px; min-width: 0; } .account-list-label { font-weight: 700; } .account-list-id { font-size: 0.82rem; } .account-list-auth-status { font-size: 0.78rem; } .account-list-actions { display: flex; gap: 6px; flex-shrink: 0; } .add-account-form { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #0f0f0f; } .import-account-row { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #0f0f0f; } /* ── Active Account Card ─────────────────────────────── */ #active-account-name { word-break: break-all; } #active-account-status { margin-top: 6px; } /* ---------- Mobile: tablet & phone ---------- */ @media (max-width: 768px) { .sidebar-toggle { display: inline-flex; } .viewer-sidebar { position: fixed; left: -360px; top: 0; bottom: 0; width: 340px; z-index: 100; transition: left 0.2s ease; border-right: 1px solid var(--line); border-bottom: 0; } .viewer-sidebar.open { left: 0; } .viewer-sidebar.open::before { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: -1; } .viewer-header { padding: 12px 14px; } .messages-list { padding: 8px 12px 16px; } .chat-bubble { max-width: 92%; } .chat-bubble::before { display: none; } .content { padding: 18px; } .viewer-sidebar-head h1 { font-size: 1.2rem; } } @media (max-width: 480px) { .content { padding: 12px; } .viewer-main { padding: 0; } .viewer-header { padding: 10px 10px; } .viewer-header h2 { font-size: 1.1rem; } .messages-list { padding: 6px 8px 12px; } .chat-bubble { max-width: 96%; padding: 6px 9px; font-size: 0.92rem; } .chat-footer { font-size: 0.65rem; } .chat-sender { font-size: 0.75rem; } .chat-reply-author { font-size: 0.72rem; } .chat-reply-text { font-size: 0.75rem; } .sidebar { padding: 16px; } .viewer-sidebar { width: 300px; padding: 16px; } .panel-header, .viewer-header, .dialog-header { display: grid; } .inline-form, .inline-form input, .inline-form .button { width: 100%; } .log-line { grid-template-columns: 76px 1fr; } .log-age, .log-level { display: none; } }