:root{color-scheme:light;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#202326;background:#f4f5f6;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #202326;--muted: #7c8388;--line: #e2e5e7;--panel: #ffffff;--soft: #f7f8f8;--green: #1d8a63;--green-dark: #14684b;--green-pale: #e8f3ee;--red: #d94b4b}*{box-sizing:border-box}html,body,#app{width:100%;min-height:100%;margin:0}body{min-width:320px;background:#f4f5f6}button,input,textarea{font:inherit}button{cursor:pointer}.site-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:72px;flex:0 0 72px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 48px;background:#fffffff5;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none}.brand-symbol{display:grid;width:31px;height:31px;place-items:center;background:var(--ink);color:#fff;border-radius:6px;font-size:14px;font-weight:800;letter-spacing:.02em}.brand strong{display:block;font-size:14px;line-height:1.1;letter-spacing:.16em}.brand small{display:block;margin-top:3px;color:var(--muted);font-size:10px;letter-spacing:.08em}.connection-status{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;white-space:nowrap}.status-dot{width:6px;height:6px;border-radius:50%;background:#b1b7ba}.connection-status.is-live .status-dot{background:var(--green);box-shadow:0 0 0 3px var(--green-pale)}.main-content{flex:1;display:flex;min-height:calc(100vh - 72px)}.page-grid{width:min(1240px,100%);margin:0 auto;padding:68px 48px 80px}.visitor-chat-page{display:flex;width:min(900px,100%);flex:1;margin:0 auto;padding:32px 32px 40px}.visitor-chat-card{width:100%;min-height:min(660px,calc(100vh - 144px));height:min(760px,calc(100vh - 144px))}.visitor-page{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(420px,1.15fr);align-items:center;gap:clamp(48px,8vw,130px)}.intro-column{max-width:430px}.eyebrow{color:var(--green);font-size:10px;font-weight:800;letter-spacing:.18em}.intro-column h1{margin:18px 0;color:var(--ink);font-size:clamp(39px,4.4vw,64px);font-weight:650;letter-spacing:-.055em;line-height:1.08}h1 em{color:var(--green);font-style:normal}.lead{max-width:360px;margin:0;color:var(--muted);font-size:15px;line-height:1.9}.identity-note{display:flex;align-items:center;gap:12px;margin-top:40px}.identity-avatar,.conversation-avatar,.mini-avatar{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:var(--green-pale);color:var(--green-dark);font-weight:750}.identity-avatar{width:38px;height:38px;font-size:12px}.identity-note strong,.identity-note span{display:block}.identity-note strong{font-size:12px}.identity-note span{margin-top:3px;color:var(--muted);font-size:11px}.feature-list{display:flex;gap:22px;margin-top:53px;padding-top:20px;border-top:1px solid var(--line)}.feature-list div{display:flex;flex-direction:column;gap:7px}.feature-list b{color:var(--green);font-size:10px;letter-spacing:.12em}.feature-list span{color:#555d60;font-size:12px}.chat-card{display:flex;flex-direction:column;min-height:min(660px,calc(100vh - 154px));overflow:hidden;background:var(--panel);border:1px solid #dfe3e3;border-radius:8px;box-shadow:0 12px 35px #222e2912}.chat-card-head{display:flex;align-items:flex-start;justify-content:space-between;flex:0 0 auto;padding:25px 28px 22px;border-bottom:1px solid var(--line)}.live-label{display:flex;align-items:center;gap:6px;color:var(--green);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.live-label i{width:6px;height:6px;border-radius:50%;background:var(--green)}.chat-card-head h2{margin:9px 0 5px;font-size:19px;font-weight:650;letter-spacing:-.025em}.chat-card-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}.chat-head-actions{display:flex;align-items:center;gap:6px}.header-action{display:inline-flex;min-height:31px;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--muted);font-size:11px}.header-action:hover{border-color:#b5c9bf;color:var(--green)}.header-action.is-danger{color:var(--red)}.header-action.is-danger:hover{border-color:#efc2c2;color:#b53838;background:#fff8f8}.round-button{display:grid;width:31px;height:31px;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);font-size:16px}.round-button:hover{border-color:#b5c9bf;color:var(--green)}.message-list{flex:1;min-height:300px;overflow:auto;padding:26px 28px;background:#fbfcfc}.message-empty{display:flex;height:100%;min-height:280px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}.message-empty-symbol{display:grid;width:48px;height:48px;margin-bottom:15px;place-items:center;border:1px solid #cfe4d9;border-radius:50%;color:var(--green);font-size:15px;font-weight:800}.message-empty h2{margin:0 0 7px;color:#4e5855;font-size:15px;font-weight:650}.message-empty p{margin:0;font-size:12px}.message-row{display:flex;align-items:flex-start;gap:10px;margin:0 0 22px}.message-row.is-mine{flex-direction:row-reverse}.message-avatar{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:50%;background:#e9ecec;color:#747d7b;font-size:10px;font-weight:700}.message-avatar.accent{background:var(--green-pale);color:var(--green-dark)}.message-stack{display:flex;max-width:min(76%,440px);flex-direction:column;gap:5px}.message-row.is-mine .message-stack{align-items:flex-end}.message-bubble{padding:11px 14px;border-radius:6px 12px 12px;background:#edf0ef;color:#303635;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.message-row.is-mine .message-bubble{border-radius:12px 6px 12px 12px;background:var(--green);color:#fff}.message-stack time{color:#a3aaa8;font-size:10px}.image-bubble{padding:4px;background:#edf0ef}.message-row.is-mine .image-bubble{background:var(--green)}.chat-image{display:block;max-width:min(260px,58vw);max-height:260px;border-radius:8px;object-fit:cover}.composer{display:flex;align-items:flex-end;gap:10px;padding:14px 17px;background:#fff;border-top:1px solid var(--line)}.composer textarea{flex:1;min-height:34px;max-height:120px;resize:none;padding:8px 2px;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px;line-height:1.45}.composer textarea::placeholder{color:#a8aeaf}.icon-button,.send-button{display:inline-flex;align-items:center;justify-content:center;border:0}.icon-button{width:33px;height:33px;flex:0 0 33px;color:#88908d;font-size:20px;cursor:pointer}.icon-button:hover{color:var(--green)}.send-button{min-width:68px;height:34px;gap:6px;padding:0 12px;border-radius:5px;background:var(--ink);color:#fff;font-size:12px}.send-button:hover{background:var(--green-dark)}.send-button span{font-size:12px}.locked-composer{display:flex;align-items:center;justify-content:center;gap:8px;min-height:63px;border-top:1px solid var(--line);color:#9aa19f;font-size:12px}.inline-error{margin:0 auto 16px;padding:10px 12px;border:1px solid #f1d0d0;border-radius:5px;background:#fff6f6;color:var(--red);font-size:12px;line-height:1.5}.owner-workspace{display:grid;grid-template-columns:minmax(280px,350px) minmax(0,1fr);width:min(1120px,100%);min-height:calc(100vh - 72px);margin:0 auto;background:#fff;border-right:1px solid var(--line);border-left:1px solid var(--line)}.inbox-panel{display:flex;min-width:0;min-height:0;flex-direction:column;background:#fff;border-right:1px solid var(--line)}.inbox-top{padding:18px 24px 14px;border-bottom:1px solid var(--line)}.inbox-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.inbox-top h1{margin:0;font-size:21px;font-weight:650;letter-spacing:-.035em}.count-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:11px}.inbox-list{flex:1;min-height:0;overflow:auto}.conversation-item{--conversation-actions-width: 128px;position:relative;display:block;width:100%;flex:none;overflow:hidden;background:#f4f5f6;text-align:left;touch-action:pan-y}.conversation-surface{position:relative;z-index:1;display:flex;width:100%;gap:11px;padding:16px 18px;border-bottom:1px solid #f0f2f1;background:#fff;transition:transform .22s ease;will-change:transform}.conversation-item:hover .conversation-surface{background:#f9fbfa}.conversation-item.is-selected .conversation-surface{background:var(--green-pale)}.conversation-item.is-selected .conversation-avatar{background:var(--green);color:#fff}.conversation-item.is-open .conversation-surface{transform:translate3d(calc(0px - var(--conversation-actions-width)),0,0)}.conversation-avatar{width:36px;height:36px;font-size:11px}.conversation-meta{min-width:0;flex:1}.conversation-line{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.conversation-line strong{overflow:hidden;color:#303634;font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.conversation-line time{flex:0 0 auto;color:#a1a8a5;font-size:10px}.conversation-line:nth-child(2){margin-top:7px}.preview{overflow:hidden;color:#8a9290;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.unread-badge{display:grid;min-width:17px;height:17px;margin-left:4px;place-items:center;padding:0 4px;border-radius:9px;background:var(--red);color:#fff;font-size:9px}.conversation-actions{position:absolute;z-index:0;inset:0 0 0 auto;display:flex;width:var(--conversation-actions-width);visibility:hidden;opacity:0;background:#f4f5f6;transition:opacity .18s ease}.conversation-item.is-open .conversation-actions{visibility:visible;opacity:1}.conversation-action{display:inline-flex;width:50%;height:100%;min-width:0;align-items:center;justify-content:center;gap:4px;padding:0 7px;border:0;border-left:1px solid #e2e5e7;background:#f4f5f6;color:var(--muted);font-size:10px;line-height:1;white-space:nowrap}.conversation-action>span:first-child{font-size:13px}.conversation-action:hover:not(:disabled){border-color:#b5c9bf;background:var(--green-pale);color:var(--green-dark)}.conversation-action.is-danger{color:var(--red)}.conversation-action.is-danger:hover:not(:disabled){border-color:#efc2c2;background:#fff8f8;color:#b53838}.conversation-action:disabled{cursor:wait;opacity:.55}.inbox-foot{display:flex;align-items:center;gap:9px;padding:15px 18px;border-top:1px solid var(--line)}.mini-avatar{width:29px;height:29px;background:var(--ink);color:#fff;font-size:11px}.inbox-foot strong,.inbox-foot small{display:block}.inbox-foot strong{font-size:11px}.inbox-foot small{margin-top:2px;color:var(--muted);font-size:10px}.inbox-foot button{margin-left:auto;padding:4px 0;border:0;background:transparent;color:var(--muted);font-size:11px}.inbox-foot button:hover{color:var(--red)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:230px;padding:24px;text-align:center}.empty-mark{display:grid;width:42px;height:42px;margin-bottom:14px;place-items:center;border:1px solid var(--line);border-radius:50%;color:#afb6b4;font-size:18px}.empty-state h2{margin:0 0 7px;color:#5a6460;font-size:14px}.empty-state p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}.owner-chat-panel{display:flex;min-width:0;min-height:0;flex-direction:column;background:#fbfcfc}.owner-chat-empty{align-items:center;justify-content:center}.owner-chat-head{display:flex;align-items:flex-start;justify-content:space-between;flex:0 0 auto;gap:16px;min-height:89px;padding:20px 24px 17px;background:#fff;border-bottom:1px solid var(--line)}.owner-chat-head h2{margin:9px 0 4px;color:var(--ink);font-size:17px;font-weight:650;letter-spacing:-.02em}.owner-chat-head p{margin:0;color:var(--muted);font-size:11px}.owner-message-list{min-height:280px}.owner-login{display:flex;align-items:center;justify-content:center;width:100%;margin:auto;padding:70px 48px}.login-panel{width:min(420px,100%);padding:29px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 35px #222e2912}.login-panel h2{margin:0 0 24px;font-size:23px;font-weight:650}.field-label{display:block;margin-bottom:7px;color:#59625f;font-size:11px;font-weight:650}.text-input{width:100%;height:43px;padding:0 12px;border:1px solid #d9dfdc;border-radius:5px;outline:0;color:var(--ink);font-size:13px}.text-input:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green-pale)}.primary-button{display:flex;width:100%;height:43px;align-items:center;justify-content:space-between;margin-top:18px;padding:0 14px;border:0;border-radius:5px;background:var(--ink);color:#fff;font-size:12px;font-weight:650}.primary-button:hover{background:var(--green-dark)}.toast{position:fixed;z-index:5;right:24px;bottom:24px;padding:11px 15px;border:1px solid #cfe4d9;border-radius:5px;background:#f4fbf7;color:var(--green-dark);font-size:12px;box-shadow:0 8px 20px #182d241f}@media(max-width:900px){.topbar{padding:0 24px}.visitor-page{grid-template-columns:1fr;gap:38px;padding-top:45px}.visitor-chat-page{padding:24px 24px 30px}.intro-column{max-width:620px}.feature-list{margin-top:32px}.chat-card{min-height:620px}}@media(max-width:680px){.topbar{height:62px;flex-basis:62px;padding:0 16px;gap:10px}.brand small,.connection-status{display:none}.main-content{min-height:calc(100vh - 62px)}.page-grid{padding:30px 16px 46px}.visitor-chat-page{width:100%;padding:0}.visitor-chat-card{height:calc(100vh - 62px);height:calc(100dvh - 62px);min-height:0;border-right:0;border-bottom:0;border-left:0;border-radius:0;box-shadow:none}.intro-column h1{margin-top:13px;font-size:42px}.lead{font-size:13px}.identity-note{margin-top:24px}.feature-list{margin-top:28px;gap:14px}.chat-card{min-height:calc(100vh - 216px);border-radius:6px}.chat-card-head{padding:19px 17px 17px}.chat-card-head h2{font-size:17px}.message-list{padding:20px 14px}.visitor-chat-card .message-list{min-height:0}.message-stack{max-width:82%}.composer{padding:11px 10px calc(11px + env(safe-area-inset-bottom))}.send-button{min-width:42px;padding:0 9px}.send-button span{display:none}.owner-workspace{display:flex;flex-direction:column;min-height:calc(100vh - 62px);border-right:0;border-left:0}.inbox-panel{flex:0 0 auto;min-height:0;max-height:43vh;border-right:0;border-bottom:1px solid var(--line)}.inbox-top{padding:14px 16px 11px}.inbox-top h1{font-size:18px}.inbox-list{display:block;overflow-y:auto}.conversation-item{--conversation-actions-width: 120px;width:100%;flex:none;border-right:0}.conversation-surface{padding:13px 14px}.conversation-action{padding:0 5px}.inbox-foot{display:none}.owner-chat-panel{min-height:57vh;flex:1}.owner-chat-head{min-height:76px;padding:15px 16px 13px}.owner-chat-head h2{font-size:16px}.owner-message-list{min-height:200px;padding:18px 14px}.owner-login{padding:44px 22px}.toast{right:12px;bottom:12px;left:12px;text-align:center}}
