/* ============================================================
   常用工具页 · 工具工作台弹框样式（全局）
   Modal 由 AntDesign 传送到 body 下渲染，页面级 .razor.css
   隔离样式继承不到；取色走 MainLayout 皮肤 token / ant-theme.css
   的 html 级 token，跟随换肤。
   须在 ant-design-blazor.css 与 ant-theme.css 之后引入。
   ============================================================ */

/* 图标基类（弹框内 svg.i；页面内 .i 由页面样式负责） */
.ant-modal .i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 通用小按钮（弹框内） */
.ant-modal .lbtn { display: inline-flex; align-items: center; gap: 4px; border: none; background: transparent; padding: 3px 8px; border-radius: 6px; font-size: 12px; color: var(--ink3); cursor: pointer; font-family: inherit; transition: all .15s; }
.ant-modal .lbtn:hover { color: var(--brand); background: var(--brand-weak); }
.ant-modal .lbtn:disabled { opacity: .45; cursor: not-allowed; }
.ant-modal .lbtn .anticon { font-size: 12px; }

/* —— 弹框头（TitleTemplate） —— */
.ant-modal .wbh { display: flex; align-items: center; gap: 10px; padding-right: 26px; }
.ant-modal .wbh-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; flex: none; box-shadow: 0 3px 8px color-mix(in srgb, var(--brand) 30%, transparent); }
.ant-modal .wbh-ico .i { width: 18px; height: 18px; }
.ant-modal .wbh-tx { display: flex; flex-direction: column; gap: 1px; }
.ant-modal .wbh-tx b { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.ant-modal .wbh-tx span { font-size: 11.8px; color: var(--ink3); }

/* —— 工作台骨架 —— */
.ant-modal .wb { display: flex; flex-direction: column; gap: 10px; }
.ant-modal .wb-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ant-modal .wb-toolbar .sp { flex: 1; }

/* —— 左右分栏 —— */
.ant-modal .wb-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ant-modal .pane { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--card-line); border-radius: 10px; background: var(--card-bg); overflow: hidden; }
.ant-modal .pane-h { display: flex; align-items: center; gap: 4px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--soft); }
.ant-modal .pane-h .ph-t { font-size: 12px; font-weight: 600; color: var(--ink2); }
.ant-modal .pane-h .sp { flex: 1; }
.ant-modal .pane-b { flex: 1; min-height: 0; }

/* CodeMirror 主题见 wwwroot/css/cm-theme.css（弹框在 body 传送门，需全局样式） */

/* —— 时间戳实时行 —— */
.ant-modal .nowrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ant-modal .nowbox { flex: 1; min-width: 160px; padding: 8px 14px; border: 1px solid var(--card-line); border-radius: 10px; background: var(--card-bg); display: flex; flex-direction: column; gap: 2px; }
.ant-modal .nowbox span { font-size: 11px; color: var(--ink3); }
.ant-modal .nowbox b { font-size: 15px; color: var(--brand); font-family: var(--mono); }

/* —— 状态栏 —— */
.ant-modal .wb-status { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.ant-modal .wb-status span { font-size: 11.8px; color: var(--ink3); }
.ant-modal .wb-status b { font-family: var(--mono); font-weight: 600; color: var(--ink2); margin-left: 4px; }

/* —— 底部（Modal Footer） —— */
.ant-modal .wb-foot { display: flex; align-items: center; gap: 10px; }
.ant-modal .wb-foot .sp { flex: 1; }
.ant-modal .wb-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink4); }

/* —— 建设中占位 —— */
.ant-modal .wb-todo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 0; }
.ant-modal .wb-todo .i { width: 34px; height: 34px; color: var(--ink4); }
.ant-modal .wb-todo p { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink2); }
.ant-modal .wb-todo span { font-size: 11.6px; color: var(--ink4); }

/* —— 窄屏：分栏转单列 —— */
@media (max-width: 880px) {
    .ant-modal .wb-panes { grid-template-columns: 1fr; }
}
