/* (same dark theme as before) */
.aiuc-widget {
    position: fixed; bottom: 20px; right: 20px; width: 400px; max-width: 90vw;
    background: #1e1e1e; border: 1px solid #444; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6); z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0; transition: all 0.3s ease;
}
.aiuc-header {
    background: #2c2c2c; color: #fff; padding: 10px 14px; cursor: move;
    border-radius: 12px 12px 0 0; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid #444;
}
.aiuc-title-text { font-weight: 600; font-size: 14px; }
.aiuc-icon { display: none; font-size: 24px; }
.aiuc-header-buttons { display: flex; gap: 2px; }
.aiuc-header button { background: none; border: none; color: #ccc; font-size: 18px; cursor: pointer; padding: 0 4px; }
.aiuc-header button:hover { color: #fff; }
.aiuc-body { padding: 12px; background: #1e1e1e; border-radius: 0 0 12px 12px; }
.aiuc-url-display { margin-bottom: 10px; font-size: 12px; color: #aaa; word-break: break-all; }
.aiuc-editor { height: 150px; border: 1px solid #444; border-radius: 6px; margin-bottom: 10px; background: #121212; color: #e0e0e0; }
.aiuc-editor .ql-toolbar.ql-snow { border: none; background: #2c2c2c; border-radius: 6px 6px 0 0; border-bottom: 1px solid #444; }
.aiuc-editor .ql-container.ql-snow { border: none; background: #121212; color: #e0e0e0; border-radius: 0 0 6px 6px; }
.aiuc-editor .ql-editor.ql-blank::before { color: #666; }
.aiuc-name-row { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.aiuc-name-row label { font-size: 13px; color: #ccc; }
.aiuc-name-row input { flex:1; padding: 6px 10px; border-radius: 4px; border: 1px solid #444; background: #121212; color: #e0e0e0; }
.aiuc-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.aiuc-actions button { padding: 7px 14px; cursor: pointer; background: #333; border: 1px solid #555; border-radius: 5px; color: #e0e0e0; font-weight: 500; transition: background 0.2s; }
.aiuc-actions button:hover { background: #444; }
#aiuc-submit-btn { background: #4CAF50; border-color: #4CAF50; color: white; }
#aiuc-submit-btn:hover { background: #43A047; }
.aiuc-ai-report { background: #2c2c2c; border: 1px solid #444; padding: 10px; margin-bottom: 10px; font-size: 13px; color: #ccc; border-radius: 5px; max-height: 120px; overflow-y: auto; }
.tiny-btn { font-size: 11px; padding: 3px 8px; background: #444; border: none; color: #ddd; border-radius: 3px; cursor: pointer; margin-top: 6px; }
.tiny-btn:hover { background: #555; }
.aiuc-message { font-size: 12px; min-height: 18px; color: #ccc; }

/* Minimized bubble */
.aiuc-widget.minimized {
    width: 56px; height: 56px; border-radius: 50%; bottom: 20px; right: 20px; overflow: hidden;
    border: 1px solid #444; box-shadow: 0 4px 12px rgba(0,0,0,0.5); background: #2c2c2c; cursor: pointer;
}
.aiuc-widget.minimized .aiuc-header { background: #2c2c2c; border-radius: 50%; border-bottom: none; padding: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.aiuc-widget.minimized .aiuc-title-text, .aiuc-widget.minimized .aiuc-header-buttons { display: none; }
.aiuc-widget.minimized .aiuc-icon { display: block; font-size: 28px; }
.aiuc-widget.minimized .aiuc-body { display: none; }
/* Prevent maximise styles overriding minimise */
.aiuc-widget.maximized { width: 85vw; height: 85vh; top: 7.5vh; left: 7.5vw; bottom: auto; right: auto; border-radius: 12px; }
.aiuc-widget.maximized .aiuc-editor { height: 60vh; }
.aiuc-widget.maximized .aiuc-body { max-height: calc(85vh - 70px); overflow-y: auto; }