:root{--ink:#353b31;--muted:#808477;--paper:#f6f3eb;--line:#e4e2d7;--orange:#dc653f;--blue:#54715b}.spark-app{background:var(--paper);color:var(--ink);font-family:'Microsoft YaHei','PingFang SC',sans-serif}.spark-app button,.spark-app a{transition:background .18s,color .18s,transform .18s}.skip-link{position:fixed;top:-80px;left:12px;z-index:50;background:white;padding:12px}.skip-link:focus{top:12px}.buddy-shell{display:grid;grid-template-columns:238px minmax(0,1fr);max-width:1800px;margin:auto;min-height:100dvh}.buddy-rail{padding:34px 25px 20px;background:#efeee4;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.brand-home img{width:150px;height:auto;display:block}.rail-hello{padding:47px 14px 25px;position:relative}.rail-hello p{font-family:'STKaiti','KaiTi','Microsoft YaHei',sans-serif;font-size:25px;line-height:1.7;margin:0;font-weight:500}.little-star{position:absolute;right:1px;top:33px;color:var(--orange);font-size:37px;transform:rotate(13deg)}.buddy-rail nav{display:grid;gap:8px}.spark-app .nav{font-size:14px;color:#727969;padding:15px 16px;display:flex;align-items:center;gap:12px;border-radius:12px}.spark-app .nav>span{width:20px;font-size:22px;line-height:1}.spark-app .nav.active{background:#fffdf8;color:#3b4735;box-shadow:0 2px 5px #27301e04}.spark-app .nav:hover{background:#ffffff90;color:#3b4735}.island-note{margin-top:auto;padding-top:32px;text-align:center}.island-note img{width:100%;height:auto;mix-blend-mode:multiply;filter:saturate(.83);border-radius:50%}.island-note p{font-size:11px;color:#8c8e7f;margin:3px 0 12px}.island-note button{font-size:12px;color:#69735e;border-bottom:1px solid #c6c9bc;padding:5px 0}.rail-bottom{display:flex;align-items:center;gap:7px;margin-top:35px;padding-top:20px;border-top:1px solid #dddfd2}.rail-bottom button{padding:0;border-radius:50%;background:#fff8ea;width:33px;height:33px}.rail-bottom img{width:30px;height:30px;object-fit:contain;border-radius:50%}.rail-bottom>span{font-size:9px;color:#8d9081}.spark-app main{padding:0 36px;min-width:0;max-height:100dvh;min-height:0}.buddy-header{height:98px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:14px}.buddy-identity{display:flex;align-items:center;gap:12px}.buddy-identity strong{font-size:17px;font-weight:600}.buddy-identity strong small{font-size:10px;color:#919487;letter-spacing:.5px;font-weight:400;margin-left:6px}.buddy-identity p{margin:7px 0 0;font-size:11px;color:#919487}.buddy-avatar{position:relative;display:block;flex-shrink:0;color:#e97948;line-height:1}.buddy-avatar>span{display:block;text-shadow:2px 4px 0 #e8a66850;transform:rotate(-9deg)}.buddy-avatar i{position:absolute;top:43%;left:41%;color:#fff5d6;font-style:normal;font-family:monospace;letter-spacing:3px;font-size:14px;transform:rotate(-8deg)}.small-avatar{width:40px;height:44px;font-size:52px}.small-avatar i{font-size:10px;letter-spacing:2px;left:40%;top:44%}.spark-app .quiet{border:1px solid #dcdfd3;background:#fcfbf5;padding:10px 15px;font-size:12px;color:#67725c}.spark-app .quiet:hover{background:#e8ecdf}.spark-app #chat-view{height:auto;min-height:0;flex:1;overflow:hidden;display:flex}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 232px;gap:38px;flex:1;min-height:0;width:100%}.chat-room{display:flex;flex-direction:column;min-width:0;min-height:0}.spark-app .conversation{padding:28px 0 20px;min-height:0;scrollbar-width:thin;scrollbar-color:#dddacf transparent}.spark-app .welcome{max-width:670px;margin:auto;padding:5vh 8px 22px}.welcome-avatar{font-size:90px;width:86px;height:92px;margin-bottom:22px;animation:hello-float 4s ease-in-out infinite}.welcome-avatar i{font-size:17px;letter-spacing:5px;left:42%;top:45%}.hello-label{font-size:11px;color:#949587;letter-spacing:1px}.welcome h1,.resource-view h1{font-weight:500;font-size:36px;line-height:1.55;letter-spacing:-.7px;margin:16px 0}.welcome h1 em{font-style:normal;color:#566849}.spark-app .welcome p{font-size:13px;line-height:1.95;color:#8a8e80;margin:18px 0 24px}.starter-prompts{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:570px}.starter-prompts button{display:flex;align-items:center;justify-content:space-between;border:1px solid #dfdfd3;background:#fbfaf4;border-radius:13px;padding:15px 16px;color:#666f59;font-size:12px;text-align:left;gap:12px}.starter-prompts button span{color:#aaa99a}.starter-prompts button:hover{background:#fff;border-color:#a7b095;transform:translateY(-2px)}.idea-link{padding:17px 0 0;font-size:11px;color:#ac8a5e}.pocket-panel{align-self:start;margin-top:63px;padding:30px 22px 18px;background:#eeeedf;border-radius:3px 18px 18px 18px;transform:rotate(1.5deg);position:relative;border:1px solid #e3e4d4}.pocket-pin{position:absolute;top:-13px;right:24px;color:#b5b990;font-size:33px}.pocket-panel .eyebrow{font-size:10px;color:#989c87;letter-spacing:1px}.pocket-panel h2{font-size:21px;font-weight:500;color:#627250;line-height:1.5;margin:21px 0 12px}.pocket-panel p:not(.eyebrow){font-size:12px;color:#90977f;line-height:1.95}.pocket-panel button,.pocket-panel a{display:inline-block;text-align:left;color:#667950;font-size:11px;line-height:1.8;margin:5px 0}.pocket-panel button:hover,.pocket-panel a:hover{color:#3d522b}.pocket-divider{border-top:1px dashed #d5d9c4;margin:25px 0 17px}.pocket-small{font-size:10px;color:#979e88}.pocket-panel .pocket-bottom{display:block;font-size:10px;margin-top:17px;width:100%}.pocket-bottom>span{float:right}.spark-app .composer{background:#fffefa;border:1px solid #dbdccf;border-radius:18px;padding:17px 19px 12px;box-shadow:0 7px 24px #43483305;flex-shrink:0;margin:0;width:100%;max-width:none}.spark-app .composer textarea{font-size:14px;min-height:50px;color:#414b35;line-height:1.7}.spark-app .composer textarea::placeholder{color:#abae9f}.spark-app .composer>div{margin-top:9px}.spark-app .composer>div>span{color:#a3a893;font-size:10px}.spark-app .composer button{background:#64774f;color:#fffef6;padding:10px 18px;border-radius:12px;font-size:12px}.spark-app .composer button:hover{background:#51643d}.spark-app .composer button span{margin-left:10px}.chat-disclaimer{font-size:9px;line-height:1.6;color:#a3a797;text-align:center;margin:11px 0 6px;flex-shrink:0}.spark-app .message{max-width:none;margin-bottom:24px;animation:message-in .2s ease-out}.spark-app .message .by{color:#9b9f8e;letter-spacing:0;font-size:10px;margin-bottom:8px}.spark-app .message .bubble{background:#fffdf6;border:1px solid #e9e6db;border-radius:3px 17px 17px 17px;font-size:14px;line-height:1.9;padding:18px 20px;color:#515c44}.spark-app .message.user{margin-left:55px;max-width:none}.spark-app .message.user .by{text-align:right}.spark-app .message.user .bubble{background:#e8eddc;border:0;border-radius:16px 3px 16px 16px;color:#596745}.spark-app .message.operator .bubble{border-left:3px solid #d78a53}.spark-app .message details{font-size:10px;padding:7px 2px;color:#969c88;line-height:1.8}.message summary{cursor:pointer}.spark-app .message details p{font-size:11px;border-color:#ced5bb}.spark-app .message .actions{margin-top:4px;gap:14px}.spark-app .message .actions button,.spark-app .message .actions a{font-size:10px;color:#8a9576;border:0;padding:5px 0}.reply-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.reply-links a{font-size:11px;color:#66764f;padding:7px 12px;background:#edf0e3;border-radius:9px}.buddy-footer{height:34px;flex-shrink:0;padding:8px 0;justify-content:center;gap:20px;font-size:9px;color:#a0a591}.buddy-footer button{font-size:9px;color:#a0a591}.resource-view{overflow:auto;padding:0 10px 20px;min-height:0;scrollbar-width:thin}.resource-view .section-intro{padding:37px 0 22px}.resource-view h1{font-size:30px}.resource-view .section-intro p{font-size:12px}.resource-view .section-intro>a{font-size:12px;color:#687e4d}.resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.resource-grid>a{display:flex;align-items:center;gap:14px;background:#fffdf6;border:1px solid #e5e4d8;border-radius:14px;padding:19px 17px}.link-number{font-family:Georgia,serif;color:#c2c4ac;font-size:23px}.resource-grid>a>div{flex:1;min-width:0}.resource-grid b{font-size:13px;font-weight:500}.resource-grid small{display:block;font-size:10px;margin-top:8px;color:#9ca38c;line-height:1.5}.resource-grid>a>span:last-child{font-size:13px;color:#9fa98c}.resource-grid>a:hover{background:white;border-color:#a9b698}.faq-pocket{margin-top:22px;border:1px solid var(--line);padding:18px 20px;border-radius:14px;font-size:13px}.faq-pocket>summary{cursor:pointer;list-style:none;color:#707e5e}.faq-pocket>summary>span{float:right}#faq-list>details{padding:18px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.9}#faq-list>details:last-child{border-bottom:0}#faq-list summary{cursor:pointer}#faq-list p{white-space:pre-wrap;color:#848c77;font-size:12px}.faq-meta{font-size:10px!important}#faq-list a{display:inline-block;color:#79895f;border-bottom:1px solid #b9c3a5}.resource-extras{display:flex;flex-wrap:wrap;gap:18px;margin:25px 0;color:#7c896a;font-size:12px}.contact-note{display:flex;gap:18px;padding:24px;background:#f1e9d8;border-radius:15px;margin-top:20px;align-items:center}.contact-note img{border-radius:50%;flex-shrink:0}.contact-note b{font-size:14px;font-weight:500;color:#8c7755}.contact-note p{font-size:11px;color:#a79473;line-height:1.7}.contact-note a{color:#b5814a;font-size:16px}.contact-note button{font-size:10px;color:#a08d6c;margin-left:10px}.contact-phone{display:block;color:#b8814c;font-size:24px;letter-spacing:1px;margin:22px 0}.spark-app dialog{background:#fffdf6;border:1px solid #e1e0d1;color:#566246}.spark-app .primary{background:#677a51;color:white}.spark-app input,.spark-app select,.spark-app dialog textarea{border-color:#dce0d1}.spark-app .error{color:#a9573c!important}.spark-app #toast{background:#657552;color:white;font-size:12px;bottom:40px}.spark-app .card{background:#fffdf6;border-color:#e4e5d7}.spark-app .empty{font-size:12px;border-color:#d3d9c5;color:#7b8969}.buddy-shell main:has(#home-view:not(.hidden)),.buddy-shell main:has(#events-view:not(.hidden)),.buddy-shell main:has(#progress-view:not(.hidden)){height:100dvh}.spark-app[data-page=chat] main{height:100dvh}@keyframes hello-float{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(3deg) translateY(-5px)}}@keyframes message-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){.spark-app main{padding:0 60px}.chat-layout{gap:60px;grid-template-columns:minmax(0,1fr) 250px}.spark-app .welcome{padding-top:8vh}}@media(max-width:1150px){.buddy-shell{grid-template-columns:205px minmax(0,1fr)}.buddy-rail{padding:27px 19px 18px}.spark-app main{padding:0 28px}.chat-layout{display:flex}.chat-room{width:100%}.pocket-panel{display:none}.spark-app .welcome{padding-top:3vh}.rail-hello p{font-size:22px}}@media(max-width:650px){.buddy-shell{display:flex;flex-direction:column;min-height:100dvh}.buddy-rail{position:fixed;top:auto;bottom:0;height:64px;width:100%;padding:7px 12px calc(7px + env(safe-area-inset-bottom));z-index:5;background:#f0efe6f5;border:0;border-top:1px solid #e1e4d5;backdrop-filter:blur(12px);display:block}.brand-home,.rail-hello,.island-note,.rail-bottom{display:none}.buddy-rail nav{display:flex;gap:5px;justify-content:space-between}.spark-app .nav{flex:1;justify-content:center;padding:10px 7px;font-size:11px;gap:6px;white-space:nowrap;border-radius:11px}.spark-app .nav>span{font-size:18px;width:auto}.spark-app .nav.active{background:#fffdf6;box-shadow:none}.spark-app main{padding:0 18px;height:calc(100dvh - 64px - env(safe-area-inset-bottom))!important;max-height:calc(100dvh - 64px - env(safe-area-inset-bottom));margin-bottom:calc(64px + env(safe-area-inset-bottom))}.buddy-header{height:78px}.buddy-identity strong{font-size:15px}.buddy-identity p{font-size:10px;margin-top:5px}.spark-app .quiet{font-size:11px;padding:9px 12px}.spark-app .conversation{padding:20px 0 14px}.spark-app .welcome{padding:5px 3px 12px}.welcome-avatar{font-size:70px;width:68px;height:74px;margin-bottom:17px}.welcome-avatar i{font-size:13px;letter-spacing:3px}.welcome h1{font-size:28px;line-height:1.5;margin:12px 0}.spark-app .welcome p{font-size:12px;margin:13px 0 18px;line-height:1.9}.hello-label{font-size:10px}.starter-prompts{gap:8px}.starter-prompts button{font-size:11px;padding:13px 12px;border-radius:11px}.idea-link{font-size:10px;padding-top:14px}.spark-app .composer{padding:12px 14px 10px;border-radius:16px}.spark-app .composer textarea{font-size:13px;min-height:40px}.spark-app .composer button{padding:9px 14px;font-size:11px}.chat-disclaimer{font-size:8px;margin:8px 0 5px}.buddy-footer{height:24px;font-size:8px;gap:17px;padding:5px 0}.buddy-footer button{font-size:8px}.spark-app .message .bubble{font-size:13px;padding:15px 17px}.spark-app .message.user{margin-left:30px}.resource-view{padding:0 0 22px}.resource-view .section-intro{padding:25px 0 18px}.resource-view h1{font-size:26px}.resource-grid{grid-template-columns:1fr}.resource-grid>a{padding:16px}.contact-note{padding:18px;gap:12px}.contact-note img{width:44px;height:44px}.contact-note a{font-size:14px}.spark-app #toast{bottom:88px}}@media(prefers-reduced-motion:reduce){.spark-app *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(min-width:651px) and (max-height:800px){.buddy-rail{padding-top:24px;padding-bottom:16px}.rail-hello{padding-top:27px;padding-bottom:20px}.little-star{top:18px}.island-note{padding-top:18px}.island-note img{max-height:130px;object-fit:contain}.rail-bottom{margin-top:18px;padding-top:14px}.spark-app .conversation{padding-top:18px}.spark-app .welcome{padding:0 8px 16px}.welcome-avatar{font-size:59px;width:58px;height:60px;margin-bottom:10px}.welcome-avatar i{font-size:12px;letter-spacing:3px}.welcome h1{font-size:29px;line-height:1.4;margin:10px 0}.spark-app .welcome p{font-size:12px;margin:10px 0 17px;line-height:1.7}.starter-prompts button{padding:12px 14px}.idea-link{padding-top:12px}.pocket-panel{margin-top:35px}}

/* v3.1: useful links and sources are readable, whole-card targets. */
.spark-app .reply-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:14px 0}
.spark-app .reply-links a.detail-link{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:108px;padding:17px 20px;border:1px solid #d0d9bf;border-radius:15px;background:#edf1e3;color:#475b35}
.link-copy{display:grid;gap:7px}.link-copy small{font-size:10px;color:#7e8c6a}.link-copy strong{font-size:17px;font-weight:600;line-height:1.5}.link-copy>span{font-size:11px;color:#829071}.link-arrow{font-size:26px;color:#738954}.spark-app .reply-links a:hover{background:#e3ebd5;border-color:#8ba06b;transform:translateY(-1px)}
.source-group{margin:16px 0}.source-heading{font-size:11px;color:#879375;margin:0 0 9px}.spark-app .message details.source-card{background:#f0f0e6;border:1px solid #e1e3d4;border-radius:12px;padding:12px 16px;margin-top:8px;color:#6e7a5d}.source-card summary{font-size:13px;line-height:1.7;min-height:26px}.spark-app .message details.source-card p{font-size:12px;line-height:1.95;border:0;padding:0;margin:10px 0;color:#758263}.source-card small{display:block;font-size:10px;line-height:1.8;color:#909981}.source-original{display:flex;align-items:center;min-height:44px;font-size:13px;color:#516d36;border-bottom:1px solid #dce2cd;margin-bottom:5px}.source-original:hover{color:#2e4c17}.spark-app .message .actions button{min-height:38px}.spark-app .message .actions button:first-child{font-size:12px}
.spark-app[data-page=business] main{height:100dvh}.business-view .section-intro h1{font-size:34px;color:#586d47;line-height:1.5}.business-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.business-options>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:23px 20px;background:#fffdf5;border:1px solid #e1e3d3;border-radius:18px;min-height:245px}.business-options>button:nth-child(2){background:#edf0df}.business-options>button:nth-child(3){background:#f4ebdb}.business-options>button:hover{border-color:#a3b286;transform:translateY(-3px)}.business-symbol{font-size:29px;color:#d58b53;margin-bottom:22px}.business-options strong{font-size:16px;font-weight:500;line-height:1.6}.business-options p{font-size:12px;color:#8b947d;line-height:1.9}.business-cta{font-size:12px;color:#6f8652;margin-top:auto;padding-top:15px}.business-note{margin:23px 0;padding:23px;border-top:1px dashed #d8ddcb}.business-note h2{font-size:17px;font-weight:500}.business-note p{font-size:12px;color:#8a947c;line-height:1.9}.business-note>a{display:block;font-size:12px;color:#a38457;margin-top:20px}
@media(max-width:1150px){.business-options{grid-template-columns:1fr}.business-options>button{min-height:0}.business-symbol{margin-bottom:12px}.business-options p{margin:8px 0}}
@media(max-width:650px){.spark-app .nav{font-size:10px;gap:4px;padding:11px 3px}.spark-app .nav>span{font-size:15px}.spark-app .reply-links{grid-template-columns:1fr}.spark-app .reply-links a.detail-link{min-height:96px;padding:15px 17px}.link-copy strong{font-size:16px}.source-card summary{font-size:13px}.business-view .section-intro h1{font-size:28px}.business-options{gap:12px}.business-options>button{padding:20px}.business-note{padding:16px 0}.business-note .quiet{font-size:12px}}

.spark-app #messages{scroll-behavior:auto}.spark-app .message.history-message{animation:none}
