/* 在线版外壳适配（只覆盖，不改公开仓 ui/） */

/* 浏览器窗口没有"最小化/最大化/关闭到托盘"——这些按钮点了只会骗人 */
html.dgm-web .win-btns { display: none !important; }

/* 自定义标题栏在网页里不再可拖动 */
html.dgm-web [data-tauri-drag-region] { cursor: default; }

/* mock 徽标在 web 模式改成"原型"语义，避免用户以为连到了假数据 */
html.dgm-web .mock-badge { background: color-mix(in oklab, var(--accent) 14%, transparent); }

/* 窄屏：先保证不横向溢出，布局折叠留给后续阶段 */
@media (max-width: 900px) {
  html.dgm-web .workbench { min-width: 0; }
}

/* 在线版仅支持官网网关模型：隐藏 BYOK 供应商区块 */
html.dgm-web .field:has(.ai-prov-list) { display: none !important; }

/* 截屏框选浮层 */
.dgm-web-capture { position: fixed; inset: 0; z-index: 99999; background: #0b0e11; display: grid; place-items: center; }
.dgm-web-capture img { max-width: 100vw; max-height: 100vh; pointer-events: none; user-select: none; }
.dgm-web-capture .sel { position: absolute; border: 1px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none; display: none; }
.dgm-web-capture .hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 999px; }
