/* Only public-assistant feature nodes; original runtime shell/layout stays intact. */
.pa{font:13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#252b36}.pa *, .pa *:before,.pa *:after{box-sizing:border-box}.pa .toolbar{z-index:240000;bottom:10px;width:auto;max-width:calc(100vw - 24px);height:auto}.pa .mask{z-index:250000}.pa #toast{z-index:260000}.pa .drawer{position:relative;margin:8px;width:520px;max-width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:8px;background:#fff}.pa .drawer header,.pa .dialog header{height:auto;min-height:56px}.pa .drawer .body{padding:20px}.pa .drawer footer{height:auto}.pa .dialog{position:relative;margin:0;padding:0}.pa input,.pa textarea,.pa select{font-size:13px}.pa .avatar{object-fit:cover}.pa .avatar.assistant{background:#fff3dd}.pa .badge.wait{color:#e98020;background:#fff3e9}.pa .badge.done{color:#21a57b;background:#eaf9f2}.pa-task-component{padding-bottom:8px!important}.pa-main-tabs{display:flex;justify-content:space-between;align-items:center}.pa-main-tabs>button{height:26px;min-height:26px;margin-right:0;font-size:12px}.pa-native-table{padding:0 0 4px}.pa-native-table .ht-scroll{max-height:550px}.pa-native-table .ht-table{font-size:12px;table-layout:fixed;width:100%;color:#252b36;border-collapse:collapse}.pa-native-table .ht-table th{color:#252b36;font-size:12px;background:#fff;font-weight:500;padding:11px 8px 11px 0}.pa-native-table .ht-table td{padding:14px 8px 14px 0;line-height:1.65;border-bottom:1px solid #edf0f4;border-top:0;word-break:normal;overflow-wrap:anywhere}.pa-native-table .ht-table .ht-title{font-size:13px;text-align:left;white-space:normal;color:#252b36;font-weight:500}.pa-native-table .ht-table small{font-size:11px;color:#939aa5;margin-top:4px;display:block}.pa-native-table button{font-size:12px;padding:2px 7px;border-radius:4px;line-height:1.5}.pa-native-table .link{color:#0c6cff}.pa-native-table .pa-outline,.pa .pa-outline{background:#fff9f2;color:#ff8000;border:1px solid #ffd4aa}.pa-native-table button.primary{background:#fff9f2;color:#ff8000;border:1px solid #ffd4aa}.pa-native-table .pa-task-title{width:36%}.pa-native-table .ht-table td:nth-last-child(2){white-space:nowrap}.pa-native-feed{padding:10px 14px}.pa-feed-entry{display:flex;gap:10px;padding:16px 0;border-bottom:1px solid #edf0f4}.pa-feed-entry>div{min-width:0}.pa-feed-entry small{display:block;color:#949ba5;font-size:11px}.pa-feed-entry p{margin:8px 0;line-height:1.8}.pa-native-outputs .suggestion{padding:14px 0}.pa-native-checks{display:flex;flex-direction:column;gap:16px;font-size:13px;padding-bottom:10px}.pa-native-checks input{accent-color:#ff8000;vertical-align:middle}.pa-native-auth{padding:16px;background:#f7f8fa;border:1px solid #ebeef2;border-radius:4px;margin:20px 0;display:flex;gap:28px;font-size:13px}.pa-native-auth span{color:#697180}.dw-platform .dw-config-body{overflow:auto}.dw-platform .dw-form-section select{border:1px solid #d8dce5;border-radius:4px;background:#fff;padding:5px 10px;min-width:180px;font-size:13px;line-height:1.4}.dw-platform .dw-config-layout .dw-config-body{padding-bottom:80px}.dw-platform .dw-wizard-head .dw-stepbar{position:static;transform:none}.dw-platform .dw-wizard-head{min-height:66px}.dw-platform form{height:100%}.pa-native-logs{padding:24px}.pa-native-logs .page-head h1{font-size:16px}.pa-native-logs table td{padding:14px 10px}.pa-team-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;margin-right:8px;cursor:pointer}.pa-native-composer{padding:0 16px 12px}.pa-native-composer textarea{border:0;display:block;width:100%;height:65px;min-height:45px;resize:none;background:#fff;box-shadow:none;outline:0}.pa-native-composer .actions{display:flex;align-items:center}.pa-native-composer .grow{flex:1}.scene-chat-bubble.pa{min-width:0;width:auto;max-width:100%}.scene-chat-bubble.pa .chat-card{width:100%;max-width:560px;text-align:left}.scene-chat-bubble.pa .chat-card h3{font-size:14px}.scene-chat-avatar .avatar{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center}.pa-restored .crm-home .task-panel>.it-component{padding:16px;box-shadow:none;border:none;margin:0}.pa-restored .crm-home .task-panel{padding:0}.pa-restored .crm-home .it-component>header{padding:0 0 8px}.pa-restored .scene-chat-bubble .actions{margin-top:10px}.pa-restored .f-qx-send-wrapper>.toolbar{position:static;transform:none;box-shadow:none;width:auto;max-width:none}.pa-restored .team_def-item{cursor:pointer}.pa-restored .team_def-item img{object-fit:cover}.pa-restored .message-list-wrapper{padding-bottom:18px}.pa-restored .dw-row-actions{white-space:nowrap}.pa-restored .dw-list-table-wrap{overflow:auto}.pa-restored .dw-row-actions button{font-size:12px}.pa-restored .dw-platform input:focus,.pa-restored .dw-platform select:focus{outline-color:#ffaf59}
@media(max-width:1000px){.pa-native-table .ht-table{min-width:690px}.pa-native-auth{flex-direction:column;gap:8px}.dw-platform .dw-form-grid{grid-template-columns:1fr}.pa .toolbar b{display:none}}

/* Preserve the original full-height application container and header layout. */
body.pa-restored>#app{height:100%;min-height:100vh}
.dw-platform #config-form{display:flex;flex-direction:column;height:100%}
.dw-platform #config-form>.dw-wizard-head{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.dw-platform #config-form>.dw-config-layout{flex:1;min-height:0}
.dw-platform .dw-wizard-head>div{display:flex;gap:8px;margin-left:auto}
.runtime-message-row .scene-chat-avatar{flex:0 0 34px}
.runtime-message-row .scene-chat-avatar .avatar{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.runtime-message-bubble.pa{max-width:610px;min-width:280px}
.runtime-message-bubble.pa .chat-card{max-width:560px;background:#fff}
.runtime-message-bubble.pa .chat-card h3{font-size:14px}
.runtime-message-bubble.pa .actions{margin-top:10px}
.pa-restored .dw-config-nav{height:100%}

.pa-native-logs{height:100%;overflow:auto;background:white;box-sizing:border-box;padding:16px 12px 80px}
.pa-native-logs .page-head{margin-bottom:18px}
.pa-native-logs .page-head h1{font-size:14px}
.pa-native-logs table th{background:white;color:#252b36}
.pa-assistant-menu>a{background:#fff5e9!important;color:#ff8000!important;border-radius:4px;cursor:pointer}

html[data-ready="false"] #app{visibility:hidden}

/* 任务组件尺寸约束：长列表在组件内部滚动，避免撑开商机详情页 */
.pa-task-component,
.pa-task-component .pa-native-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.pa-task-component .pa-native-table .ht-scroll,
.pa-task-component .ht-scroll {
  width: 100%;
  max-width: 100%;
  height: min(420px, calc(100vh - 420px));
  min-height: 280px;
  max-height: 420px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.pa-task-component .pa-native-table .ht-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 1000px) {
  .pa-task-component .pa-native-table .ht-scroll,
.pa-task-component .ht-scroll {
    height: min(360px, calc(100vh - 320px));
    min-height: 240px;
  }
  .pa-task-component .pa-native-table .ht-table {
    min-width: 690px;
  }
}

/* 真实任务组件：商机详情 section.it-component / 个人工作台 section.it-personal
   列表区限制最大高度，超出在组件内部滚动，不再把页面撑开。 */
.it-component .ht-scroll,
.it-personal .ht-scroll {
  max-height: 420px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.it-component .ht-scroll .ht-table thead,
.it-personal .ht-scroll .ht-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
.it-component .ht-scroll .ht-table thead th,
.it-personal .ht-scroll .ht-table thead th {
  background: #fff;
  box-shadow: inset 0 -1px 0 #edf0f4;
}
@media (max-width: 1000px) {
  .it-component .ht-scroll,
  .it-personal .ht-scroll {
    max-height: 360px !important;
  }
}
@media (max-height: 720px) {
  .it-component .ht-scroll,
  .it-personal .ht-scroll {
    max-height: clamp(240px, calc(100vh - 300px), 360px) !important;
  }
}

/* Task actions stay in a compact dialog and expose only requested inputs. */
.it-modal{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);color:#454b55;font:13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.it-modal-body{overflow:auto;min-height:0;padding:16px 20px 0}.it-modal>header,.it-modal>footer{flex-shrink:0}.it-modal>header b{font-size:15px}.it-modal>header button{border:0;background:none;font-size:20px;color:#8c95a3}.it-modal>footer{flex-wrap:wrap;border-top:1px solid #edf0f3;padding:12px 20px}.ht-compact-summary>b{display:block;font-size:14px;overflow-wrap:anywhere}.ht-compact-summary>small{display:block;color:#929aa6;margin-top:5px;overflow-wrap:anywhere}.ht-compact-summary>p{margin:10px 0 0;color:#747e8b;white-space:pre-wrap;overflow-wrap:anywhere}.it-modal .it-field{margin:14px 0}.it-modal .it-field textarea{min-height:76px}.it-modal .it-field input{min-height:38px}.it-modal #ht-error:empty{display:none}.it-modal #ht-error{color:#b76616;font-size:12px;margin:8px 0 14px}.ht-compact-hint{font-size:12px;color:#8c95a3}.it-modal .it-result p{overflow-wrap:anywhere;white-space:pre-wrap}
