:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:#202329;background:#f4f5f7;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0;--ink: #202329;--muted: #747b84;--line: #e2e5e9;--surface: #ffffff;--soft: #eef1f3;--teal: #16766f;--teal-dark: #0c5e58;--coral: #df674a;--amber: #b97712;--blue: #3c6f8d}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f4f5f7}button,input,textarea,select{font:inherit;letter-spacing:0}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin-top:0}textarea{resize:vertical}.splash{min-height:100vh;display:grid;place-items:center;color:var(--teal)}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-shell{min-height:100vh;display:grid;place-items:center;padding:28px 20px;background:#eef0f2}.login-panel{width:min(100%,390px);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:30px 24px;box-shadow:0 16px 50px #1e262c14}.brand-mark{width:46px;height:46px;display:grid;place-items:center;color:#fff;background:var(--teal);border-radius:8px;margin-bottom:22px}.login-panel h1{font-size:24px;margin-bottom:7px}.login-panel>p{color:var(--muted);margin-bottom:26px}.stack-form{display:grid;gap:16px}.stack-form label,.context-row label{color:#545b64;font-size:13px;font-weight:650;display:grid;gap:7px}input,textarea,select{width:100%;border:1px solid #d6dae0;border-radius:6px;background:#fff;color:var(--ink);padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #16766f1f}textarea{min-height:86px;line-height:1.6}.primary-button,.generate-button{border:0;border-radius:6px;color:#fff;background:var(--teal);min-height:46px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:8px}.primary-button:hover,.generate-button:hover{background:var(--teal-dark)}.form-error,.form-message{border-radius:6px;padding:10px 12px;font-size:13px}.form-error{color:#9c3428;background:#fff0ed;border:1px solid #f1c8bf}.form-message{color:#17635e;background:#e8f5f2}.app-shell{width:min(100%,760px);min-height:100vh;margin:0 auto;background:#f4f5f7;padding-bottom:calc(78px + env(safe-area-inset-bottom))}.topbar{height:60px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;background:#f4f5f7f5;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.topbar>div{display:flex;align-items:center;gap:10px}.topbar h1{margin:0;font-size:18px}.brand-dot{width:32px;height:32px;border-radius:7px;display:grid;place-items:center;background:var(--teal);color:#fff}.user-chip{width:34px;height:34px;border-radius:50%;border:0;background:#263238;color:#fff;font-weight:750}.view-content{padding:16px;display:grid;gap:14px}.context-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.context-row select{padding:10px}.select-with-action{display:grid;grid-template-columns:1fr 40px;gap:6px}.icon-button{width:40px;height:40px;border:1px solid var(--line);background:#fff;color:#4f5961;border-radius:6px;display:inline-grid;place-items:center;flex:0 0 auto}.icon-button:hover{border-color:#b6bec5;color:var(--ink)}.icon-button.danger{color:#a53d31;background:#fffffff0}.composer,.goal-section,.result-area,.list-panel,.settings-list{background:var(--surface);border:1px solid var(--line);border-radius:8px}.composer,.goal-section{padding:15px}.section-title,.page-title,.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2,.goal-section h2,.page-title h2{font-size:16px;margin:0}.section-title>span,.page-title span{color:var(--muted);font-size:12px}.upload-zone{width:100%;min-height:116px;margin-top:14px;border:1px dashed #aab3ba;border-radius:7px;background:#f8f9fa;color:#4b555e;display:grid;place-items:center;align-content:center;gap:9px}.upload-zone:hover{border-color:var(--teal);color:var(--teal);background:#f0f8f7}.upload-zone strong{font-size:14px}.hidden-input{display:none}.image-preview{position:relative;margin-top:14px;min-height:170px;max-height:360px;background:#eceff1;border-radius:7px;overflow:hidden;display:grid;place-items:center}.image-preview img{max-width:100%;max-height:360px;display:block;object-fit:contain}.image-preview .icon-button{position:absolute;top:9px;right:9px}.chat-input{margin-top:12px;min-height:104px;border-color:#dce0e4}.goal-section h2{margin-bottom:12px}.segmented-wrap{display:flex;flex-wrap:wrap;gap:8px}.segmented-wrap button{min-height:34px;border:1px solid #d8dde1;background:#f8f9fa;color:#59616a;border-radius:6px;padding:0 12px;font-size:13px}.segmented-wrap button.selected{background:#e8f5f2;border-color:#8fc6c1;color:var(--teal-dark);font-weight:700}.generate-button{min-height:50px;font-size:15px;box-shadow:0 7px 18px #16766f2e}.result-area{overflow:hidden}.result-heading{padding:14px 15px;border-bottom:1px solid var(--line);color:var(--teal)}.result-heading>div{display:flex;align-items:center;gap:7px}.risk,.type-tag{border-radius:4px;padding:4px 7px;font-size:12px;font-weight:750}.risk-低{color:#17635e;background:#e4f4f1}.risk-中{color:#915c0a;background:#fff2d9}.risk-高{color:#a43b30;background:#fde9e6}.type-tag{color:#52606a;background:#edf0f2}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}.analysis-grid article{padding:15px}.analysis-grid article+article{border-left:1px solid var(--line)}.result-area h3{font-size:13px;color:#555e66;margin-bottom:8px}.result-area p{font-size:14px;line-height:1.7;margin-bottom:0}.reply-block{padding:16px;background:#f0f8f7;border-bottom:1px solid #cbe5e2}.reply-block h3{color:var(--teal-dark);font-size:15px;margin:0}.reply-block>p{font-size:16px;color:#183e3b}.icon-text-button{min-height:34px;border:1px solid #ccd2d7;border-radius:6px;background:#fff;color:#47515a;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;font-size:13px;font-weight:700}.icon-text-button.accent{color:var(--teal);border-color:#92c6c1}.alternative,.action-list,.avoid-list{padding:15px;border-bottom:1px solid var(--line)}.alternative h3{margin:0}.alternative p{color:#434b52}.action-list p,.avoid-list p{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0}.action-list svg{color:var(--teal);margin-top:4px;flex:0 0 auto}.avoid-list svg{color:var(--coral);margin-top:4px;flex:0 0 auto}.warning{margin:14px;padding:10px 12px;border-radius:6px;background:#fff5df;color:#85570e;display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.5}.page-title{min-height:42px}.page-title>div{display:flex;align-items:baseline;gap:8px}.list-panel{overflow:hidden}.player-row{min-height:76px;padding:12px 14px;display:flex;align-items:center;gap:11px}.player-row+.player-row{border-top:1px solid var(--line)}.avatar{width:40px;height:40px;border-radius:8px;background:#e7efee;color:var(--teal-dark);display:grid;place-items:center;font-weight:800;flex:0 0 auto}.row-main{flex:1;min-width:0}.row-main>div{display:flex;gap:8px;align-items:center}.row-main strong{font-size:15px}.row-main span{color:var(--muted);font-size:12px}.row-main p{color:#626b73;font-size:13px;margin:4px 0 0}.row-main small{display:block;color:#8a9198;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.player-row>svg{color:#9aa1a7}.empty-state{min-height:210px;display:grid;place-items:center;align-content:center;gap:10px;color:#9aa1a7}.empty-state p{margin:0;font-size:13px}.history-row+.history-row{border-top:1px solid var(--line)}.history-row summary{list-style:none;min-height:68px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.history-row summary::-webkit-details-marker{display:none}.history-row summary div{display:grid;gap:5px}.history-row summary strong{font-size:15px}.history-row summary span,.history-row time{color:var(--muted);font-size:12px}.history-body{padding:0 15px 15px}.history-body>p{font-size:13px;line-height:1.6;color:#667079}.history-body blockquote{margin:10px 0;padding:12px;border-left:3px solid var(--teal);background:#f1f7f6;font-size:14px;line-height:1.7}.profile-line{min-height:88px;display:flex;align-items:center;gap:13px;padding:10px 2px}.profile-avatar{width:48px;height:48px;border-radius:8px;display:grid;place-items:center;background:#263238;color:#fff}.profile-line h2{margin:0 0 4px;font-size:18px}.profile-line p{margin:0;color:var(--muted);font-size:13px}.settings-list{overflow:hidden}.settings-list button,.settings-list>div{width:100%;min-height:52px;padding:0 15px;border:0;background:#fff;color:var(--ink);display:flex;align-items:center;gap:11px;text-align:left}.settings-list button+button,.settings-list button+div,.settings-list div+button{border-top:1px solid var(--line)}.settings-list span{flex:1}.settings-list strong{font-size:13px;color:var(--muted)}.settings-list .logout-row{color:#a64338}.bottom-nav{position:fixed;z-index:30;left:50%;bottom:0;transform:translate(-50%);width:min(100%,760px);height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fffffff7;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}.bottom-nav button{border:0;background:transparent;color:#7e858c;display:grid;place-items:center;align-content:center;gap:3px;font-size:11px}.bottom-nav button.active{color:var(--teal);font-weight:750}.bottom-nav svg{width:21px;height:21px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#161b1e85;display:flex;align-items:flex-end;justify-content:center;padding-top:30px}.modal{width:min(100%,600px);max-height:92vh;overflow-y:auto;background:#fff;border-radius:8px 8px 0 0;box-shadow:0 -15px 40px #141a1e29}.modal>header{height:58px;padding:0 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:2}.modal>header h2{margin:0;font-size:17px}.modal-form{padding:16px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:520px){.view-content{padding:12px}.context-row,.analysis-grid{grid-template-columns:1fr}.analysis-grid article+article{border-left:0;border-top:1px solid var(--line)}.two-columns{grid-template-columns:1fr}}@media(min-width:761px){body{background:#e8ebed}.app-shell{box-shadow:0 0 40px #1a222714}.modal-backdrop{align-items:center}.modal{border-radius:8px;max-height:88vh}}
