:root{--bg-warm: #F5EEE4;--bg-cream: #FEFCF9;--bg-card: #FAF6F0;--border: #EDE6DA;--border-mid: #D4C9B8;--text-dark: #3D3225;--text-mid: #5B4A3A;--text-muted: #B5A99A;--green: #5B7F3B;--green-dark: #4A6B2E;--green-light: #7A9F5A;--brown-dark: #3D3225;--brown-mid: #5B4A3A;--red-soft: #E57373;--shadow-sm: 0 1px 6px rgba(0,0,0,.06);--shadow-md: 0 2px 12px rgba(0,0,0,.1);--radius-lg: 20px;--radius-md: 12px}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:"Noto Serif SC",Songti SC,STSong,serif;-webkit-font-smoothing:antialiased;background:var(--bg-warm);color:var(--text-dark)}.app{height:100%;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--bg-warm) 0%,var(--bg-cream) 40%);position:relative;overflow:hidden;max-width:900px;margin:0 auto}@media (min-width: 900px){.app{border-left:1px solid var(--border);border-right:1px solid var(--border)}}.header{padding:14px 18px;display:flex;align-items:center;gap:12;background:linear-gradient(135deg,var(--brown-dark),var(--brown-mid));color:var(--bg-warm);box-shadow:0 2px 16px #3d322533;flex-shrink:0}.header-logo{width:40px;height:40px;border-radius:var(--radius-md);background:linear-gradient(135deg,var(--green),var(--green-light));display:flex;align-items:center;justify-content:center;font-size:22px;box-shadow:0 2px 8px #5b7f3b4d;flex-shrink:0}.header-text{flex:1;min-width:0}.header-text h1{font-size:17px;font-weight:700;letter-spacing:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-text p{font-size:11px;opacity:.65;margin-top:1px;font-family:sans-serif}.btn-new{background:#ffffff1a;border:none;color:var(--bg-warm);font-size:13px;cursor:pointer;padding:6px 12px;border-radius:10px;font-family:inherit;flex-shrink:0;transition:background .2s}.btn-new:hover{background:#fff3}.messages{flex:1;overflow-y:auto;padding:20px 16px;scroll-behavior:smooth}.bubble-row{display:flex;margin-bottom:16px;animation:fadeIn .3s ease}.bubble-row.user{justify-content:flex-end}.bubble-row.assistant{justify-content:flex-start}.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--green),#8B7355);display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;margin-right:10px;margin-top:2px;box-shadow:0 2px 8px #5b7f3b40}.bubble{max-width:78%;padding:13px 17px;font-size:15px;line-height:1.7;white-space:pre-wrap;word-break:break-word}.bubble-user{border-radius:var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);background:linear-gradient(135deg,var(--green),var(--green-dark));color:var(--bg-cream);box-shadow:0 2px 12px #5b7f3b33}.bubble-ai{border-radius:var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;background:var(--bg-card);color:var(--text-dark);box-shadow:var(--shadow-sm);border:1px solid var(--border)}.typing-dots{display:flex;gap:4px;padding:4px 0}.typing-dots span{width:6px;height:6px;border-radius:50%;background:#8b7355;animation:bounce 1.2s ease-in-out infinite}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}.quick-prompts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;animation:fadeIn .5s ease .3s both}.quick-btn{padding:10px 16px;border-radius:var(--radius-lg);border:1px solid var(--border-mid);background:var(--bg-cream);color:var(--text-mid);font-size:14px;cursor:pointer;transition:all .2s;font-family:inherit;white-space:nowrap}.quick-btn:hover{background:var(--green);color:var(--bg-cream);border-color:var(--green)}.input-bar{padding:12px 16px;border-top:1px solid var(--border);background:var(--bg-cream);flex-shrink:0}.input-row{display:flex;gap:10px;align-items:flex-end}.input-row textarea{flex:1;padding:12px 16px;border-radius:var(--radius-lg);border:1.5px solid var(--border-mid);background:var(--bg-card);font-size:15px;line-height:1.5;resize:none;font-family:inherit;color:var(--text-dark);transition:border-color .2s;min-height:44px;max-height:120px;outline:none}.input-row textarea:focus{border-color:var(--green)}.input-row textarea::placeholder{color:var(--text-muted)}.btn-send{width:44px;height:44px;border-radius:50%;border:none;background:var(--border-mid);color:var(--bg-cream);font-size:20px;cursor:not-allowed;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s}.btn-send.active{background:linear-gradient(135deg,var(--green),var(--green-dark));cursor:pointer;box-shadow:0 2px 8px #5b7f3b4d}.btn-send.active:hover{transform:scale(1.05)}.disclaimer{text-align:center;font-size:11px;color:var(--text-muted);margin-top:8px;font-family:sans-serif}.sidebar-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:80;display:flex}.sidebar-slide{width:min(300px,80%);height:100%;animation:slideIn .25s ease;flex-shrink:0}.sidebar-backdrop{flex:1;background:#00000059}.sidebar{width:100%;height:100%;display:flex;flex-direction:column;background:var(--brown-dark);color:var(--bg-warm)}.sidebar-header{padding:16px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.08);font-size:16px;font-weight:700;letter-spacing:1px}.sidebar-actions{padding:12px 14px 6px;display:flex;gap:8px}.btn-outline{flex:1;padding:10px 0;border-radius:var(--radius-md);border:1px dashed rgba(255,255,255,.2);background:transparent;color:var(--bg-warm);font-size:14px;cursor:pointer;font-family:inherit;transition:background .2s}.btn-outline:hover{background:#ffffff0f}.btn-outline.btn-active{background:#5b7f3b4d;border-style:solid;border-color:#5b7f3b66}.sidebar-list{flex:1;overflow-y:auto;padding:8px 14px}.empty-hint{text-align:center;opacity:.4;margin-top:40px;font-size:14px}.session-item{padding:12px 14px;border-radius:var(--radius-md);margin-bottom:6px;cursor:pointer;transition:background .15s;display:flex;justify-content:space-between;align-items:center}.session-item:hover{background:#ffffff0d}.session-item.active{background:#5b7f3b40}.session-info{overflow:hidden;flex:1;min-width:0}.session-title{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-meta{font-size:11px;opacity:.5;margin-top:3px;font-family:sans-serif}.btn-delete{background:none;border:none;color:#ffffff4d;font-size:16px;cursor:pointer;padding:2px 6px;flex-shrink:0;transition:color .2s}.btn-delete:hover{color:var(--red-soft)}.profile-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--bg-cream);z-index:100;display:flex;flex-direction:column;animation:fadeIn .2s ease}.profile-header{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);background:linear-gradient(135deg,var(--brown-dark),var(--brown-mid));color:var(--bg-warm);font-size:17px;font-weight:700;letter-spacing:1px}.profile-body{flex:1;overflow-y:auto;padding:20px 18px}.field{margin-bottom:18px}.field label{font-size:13px;font-weight:600;color:var(--text-mid);display:block;margin-bottom:6px}.field input,.field textarea{width:100%;padding:10px 14px;border-radius:var(--radius-md);border:1.5px solid var(--border-mid);background:var(--bg-card);font-size:15px;font-family:inherit;color:var(--text-dark);outline:none;transition:border-color .2s}.field input:focus,.field textarea:focus{border-color:var(--green)}.field textarea{resize:vertical;line-height:1.6}.field input::placeholder,.field textarea::placeholder{color:var(--text-muted)}.profile-footer{padding:14px 18px;border-top:1px solid var(--border);display:flex;gap:10px}.btn-cancel{flex:1;padding:12px 0;border-radius:14px;border:1px solid var(--border-mid);background:var(--bg-cream);color:var(--text-mid);font-size:15px;cursor:pointer;font-family:inherit;transition:background .2s}.btn-cancel:hover{background:var(--bg-card)}.btn-save{flex:1;padding:12px 0;border-radius:14px;border:none;background:linear-gradient(135deg,var(--green),var(--green-dark));color:var(--bg-cream);font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;box-shadow:0 2px 10px #5b7f3b4d;transition:transform .2s}.btn-save:hover{transform:scale(1.02)}.btn-icon{background:none;border:none;font-size:22px;cursor:pointer;padding:2px 4px;line-height:1}.btn-icon.light{color:var(--bg-warm)}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes bounce{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}@media (max-width: 480px){.header-text h1{font-size:15px;letter-spacing:1px}.bubble{max-width:85%;font-size:14px;padding:11px 14px}.messages{padding:16px 12px}}
