:root { color-scheme: dark; --bg-color: #05070d; --panel: #0c111d; --panel-solid: #111827; --panel-alt: #080b13; --text-color: #f4f7fb; --accent: #355fc7; --accent-hover: #426fdd; --accent-soft: #111d3c; --accent-line: #284aa0; --accent-2: #7aa5ff; --bubble-own: #132552; --bubble-other: #141923; --dim: #a4adbd; --line: #232b3a; --danger: #ff7373; --ok: #65e6a4; --warn: #f6c969; --info: #8ec7ff; --radius: 22px; --shadow: 0 18px 48px rgba(0, 0, 0, 0.28); --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: radial-gradient(circle at 16% -10%, rgba(53, 95, 199, 0.26), transparent 34rem), radial-gradient(circle at 95% 18%, rgba(122, 165, 255, 0.1), transparent 28rem), var(--bg-color); 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: #354158; background: #151d2c; color: var(--text-color); } code, pre, input, button { font: inherit; } .app-shell { height: 100vh; overflow: hidden; display: grid; grid-template-columns: 360px minmax(0, 1fr); } .sidebar { background: linear-gradient(180deg, rgba(17, 29, 60, 0.72), rgba(8, 11, 19, 0.94) 42%), var(--panel-alt); border-right: 1px solid var(--line); padding: 30px 24px; overflow-y: auto; } .content { overflow-y: auto; padding: 32px; max-width: 1440px; width: 100%; } .brand-block { padding: 0 2px; } .brand-block h1, .dialog-header h2 { margin: 0; color: var(--accent); font-size: 1.65rem; letter-spacing: -0.04em; } .brand-block .muted { margin: 22px 0 0; max-width: 26ch; font-size: 1.03rem; line-height: 1.62; } .eyebrow, .section-title { color: var(--dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; } .muted { color: var(--dim); } .small { font-size: 0.82rem; } .nav-links, .jobs-list, .continuous-form { display: grid; gap: 10px; } .nav-links { margin: 34px 0; } .nav-link, .button, input, .content-tab, .viewer-channel-item { border: 1px solid var(--line); background: rgba(17, 24, 39, 0.74); 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: 10px 18px; cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; } .nav-link { min-height: 52px; font-size: 1rem; } .nav-link.active, .button.primary, .content-tab.active { border-color: var(--accent-line); color: #ffffff; background: linear-gradient(135deg, var(--accent), #27498f); box-shadow: 0 14px 32px rgba(53, 95, 199, 0.28); } .nav-link.active:hover, .button.primary:hover, .content-tab.active:hover { background: linear-gradient(135deg, var(--accent-hover), #3159ad); 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: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(12, 17, 29, 0.96)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); } .status-card, .panel, .job-card, .message-card { padding: 22px; } .status-card { margin-top: 20px; } .status-card .button { width: 100%; margin-top: 10px; } .status-card .button:first-of-type { margin-top: 0; } .status-badge { display: inline-flex; margin-top: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ok); background: rgba(101, 230, 164, 0.06); } .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: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; } .settings-health-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .panel { margin-bottom: 18px; } .panel-header, .dialog-header, .job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .stat-value { margin-top: 10px; 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: 18px; 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: 10px; margin-top: 14px; } .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: 16px; background: rgba(17, 24, 39, 0.78); color: var(--text-color); padding: 12px 14px; cursor: pointer; } .settings-account-button.active { border-color: var(--accent-line); background: var(--accent-soft); } .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: 11px 14px; outline: 0; border-radius: 16px; } input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53, 95, 199, 0.18); } .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); background: var(--accent-soft); } .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: rgba(53, 95, 199, 0.08); } .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: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 24, 39, 0.68); } .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: rgba(53, 95, 199, 0.08); } .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(3, 6, 13, 0.78); } .dialog-shell { padding: 24px; } .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: linear-gradient(180deg, rgba(17, 29, 60, 0.72), rgba(8, 11, 19, 0.94) 42%), var(--panel-alt); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; 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.55rem; letter-spacing: -0.04em; } .viewer-channel-list { display: grid; gap: 6px; } .viewer-channel-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 10px 12px; text-align: left; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--text-color); border-radius: 16px; } .viewer-channel-item.active { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 12px 28px rgba(53, 95, 199, 0.18); } .viewer-channel-item:hover { background: rgba(53, 95, 199, 0.12); } .viewer-channel-avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #456fd5, #243d84); 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: rgba(53, 95, 199, 0.22); color: var(--accent-2); 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 18% -12%, rgba(53, 95, 199, 0.18), transparent 32rem), 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), var(--bg-color); background-size: auto, 84px 84px, 84px 84px, auto; } .viewer-header { flex-shrink: 0; padding: 18px 26px; border-bottom: 1px solid var(--line); background: rgba(8, 11, 19, 0.94); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .viewer-header h2 { margin: 0; color: var(--accent); font-size: 1.55rem; 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: 22px 38px 26px; 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: rgba(17, 24, 39, 0.88); } .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: 9px 13px 8px; background: var(--bubble-other); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; margin-bottom: 7px; 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: var(--accent-line); 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: rgba(12, 17, 29, 0.86); } .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: var(--panel-solid); 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: var(--accent-line); } .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: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); } .account-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(17, 24, 39, 0.72); color: var(--text-color); cursor: pointer; font: inherit; font-size: 0.88rem; } .account-tab.active { border-color: var(--accent-line); color: #ffffff; background: linear-gradient(135deg, var(--accent), #27498f); box-shadow: 0 12px 26px rgba(53, 95, 199, 0.22); } .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: 10px; margin-bottom: 14px; } .account-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 24, 39, 0.68); } .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: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17, 24, 39, 0.68); } .import-account-row { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17, 24, 39, 0.68); } /* ── 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; } }