:root{--ink:#213a35;--muted:#667a74;--green:#126859;--light:#e6f0ea;--paper:#f7f8f3;--line:#dae3dc;--red:#a13936;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{border:1px solid transparent;border-radius:10px;padding:10px 17px;background:var(--green);color:white;cursor:pointer;min-height:42px;transition:background .15s}button:hover{background:#0b5447}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #e5b65b;outline-offset:2px}.secondary{background:white;color:var(--ink);border-color:var(--line)}.secondary:hover,.quiet:hover,.icon-button:hover{background:var(--light)}.quiet,.icon-button{background:transparent;color:var(--ink);padding:8px 12px}.danger{color:var(--red)}.icon-button{font-size:24px;line-height:1}.topbar{height:76px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding:0 28px;background:rgba(255,255,255,.85)}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-weight:650;letter-spacing:1px}.brand small{display:block;letter-spacing:2px;font-size:10px;color:var(--muted);margin-top:3px}.connection{margin-left:auto;color:var(--muted);font-size:12px}.connection::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#8c9d97;margin-right:7px}.connection.online::before{background:#168873}.welcome{max-width:720px;margin:12vh auto;padding:28px}.eyebrow{font-size:12px;letter-spacing:3px;color:var(--green);font-weight:650}.welcome h1{font-size:clamp(32px,6vw,55px);line-height:1.35;font-weight:600;letter-spacing:1px;margin:24px 0}.welcome p{line-height:1.8}.muted{color:var(--muted);font-size:13px;line-height:1.7}.shell{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100dvh - 76px);max-width:1440px;margin:auto}.sidebar{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;background:#f9faf6}.side-heading{padding:23px 22px 14px;display:flex;align-items:center;justify-content:space-between}.side-heading h2{margin:0;font-size:19px}.side-tools{display:flex;gap:5px;padding:0 16px 12px}.side-tools button{font-size:12px;padding:7px 10px;min-height:34px}.conversation-list{overflow:auto;flex:1;padding:0 10px 16px}.conversation{display:flex;width:100%;text-align:left;align-items:center;gap:12px;margin:4px 0;background:transparent;color:var(--ink);padding:13px 12px;border-radius:12px}.conversation:hover{background:#edf1eb}.conversation.selected{background:#e0eee6}.avatar{width:40px;height:40px;border-radius:13px;background:#e6ebe2;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#5c7462;font-weight:650}.selected .avatar{background:#c7dfd1}.conversation-copy{min-width:0;flex:1}.conversation-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.conversation-copy small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:6px}.badge{background:var(--green);color:white;border-radius:20px;padding:3px 6px;font-size:10px;min-width:18px;text-align:center}.side-footer{padding:14px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.8}.chat{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff}.chat-heading{display:flex;align-items:center;gap:12px;padding:20px 26px;border-bottom:1px solid var(--line);min-height:82px}.chat-heading h2{font-size:17px;margin:0 0 5px}.chat-heading p{margin:0;color:var(--muted);font-size:11px}.chat-heading .more{margin-left:auto}.back{display:none}.history-tools{padding:10px 26px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #edf1eb}.history-tools input{min-height:32px;padding:5px 10px;font-size:12px}.history-tools .search{flex:1;min-width:40px}.history-tools input[type=month]{width:145px}.history-tools button{font-size:12px;padding:5px 10px;min-height:32px}.messages{flex:1;overflow:auto;padding:22px 28px;scroll-behavior:smooth}.message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 18px;max-width:78%;width:fit-content}.message.mine{margin-left:auto;align-items:flex-end}.message .sender{font-size:11px;color:var(--muted);margin:0 7px 6px}.bubble{padding:11px 15px;border-radius:2px 15px 15px;background:#f0f3ed;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.mine .bubble{background:#deeee3;border-radius:15px 2px 15px 15px}.message footer{font-size:10px;color:var(--muted);margin:6px 6px 0;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.message footer button{min-height:24px;padding:2px 6px;font-size:10px}.message.pending .bubble{border:1px dashed #b9c9bd;background:#f8faf5}.message.failed .bubble{border:1px solid #dcb5ae}.composer{border-top:1px solid var(--line);padding:15px 24px 18px;background:#fff}.composer textarea{width:100%;resize:none;min-height:70px;max-height:180px;border:none;padding:4px;line-height:1.7;background:transparent}.composer textarea:focus{outline:none}.composer-footer{display:flex;align-items:center;gap:10px}.composer-footer .counter{margin-left:auto;font-size:11px;color:var(--muted)}.composer-footer .hint{font-size:11px;color:var(--muted)}.composer-footer button{min-height:36px;padding:7px 18px;font-size:13px}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:45px;text-align:center;color:var(--muted);flex:1}.empty .large-icon{font-size:38px;line-height:1;margin-bottom:18px}.notice{background:#fff7df;color:#766331;padding:11px 20px;font-size:12px;line-height:1.6;display:flex;align-items:center;gap:12px}.notice button{font-size:11px;min-height:30px;padding:3px 8px;margin-left:auto;flex-shrink:0}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);max-width:min(90vw,580px);background:#243e35;color:white;padding:14px 20px;border-radius:12px;font-size:13px;z-index:100;box-shadow:0 8px 25px #0002}.card{max-width:560px;background:white;border:1px solid var(--line);border-radius:20px;padding:30px;margin:9vh auto}.card h1{font-size:26px;line-height:1.4;margin-top:0}.card p{line-height:1.8}.code{font-variant-numeric:tabular-nums;font-size:42px;letter-spacing:9px;margin:25px 0;color:var(--green);font-weight:600}.stack{display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13px}.field.checkbox{flex-direction:row;align-items:center}.field.checkbox input{width:17px;height:17px;min-height:0}input,select,textarea{border:1px solid var(--line);background:#fcfdf9;border-radius:8px;padding:10px 12px;min-height:42px;color:var(--ink);max-width:100%}input[type=range]{padding:4px}dialog{border:1px solid var(--line);border-radius:18px;padding:24px;max-width:min(92vw,480px);width:480px;color:var(--ink);box-shadow:0 25px 80px #0002}dialog::backdrop{background:#1b302c55;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;gap:15px;justify-content:space-between}.dialog-heading h2{margin:0;font-size:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.member{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.member .member-copy{flex:1}.member button{font-size:11px;padding:5px 8px;min-height:30px}.settings-status{padding:12px 15px;background:var(--light);border-radius:9px;font-size:13px;line-height:1.8}.request{padding:14px 0;border-bottom:1px solid var(--line)}.request p{font-size:13px}.request button{margin-right:10px;font-size:12px}.scroll-body{max-height:55vh;overflow:auto}.loading{opacity:.6;pointer-events:none}[hidden]{display:none!important}@media(max-width:700px){.topbar{height:64px;padding:0 16px;gap:10px}.brand{font-size:14px}.connection{font-size:10px}.topbar button{font-size:12px;padding:6px 9px}.shell{height:calc(100dvh - 64px);grid-template-columns:1fr}.sidebar{border-right:none}.chat{display:none}.shell.chat-open .sidebar{display:none}.shell.chat-open .chat{display:flex}.back{display:inline-block}.chat-heading{padding:13px 12px;min-height:70px}.chat-heading h2{font-size:16px}.history-tools{padding:8px 14px}.messages{padding:18px 16px}.message{max-width:88%}.composer{padding:10px 14px max(12px,env(safe-area-inset-bottom))}.composer-footer .hint{display:none}.card{margin:6vh 16px;padding:24px;border-radius:16px}.welcome{margin:9vh auto;padding:25px}.history-tools input[type=month]{width:125px}.topbar img{width:28px;height:28px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
