* { margin: 0; padding: 0; box-sizing: border-box; }
.vmt-root { min-height: 100vh; background: #f4f6f8; color: #333; display: flex; flex-direction: column; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; }
.topbar { display: flex; justify-content: space-between; align-items: center; background: #243b55; color: #fff; padding: 12px 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.brand { font-size: 1.3em; font-weight: 600; letter-spacing: -0.5px; }
.icon-btn { background: #4a90e2; border: none; color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.icon-btn:hover { background: #357ab7; }
.workspace { display: flex; flex-direction: column; gap: 20px; padding: 20px; flex: 1; }
.system-section { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.system-section h3 { margin-bottom: 12px; color: #243b55; font-size: 1.1em; }
#vmt-system-prompt { width: 100%; border-radius: 6px; padding: 12px; border: 1px solid #ddd; font-family: 'Monaco','Courier New',monospace; font-size: 13px; resize: vertical; min-height: 80px; }
#vmt-system-prompt:focus { outline: none; border-color: #4a90e2; box-shadow: 0 0 0 3px rgba(74,144,226,0.1); }
.prompt-buttons { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn { padding: 7px 14px; border: 1px solid #e1e9f0; border-radius: 6px; background: #f8fafb; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.preset-btn:hover { background: #e1e9f0; border-color: #4a90e2; }
.chat-section { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; flex-direction: column; min-height: 450px; }
.chat-window { flex: 1; overflow-y: auto; padding: 15px; border: 1px solid #eee; border-radius: 6px; background: #fafbfc; margin-bottom: 15px; }
.empty-state { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.message-wrapper { display: flex; margin: 12px 0; }
.message { margin: 0; padding: 10px 14px; border-radius: 12px; max-width: 70%; line-height: 1.5; }
.message-label { font-size: 11px; font-weight: 600; margin-bottom: 4px; opacity: 0.7; }
.user-wrapper { justify-content: flex-end; }
.user { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.ai { background: #f1f3f5; color: #2d3436; margin-right: auto; border-bottom-left-radius: 4px; }
.composer { display: flex; gap: 10px; }
#vmt-user-input { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid #ddd; font-size: 14px; resize: none; }
#vmt-send-btn { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); border: none; color: #fff; border-radius: 8px; padding: 0 20px; cursor: pointer; }
.popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; backdrop-filter: blur(4px); z-index: 1000; }
.popup.show { display: flex; }
.popup-inner { background: #fff; padding: 25px; border-radius: 12px; width: 90%; max-width: 450px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; }
.popup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.popup-close { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; }
.prompt-list { margin: 15px 0; }
.prompt-item { padding: 12px; border: 1px solid #eee; border-radius: 6px; margin: 8px 0; cursor: pointer; }
.new-btn { width: 100%; padding: 10px 16px; border: none; border-radius: 8px; background: #4a90e2; color: #fff; cursor: pointer; font-size: 14px; }

