*{box-sizing:border-box}body,html{min-height:100%;margin:0}body{font-family:Inter,Arial,Microsoft YaHei,sans-serif;background:#eef3f8;color:#172033}button,input,select{font:inherit}button{border:0;cursor:pointer}.page{min-height:100vh;padding:20px}.support-page{display:grid;place-items:center;background:linear-gradient(135deg,#eef6ff,#f7fafc 48%,#edf8f3)}.support-card{width:min(1120px,100%);height:min(760px,calc(100vh - 40px));display:grid;grid-template-columns:360px 1fr;background:#fff;border:1px solid #dbe6f2;border-radius:24px;box-shadow:0 24px 70px #0f172a24;overflow:hidden}.welcome-panel{display:flex;flex-direction:column;justify-content:space-between;gap:20px;padding:28px;background:#102033;color:#fff}.welcome-copy h1{margin:0 0 10px;font-size:34px;line-height:1.1}.welcome-copy p{margin:0 0 12px;color:#dbeafe;font-size:16px}.welcome-copy span{color:#9ee6bf;font-size:13px}.auth-box{background:#ffffff12;border:1px solid #ffffff22;border-radius:18px;padding:12px}.auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:6px;gap:6px;margin-bottom:12px}.auth-tabs button{border-radius:11px;padding:10px 8px;background:transparent;color:#dbeafe}.auth-tabs button.active{background:white;color:#102033}.auth-form,.guest-box{display:grid;grid-gap:10px;gap:10px}.guest-box p{margin:0;color:#cbd5e1;font-size:13px;line-height:1.5}.auth-form input,.composer input[type=text],.login input,.mini-form input,.mini-form select{width:100%;border:1px solid #d7e1ed;border-radius:12px;padding:12px;background:white;color:#172033}.form-error{margin:0;color:#fecaca;font-size:13px}.chat{min-width:0;flex-direction:column;background:#fff}.chat,.head{display:flex}.head{padding:18px 20px;background:white;border-bottom:1px solid #e5edf5;justify-content:space-between;align-items:center;gap:12px}.head div{display:grid;grid-gap:4px;gap:4px}.head b{font-size:17px}.head small,.head span,.toolbar small{color:#64748b;font-size:12px}.msgs{flex:1 1;overflow:auto;padding:20px;background:#f4f8fc}.msg{max-width:72%;width:max-content;margin:9px 0;padding:11px 13px;border-radius:16px;background:white;box-shadow:0 2px 12px #0f172a12;line-height:1.45;overflow-wrap:anywhere}.msg.me{margin-left:auto;background:#dff2ff}.msg img{max-width:min(280px,72vw);border-radius:12px;display:block}.time{font-size:11px;color:#64748b;margin-top:5px}.composer{display:grid;grid-template-columns:auto 1fr auto;grid-gap:10px;gap:10px;padding:12px;border-top:1px solid #e5edf5;background:white}.btn,.file-btn,button{border-radius:12px;background:#1667d9;color:white;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;min-height:42px}.btn.secondary,.secondary{background:#64748b}.file-btn{background:#e8f1ff;color:#1659b8;position:relative;overflow:hidden}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.admin{display:grid;grid-template-columns:310px 1fr;min-height:100vh;background:#edf3f8}.side{background:#101b2c;color:white;padding:18px;overflow:auto}.brand{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}.brand h2{margin:0;font-size:22px}.brand span{font-size:12px;color:#9ee6bf}.side h3{font-size:12px;letter-spacing:.08em;color:#94a3b8;margin:20px 0 8px}.session{width:100%;text-align:left;padding:12px;margin:8px 0;border-radius:14px;background:#1d2b42;color:white;display:grid;grid-template-columns:1fr auto;grid-gap:4px;gap:4px}.session.active{outline:2px solid #38bdf8;background:#233854}.session p{grid-column:1/-1;margin:0;color:#b6c4d6;font-size:12px}.badge{background:#ef4444;border-radius:999px;padding:2px 7px;font-size:12px}.main{min-width:0;display:flex;flex-direction:column;height:100vh}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;background:white;border-bottom:1px solid #dbe6f2}.toolbar>div:first-child{display:grid;grid-gap:3px;gap:3px}.toolbar-actions{display:flex;gap:8px}.workspace{min-height:0;flex:1 1;display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-gap:14px;gap:14px;padding:14px}.chat-panel{min-width:0;display:flex;flex-direction:column;overflow:hidden}.admin-panel,.chat-panel{background:white;border:1px solid #dbe6f2;border-radius:18px}.admin-panel{padding:16px;overflow:auto}.admin-panel h3{margin:0 0 12px}.mini-form{display:grid;grid-gap:9px;gap:9px}.admin-list{display:grid;grid-gap:8px;gap:8px;margin-top:16px}.admin-list div{display:flex;justify-content:space-between;gap:10px;padding:10px;border-radius:12px;background:#f4f8fc}.admin-list span{font-size:12px;color:#64748b}.login{width:min(420px,100%);background:white;padding:26px;border-radius:20px;box-shadow:0 14px 44px #0f172a22;display:grid;grid-gap:12px;gap:12px}.login h2{margin:0 0 4px}.empty-state{margin:auto;color:#64748b}.mobile-shell{padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.mobile-shell .support-card{height:calc(100vh - 20px);grid-template-columns:1fr;border-radius:18px}.mobile-shell .welcome-panel{padding:14px;gap:12px}.mobile-shell .welcome-copy{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-shell .welcome-copy h1{font-size:22px;margin:0}.mobile-shell .welcome-copy p{display:none}.mobile-shell .welcome-copy span{font-size:12px}.mobile-shell .auth-box{padding:8px}.mobile-shell .support-card{grid-template-rows:auto minmax(0,1fr)}.mobile-shell .chat{min-height:0}.mobile-shell .head{padding:12px 14px}.mobile-shell .msgs{padding:14px}.mobile-shell .msg{max-width:86%;font-size:15px}.mobile-shell .composer{grid-template-columns:auto minmax(0,1fr) auto;padding:10px;gap:8px}.mobile-shell .composer input[type=text]{padding:11px}.mobile-shell .file-btn,.mobile-shell button{padding:10px 12px;min-height:40px}.android .composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}@media(max-width:900px){.support-card{grid-template-columns:320px 1fr}.workspace{grid-template-columns:1fr}.admin-panel{order:-1}.admin{grid-template-columns:1fr}.side{max-height:38vh}.main{height:auto;min-height:62vh}}@media(max-width:760px){.page{padding:10px}.support-card{grid-template-columns:1fr;height:calc(100vh - 20px);border-radius:18px}.welcome-panel{padding:14px}.welcome-copy h1{font-size:24px}.composer{grid-template-columns:auto minmax(0,1fr) auto}.msg{max-width:86%}.toolbar{align-items:flex-start}.toolbar-actions{flex-wrap:wrap}.workspace{padding:10px}.admin-panel{display:none}}