| :root { |
| --llm-bg-base: 255, 255, 255; |
| --llm-accent: #a5b4fc; |
| --llm-accent-dark: #818cf8; |
| --llm-text: #1e293b; |
| --llm-text-secondary: #64748b; |
| --llm-border: rgba(0, 0, 0, 0.1); |
| --llm-glass: blur(16px); |
| --llm-msg-user-bg: rgba(224, 231, 255, 0.8); |
| --llm-msg-ai-bg: rgba(248, 250, 252, 0.8); |
|
|
| --llm-x: 0px; |
| --llm-y: 0px; |
| --llm-opacity: 0.85; |
| } |
|
|
| #llm-proxy-container { |
| position: fixed; |
| top: 20px; |
| right: 20px; |
| width: 380px; |
| height: min(600px, 85vh); |
|
|
| transform: translate3d(var(--llm-x), var(--llm-y), 0); |
| opacity: var(--llm-opacity); |
|
|
| |
| background: rgba(var(--llm-bg-base), 0.4); |
| backdrop-filter: var(--llm-glass); |
| -webkit-backdrop-filter: var(--llm-glass); |
|
|
| border: 1px solid rgba(255, 255, 255, 0.5); |
| border-radius: 20px; |
| box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); |
| z-index: 2147483647; |
| display: flex; |
| flex-direction: column; |
| font-family: 'Inter', system-ui, -apple-system, sans-serif; |
| color: var(--llm-text); |
| overflow: hidden; |
| transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); |
| user-select: none; |
| } |
|
|
| #llm-proxy-container.dragging { |
| |
| transition: none !important; |
| } |
|
|
| #llm-proxy-container.hidden { |
| opacity: 0 !important; |
| transform: translate3d(var(--llm-x), calc(var(--llm-y) - 10px), 0) scale(0.9) !important; |
| pointer-events: none !important; |
| } |
|
|
| #llm-proxy-container.no-glass { |
| backdrop-filter: none !important; |
| -webkit-backdrop-filter: none !important; |
| background: rgba(var(--llm-bg-base), 0.95); |
| |
| } |
|
|
| .llm-header { |
| padding: 14px 18px; |
| background: rgba(255, 255, 255, 0.2); |
| border-bottom: 1px solid var(--llm-border); |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| cursor: grab; |
| } |
|
|
| .llm-header:active { |
| cursor: grabbing; |
| } |
|
|
| .llm-title { |
| font-weight: 700; |
| font-size: 13px; |
| letter-spacing: 0.02em; |
| color: var(--llm-accent-dark); |
| text-transform: uppercase; |
| pointer-events: none; |
| |
| } |
|
|
| .llm-header-actions { |
| display: flex; |
| gap: 12px; |
| align-items: center; |
| } |
|
|
| .llm-icon-btn { |
| cursor: pointer; |
| opacity: 0.7; |
| transition: opacity 0.2s; |
| font-size: 14px; |
| } |
|
|
| .llm-icon-btn:hover { |
| opacity: 1; |
| } |
|
|
| .llm-body { |
| flex: 1; |
| padding: 14px; |
| overflow-y: hidden; |
| display: flex; |
| flex-direction: column; |
| gap: 10px; |
| } |
|
|
| .llm-chat-log { |
| flex: 1; |
| display: flex; |
| flex-direction: column; |
| gap: 12px; |
| overflow-y: auto; |
| padding-right: 4px; |
| } |
|
|
| .llm-msg { |
| padding: 12px 16px; |
| border-radius: 16px; |
| font-size: 14px; |
| line-height: 1.6; |
| max-width: 85%; |
| word-wrap: break-word; |
| } |
|
|
| .llm-msg-user { |
| align-self: flex-end; |
| background: var(--llm-msg-user-bg); |
| color: #3730a3; |
| border-bottom-right-radius: 4px; |
| } |
|
|
| .llm-msg-ai { |
| align-self: flex-start; |
| background: var(--llm-msg-ai-bg); |
| color: var(--llm-text); |
| border-bottom-left-radius: 4px; |
| border: 1px solid var(--llm-border); |
| } |
|
|
| .llm-collapsible { |
| background: rgba(255, 255, 255, 0.3); |
| border: 1px solid var(--llm-border); |
| border-radius: 12px; |
| margin-bottom: 6px; |
| overflow: hidden; |
| } |
|
|
| .llm-collapsible-header { |
| padding: 8px 12px; |
| font-size: 11px; |
| font-weight: 600; |
| color: var(--llm-text-secondary); |
| cursor: pointer; |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| } |
|
|
| .llm-collapsible-content { |
| max-height: 0; |
| overflow: hidden; |
| transition: max-height 0.3s ease-out; |
| } |
|
|
| .llm-collapsible-content.expanded { |
| max-height: 300px; |
| padding: 10px; |
| overflow-y: auto; |
| } |
|
|
| .llm-setting-item { |
| margin-bottom: 12px; |
| } |
|
|
| .llm-setting-label { |
| display: block; |
| font-size: 10px; |
| margin-bottom: 4px; |
| color: var(--llm-text-secondary); |
| font-weight: 700; |
| text-transform: uppercase; |
| letter-spacing: 0.05em; |
| } |
|
|
| .llm-select { |
| width: 100%; |
| background: rgba(255, 255, 255, 0.8); |
| border: 1px solid var(--llm-border); |
| color: var(--llm-text); |
| padding: 8px; |
| border-radius: 8px; |
| font-size: 12px; |
| outline: none; |
| } |
|
|
| .llm-prefix-input { |
| width: 100%; |
| height: 80px; |
| background: rgba(255, 255, 255, 0.8); |
| border: 1px solid var(--llm-border); |
| color: var(--llm-text); |
| padding: 10px; |
| border-radius: 8px; |
| font-size: 11px; |
| resize: none; |
| outline: none; |
| font-family: inherit; |
| } |
|
|
| .llm-input-area { |
| padding-top: 5px; |
| } |
|
|
| .llm-input-container { |
| display: flex; |
| gap: 8px; |
| background: rgba(255, 255, 255, 0.8); |
| border: 1px solid var(--llm-border); |
| padding: 6px; |
| border-radius: 16px; |
| transition: border-color 0.2s; |
| } |
|
|
| .llm-input-container:focus-within { |
| border-color: var(--llm-accent); |
| } |
|
|
| .llm-input { |
| flex: 1; |
| background: transparent; |
| border: none; |
| color: var(--llm-text); |
| padding: 8px; |
| font-size: 14px; |
| resize: none; |
| height: 44px; |
| outline: none; |
| } |
|
|
| .llm-send-btn { |
| background: var(--llm-accent); |
| border: none; |
| color: white; |
| width: 44px; |
| height: 44px; |
| border-radius: 12px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| cursor: pointer; |
| transition: transform 0.2s; |
| } |
|
|
| .llm-send-btn:hover { |
| background: var(--llm-accent-dark); |
| } |
|
|
| .llm-footer { |
| padding: 10px; |
| font-size: 10px; |
| color: var(--llm-text-secondary); |
| text-align: center; |
| background: rgba(255, 255, 255, 0.1); |
| border-top: 1px solid var(--llm-border); |
| } |
|
|
| .llm-image-preview { |
| display: none; |
| padding: 10px; |
| background: rgba(255, 255, 255, 0.5); |
| border-top: 1px solid var(--llm-border); |
| position: relative; |
| align-items: center; |
| gap: 10px; |
| } |
|
|
| .llm-image-preview.active { |
| display: flex; |
| } |
|
|
| .llm-thumbnail { |
| width: 60px; |
| height: 60px; |
| border-radius: 8px; |
| object-fit: cover; |
| border: 1px solid var(--llm-border); |
| } |
|
|
| .llm-remove-img { |
| position: absolute; |
| top: 5px; |
| left: 65px; |
| background: #fb7185; |
| color: white; |
| border-radius: 50%; |
| width: 18px; |
| height: 18px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| font-size: 10px; |
| cursor: pointer; |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| } |
|
|
| .llm-remove-img:hover { |
| background: #e11d48; |
| } |
|
|
| .llm-msg-img { |
| max-width: 100%; |
| border-radius: 10px; |
| margin-top: 8px; |
| display: block; |
| } |
|
|
| |
| ::-webkit-scrollbar { |
| width: 6px; |
| } |
|
|
| ::-webkit-scrollbar-track { |
| background: transparent; |
| } |
|
|
| ::-webkit-scrollbar-thumb { |
| background: rgba(0, 0, 0, 0.1); |
| border-radius: 10px; |
| } |
|
|
| ::-webkit-scrollbar-thumb:hover { |
| background: rgba(0, 0, 0, 0.2); |
| } |
|
|
| |
|
|
| |
| .llm-capture-btn { |
| background: transparent; |
| border: 1px solid var(--llm-border); |
| border-radius: 10px; |
| width: 44px; |
| height: 44px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| cursor: pointer; |
| opacity: 0.7; |
| transition: opacity 0.2s, background 0.2s, border-color 0.2s; |
| color: var(--llm-text-secondary); |
| } |
|
|
| .llm-capture-btn:hover { |
| opacity: 1; |
| background: rgba(165, 180, 252, 0.2); |
| border-color: var(--llm-accent); |
| color: var(--llm-accent-dark); |
| } |
|
|
| |
| .llm-checkbox-label { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| font-size: 12px; |
| cursor: pointer; |
| color: var(--llm-text); |
| } |
|
|
| .llm-checkbox-label input[type="checkbox"] { |
| width: 16px; |
| height: 16px; |
| accent-color: var(--llm-accent-dark); |
| cursor: pointer; |
| } |
|
|
| |
| #llm-capture-overlay { |
| position: fixed; |
| top: 0; |
| left: 0; |
| width: 100vw; |
| height: 100vh; |
| background: rgba(0, 0, 0, calc(0.3 * var(--llm-capture-opacity, 0.85))); |
| z-index: 2147483646; |
| cursor: crosshair; |
| } |
|
|
| .llm-capture-instructions { |
| position: absolute; |
| top: 20px; |
| left: 50%; |
| transform: translateX(-50%); |
| background: rgba(0, 0, 0, 0.85); |
| color: white; |
| padding: 12px 24px; |
| border-radius: 10px; |
| font-size: 14px; |
| font-family: 'Inter', system-ui, sans-serif; |
| pointer-events: none; |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); |
| opacity: var(--llm-capture-opacity, 0.85); |
| } |
|
|
| .llm-selection-rect { |
| position: absolute; |
| border: 2px dashed #fff; |
| background: rgba(99, 102, 241, calc(0.15 * var(--llm-capture-opacity, 0.85))); |
| pointer-events: none; |
| display: none; |
| box-shadow: 0 0 0 9999px rgba(0, 0, 0, calc(0.4 * var(--llm-capture-opacity, 0.85))); |
| } |
|
|
| |
| .llm-toast { |
| position: fixed; |
| bottom: 30px; |
| left: 50%; |
| transform: translateX(-50%); |
| padding: 14px 28px; |
| border-radius: 10px; |
| font-size: 14px; |
| font-family: 'Inter', system-ui, sans-serif; |
| z-index: 2147483647; |
| animation: llm-toast-fade 2.5s ease-in-out forwards; |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); |
| } |
|
|
| .llm-toast-success { |
| background: linear-gradient(135deg, #10b981, #059669); |
| color: white; |
| } |
|
|
| .llm-toast-error { |
| background: linear-gradient(135deg, #ef4444, #dc2626); |
| color: white; |
| } |
|
|
| @keyframes llm-toast-fade { |
| 0% { |
| opacity: 0; |
| transform: translateX(-50%) translateY(20px); |
| } |
|
|
| 15% { |
| opacity: 1; |
| transform: translateX(-50%) translateY(0); |
| } |
|
|
| 85% { |
| opacity: 1; |
| transform: translateX(-50%) translateY(0); |
| } |
|
|
| 100% { |
| opacity: 0; |
| transform: translateX(-50%) translateY(-10px); |
| } |
| } |