*{box-sizing:border-box}body{color:#1f2933;background:#f5f7fb;margin:0;font-family:Inter,Microsoft YaHei,system-ui,sans-serif;overflow:hidden}.appRoot{height:100vh;min-height:0;overflow:hidden}button,textarea,input{font:inherit}.shell{grid-template-columns:280px 1fr;height:calc(100vh - 49px);display:grid;overflow:hidden}.topTabs{background:#fff;border-bottom:1px solid #dde3ed;align-items:center;gap:8px;height:49px;padding:8px 14px;display:flex}.topTabs button{color:#475569;cursor:pointer;background:0 0;border:0;border-radius:8px;height:32px;padding:0 12px}.topTabs button.active{color:#fff;background:#2563eb}.topTabs button{position:relative}.topTabBadge{color:#ef4444;background:#fee2e2;border-radius:999px;justify-content:center;align-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;font-size:12px;font-weight:800;line-height:1;display:inline-flex}.topTabs button.active .topTabBadge{color:#2563eb;background:#ffffffeb}.topTabDot{background:#fa5151;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:5px;right:5px;box-shadow:0 1px 4px #fa515173}.sidebar{background:#fff;border-right:1px solid #dde3ed;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.sideTop{border-bottom:1px solid #eef2f7;justify-content:space-between;align-items:center;padding:16px;display:flex}.sideTop button,.chatHeader button,.composer button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;padding:8px 12px}.topicList{overscroll-behavior:contain;flex:1;min-height:0;padding:8px;overflow-y:auto}.topic{color:#334155;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;width:100%;min-height:42px;margin-bottom:4px;padding:10px 12px;display:block}.topic span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.topic.active{color:#1d4ed8;background:#e8f0ff}.chat{grid-template-rows:auto 1fr auto;min-width:0;min-height:0;display:grid;overflow:hidden}.chatHeader{background:#ffffffeb;border-bottom:1px solid #dde3ed;justify-content:space-between;align-items:center;gap:16px;padding:14px 22px;display:flex}.chatHeader h1{margin:0;font-size:18px}.chatHeader p{color:#64748b;margin:4px 0 0;font-size:13px}.messages{overscroll-behavior:contain;min-height:0;padding:24px;overflow:auto}.message{margin-bottom:16px;display:flex}.message div{white-space:pre-wrap;border-radius:8px;max-width:min(760px,82%);padding:12px 14px;line-height:1.65}.message.user{justify-content:flex-end}.message.user div{color:#fff;background:#2563eb}.message.assistant div{background:#fff;border:1px solid #e2e8f0}.composer{background:#fff;border-top:1px solid #dde3ed;grid-template-columns:1fr auto;gap:12px;padding:16px 22px 20px;display:grid}.composer textarea{resize:vertical;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;min-height:54px;max-height:160px;padding:12px}.composer button:disabled,.chatHeader button:disabled{opacity:.45;cursor:not-allowed}.viewPane{height:calc(100vh - 49px);min-height:0;display:none;overflow:hidden}.viewPane.active{display:block}.monitorInlineShell{background:#f8fafc;height:calc(100vh - 49px);min-height:0;position:relative;overflow:hidden}.monitorInlineHost{height:100%;min-height:0;overflow:hidden}.monitorInlineStatus{z-index:5;color:#fff;background:#0f172ad1;border-radius:999px;padding:8px 14px;font-size:13px;position:absolute;top:12px;left:50%;transform:translate(-50%)}.chatHeaderActions{align-items:center;gap:8px;display:flex}.mobileTopicToggle,.mainNavDrawerToggle,.agentTopicDrawerToggle{display:none}.controlShell{grid-template-columns:260px 360px 1fr;height:calc(100vh - 49px);display:grid;overflow:hidden}.controlPanel,.taskList,.reviewPane{overscroll-behavior:contain;min-height:0;overflow:auto}.controlPanel{background:#fff;border-right:1px solid #dde3ed;padding:16px}.controlPanel h2,.taskHeader h2{margin:0 0 12px;font-size:16px}.deviceCard{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:4px;margin-bottom:8px;padding:12px;display:grid}.tanmaForm{gap:8px;margin-bottom:10px;display:grid}.tanmaForm input{border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;height:36px;padding:0 10px}.tanmaActions{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.tanmaActions button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;min-width:0;padding:8px 6px;font-size:12px}.hint{color:#64748b;margin:0 0 18px;font-size:12px;line-height:1.5}.deviceCard span,.deviceCard em,.reviewTask span,.reviewTask em{color:#64748b;font-size:12px;font-style:normal}.taskList{background:#f8fafc;border-right:1px solid #dde3ed}.taskHeader{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:16px;display:flex;position:sticky;top:0}.taskHeader button,.reviewActions button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;padding:8px 12px}.reviewTask{text-align:left;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;gap:6px;width:calc(100% - 16px);margin:8px;padding:12px;display:grid}.reviewTask.active{background:#e8f0ff;border-color:#2563eb}.reviewTask span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reviewPane{background:#fff;grid-template-rows:auto auto 1fr auto;padding:22px;display:grid}.reviewPane header h1{margin:0;font-size:20px}.reviewPane header p{color:#64748b;margin:6px 0 0}.reviewBlock{gap:8px;margin-top:18px;display:grid}.reviewBlock label{color:#475569;font-size:13px;font-weight:700}.reviewText,.reviewBlock textarea{white-space:pre-wrap;border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:12px;line-height:1.65}.reviewText.inbound{background:#f8fafc}.reviewBlock textarea{resize:vertical;min-height:260px}.reviewActions{gap:10px;padding-top:18px;display:flex}.reviewActions .ghost{color:#334155;background:#e2e8f0}.emptyState{color:#64748b;place-items:center;display:grid}.monitorShell{grid-template-columns:360px 1fr;height:calc(100vh - 49px);display:grid;overflow:hidden}.monitorSide,.monitorMain{min-height:0;overflow:hidden}.monitorSide{background:#fff;border-right:1px solid #dde3ed;grid-template-rows:auto auto 1fr;display:grid}.monitorConfig{border-bottom:1px solid #e2e8f0;padding:14px}.monitorConfig h2,.aiPanel h2{margin:0 0 10px;font-size:16px}.monitorConfig input,.monitorConfig textarea{border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;margin-top:8px;padding:9px 10px}.monitorConfig textarea{resize:vertical;min-height:70px}.monitorActions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.monitorActions button,.monitorHeader button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;padding:8px 10px}.monitorActions button:disabled,.monitorHeader button:disabled{opacity:.45;cursor:not-allowed}.monitorConfig p,.noticeList p,.conversationList p,.monitorHeader p,.aiPanel p{color:#64748b;margin:8px 0 0;font-size:12px;line-height:1.5}.monitorConfig .bad{color:#b91c1c}.monitorConfig .ok{color:#166534}.noticeList{overscroll-behavior:contain;border-bottom:1px solid #e2e8f0;max-height:116px;overflow:auto}.noticeItem{color:#9a3412;text-align:left;cursor:pointer;background:#fff7ed;border:0;border-bottom:1px solid #fed7aa;gap:4px;width:100%;padding:10px 12px;display:grid}.noticeItem span{font-size:12px}.conversationList{overscroll-behavior:contain;min-height:0;overflow:auto}.conversationItem{color:#334155;text-align:left;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #edf2f7;grid-template-columns:1fr auto;gap:8px;width:100%;padding:12px 14px;display:grid}.conversationItem.active{background:#e8f0ff}.conversationItem strong,.conversationItem small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.conversationItem small{color:#64748b;margin-top:4px;font-size:12px}.conversationItem em{color:#475569;background:#e2e8f0;border-radius:999px;place-items:center;min-width:24px;height:24px;font-size:12px;font-style:normal;display:grid}.monitorMain{background:#f8fafc;grid-template-rows:auto 1fr auto;display:grid}.monitorHeader{background:#fff;border-bottom:1px solid #dde3ed;justify-content:space-between;gap:16px;padding:16px 20px;display:flex}.monitorHeader h1{margin:0;font-size:20px}.monitorMessages{overscroll-behavior:contain;min-height:0;padding:20px;overflow:auto}.chatBubble{white-space:pre-wrap;background:#fff;border:1px solid #e2e8f0;border-radius:8px;max-width:72%;margin-bottom:12px;padding:10px 12px;line-height:1.65}.chatBubble.right{background:#dcfce7;border-color:#bbf7d0;margin-left:auto}.chatBubble small{color:#64748b;margin-bottom:4px;font-size:12px;display:block}.chatBubble p{margin:0}.emptyChat{color:#64748b}.aiPanel{background:#fff;border-top:1px solid #dde3ed;grid-template-columns:minmax(150px,220px) 1fr auto;align-items:start;gap:12px;padding:14px 20px 18px;display:grid}.aiPanel textarea{resize:vertical;border:1px solid #cbd5e1;border-radius:8px;width:100%;min-height:96px;padding:10px}@media (width<=980px){.monitorShell{grid-template-columns:1fr}.monitorSide{max-height:48vh}.aiPanel{grid-template-columns:1fr}}.controlShell.compactControl{background:#eef3f8;grid-template-columns:360px 1fr}.compactSide{background:#f8fafc;flex-direction:column;gap:14px;padding:18px;display:flex}.controlHero{color:#fff;background:linear-gradient(135deg,#1d4ed8,#38bdf8);border-radius:18px;justify-content:space-between;align-items:flex-start;padding:18px;display:flex;box-shadow:0 14px 32px #2563eb38}.controlHero p,.controlHero h1,.controlHero span{margin:0}.controlHero p{opacity:.9;font-size:13px}.controlHero h1{margin-top:8px;font-size:46px;line-height:1}.controlHero span{opacity:.9;margin-top:6px;font-size:13px;display:block}.controlHero button,.reviewTopActions button,.stickyActions button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;padding:10px 14px;font-weight:700}.controlHero button{background:#fff3;border:1px solid #fff6}.statGrid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.statGrid div,.deviceStrip,.compactTaskList{background:#fff;border:1px solid #e2e8f0;border-radius:16px}.statGrid div{text-align:center;gap:3px;padding:14px 10px;display:grid}.statGrid strong{color:#0f172a;font-size:22px}.statGrid span,.muted,.deviceLine small,.compactTask small{color:#64748b;font-size:12px}.deviceStrip,.compactTaskList{padding:14px}.deviceStrip h2,.compactTaskList h2{margin:0 0 10px;font-size:15px}.deviceLine{border-top:1px solid #f1f5f9;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px 0;display:grid}.deviceLine:first-of-type{border-top:0}.deviceLine strong,.deviceLine small{display:block}.deviceLine em{color:#2563eb;font-size:12px;font-style:normal}.dot{background:#cbd5e1;border-radius:999px;width:9px;height:9px}.okDot{background:#22c55e;box-shadow:0 0 0 4px #22c55e1f}.compactTaskList{flex:1;min-height:0;overflow:auto}.compactTask{text-align:left;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;grid-template-columns:1fr auto;align-items:center;gap:10px;width:100%;margin-top:8px;padding:12px;display:grid}.compactTask.active{background:#eff6ff;border-color:#2563eb}.compactTask strong,.compactTask small{display:block}.compactTask small{text-overflow:ellipsis;white-space:nowrap;max-width:210px;margin-top:4px;overflow:hidden}.compactTask em{color:#1d4ed8;background:#dbeafe;border-radius:999px;padding:4px 8px;font-size:12px;font-style:normal}.wideReviewPane{border-radius:18px;grid-template-rows:auto 1fr auto;margin:18px;overflow:hidden;box-shadow:0 18px 48px #0f172a14}.reviewTopbar{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:16px;padding-bottom:16px;display:flex}.reviewTopActions{align-items:flex-start;gap:10px;display:flex}.agentSubmitGroup{flex-direction:column;gap:8px;min-width:190px;display:flex;position:relative}.agentSubmitGroup>button:first-child{width:100%}.customOptionToggle{font-size:13px;color:#334155!important;box-shadow:none!important;background:#f8fafc!important;border:1px solid #cbd5e1!important;padding:8px 10px!important}.customOptionPanel{z-index:20;background:#fff;border:1px solid #dbe3ef;border-radius:14px;width:min(360px,88vw);padding:12px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 45px #0f172a2e}.customOptionRadio{color:#334155;border-radius:10px;align-items:center;gap:8px;padding:8px 6px;font-size:13px;display:flex}.customOptionRadio:hover{background:#f1f5f9}.customOptionEditor{border-top:1px solid #e2e8f0;gap:8px;margin-top:8px;padding-top:10px;display:grid}.customOptionEditor input,.customOptionEditor textarea{width:100%;font:inherit;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:9px 10px}.customOptionEditor textarea{resize:vertical;min-height:90px}.agentSubmitHint{color:#64748b;font-size:12px;line-height:1.45;display:block}.agentQueueCard,.voiceUsageCard,.filterCard{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.agentQueueCard .sectionTitleRow input{border:1px solid #cbd5e1;border-radius:8px;width:66px;height:34px;padding:0 8px}.queueStatusList,.usageRecentList,.filterList{gap:8px;display:grid}.queueStatusItem,.usageRecentItem{background:#f8fafc;border-radius:10px;gap:3px;padding:9px 10px;display:grid}.queueStatusItem{grid-template-columns:1fr auto;align-items:center}.queueStatusItem strong,.usageRecentItem strong{text-overflow:ellipsis;white-space:nowrap;color:#0f172a;min-width:0;font-size:13px;overflow:hidden}.queueStatusItem span,.usageRecentItem span,.usageRecentItem small{color:#64748b;font-size:12px}.usageTotals{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px;display:grid}.usageTotals div{background:#f0f9ff;border-radius:10px;gap:2px;padding:10px;display:grid}.usageTotals strong{color:#075985;font-size:16px}.usageTotals span{color:#64748b;font-size:12px}.filterAddRow{grid-template-columns:1fr auto;gap:8px;margin-bottom:10px;display:grid}.filterAddRow input{border:1px solid #cbd5e1;border-radius:8px;min-width:0;padding:8px 10px}.filterAddRow button,.filterPill button,.replyReviewItem button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;padding:7px 10px;font-size:12px}.filterPill{color:#1d4ed8;background:#eff6ff;border-radius:999px;align-items:center;gap:6px;min-width:0;padding:6px 8px;font-size:12px;display:inline-flex}.filterPill.readonly{color:#475569;background:#f1f5f9}.filterPill.disabled{opacity:.55}.filterPill small{color:#64748b}.filterPill button{color:#1d4ed8;background:#dbeafe;padding:4px 6px}.reviewTopActions .ghost,.stickyActions .ghost{color:#334155;background:#e2e8f0}.reviewGrid{grid-template-columns:minmax(260px,.8fr) minmax(420px,1.2fr);gap:18px;min-height:0;display:grid;overflow:hidden}.roomyText{min-height:220px;max-height:calc(100vh - 285px);font-size:15px;overflow:auto}.replyBlock textarea{background:#fff;min-height:calc(100vh - 285px);font-size:15px}.replyReviewList{gap:10px;max-height:300px;margin-top:12px;padding-right:4px;display:grid;overflow:auto}.replyReviewItem{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;gap:8px;padding:10px;display:grid}.replyReviewItem>div{justify-content:space-between;align-items:center;gap:8px;display:flex}.replyReviewItem strong{color:#0f172a;font-size:13px}.replyReviewItem em{color:#64748b;font-size:12px;font-style:normal}.replyReviewItem textarea{resize:vertical;background:#fff;border:1px solid #cbd5e1;border-radius:8px;min-height:82px;padding:9px 10px}.replyReviewItem textarea:disabled{color:#64748b;background:#f1f5f9}.replyReviewItem button:disabled{opacity:.45;cursor:not-allowed}.stickyActions{border-top:1px solid #e2e8f0;justify-content:flex-end;margin-top:16px}.stickyActions button:disabled,.reviewTopActions button:disabled{opacity:.45;cursor:not-allowed}@media (width<=980px){.controlShell.compactControl{grid-template-columns:1fr;height:auto;overflow:auto}.compactSide{max-height:none}.reviewGrid{grid-template-columns:1fr}}.agentAuthCard{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.agentAuthCard.okAuth{background:#f0fdf4;border-color:#22c55e73}.agentAuthCard.badAuth{background:#fff7f7;border-color:#ef44446b}.agentAuthHead{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.agentAuthHead h2{margin:0;font-size:15px}.agentAuthHead p,.agentAuthMessage{color:#64748b;margin:4px 0 0;font-size:12px;line-height:1.5}.agentAuthHead button,.agentAuthActions button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;padding:7px 10px;font-size:12px}.agentAuthActions{grid-template-columns:repeat(2,auto) 1fr;gap:8px;margin-top:10px;display:grid}.agentAuthActions button:last-child{grid-column:1/-1}.agentAuthMeta{color:#475569;background:#ffffffb8;border-radius:10px;gap:3px;margin-top:8px;padding:8px 10px;font-size:11px;line-height:1.45;display:grid}.agentAuthMeta .authError{color:#dc2626;word-break:break-all}.agentAuthActions input{border:1px solid #cbd5e1;border-radius:8px;outline:none;min-width:0;padding:8px 10px}.agentAuthActions button:disabled,.agentAuthHead button:disabled{opacity:.45;cursor:not-allowed}.controlShell.deviceControlLayout{background:#eef3f8;grid-template-columns:390px 1fr}.deviceControlSide{min-width:0}.deviceDashboard{overscroll-behavior:contain;min-width:0;min-height:0;padding:18px;overflow:auto}.dashboardGrid{gap:16px;display:grid}.deviceControlCard,.deviceListCard,.commandLogCard{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px;box-shadow:0 10px 28px #0f172a0d}.topDeviceStatusCard,.topCommandLogCard{display:none}.inlineReviewPane{display:none!important}.deviceControlHead,.sectionTitleRow{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.deviceControlHead h2,.sectionTitleRow h2{margin:0;font-size:16px}.deviceControlHead p,.sectionTitleRow p,.deviceControlStatus{color:#64748b;margin:4px 0 0;font-size:12px;line-height:1.5}.sendSwitch{color:#b91c1c;background:#fee2e2;border-radius:999px;flex:none;padding:5px 8px;font-size:12px;font-weight:700}.sendSwitch.on{color:#166534;background:#dcfce7}.sendEnableButton,.deviceControlGrid button,.testMessageFields button,.sectionTitleRow button,.rowActions button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:9px;font-weight:700}.sendEnableButton{background:#0f172a;width:100%;margin-bottom:10px;padding:10px 12px}.sendEnableButton.on{background:#64748b}.deviceControlGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.deviceControlGrid button,.testMessageFields button{min-height:36px;padding:8px 10px;font-size:13px}.deviceControlGrid .ghost{color:#334155;background:#e2e8f0}.testMessageBox{border-top:1px solid #e2e8f0;gap:8px;margin-top:12px;padding-top:12px;display:grid}.testMessageBox label{color:#475569;font-size:13px;font-weight:700}.testMessageFields{grid-template-columns:120px 1fr;gap:8px;display:grid}.testMessageFields select,.testMessageFields input{border:1px solid #cbd5e1;border-radius:8px;outline:none;min-width:0;height:36px;padding:0 10px}.testMessageFields button{grid-column:span 2}.deviceControlStatus{background:#f8fafc;border-radius:10px;margin-top:10px;padding:8px 10px}.sectionTitleRow button{padding:8px 12px}.deviceTable{gap:8px;display:grid}.deviceTableHeader,.deviceTableRow{grid-template-columns:1.2fr .85fr 1fr 1fr .8fr 1.05fr 1.5fr;align-items:center;gap:8px;display:grid}.deviceTableHeader{color:#64748b;border-bottom:1px solid #e2e8f0;padding:0 10px 8px;font-size:12px;font-weight:700}.deviceTableRow{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;min-height:60px;padding:10px;font-size:13px}.deviceTableRow span{text-overflow:ellipsis;min-width:0;overflow:hidden}.deviceTableRow span:first-child{align-items:center;gap:8px;font-weight:700;display:flex}.deviceTableRow small{color:#64748b;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:11px;font-weight:400;display:block;overflow:hidden}.rowActions{flex-wrap:wrap;gap:5px;display:flex}.rowActions button{background:#1d4ed8;padding:5px 7px;font-size:12px}.emptyDeviceRow{text-align:center;color:#64748b;padding:22px}.inlineReviewPane{min-height:420px;margin:0}.commandLogList{gap:8px;display:grid}.commandLogItem{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;grid-template-columns:1fr 1.4fr auto auto;align-items:center;gap:8px;padding:10px;font-size:13px;display:grid}.commandLogItem span,.commandLogItem small{text-overflow:ellipsis;white-space:nowrap;color:#64748b;min-width:0;overflow:hidden}.commandLogItem em{color:#1d4ed8;background:#dbeafe;border-radius:999px;padding:4px 8px;font-size:12px;font-style:normal}@media (width<=1180px){.controlShell.deviceControlLayout{grid-template-columns:1fr;height:auto;overflow:auto}.deviceTableHeader{display:none}.deviceTableRow{grid-template-columns:1fr 1fr}.rowActions{grid-column:1/-1}}@media (width<=768px){html,body,#root{width:100%;height:auto;min-height:100%;overflow:hidden auto}body{-webkit-overflow-scrolling:touch;background:#eef3f8;overflow:auto}button,input,textarea,select{max-width:100%}.topTabs{z-index:100;white-space:nowrap;-webkit-overflow-scrolling:touch;height:auto;min-height:48px;padding:8px 10px;position:sticky;top:0;overflow:auto hidden}.topTabs button{flex:none;min-width:92px;height:36px;padding:0 12px}.shell{background:#f5f7fb;grid-template-columns:1fr;height:calc(100svh - 48px);min-height:calc(100svh - 48px);display:grid;position:relative;overflow:hidden}.shell>.sidebar{z-index:120;background:#fff;border-bottom:0;border-right:1px solid #dde3ed;width:min(82vw,320px);height:calc(100svh - 48px);max-height:none;transition:transform .22s;position:fixed;top:48px;bottom:0;left:0;overflow:hidden;transform:translate(-105%);box-shadow:16px 0 32px #0f172a29}.shell.topicsOpen>.sidebar{transform:translate(0)}.shell .sideTop{gap:10px;padding:12px}.shell .sideTop strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.shell .sideTop button{flex:none;min-height:34px;padding:7px 12px}.shell .topicList{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;min-height:0;padding:8px;display:block;overflow:hidden auto}.shell .topic{width:100%;min-height:42px;box-shadow:none;background:0 0;border:0;margin-bottom:4px;padding:10px 12px}.shell .topic.active{background:#e8f0ff}.shell>.chat{background:#f8fafc;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;display:grid;overflow:hidden}.shell .chatHeader{align-items:flex-start;gap:10px;padding:10px 12px}.shell .chatHeader h1{word-break:break-all;font-size:16px;line-height:1.35}.shell .chatHeader p{font-size:12px}.chatHeaderActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.mobileTopicToggle{display:inline-flex}.shell .chatHeader button{flex:none;min-height:34px;padding:7px 10px}.shell .messages{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;min-height:0;padding:12px;overflow-y:auto}.shell .message{margin-bottom:12px}.shell .message div{word-break:break-word;max-width:88%;padding:10px 12px;font-size:14px;line-height:1.6}.shell .composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;flex-shrink:0;grid-template-columns:1fr auto;gap:8px}.shell .composer textarea{min-height:44px;max-height:110px;padding:10px 11px;font-size:14px}.shell .composer button{min-width:58px;min-height:44px;padding:0 12px}.controlShell,.controlShell.compactControl,.controlShell.deviceControlLayout{flex-direction:column;height:auto;min-height:calc(100svh - 48px);display:flex;overflow:visible}.controlShell.deviceControlLayout{gap:12px;padding-bottom:16px}.monitorMain,.deviceDashboard,.controlPanel,.taskList,.reviewPane{min-width:0;min-height:0;overflow:visible}.controlPanel,.compactSide,.deviceControlSide,.deviceDashboard{width:100%}.deviceControlSide{max-height:none;position:static;overflow:visible}.monitorHeader,.reviewTopbar,.deviceControlHead,.sectionTitleRow{flex-direction:column;align-items:stretch;gap:10px;padding:12px}.monitorHeader button,.sectionTitleRow button{width:100%}.monitorMessages{-webkit-overflow-scrolling:touch;height:54svh;min-height:320px;padding:14px 12px;overflow-y:auto}.chatBubble{max-width:92%}.aiPanel{grid-template-columns:1fr;gap:10px;padding:12px}.aiPanel button{width:100%;min-height:42px}.deviceControlSide,.compactSide{gap:10px;padding:12px}.controlHero{border-radius:14px;padding:14px}.controlHero h1{font-size:38px}.statGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.statGrid div{padding:10px 8px}.agentAuthActions,.deviceControlGrid,.testMessageFields,.tanmaActions{grid-template-columns:1fr}.agentAuthActions button:last-child,.testMessageFields button{grid-column:auto}.agentAuthActions input,.testMessageFields input,.testMessageFields select{width:100%;min-height:38px}.deviceDashboard{padding:12px}.dashboardGrid{gap:12px}.deviceControlCard,.deviceListCard,.commandLogCard,.agentAuthCard{border-radius:14px;padding:12px}.deviceTableHeader{display:none}.deviceTableRow{grid-template-columns:1fr;align-items:stretch;gap:8px;padding:12px;display:grid}.deviceTableRow span:before{color:#64748b;margin-bottom:3px;font-size:11px;font-weight:700;display:block}.deviceTableRow span:first-child:before{content:"设备"}.deviceTableRow span:nth-child(2):before{content:"账号"}.deviceTableRow span:nth-child(3):before{content:"连接"}.deviceTableRow span:nth-child(4):before{content:"版本"}.deviceTableRow span:nth-child(5):before{content:"发送任务"}.deviceTableRow span:nth-child(6):before{content:"聊天记录"}.deviceTableRow span{white-space:normal;text-overflow:clip;word-break:break-word;overflow:visible}.deviceTableRow small{white-space:normal}.rowActions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.rowActions button{width:100%;min-height:34px}.wideReviewPane,.inlineReviewPane{border-radius:14px;min-height:auto;margin:12px;overflow:visible}.reviewTopActions,.reviewActions,.stickyActions{grid-template-columns:1fr;gap:8px;display:grid}.reviewGrid{grid-template-columns:1fr;gap:12px;overflow:visible}.roomyText{min-height:140px;max-height:none}.replyBlock textarea,.reviewBlock textarea{min-height:180px;max-height:none}.commandLogItem{grid-template-columns:1fr;align-items:stretch}.commandLogItem span,.commandLogItem small{white-space:normal;overflow:visible}.monitorInlineShell,.viewPane{height:calc(100svh - 48px);min-height:calc(100svh - 48px);overflow:hidden}.monitorInlineHost{width:100%;height:100%;min-height:calc(100svh - 48px)}}@media (width<=420px){.statGrid,.rowActions{grid-template-columns:1fr}.topTabs button{min-width:86px;font-size:13px}.monitorMessages{height:50svh}}@media (width<=768px){html,body,#root{width:100%;height:100%;min-height:100%;overflow:hidden}body{background:#eef3f8;overflow:hidden}.appRoot{background:#eef3f8;grid-template-columns:64px minmax(0,1fr);width:100%;height:100svh;min-height:0;display:grid;overflow:hidden}.appRoot.mainNavCollapsed{grid-template-columns:0 minmax(0,1fr)}.topTabs,.topTabs.mainModuleNav{z-index:100;width:64px;height:100svh;min-height:0;padding:calc(10px + env(safe-area-inset-top,0px)) 5px calc(10px + env(safe-area-inset-bottom,0px));white-space:normal;-webkit-overflow-scrolling:touch;background:#fffffffa;border-bottom:0;border-right:1px solid #dbe3ee;flex-direction:column;grid-area:1/1/span 3;align-items:stretch;gap:10px;display:flex;position:relative;overflow:hidden auto;box-shadow:8px 0 24px #0f172a14}.appRoot.mainNavCollapsed .topTabs.mainModuleNav{pointer-events:none;transform:translate(-105%)}.mainNavDrawerToggle{z-index:220;color:#2563eb;cursor:pointer;background:#fffffffa;border:1px solid #dbe3ee;border-left:0;border-radius:0 16px 16px 0;justify-content:center;align-items:center;width:24px;height:54px;font-size:24px;font-weight:900;display:flex;position:fixed;top:clamp(142px,22vh,196px);left:64px;transform:translateY(-50%);box-shadow:4px 0 14px #0f172a1f}.appRoot.mainNavCollapsed .mainNavDrawerToggle{left:0}.topTabs button,.topTabs.mainModuleNav button{color:#334155;text-align:center;white-space:normal;word-break:keep-all;overflow-wrap:normal;width:54px;min-width:0;height:auto;min-height:78px;box-shadow:none;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;flex:none;justify-content:center;align-items:center;padding:8px 4px;font-size:13px;font-weight:800;line-height:1.22;display:flex;position:relative}.topTabs button.active,.topTabs.mainModuleNav button.active{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 8px 18px #2563eb3d}.topTabLabel{max-width:4em;display:block}.topTabBadge{border:2px solid #fff;min-width:24px;height:20px;margin-left:0;padding:0 5px;font-size:11px;position:absolute;top:6px;right:3px}.topTabDot{width:15px;height:15px;top:8px;right:6px}.viewPane,.monitorInlineShell{grid-area:1/2;width:100%;height:100svh;min-height:0;overflow:hidden}.viewPane.active{display:block}.monitorInlineHost{width:100%;height:100%;min-height:0;overflow:hidden}.controlShell,.controlShell.compactControl,.controlShell.deviceControlLayout{-webkit-overflow-scrolling:touch;height:100svh;min-height:0;overflow:hidden auto}.topDeviceStatusCard{margin-bottom:12px;display:block}.deviceDashboard .deviceListCard{display:none}.topCommandLogCard{margin-bottom:12px;display:block}.deviceDashboard .commandLogCard{display:none}.shell{--agent-topic-width:clamp(150px, 34vw, 220px);grid-template-columns:var(--agent-topic-width) minmax(0, 1fr);height:100svh;min-height:0;overflow:hidden}.shell>.sidebar{width:var(--agent-topic-width);height:100svh;max-width:var(--agent-topic-width);position:relative;top:0;left:0;transform:translate(0)}.appRoot.mainNavCollapsed .shell>.sidebar{left:0}.shell.topicsClosed{grid-template-columns:0 minmax(0,1fr)}.shell.topicsClosed>.sidebar{pointer-events:none;transform:translate(-105%)}.agentTopicDrawerToggle{left:var(--agent-topic-width);z-index:180;color:#2563eb;cursor:pointer;background:#fffffffa;border:1px solid #dbe3ee;border-left:0;border-radius:0 16px 16px 0;justify-content:center;align-items:center;width:24px;height:54px;font-size:24px;font-weight:900;display:flex;position:absolute;top:50%;transform:translateY(-50%);box-shadow:4px 0 14px #0f172a1f}.shell.topicsClosed .agentTopicDrawerToggle{left:0}.shell .topicList{padding:8px 6px}.shell .topic{width:max-content;min-width:calc(var(--agent-topic-width) - 16px);max-width:calc(var(--agent-topic-width) - 12px);padding:10px}.shell>.chat{height:100svh;min-height:0}}@media (width<=420px){.appRoot{grid-template-columns:58px minmax(0,1fr)}.appRoot.mainNavCollapsed{grid-template-columns:0 minmax(0,1fr)}.topTabs,.topTabs.mainModuleNav{width:58px;padding-left:4px;padding-right:4px}.topTabs button,.topTabs.mainModuleNav button{width:50px;min-width:0;min-height:76px;font-size:12px}.shell>.sidebar{width:min(74vw,300px);left:58px}.mainNavDrawerToggle{left:58px}.appRoot.mainNavCollapsed .mainNavDrawerToggle,.appRoot.mainNavCollapsed .shell>.sidebar{left:0}}.agentTopicDrawer{background:#fff;min-width:0;min-height:0;display:flex;position:relative;overflow:visible}.agentTopicDrawer>.sidebar{border-right:1px solid #dde3ed;width:100%;min-width:0;min-height:0}@media (width<=768px){.shell{grid-template-columns:var(--agent-topic-width) minmax(0, 1fr)}.agentTopicDrawer{width:var(--agent-topic-width);grid-area:1/1;height:100svh;min-height:0}.agentTopicDrawer>.sidebar{width:var(--agent-topic-width);max-width:var(--agent-topic-width);height:100%;transition:transform .22s;position:relative;transform:translate(0)}.shell.topicsClosed{grid-template-columns:0 minmax(0,1fr)}.shell.topicsClosed .agentTopicDrawer{width:0}.shell.topicsClosed .agentTopicDrawer>.sidebar{pointer-events:none;transform:translate(-105%)}.agentTopicDrawerToggle{top:50%;right:-24px;left:auto!important}.shell.topicsClosed .agentTopicDrawerToggle{right:-24px;left:auto!important}.shell>.chat{grid-area:1/2}}
