/* 模型接入弹窗：同一组件由语义 Token 自适应浅色与深色，不复制两套 DOM。 */
body .API模型弹窗遮罩{background:var(--feishu-color-overlay-bg);backdrop-filter:none}
body .API模型参数弹窗{width:min(760px,calc(100vw - 48px));max-height:min(760px,calc(100dvh - 48px));border:1px solid var(--workbench-border-subtle);border-radius:var(--feishu-border-radius-large);background:var(--workbench-surface-panel);color:var(--workbench-text-primary);box-shadow:var(--feishu-shadow-elevated)}
body .API模型参数弹窗>header{padding:18px 24px;border-bottom:1px solid var(--workbench-border-subtle);background:var(--workbench-surface-panel)}
body .API模型参数弹窗>header>div{gap:3px}
body .API模型参数弹窗>header h2{font-size:18px;line-height:26px}
body .API模型参数弹窗>header small{color:var(--workbench-text-muted);font-size:11px;line-height:18px}
body .API模型参数弹窗>header>button{border-radius:var(--feishu-border-radius-small);color:var(--workbench-text-muted)}
body .API模型参数弹窗>header>button:is(:hover,:focus-visible){background:var(--workbench-surface-interactive);color:var(--workbench-text-primary)}
body .API模型参数弹窗 .API模型弹窗内容{padding:0;background:var(--workbench-surface-panel)}
body .API模型参数弹窗 .模型网关卡 .配置表单{gap:0;background:var(--workbench-surface-panel)}
body .API模型参数弹窗 :is(.API模型首行,.API模型凭据行){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 24px}
body .API模型参数弹窗 .API模型首行{padding-top:20px}
body .API模型参数弹窗 .API模型凭据行{padding-top:12px}
body .API模型参数弹窗 .大模型网关表单 label{gap:6px;color:var(--workbench-text-secondary)}
body .API模型参数弹窗 .API模型字段标题{color:var(--workbench-text-secondary);font-size:12px;line-height:18px}
body .API模型参数弹窗 .API模型元信息{min-height:38px;padding:10px 24px 14px;gap:8px 24px;color:var(--workbench-text-muted);font-size:11px}
body .API模型参数弹窗 .API模型元信息 strong{color:var(--workbench-text-secondary);font-size:11px}
body .API模型参数弹窗 .模型价格配置{margin:0;padding:16px 24px 18px;overflow-x:visible;border:0;border-top:1px solid var(--workbench-border-subtle);border-bottom:1px solid var(--workbench-border-subtle);border-radius:0;background:var(--workbench-surface-raised)}
body .API模型参数弹窗 .模型价格单行标题 strong{font-size:12px;color:var(--workbench-text-primary)}
body .API模型参数弹窗 .模型价格单行{min-width:0;margin-top:10px;display:grid;grid-template-columns:64px 116px repeat(2,minmax(110px,1fr)) minmax(170px,1.45fr);gap:8px;align-items:end}
body .API模型参数弹窗 .模型价格单行 label,
body .API模型参数弹窗 .模型价格单行 label:first-child,
body .API模型参数弹窗 .模型价格单行 label:nth-child(2),
body .API模型参数弹窗 .模型价格单行 .模型价格来源{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);flex:none}
body .API模型参数弹窗 .配置验证过程{margin:0;padding:16px 24px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
body .API模型参数弹窗 .配置验证过程 li{min-height:58px;padding:10px 12px;grid-template-columns:24px minmax(0,1fr);gap:8px;border:1px solid var(--workbench-border-subtle);border-left:0;background:var(--workbench-surface-raised)}
body .API模型参数弹窗 .配置验证过程 li:first-child{border-left:1px solid var(--workbench-border-subtle);border-radius:var(--feishu-border-radius-medium) 0 0 var(--feishu-border-radius-medium)}
body .API模型参数弹窗 .配置验证过程 li:last-child{border-radius:0 var(--feishu-border-radius-medium) var(--feishu-border-radius-medium) 0}
body .API模型参数弹窗 .配置验证过程 li>i{background:var(--workbench-status-accent-bg);color:var(--workbench-status-accent-text)}
body .API模型参数弹窗 .配置验证过程 li.已通过>i{background:var(--workbench-status-success-bg);color:var(--workbench-status-success-text)}
body .API模型参数弹窗 .配置验证过程 li b{color:var(--workbench-text-primary);font-size:12px}
body .API模型参数弹窗 .配置验证过程 li small{overflow:hidden;color:var(--workbench-text-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
body .API模型参数弹窗 .配置提示{margin:0;padding:10px 24px 14px;color:var(--workbench-text-secondary);font-size:11px;line-height:18px}
body .API模型参数弹窗 .模型网关操作{position:sticky;bottom:0;z-index:2;margin:0;padding:14px 24px;border-top:1px solid var(--workbench-border-subtle);background:var(--workbench-surface-panel)}
body .API模型参数弹窗 .模型网关操作 button{min-width:112px;min-height:36px}

@media(max-width:760px){body .API模型参数弹窗{width:100vw;max-height:100dvh;border:0;border-radius:0}body .API模型参数弹窗>header{padding:16px}body .API模型参数弹窗 :is(.API模型首行,.API模型凭据行){grid-template-columns:1fr;padding-inline:16px}body .API模型参数弹窗 .API模型元信息{padding-inline:16px}body .API模型参数弹窗 .模型价格配置{padding:14px 16px 16px}body .API模型参数弹窗 .模型价格单行{grid-template-columns:repeat(2,minmax(0,1fr))}body .API模型参数弹窗 .模型价格单行 .模型价格来源{grid-column:1/-1}body .API模型参数弹窗 .配置验证过程{grid-template-columns:1fr;padding:14px 16px 0}body .API模型参数弹窗 .配置验证过程 li{border:1px solid var(--workbench-border-subtle);border-top:0;border-radius:0}body .API模型参数弹窗 .配置验证过程 li:first-child{border-top:1px solid var(--workbench-border-subtle);border-radius:var(--feishu-border-radius-medium) var(--feishu-border-radius-medium) 0 0}body .API模型参数弹窗 .配置验证过程 li:last-child{border-radius:0 0 var(--feishu-border-radius-medium) var(--feishu-border-radius-medium)}body .API模型参数弹窗 .配置验证过程 li small{white-space:normal}body .API模型参数弹窗 .配置提示{padding-inline:16px}body .API模型参数弹窗 .模型网关操作{padding:12px 16px}body .API模型参数弹窗 .模型网关操作 button{flex:1 1 0;min-width:0}}
