:root{color-scheme:dark;font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#f3f0fb;background:#09090f}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0%,#28204465,transparent 55%);min-height:100vh}main{max-width:1120px;padding:35px 24px 24px;margin:auto}a{color:#bab3cb;text-decoration:none}.back{font-size:14px}header{margin:42px 0 30px}.eyebrow{letter-spacing:3px;font-size:12px;color:#b8a1e8}h1{font-size:clamp(30px,5vw,44px);font-weight:650;letter-spacing:-1px;margin:13px 0}h2{font-size:19px;margin:0}p{font-size:14px;color:#aba6b8;line-height:1.8;margin:12px 0}header p{font-size:16px}.workspace{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:20px}.card{background:linear-gradient(135deg,#24212d9c,#14131dad);border:1px solid #ffffff14;border-radius:24px;padding:26px;min-width:0}.section-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.badge{border:1px solid #ffffff1c;padding:6px 10px;border-radius:30px;font-size:12px;white-space:nowrap;color:#c8b0ee}.badge.online{color:#a6e4bf;border-color:#64c18c40;background:#23433140}ol{padding-left:21px;margin:24px 0;color:#cbc5d6;font-size:13px;line-height:2.2}button{cursor:pointer;border:0;border-radius:12px;background:linear-gradient(130deg,#cebbf6,#958edc);color:#151020;padding:13px 18px;font-size:14px;font-weight:600;font-family:inherit;min-height:44px}button:hover{filter:brightness(1.1)}button:disabled{cursor:default;opacity:.4}.secondary{background:#ffffff09;border:1px solid #ffffff18;color:#b6b0c5}.actions{display:flex;flex-wrap:wrap;gap:10px}.actions button{flex:1}.notice{font-size:13px;color:#c8b5e9}.scope-note{margin-top:24px;padding-top:20px;border-top:1px solid #ffffff12}.scope-note strong{font-size:13px;color:#d4cddd}.scope-note p{font-size:12px;line-height:1.85;color:#898292}.qr-panel{text-align:center;margin:20px 0}.qr-panel img{width:230px;max-width:100%;aspect-ratio:1;background:white;border-radius:12px;padding:10px}.qr-panel p{font-size:13px;color:#c6b6e7}label{display:block;font-size:13px;color:#bbb0d0;margin:12px 0 7px}input,textarea{background:#08070f70;border:1px solid #ffffff20;border-radius:12px;padding:12px;color:#f6f1ff;font-size:15px;line-height:1.7;font-family:inherit;width:100%;outline:none}input:focus,textarea:focus{border-color:#b095e699}input{margin-bottom:12px}textarea{resize:vertical;min-height:95px;max-height:240px}.chat{display:flex;flex-direction:column;min-height:650px}.small{font-size:12px;margin:5px 0}.orb{height:27px;width:27px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#eee4ff,#a388df 40%,#393358);box-shadow:0 0 25px #9d7be638}.messages{flex:1;min-height:280px;max-height:510px;overflow:auto;margin:22px 0;padding-right:5px;scrollbar-width:thin}.empty{height:250px;display:grid;place-content:center;text-align:center;font-size:14px;color:#777081;line-height:2}.turn{margin:15px 0}.source{font-size:11px;letter-spacing:.5px;color:#807789;margin:0 2px 7px}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:14px;padding:14px 16px;border-radius:15px;background:#ffffff06;color:#d9d4e3}.question{margin-left:26px;background:#8270bd26;color:#e2d7f8}.reply{margin:10px 20px 0 0}.state{font-size:12px;color:#a79abb;margin:10px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.composer-bottom span{font-size:11px;color:#777081}.composer-bottom button{border-radius:30px;min-width:80px}footer{font-size:12px;text-align:center;color:#686170;padding-top:28px}.error{color:#f4b7c0;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:780px){main{padding:24px 16px}.workspace{grid-template-columns:1fr}header{margin:30px 0 24px}.card{padding:21px;border-radius:20px}.chat{min-height:560px}.messages{max-height:480px}.question{margin-left:12px}.reply{margin-right:10px}footer{line-height:1.8}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.scope-note summary{font-size:13px;color:#c9c0d9;cursor:pointer;padding:2px 0;line-height:1.7}
.back{display:inline-flex;align-items:center;min-height:44px}main{max-width:800px}header{margin:18px 0 22px}h1{font-size:30px}.workspace{grid-template-columns:1fr}.connection .actions>button{flex:1;min-height:48px}.scope-note{margin-top:12px}.scope-note summary{min-height:32px}.connection h2{font-size:20px}.badge{max-width:55%;text-align:right;line-height:1.6}.chat{min-height:440px}

@media(max-width:620px){
  main{padding:18px max(9px,env(safe-area-inset-right)) 24px max(9px,env(safe-area-inset-left))}
  .card{padding:18px 12px;border-radius:20px}.workspace{gap:14px}
  .bubble{padding:12px;font-size:15px;line-height:1.75}.messages{padding-right:0}
  input,textarea{font-size:16px}.reply{margin-right:0}.question{margin-left:16px}
  .scope-note p,ol{font-size:13px}.back{display:inline-flex;align-items:center;min-height:44px}
  .chat{min-height:360px}.messages{min-height:120px}.empty{height:120px}
}
@media(max-width:800px){
  p,button,.back{font-size:15px}.bubble{font-size:16px;line-height:1.75}
  .small,.badge,.source,.state,.composer-bottom span{font-size:13px}
  .scope-note p,.scope-note summary,.scope-note strong,ol,label,.notice,.qr-panel p{font-size:14px}
}
