| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| .cg-chat {
|
| display: flex;
|
| flex-direction: column;
|
| height: 100%;
|
| min-height: 0;
|
| |
| |
|
|
| min-width: 280px;
|
| max-width: 420px;
|
| flex: 0 0 340px;
|
| background: var(--lp-surface, #ffffff);
|
| border-left: 1px solid var(--lp-border, #e4e7ec);
|
| }
|
|
|
| |
| |
|
|
| @media (max-width: 1024px) {
|
| .cg-chat { flex: 1 1 auto; max-width: none; border-left: 0; }
|
| }
|
|
|
| .cg-chat-head {
|
| display: flex;
|
| align-items: center;
|
| gap: 8px;
|
| padding: 10px 12px;
|
| border-bottom: 1px solid var(--lp-border, #e4e7ec);
|
| background: var(--lp-surface, #ffffff);
|
| }
|
|
|
| .cg-chat-title {
|
| font: 600 var(--lp-fs-xs)/1.4 Inter, system-ui, sans-serif;
|
| color: var(--lp-text, #1d2939);
|
| |
|
|
| overflow: hidden;
|
| text-overflow: ellipsis;
|
| white-space: nowrap;
|
| flex: 1 1 auto;
|
| min-width: 0;
|
| }
|
|
|
| .cg-chat-close {
|
| display: inline-flex;
|
| align-items: center;
|
| justify-content: center;
|
| width: 24px;
|
| height: 24px;
|
| border: 0;
|
| border-radius: 6px;
|
| background: transparent;
|
| color: var(--lp-text-muted, #667085);
|
| cursor: pointer;
|
| }
|
| .cg-chat-close:hover { background: var(--lp-surface-sunken, #f2f4f7); color: var(--lp-text, #1d2939); }
|
|
|
|
|
|
|
| .cg-chat-log {
|
| display: flex;
|
| flex-direction: column;
|
| gap: 10px;
|
| flex: 1 1 auto;
|
| min-height: 0;
|
| overflow-y: auto;
|
| padding: 14px 12px;
|
| }
|
|
|
| .cg-chat-turn { display: flex; flex-direction: column; gap: 6px; }
|
|
|
| .cg-chat-msg {
|
| max-width: 92%;
|
| padding: 8px 10px;
|
| border-radius: 10px;
|
| font: 400 var(--lp-fs-xs)/1.55 Inter, system-ui, sans-serif;
|
| white-space: pre-wrap;
|
| |
|
|
| overflow-wrap: anywhere;
|
| }
|
|
|
| .cg-chat-msg.is-you {
|
| align-self: flex-end;
|
| background: var(--lp-navy, #1f4e78);
|
| color: #ffffff;
|
| }
|
| .cg-chat-msg.is-assistant {
|
| align-self: flex-start;
|
| background: var(--lp-surface-sunken, #f2f4f7);
|
| color: var(--lp-text, #1d2939);
|
| }
|
| |
|
|
| .cg-chat-msg.is-note {
|
| align-self: center;
|
| max-width: 100%;
|
| background: transparent;
|
| color: var(--lp-text-muted, #667085);
|
| font-size: var(--lp-fs-2xs, 11px);
|
| text-align: center;
|
| padding: 2px 4px;
|
| }
|
| |
|
|
| .cg-chat-msg.is-error {
|
| align-self: flex-start;
|
| background: #fef3f2;
|
| color: #b42318;
|
| border: 1px solid #fecdca;
|
| }
|
|
|
| .cg-chat-pending {
|
| display: flex;
|
| align-items: center;
|
| gap: 8px;
|
| padding: 2px 2px 4px;
|
| font: 400 var(--lp-fs-2xs)/1.4 Inter, system-ui, sans-serif;
|
| color: var(--lp-text-muted, #667085);
|
| }
|
|
|
|
|
|
|
| .cg-chat-edits {
|
| border: 1px solid var(--lp-border, #e4e7ec);
|
| border-radius: 10px;
|
| background: var(--lp-surface, #ffffff);
|
| padding: 10px;
|
| }
|
|
|
| .cg-chat-edits-head {
|
| margin: 0 0 8px;
|
| font: 600 var(--lp-fs-2xs)/1.4 Inter, system-ui, sans-serif;
|
| color: var(--lp-text, #1d2939);
|
| }
|
|
|
| .cg-chat-edits-table {
|
| width: 100%;
|
| border-collapse: collapse;
|
| font: 400 var(--lp-fs-3xs)/1.45 Inter, system-ui, sans-serif;
|
| |
|
|
| display: block;
|
| max-height: 220px;
|
| overflow: auto;
|
| }
|
| .cg-chat-edits-table th {
|
| text-align: left;
|
| font-weight: 600;
|
| color: var(--lp-text-muted, #667085);
|
| padding: 0 8px 4px 0;
|
| position: sticky;
|
| top: 0;
|
| background: var(--lp-surface, #ffffff);
|
| }
|
| .cg-chat-edits-table td {
|
| padding: 3px 8px 3px 0;
|
| color: var(--lp-text, #1d2939);
|
| border-top: 1px solid var(--lp-border, #e4e7ec);
|
| vertical-align: top;
|
| overflow-wrap: anywhere;
|
| }
|
| |
|
|
| .cg-chat-before { color: var(--lp-text-muted, #667085); text-decoration: line-through; }
|
| .cg-chat-after { color: var(--lp-navy, #1f4e78); font-weight: 600; }
|
|
|
| |
|
|
| .cg-chat-undo { display: flex; justify-content: center; margin-top: 2px; }
|
|
|
| .cg-chat-edits-act {
|
| display: flex;
|
| justify-content: flex-end;
|
| gap: 8px;
|
| margin-top: 10px;
|
| }
|
|
|
| .cg-chat-ghost,
|
| .cg-chat-go {
|
| border-radius: 7px;
|
| padding: 5px 12px;
|
| font: 500 var(--lp-fs-2xs)/1.2 Inter, system-ui, sans-serif;
|
| cursor: pointer;
|
| }
|
| .cg-chat-ghost {
|
| border: 1px solid var(--lp-border, #e4e7ec);
|
| background: var(--lp-surface, #ffffff);
|
| color: var(--lp-text, #1d2939);
|
| }
|
| .cg-chat-go {
|
| border: 1px solid var(--lp-navy, #1f4e78);
|
| background: var(--lp-navy, #1f4e78);
|
| color: #ffffff;
|
| }
|
| .cg-chat-ghost:disabled,
|
| .cg-chat-go:disabled { opacity: 0.55; cursor: default; }
|
|
|
|
|
|
|
| .cg-chat-opening {
|
| display: flex;
|
| flex-direction: column;
|
| justify-content: center;
|
| flex: 1 1 auto;
|
| min-height: 0;
|
| gap: 10px;
|
| padding: 16px 12px;
|
| text-align: center;
|
| }
|
|
|
| .cg-chat-opening-h {
|
| margin: 0;
|
| font: 600 var(--lp-fs-lg)/1.3 Inter, system-ui, sans-serif;
|
| color: var(--lp-text, #1d2939);
|
| }
|
|
|
| .cg-chat-opening-p {
|
| margin: 0 0 6px;
|
| font: 400 var(--lp-fs-2xs)/1.55 Inter, system-ui, sans-serif;
|
| color: var(--lp-text-muted, #667085);
|
| }
|
|
|
| .cg-chat-foot { padding: 10px 12px 12px; border-top: 1px solid var(--lp-border, #e4e7ec); }
|
|
|
| .cg-chat-composer {
|
| border: 1px solid var(--lp-border, #e4e7ec);
|
| border-radius: 12px;
|
| background: var(--lp-surface, #ffffff);
|
| padding: 8px;
|
| text-align: left;
|
| }
|
| .cg-chat-composer:focus-within { border-color: var(--lp-navy, #1f4e78); }
|
|
|
| .cg-chat-input {
|
| width: 100%;
|
| border: 0;
|
| outline: 0;
|
| resize: none;
|
| background: transparent;
|
| color: var(--lp-text, #1d2939);
|
| font: 400 var(--lp-fs-xs)/1.5 Inter, system-ui, sans-serif;
|
| }
|
| .cg-chat-input::placeholder { color: var(--lp-text-muted, #667085); }
|
| .cg-chat-input:disabled { color: var(--lp-text-muted, #667085); }
|
|
|
| |
|
|
| .cg-chat-composer-foot {
|
| display: flex;
|
| align-items: center;
|
| gap: 8px;
|
| margin-top: 6px;
|
| }
|
|
|
| .cg-chat-scope {
|
| font: 400 var(--lp-fs-3xs)/1.3 Inter, system-ui, sans-serif;
|
| color: var(--lp-text-muted, #667085);
|
| }
|
|
|
| .cg-chat-spacer { flex: 1 1 auto; }
|
|
|
| .cg-chat-send {
|
| display: inline-flex;
|
| align-items: center;
|
| justify-content: center;
|
| width: 26px;
|
| height: 26px;
|
| border: 0;
|
| border-radius: 50%;
|
| background: var(--lp-navy, #1f4e78);
|
| color: #ffffff;
|
| cursor: pointer;
|
| }
|
| .cg-chat-send:disabled {
|
| background: var(--lp-surface-sunken, #f2f4f7);
|
| color: var(--lp-text-muted, #667085);
|
| cursor: default;
|
| }
|
|
|