.agent-page{margin:0;background:#f8f8f3;color:#24412d;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.agent-main{display:grid;grid-template-columns:210px minmax(0,1fr);width:min(1120px,calc(100% - 48px));min-height:calc(100dvh - 72px);margin:auto;padding:34px 0 50px;gap:40px}.agent-sidebar{padding:10px 22px 0 0;border-right:1px solid #e0e8dc}.agent-sidebar>p:first-child,.agent-intro>span{color:#a27d4e;font-size:10px;font-weight:650;letter-spacing:.09em}.agent-history-links{display:flex;flex-direction:column;gap:8px;margin-top:20px}.agent-history-links a{display:flex;justify-content:space-between;align-items:center;min-height:42px;padding:0 13px;border-radius:7px;color:#53705a;font-size:13px;text-decoration:none}.agent-history-links a:hover{background:#edf3e9}.agent-history-links .agent-new-chat{background:#1d4c32;color:#fff;font-weight:600}.agent-history-links .agent-new-chat:hover{background:#326648}.agent-sidebar-note{margin:22px 0 0;color:#9aa79a;font-size:11px;line-height:1.8}.agent-content{display:flex;flex-direction:column;min-width:0;max-width:800px}.agent-intro{padding:8px 0 20px;border-bottom:1px solid #e0e8dc}.agent-intro h1{margin:10px 0 7px;font-family:Georgia,"Songti SC",serif;font-size:32px;font-weight:500;line-height:1.3}.agent-intro p,.agent-note{margin:0;color:#89968a;font-size:12px;line-height:1.8}.agent-feed{display:flex;flex:1;flex-direction:column;gap:20px;min-height:300px;max-height:58dvh;overflow-y:auto;overflow-wrap:anywhere;padding:28px 4px}.agent-welcome{display:grid;justify-items:center;align-content:center;min-height:260px;text-align:center;color:#869587}.agent-welcome>span{display:grid;place-items:center;width:48px;height:48px;border:1px solid #d6e4d4;border-radius:50%;background:#eef4e9;color:#487551;font-size:23px}.agent-welcome h2{margin:15px 0 6px;color:#315a3c;font-family:Georgia,"Songti SC",serif;font-size:21px;font-weight:500}.agent-welcome p{margin:0;font-size:13px}.agent-message{max-width:85%;white-space:pre-wrap;line-height:1.8;font-size:14px}.agent-message.user{align-self:flex-end;padding:12px 16px;border-radius:15px 15px 3px 15px;background:#e9f1e5;color:#244a30}.agent-message.assistant{align-self:flex-start;width:100%;max-width:100%;color:#35493a;white-space:normal;overflow-wrap:anywhere}.agent-message.assistant p{margin:0 0 16px;line-height:1.9}.agent-message.assistant p:last-child{margin-bottom:0}.agent-message.assistant h3{margin:25px 0 12px;color:#254e32;font-size:16px;line-height:1.4}.agent-message.assistant h3:first-child{margin-top:0}.agent-message.assistant ul{margin:8px 0 18px;padding-left:22px}.agent-message.assistant li{margin:6px 0;line-height:1.8}.agent-form{padding:12px 14px;border:1px solid #d9e5d6;border-radius:14px;background:#fffefa;box-shadow:0 5px 22px rgba(39,66,43,.04)}.agent-form:focus-within{border-color:#86a88a;box-shadow:0 0 0 3px #7c9f801c}.agent-form label{position:absolute;clip:rect(0,0,0,0)}.agent-form textarea{box-sizing:border-box;width:100%;min-height:60px;resize:vertical;border:0;background:transparent;color:#294333;outline:0;font:inherit;font-size:14px;line-height:1.7}.agent-form>div{display:flex;justify-content:space-between;align-items:center}.agent-form button{min-width:72px;border:0;border-radius:8px;background:#1d4c32;color:#fff;padding:9px 14px}.agent-form button:disabled{opacity:.55}.agent-error{color:#a33;font-size:12px}.agent-note{margin-top:12px}.agent-note a{color:#50795a}.agent-save-status{margin:9px 0 0;color:#829784;font-size:12px;line-height:1.6}.agent-save-retry{width:max-content;margin-top:8px;border:1px solid #d4e0d0;border-radius:7px;background:#fff;color:#536a4e;padding:7px 10px;font-size:12px;cursor:pointer}.agent-save-retry[hidden]{display:none}@media(max-width:700px){.agent-main{display:flex;flex-direction:column;width:calc(100% - 32px);min-height:0;padding:24px 0 48px;gap:20px}.agent-sidebar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;border:0}.agent-sidebar>p:first-child,.agent-sidebar-note{display:none}.agent-history-links{flex-direction:row;align-items:center;margin:0}.agent-history-links a{min-height:36px;padding:0 10px;font-size:12px}.agent-content{max-width:none}.agent-intro h1{font-size:27px}.agent-feed{min-height:260px;max-height:50dvh}.agent-welcome{min-height:220px}}
/* Chat response state: a compact, quietly animated typing indicator. */
body.agent-page.fatemate-shell-ready .agent-message.assistant.agent-pending{display:flex;align-items:center;gap:11px;width:max-content;max-width:100%;min-height:30px;padding:2px 0;color:#77726c;font-size:13px;line-height:1.5}
.agent-thinking-dots{display:inline-flex;align-items:center;gap:4px;height:18px;flex:none}
.agent-thinking-dots span{display:block;width:5px;height:5px;border-radius:50%;background:#77716a;animation:agent-thinking-wave 1.2s ease-in-out infinite}
.agent-thinking-dots span:nth-child(2){animation-delay:.15s}
.agent-thinking-dots span:nth-child(3){animation-delay:.3s}
@keyframes agent-thinking-wave{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.agent-thinking-dots span{animation:none;opacity:.7}}
