/* === палитра тёмной темы (согласована с Android, см. ../THEMES.md) === */ :root { --bg: #121218; --panel: #17212B; --panel2: #1C2733; --line: #232B36; --fg: #EBEBEB; --dim: #768C9E; --accent: #6AB2F2; --badge: #5EB5F7; --err: #EC3942; --ok: #63C88A; --user-bubble: #2B5278; --bot-bubble: #1C2733; --a1: #6AB2F2; --a2: #86C99A; --a3: #C9A886; --a4: #B79AE0; --a5: #E28C8C; --on-accent: #0F1922; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; background: #0A0A0F; color: var(--fg); line-height: 1.45; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 18px; } .win { width: 1240px; height: 760px; background: var(--bg); border-radius: 14px; overflow: hidden; border: 1px solid #2A3340; display: flex; box-shadow: 0 28px 90px rgba(0,0,0,.7); } .cap { position: absolute; margin-top: -22px; font-size: 12px; color: var(--dim); } @media (max-height: 820px) { body { padding: 8px; } .win { transform: scale(.78); } } @media (max-height: 700px) { .win { transform: scale(.66); } } @media (max-height: 600px) { .win { transform: scale(.56); } } /* === средняя колонка: список диалогов === */ .list { width: 296px; flex: 0 0 296px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; } .l-head { padding: 14px 16px 10px; display: flex; align-items: center; gap: 8px; } .l-head h1 { font-size: 15.5px; font-weight: 650; letter-spacing: .2px; } .chips { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; } .chip { padding: 6px 11px; border-radius: 16px; font-size: 12px; color: var(--dim); background: transparent; white-space: nowrap; border: 1px solid transparent; } .chip:hover { background: var(--panel2); } .chip.on { color: var(--fg); border-color: var(--accent); background: rgba(106,178,242,.13); } .chip b { color: var(--badge); font-weight: 700; margin-left: 3px; } .chip-act { margin-left: auto; flex: 0 0 auto; padding: 6px 9px; border-radius: 11px; background: transparent; color: var(--dim); font-size: 13px; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; } .chip-act:hover { color: var(--fg); background: var(--panel2); } .chip-act svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .q { margin: 0 14px 10px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--dim); font-size: 12.5px; display: flex; align-items: center; gap: 8px; padding: 0 12px; } .rows { flex: 1; overflow-y: auto; padding: 0 8px 12px; } .row { display: flex; gap: 11px; padding: 9px 10px; border-radius: 12px; cursor: pointer; position: relative; } .row:hover { background: var(--panel2); } .row.on { background: #233040; } .row .strip { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--a1); border-radius: 3px; } .row .ava { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--on-accent); } .row .mid { flex: 1; min-width: 0; } .row .l1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .row .l1 .n { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row .l1 .t { font-size: 10.5px; color: var(--dim); flex: 0 0 auto; } .row .l2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 2px; } .row .l2 .p { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bd { background: var(--badge); color: var(--on-accent); border-radius: 11px; font-size: 10.5px; font-weight: 700; padding: 1px 6px; flex: 0 0 auto; } /* === основная зона чата === */ .main { flex: 1; display: flex; flex-direction: column; min-width: 0; } .m-head { height: 60px; flex: 0 0 60px; display: flex; align-items: center; gap: 11px; padding: 0 22px; border-bottom: 1px solid var(--line); } .m-head .ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--on-accent); } .m-head .hd .t1 { font-size: 14.5px; font-weight: 600; } .m-head .hd .t2 { font-size: 11.5px; color: var(--dim); } .m-head .hd .t2.ok { color: var(--ok); } .m-head .hd .t2.bad { color: var(--err); } .m-head .ghost { margin-left: auto; display: flex; gap: 6px; } .m-head .ghost button { background: transparent; border: 1px solid var(--line); color: var(--dim); border-radius: 8px; padding: 5px 11px; font-size: 11.5px; cursor: pointer; } .m-head .ghost button:hover { color: var(--fg); border-color: var(--dim); } .thread { flex: 1; overflow-y: auto; padding: 20px 26px; display: flex; flex-direction: column; gap: 11px; } .b { max-width: 76%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; } .b.u { align-self: flex-end; background: var(--user-bubble); border-bottom-right-radius: 5px; } .b.a { align-self: flex-start; background: var(--bot-bubble); border-bottom-left-radius: 5px; } .b b { font-weight: 650; } .b code { background: rgba(255,255,255,.08); border-radius: 4px; padding: 1px 5px; font-size: 12px; font-family: "DejaVu Sans Mono", monospace; } .b .tm { font-size: 10.5px; color: var(--dim); margin-top: 5px; } .cur { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: -2px; margin-left: 2px; } /* ход работы агента — компактная раскрывающаяся строка */ .act-line { align-self: flex-start; display: flex; align-items: center; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 12.5px; color: var(--dim); max-width: 78%; } .act-line .g { color: var(--accent); } .act-line .nm { color: var(--fg); } .act-line .ch { margin-left: auto; font-size: 11px; } /* === композер: voice-first — микрофон главный === */ .composer { border-top: 1px solid var(--line); background: var(--panel); padding: 14px 22px 14px; } .rec-panel { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--err); border-radius: 13px; padding: 4px 6px 4px 13px; height: 46px; } .wave { display: flex; align-items: center; gap: 3px; height: 28px; flex: 1; min-width: 0; } .wave i { width: 3px; background: var(--err); border-radius: 2px; } .wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 70%; } .wave i:nth-child(3) { height: 45%; } .wave i:nth-child(4) { height: 100%; } .wave i:nth-child(5) { height: 55%; } .wave i:nth-child(6) { height: 80%; } .wave i:nth-child(7) { height: 35%; } .wave i:nth-child(8) { height: 65%; } .wave i:nth-child(9) { height: 25%; } .rec-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--err); font-weight: 700; flex: 0 0 auto; } .rec-btn { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: transparent; border: none; color: var(--dim); font-size: 14px; display: grid; place-items: center; cursor: pointer; } .rec-btn:hover { color: var(--fg); background: var(--panel2); } .rec-btn.rec-send { background: var(--accent); color: var(--on-accent); font-size: 15px; } .rec-btn.rec-send:hover { background: #82BEF5; } .composer-row { display: flex; align-items: center; gap: 10px; } .composer-input { flex: 1; min-width: 0; height: 46px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; font-size: 13.5px; color: var(--dim); } .composer-input.focus { border-color: var(--accent); } .mic { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); color: var(--accent); font-size: 19px; display: grid; place-items: center; cursor: pointer; } .mic:hover { background: rgba(106,178,242,.13); } .mic.rec { background: var(--err); border-color: var(--err); color: #fff; } .send { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; border: none; background: var(--accent); color: var(--on-accent); font-size: 17px; display: grid; place-items: center; cursor: pointer; } .send.off { background: var(--panel2); color: var(--dim); cursor: default; } .rec-note { font-size: 11px; color: var(--dim); margin-top: 7px; text-align: center; } /* стрим: вместо поля — широкая красная кнопка «Стоп» */ .stop-wide { height: 50px; border-radius: 13px; border: 1px solid rgba(236,57,66,.45); background: rgba(236,57,66,.10); color: #F0A6AA; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; } /* === пустое состояние === */ .empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 34px; gap: 14px; } .empty .big { width: 78px; height: 78px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 32px; color: var(--dim); } .empty h3 { font-size: 17px; font-weight: 600; } .empty p { font-size: 13px; color: var(--dim); line-height: 1.55; max-width: 340px; } .btn { border-radius: 12px; padding: 11px 18px; font-size: 13.5px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--fg); font-family: inherit; } .btn.prim { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 650; } /* === модалка нового диалога === */ .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 22px; } .modal { width: 480px; max-height: 84%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; } .modal h2 { font-size: 16px; font-weight: 650; padding: 16px 20px 4px; } .modal .sub { font-size: 12.5px; color: var(--dim); padding: 0 20px 12px; } .modal .body { flex: 1; overflow-y: auto; padding: 4px 12px 8px; } .agent { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; } .agent:hover { background: var(--panel2); } .agent.on { border-color: var(--accent); background: rgba(106,178,242,.07); } .agent .sign { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--on-accent); } .agent .mid { flex: 1; min-width: 0; } .agent .nm { font-size: 14px; font-weight: 550; } .agent .ad { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .agent .ok { color: var(--ok); font-size: 11.5px; } .agent .bad { color: var(--err); font-size: 11.5px; } .agent .radio { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; border: 2px solid var(--line); } .agent.on .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 6px, transparent 7px); } .modal .foot { padding: 12px 16px 16px; display: flex; gap: 10px; border-top: 1px solid var(--line); } .modal .foot .btn:first-child { flex: 1; } .modal .warn { margin: 0 14px 10px; padding: 10px 12px; border-radius: 11px; background: rgba(236,57,66,.09); border: 1px solid rgba(236,57,66,.32); font-size: 12px; color: #F0A6AA; } /* === модалка управления группами === */ .modal.groups { width: 540px; } .modal.groups h2 { display: flex; align-items: center; gap: 10px; padding: 14px 20px 6px; } .modal.groups h2 .x { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--dim); cursor: pointer; font-size: 16px; } .modal.groups h2 .x:hover { background: var(--panel2); color: var(--fg); } .modal.groups .body { padding: 6px 14px 10px; } .grp { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; background: var(--panel2); margin-bottom: 8px; border: 1px solid transparent; } .grp:hover { border-color: var(--line); } .grp .mid { flex: 1; min-width: 0; } .grp .nm { font-size: 14px; font-weight: 550; } .grp .sub { font-size: 11.5px; color: var(--dim); margin-top: 2px; } .grp .acts { display: flex; gap: 4px; } .grp.sys { background: transparent; border: 1px dashed var(--line); } .grp .lock { font-size: 11px; color: var(--dim); } .mini-ic { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--dim); cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; } .mini-ic svg, .card-acts svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .mini-ic.del svg, .card-acts.del svg { fill: currentColor; stroke: none; } .mini-ic:hover { background: var(--panel); color: var(--fg); } .mini-ic.del:hover { color: var(--err); } .modal .info { display: flex; gap: 9px; align-items: flex-start; margin: 4px 14px 12px; padding: 10px 13px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 11.5px; color: var(--dim); line-height: 1.5; } .modal .danger-zone { margin: 14px 14px 0; padding-top: 14px; border-top: 1px solid var(--line); } .modal .danger-zone .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 8px; } .modal .form-field { margin: 0 14px 14px; } .modal .form-field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; } .modal .form-field input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 13.5px; outline: none; font-family: inherit; } .modal .form-field input:focus { border-color: var(--accent); } .modal .form-field .note { font-size: 11px; color: var(--dim); margin-top: 6px; line-height: 1.5; } .btn.dang { color: var(--err); border-color: rgba(236,57,66,.4); } .btn.dang:hover { border-color: var(--err); background: rgba(236,57,66,.09); } .btn.dang.solid { background: var(--err); border-color: var(--err); color: #FFF; font-weight: 650; } /* === теги диалогов в группе + кнопка «добавить диалог» === */ .modal .tags { margin: 0 14px 12px; } .modal .tags .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 9px; } .modal .tags .empty { font-size: 12px; color: var(--dim); padding: 9px 12px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; } .modal .tags-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; } .chat-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; } .chat-tag .ava-sm { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--on-accent); } .chat-tag .nm { font-size: 12.5px; } .chat-tag .x { width: 18px; height: 18px; border-radius: 50%; border: none; background: transparent; color: var(--dim); cursor: pointer; font-size: 10px; display: grid; place-items: center; } .chat-tag .x:hover { color: var(--err); background: rgba(236,57,66,.12); } .add-chat-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; width: 100%; cursor: pointer; font-size: 13px; font-family: inherit; background: transparent; color: var(--dim); border: 1px dashed var(--line); border-radius: 10px; } .add-chat-btn:hover { color: var(--fg); border-color: var(--dim); } /* === модалка выбора диалога для группы === */ .modal.pick { width: 460px; } .modal.pick .q { margin: 4px 14px 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 13px; outline: none; font-family: inherit; } .modal.pick .q:focus { border-color: var(--accent); } .modal.pick .q::placeholder { color: var(--dim); } .modal.pick .body { padding: 0 8px 8px; max-height: 360px; } .pick-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; } .pick-row:hover { background: var(--panel2); } .pick-row.in { opacity: .42; cursor: default; } .pick-row .ava-sm { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-accent); } .pick-row .mid { flex: 1; min-width: 0; } .pick-row .nm { font-size: 13.5px; } .pick-row .ad { font-size: 11.5px; color: var(--dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pick-row .check { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; font-size: 11px; } .pick-row .check.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } /* === 004 · окно агентов (список + форма + поповер проверки) === */ .dialog { width: 620px; min-width: 620px; flex: 0 0 auto; max-height: 620px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 26px 80px rgba(0,0,0,.7); } .dialog.small { width: 480px; min-width: 480px; max-height: 420px; } .d-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); } .d-head h2 { font-size: 16px; font-weight: 600; flex: 1; } .x-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--dim); cursor: pointer; font-size: 17px; } .x-btn:hover { background: var(--panel2); color: var(--fg); } .d-body { flex: 1; overflow-y: auto; padding: 14px 18px 6px; } .d-foot { padding: 13px 18px 16px; border-top: 1px solid var(--line); display: flex; gap: 9px; } .agent-card { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; background: var(--panel2); margin-bottom: 9px; border: 1px solid transparent; } .agent-card:hover { border-color: var(--line); } .ag-mid { flex: 1; min-width: 0; } .ag-name { font-size: 14px; font-weight: 550; } .ag-desc { font-size: 11.5px; color: var(--fg); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; } .ag-addr { font-size: 11.5px; color: var(--dim); font-family: ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; } .state { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ok); flex: 0 0 auto; } .state .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); } .state.off { color: var(--dim); } .state.off .d { background: var(--dim); } .state.err { color: var(--err); } .state.err .d { background: var(--err); } .card-acts { display: flex; gap: 4px; flex: 0 0 auto; } .note code, .hint-line code { background: var(--panel2); padding: 1px 4px; border-radius: 4px; font-size: 10.5px; } .addr-row { display: flex; gap: 8px; } .addr-row input { flex: 1; } .appearance-tabs { display: flex; gap: 6px; margin-bottom: 11px; } .appearance-tabs .tab { padding: 6px 13px; border-radius: 9px; font-size: 12.5px; color: var(--dim); background: var(--panel2); cursor: pointer; border: 1px solid transparent; } .appearance-tabs .tab.on { color: var(--fg); border-color: var(--accent); background: rgba(106,178,242,.12); } .pane { display: none; } .pane.on { display: block; } .colors { display: flex; gap: 9px; } .swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; } .swatch.on { border-color: var(--fg); } .pic-row { display: flex; align-items: center; gap: 13px; } .pic-preview { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 54px; background: var(--bg); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--dim); font-size: 20px; overflow: hidden; } .pic-preview.filled { border-style: solid; } .pic-preview img { width: 100%; height: 100%; object-fit: cover; display: block; } .pic-actions { display: flex; gap: 8px; flex-wrap: wrap; } .btn.sm { padding: 8px 13px; font-size: 12.5px; } .btn.wide { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border-style: dashed; color: var(--dim); } .btn.wide:hover { color: var(--fg); border-color: var(--dim); } .hint-line { font-size: 11.5px; color: var(--dim); margin: 2px 0 16px; padding: 9px 11px; background: var(--bg); border-radius: 9px; border: 1px solid var(--line); line-height: 1.5; } /* поповер проверки связи */ .layer { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 250; } .spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: sp .7s linear infinite; flex: 0 0 17px; } @keyframes sp { to { transform: rotate(360deg); } } .probe-head { display: flex; align-items: center; gap: 13px; padding: 4px 0 14px; } .probe-head .big { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; flex: 0 0 40px; } .probe-head.ok .big { background: rgba(99,200,138,.15); color: var(--ok); } .probe-head.err .big { background: rgba(236,57,66,.15); color: var(--err); } .probe-head.busy .big { background: transparent; padding: 0; } .probe-head .txt { flex: 1; min-width: 0; } .probe-head .ttl { font-size: 14px; font-weight: 600; } .probe-head .sub { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .probe-list { font-size: 12px; } .probe-list div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); } .probe-list div:last-child { border-bottom: none; } .probe-list span { color: var(--dim); } .probe-list b { font-weight: 550; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; } /* === окно клиента .window + сайдбар .sidebar (вариант sidebar-utility) === */ .window { width: 1180px; height: 740px; background: var(--bg); border-radius: 12px; display: flex; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.6); } .sidebar { width: 320px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; flex: 0 0 320px; } .sb-head { padding: 14px 16px 10px; } .sb-title { font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; } .icon-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--dim); cursor: pointer; display: grid; place-items: center; font-size: 17px; } .icon-btn svg { width: 18px; height: 18px; fill: currentColor; } .icon-btn:hover { background: var(--panel2); color: var(--fg); } .hi-btn { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; } .search { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 13px; outline: none; font-family: inherit; } .search:focus { border-color: var(--accent); } .search::placeholder { color: var(--dim); } /* лента папок (sidebar-utility) */ .folders { display: flex; gap: 6px; padding: 6px 16px 10px; overflow-x: auto; } .folder { padding: 5px 11px; border-radius: 14px; font-size: 12px; color: var(--dim); background: var(--panel2); cursor: pointer; white-space: nowrap; border: 1px solid transparent; } .folder.active { color: var(--fg); border-color: var(--accent); background: rgba(106,178,242,.12); } .folder .cnt { color: var(--badge); font-weight: 600; margin-left: 4px; } .folder.act { margin-left: auto; background: transparent; color: var(--dim); display: grid; place-items: center; padding: 5px 9px; font-size: 13px; } .folder.act svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .folder.act:hover { color: var(--fg); background: var(--panel2); } .chat-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; } .chat-row { display: flex; gap: 11px; padding: 9px 10px; border-radius: 10px; cursor: pointer; align-items: flex-start; } .chat-row:hover { background: var(--panel2); } .chat-row.active { background: #233040; } .chat-mid { flex: 1; min-width: 0; } .chat-name { font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; } .chat-time { font-size: 11px; color: var(--dim); font-weight: 400; flex: 0 0 auto; } .chat-prev { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; } .badge { background: var(--badge); color: #0F1922; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 6px; min-width: 19px; text-align: center; } .row-tail { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: 0 0 auto; } /* правая часть .main — заголовок чата */ .chat-head { height: 58px; flex: 0 0 58px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; padding: 0 16px; } .chat-head .avatar { width: 36px; height: 36px; flex: 0 0 36px; font-size: 13px; } .head-meta { flex: 1; } .head-name { font-size: 14.5px; font-weight: 600; } .head-sub { font-size: 11.5px; color: var(--dim); } .head-sub .dot { color: var(--ok); } .back-btn { display: none; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; border: none; background: transparent; color: var(--fg); cursor: pointer; font-size: 17px; place-items: center; } .back-btn:hover { background: var(--panel); } /* сообщения */ .messages { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 12px; } .msg { max-width: 74%; padding: 9px 13px; border-radius: 13px; font-size: 13.5px; } .msg.user { align-self: flex-end; background: var(--user-bubble); border-bottom-right-radius: 4px; } .msg.bot { align-self: flex-start; background: var(--bot-bubble); border-bottom-left-radius: 4px; } .msg .meta { font-size: 10.5px; color: var(--dim); margin-top: 5px; } .think { align-self: flex-start; max-width: 80%; border-left: 2px solid var(--accent); background: rgba(106,178,242,.07); padding: 8px 12px; border-radius: 0 10px 10px 0; font-size: 12.5px; color: var(--dim); } .think b { color: var(--accent); font-weight: 600; } .think .rest { display: none; } .tool { align-self: flex-start; max-width: 80%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; display: flex; align-items: center; gap: 9px; } .tool .gear { color: var(--accent); } .tool code { color: var(--dim); font-size: 11.5px; } /* композер */ .composer { border-top: 1px solid var(--line); padding: 12px 16px 14px; background: var(--panel); } .attach-strip { display: flex; gap: 8px; margin-bottom: 9px; } .attach-strip:empty { display: none; } .composer .chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 11.5px; color: var(--dim); display: flex; align-items: center; gap: 7px; } .composer .chip .x { cursor: pointer; color: var(--err); font-weight: 700; } .input-row { display: flex; align-items: flex-end; gap: 9px; } .input-wrap { flex: 1; display: flex; align-items: flex-end; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; gap: 9px; } .input-wrap:focus-within { border-color: var(--accent); } .input-wrap textarea { flex: 1; background: transparent; border: none; outline: none; resize: none; color: var(--fg); font-family: inherit; font-size: 13.5px; line-height: 1.45; max-height: 120px; height: 22px; } .input-wrap textarea::placeholder { color: var(--dim); } .rec-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--dim); cursor: pointer; display: grid; place-items: center; font-size: 17px; flex: 0 0 40px; transition: all .18s; } .rec-btn:hover { color: var(--fg); border-color: var(--dim); } .rec-btn.recording { background: var(--err); border-color: var(--err); color: #fff; animation: pulse 1.4s infinite; } @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(236,57,66,.55); } 50% { box-shadow: 0 0 0 9px rgba(236,57,66,0); } } .send-btn { height: 40px; padding: 0 18px; border-radius: 11px; border: none; background: var(--accent); color: #0F1922; font-size: 13px; font-weight: 600; cursor: pointer; } .send-btn:disabled { background: var(--panel2); color: var(--dim); cursor: default; } .hint { font-size: 11px; color: var(--dim); margin-top: 8px; display: flex; justify-content: space-between; } kbd { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 10.5px; } /* запись — полоса над полем */ .rec-panel { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; background: var(--bg); border: 1px solid var(--err); border-radius: 11px; padding: 9px 13px; } .wave { display: flex; align-items: center; gap: 3px; height: 22px; flex: 1; } .wave i { width: 3px; background: var(--err); border-radius: 2px; height: 30%; animation: wv .9s infinite ease-in-out; } .wave i:nth-child(2n) { animation-delay: .12s; } .wave i:nth-child(3n) { animation-delay: .24s; } .wave i:nth-child(4n) { animation-delay: .36s; } @keyframes wv { 0%,100% { height: 22%; } 50% { height: 100%; } } .rec-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--err); font-weight: 600; } .rec-actions { display: flex; gap: 8px; } .mini { border: 1px solid var(--line); background: var(--panel2); color: var(--fg); border-radius: 8px; padding: 5px 11px; font-size: 12px; cursor: pointer; } .mini.ok { background: var(--accent); border-color: var(--accent); color: #0F1922; font-weight: 600; } .mini.cancel { color: var(--err); } .asr-note { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); margin-bottom: 8px; padding-left: 2px; } .asr-note .live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); } /* === чекбокс (используется в новом диалоге и в параметрах диалога) === */ .checkbox-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; background: var(--panel2); margin-bottom: 9px; cursor: pointer; user-select: none; } .checkbox-row:hover { background: #202C38; } .checkbox-row .box { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 5px; border: 1.5px solid var(--line); background: var(--bg); display: grid; place-items: center; position: relative; } .checkbox-row.on .box { background: var(--accent); border-color: var(--accent); } .checkbox-row.on .box::after { content: ""; position: absolute; left: 5px; top: 2px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(42deg); } .checkbox-row .mid { flex: 1; min-width: 0; } .checkbox-row .lbl { font-size: 13px; color: var(--fg); } .checkbox-row .desc { font-size: 11.5px; color: var(--dim); margin-top: 2px; line-height: 1.45; } .checkbox-row.off { cursor: default; } .checkbox-row.off:hover { background: var(--panel2); } .checkbox-row.off .lbl { color: var(--dim); } .checkbox-row.off .box { opacity: .55; } /* === 005 · выбор ассистента (agent-opt) === */ .d-lead { font-size: 12.5px; color: var(--dim); margin-bottom: 12px; } .agent-opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; background: var(--panel2); margin-bottom: 9px; cursor: pointer; border: 1.5px solid transparent; } .agent-opt:hover { border-color: #33414F; } .agent-opt.on { border-color: var(--accent); background: rgba(106,178,242,.10); } .agent-opt .pick { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 2px solid #3D4A58; } .agent-opt.on .pick { border-color: var(--accent); background: var(--accent); position: relative; } .agent-opt.on .pick::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #0F1922; border-width: 0 2px 2px 0; transform: rotate(42deg); } .agent-opt .ag-state { font-size: 11px; display: flex; align-items: center; gap: 5px; margin-top: 4px; } .agent-opt .ag-state .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); } .agent-opt .ag-state.ok { color: var(--ok); } .agent-opt .ag-state.off { color: var(--dim); } .agent-opt .ag-state.off .d { background: var(--dim); } .agent-opt .ag-state.err { color: var(--err); } .agent-opt .ag-state.err .d { background: var(--err); } /* === 006 · формы групп (approved-вариант) === */ .d-lead { font-size: 12.5px; color: var(--dim); margin-bottom: 12px; } .warn { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 15px; padding: 11px 13px; border-radius: 10px; background: rgba(236,57,66,.09); border: 1px solid rgba(236,57,66,.32); font-size: 12px; color: #F0A6AA; line-height: 1.5; } .warn .i { flex: 0 0 auto; font-size: 13px; } .info { display: flex; gap: 9px; align-items: flex-start; margin-top: 4px; padding: 11px 13px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 11.5px; color: var(--dim); line-height: 1.5; } .danger-zone { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); } .danger-zone .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 9px; } .btn.dang { color: var(--err); border-color: rgba(236,57,66,.4); } .btn.dang:hover { border-color: var(--err); background: rgba(236,57,66,.09); } .btn.dang.solid { background: var(--err); border-color: var(--err); color: #FFF; font-weight: 650; } .btn.wide { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border-style: dashed; color: var(--dim); } .btn.wide:hover { color: var(--fg); border-color: var(--dim); } .grp { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; background: var(--panel2); margin-bottom: 9px; border: 1px solid transparent; } .grp:hover { border-color: var(--line); } .grp .mid { flex: 1; min-width: 0; } .grp .nm { font-size: 14px; font-weight: 550; } .grp .sub { font-size: 11.5px; color: var(--dim); margin-top: 3px; } .grp .acts { display: flex; gap: 4px; flex: 0 0 auto; } .grp.sys { background: transparent; border: 1px dashed var(--line); } .grp.sys .nm { color: var(--fg); } .grp .lock { font-size: 11px; color: var(--dim); flex: 0 0 auto; } .field { margin-bottom: 14px; } .field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; } .field input { width: 100%; padding: 6px 0; background: transparent; color: var(--fg); font-size: 14px; outline: none; font-family: inherit; border: 0; border-bottom: 1px solid var(--line); transition: border-color .12s ease; } .field input::placeholder { color: var(--dim); opacity: .55; } .field input:focus { border-bottom-color: var(--accent); border-bottom-width: 2px; } .field input.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; } .field .note { font-size: 11px; color: var(--dim); margin-top: 6px; line-height: 1.5; }