/* =====================================================================
   商标资料整理系统 · 样式
   设计语言 1:1 取自商标检索系统（style.css + filing.css），同一套令牌。
   ===================================================================== */

/* 宋体 webfont（手机/企微 WebView 无 SimSun，图样生成必须宋体——用户硬性要求。
   子集来自 C:\Windows\Fonts\simsun.ttc，GB2312 全区+ASCII，勿用其他字体替换） */
@font-face {
  font-family: 'SimSunWeb';
  src: url('/static/fonts/simsun-subset.woff2?v=20261123') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #17202b;
  --ink-2: #46536a;
  --ink-3: #8792a5;
  --line: #e2e7ef;
  --primary: #17456e;
  --primary-2: #0f3557;
  --soft: #eaf1f8;
  --gold: #b8894a;
  --green: #1c7a4e;
  --green-soft: #e6f4ec;
  --amber: #8a6321;
  --amber-soft: #fbf3e3;
  --red: #b0453c;
  --red-soft: #fbeceb;
  --shadow: 0 1px 2px rgba(16, 31, 51, .04), 0 10px 30px rgba(16, 31, 51, .06);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; line-height: 1.6;
}
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }
code {
  font-family: Consolas, monospace; background: #eef2f7; padding: 1px 6px;
  border-radius: 4px; font-size: 12.5px; color: #2b4a66;
}
.grow { flex: 1; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 26px; padding: 12px 26px;
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.mark {
  width: 38px; height: 38px; border-radius: 9px; color: #fff; display: grid;
  place-items: center; font-size: 18px; font-weight: 600;
  background: linear-gradient(145deg, #1d5182, #123957);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.14);
}
.brand h1 { font-size: 16px; margin: 0; letter-spacing: .3px; }
.sub { margin: 0; font-size: 12px; color: var(--ink-3); }

/* 顶部一级模块导航 */
.sk-topnav { display: flex; gap: 6px; align-items: center; }
.sk-top-item {
  border: none; background: none; font-family: inherit; font-size: 14px;
  color: var(--ink-2); padding: 8px 16px; border-radius: 8px;
  cursor: pointer; letter-spacing: .5px; transition: .15s; white-space: nowrap;
}
.sk-top-item:hover { background: #f2f5f9; color: var(--primary); }
.sk-top-item.on { background: var(--soft); color: var(--primary); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.stat-pill {
  font-size: 12px; color: var(--ink-2); background: #f3f6fa; border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 20px; white-space: nowrap;
}
.stat-pill b { color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid transparent; border-radius: 8px; padding: 9px 18px;
  font-size: 13.5px; font-family: inherit; cursor: pointer; transition: .15s;
  background: none; white-space: nowrap;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: #c4d0e0; color: var(--primary); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn.ghost.on, .pkg-filter .btn.on {
  border-color: var(--primary); color: var(--primary);
  background: var(--soft); font-weight: 600;
}
.btn.danger { background: #fff; border-color: #d8b0ab; color: var(--red); }
.btn.danger:hover { background: #f7e9e7; }
.link {
  background: none; border: none; color: var(--primary); cursor: pointer;
  font-size: 12.5px; font-family: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.icon-btn {
  background: none; border: none; font-size: 22px; line-height: 1; color: var(--ink-3);
  cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.icon-btn:hover { background: #f1f4f8; color: var(--ink); }
.badge {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px; padding: 0 5px;
  margin-left: 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; text-align: center;
}

.view { max-width: 1280px; margin: 0 auto; padding: 20px 26px 70px; }
.page-foot {
  margin-top: 16px; padding: 0 4px;
  font-size: 12px; color: var(--ink-3); line-height: 1.7;
}

/* ---------- 卡片 ---------- */
.list-card, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow); overflow: hidden;
}
.list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid #eef1f6; flex-wrap: wrap;
}
.list-meta { font-size: 13px; color: var(--ink-2); }
.list-meta b { color: var(--ink); font-size: 15px; }
.list-meta .ms { color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.list-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-tools label {
  font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px;
}
select, input[type=date] {
  border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px;
  font-family: inherit; font-size: 12.5px; color: var(--ink-2); background: #fcfdfe;
}
input.mini {
  border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px;
  font-family: inherit; font-size: 12.5px; color: var(--ink-2); background: #fcfdfe;
  width: 190px;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 10px 14px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 10px 14px; border-bottom: 1px solid #f1f4f8; font-size: 12.8px; color: var(--ink-2); vertical-align: middle; }
tbody tr:hover { background: #f8fafd; }
td.mono { font-family: Consolas, monospace; font-size: 12.4px; }
td.strong { color: var(--ink); font-weight: 600; }
td.name { color: var(--ink); font-weight: 600; }
.cls {
  display: inline-block; min-width: 22px; text-align: center; font-size: 11.5px;
  font-weight: 600; color: var(--primary); background: var(--soft); border-radius: 4px; padding: 1px 5px;
}
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: #f1f4f8; color: var(--ink-2); white-space: nowrap; }
.tag.reg { background: var(--green-soft); color: var(--green); }
.tag.wait { background: var(--amber-soft); color: var(--amber); }
.tag.dead { background: var(--red-soft); color: var(--red); }
.empty { padding: 48px; text-align: center; color: var(--ink-3); font-size: 13px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 14px; flex-wrap: wrap; }
.pager button {
  min-width: 31px; height: 29px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.pager button:hover:not(:disabled) { border-color: #c4d0e0; color: var(--primary); }
.pager button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pg-info { font-size: 12px; color: var(--ink-3); margin: 0 4px; }

table.mini { font-size: 12.5px; }
table.mini th, table.mini td { padding: 7px 10px; }
.steps, .note { font-size: 12.8px; color: var(--ink-2); }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }
.note { padding-left: 18px; }
.note li { margin-bottom: 6px; }

/* 可排序表头 */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--primary); background: #f4f8fc; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(15, 26, 40, .34); display: grid;
  place-items: center; z-index: 80; padding: 24px; backdrop-filter: blur(2px);
}
.modal-card {
  background: var(--card); border-radius: 14px; width: 640px; max-width: 100%;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(12,24,40,.24);
}
.modal-card.wide { width: 780px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 22px; border-bottom: 1px solid #eef1f6; }
.modal-head h2 { font-size: 16px; margin: 0; }
.modal-body { padding: 18px 22px 26px; overflow-y: auto; }
.modal-body h3 { font-size: 13px; margin: 20px 0 10px; color: var(--ink-2); }
.modal-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 13px 22px; border-top: 1px solid #eef1f6;
}

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 18px);
  background: #17202b; color: #fff; font-size: 13px; padding: 10px 18px;
  border-radius: 9px; opacity: 0; pointer-events: none; transition: .22s; z-index: 100;
}
.toast.show { opacity: .96; transform: translate(-50%, 0); }

/* ---------- 登录门 ---------- */
.login-gate {
  position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(900px 520px at 18% 8%, #22557f 0%, transparent 62%),
              linear-gradient(135deg, #0f2338, #1b4e79 62%, #17456e);
}
.login-card {
  width: min(400px, 92vw); background: #fff; border-radius: 16px;
  padding: 30px 32px 22px; box-shadow: 0 24px 70px rgba(6, 20, 38, .42);
}
.lg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.lg-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #17456e, #2b7fb8); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.lg-titles h2 { font-size: 19px; color: #16324a; margin: 0 0 3px; }
.lg-sub { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.lg-lb { display: block; font-size: 12.5px; color: var(--ink-2); margin: 12px 0 6px; }
.login-card input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 13px; font-size: 14px; outline: none; background: #fbfcfe; transition: .15s;
  font-family: inherit;
}
.login-card input:focus { border-color: #4a86b8; box-shadow: 0 0 0 3px rgba(74, 134, 184, .14); background: #fff; }
.lg-btn { width: 100%; height: 42px; margin-top: 20px; font-size: 15px; letter-spacing: .16em; }
.lg-err { min-height: 18px; font-size: 12.5px; color: #b0453c; margin-top: 8px; }
.lg-foot {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.65;
}
.pw-form .lg-lb { margin: 10px 0 5px; }
.pw-form input {
  width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 11px; font-family: inherit; font-size: 13.5px; outline: none; background: #fbfcfe;
}
.pw-form input:focus { border-color: #4a86b8; background: #fff; }

/* ---------- 顶栏用户菜单 ---------- */
.user-chip { position: relative; }
.uc-main {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px 0 5px;
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  cursor: pointer; font-size: 13px; color: var(--ink); font-family: inherit;
}
.uc-main:hover { border-color: #9db8ce; }
.uc-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #17456e, #3d7fb0);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.uc-main i { font-style: normal; font-size: 9px; color: var(--ink-3); }
.uc-drop {
  position: fixed; right: 18px; top: 58px; width: 216px; background: #fff;
  border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 14px 36px rgba(16, 31, 51, .18); padding: 6px; z-index: 9998;
}
.uc-info { padding: 9px 10px 10px; border-bottom: 1px solid var(--soft); margin-bottom: 5px; }
.uc-info b { display: block; font-size: 13px; color: var(--ink); }
.uc-info span { font-size: 11.5px; color: var(--ink-3); }
.uc-drop button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0;
  background: none; border-radius: 7px; font-size: 13px; color: var(--ink); cursor: pointer;
  font-family: inherit;
}
.uc-drop button:hover { background: var(--soft); }
.uc-drop button.del { color: #b0453c; }

/* ---------- 更新日志（顶栏铃铛 + 下拉面板，全员可见） ---------- */
.ul-wrap { position: relative; }
.ul-bell {
  position: relative; width: 32px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  color: var(--ink-2); cursor: pointer; transition: .15s; font-family: inherit;
}
.ul-bell:hover { border-color: #9db8ce; color: var(--primary); }
.ul-badge {
  position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 99px; background: #d64d3f; color: #fff;
  font-size: 10.5px; font-style: normal; line-height: 17px; text-align: center; font-weight: 600;
}
.ul-panel {
  position: fixed; right: 18px; top: 58px; width: 380px; max-width: calc(100vw - 36px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(16, 31, 51, .18); z-index: 9997; overflow: hidden;
}
.ul-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: #f7fafc;
}
.ul-head b { font-size: 13.5px; color: var(--ink); }
.ul-head .btn { margin-left: auto; }
.ul-head .icon-btn { margin-left: 0; }
.ul-head b + .icon-btn { margin-left: auto; }
.ul-head b + .btn + .icon-btn { margin-left: 0; }
.ul-form { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 7px; }
.ul-form input, .ul-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px;
  font-size: 13px; font-family: inherit; color: var(--ink); resize: vertical; box-sizing: border-box;
}
.ul-form input:focus, .ul-form textarea:focus { outline: none; border-color: #9db8ce; }
.ul-form-btns { display: flex; justify-content: flex-end; gap: 6px; }
.ul-list { max-height: 56vh; overflow-y: auto; padding: 6px; }
.ul-item { padding: 9px 10px; border-radius: 8px; margin: 2px 0; }
.ul-item + .ul-item { border-top: 1px dashed var(--line); }
.ul-item-top { display: flex; align-items: baseline; gap: 8px; }
.ul-item-top b { font-size: 13px; color: var(--ink); }
.ul-time { margin-left: auto; flex: none; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.ul-item p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; word-break: break-word; }
.ul-item-foot {
  display: flex; align-items: center; margin-top: 5px; font-size: 11px; color: var(--ink-3);
}
.ul-del {
  margin-left: auto; border: 0; background: none; font-size: 11px; color: #b0453c;
  cursor: pointer; font-family: inherit; padding: 2px 4px; border-radius: 5px;
}
.ul-del:hover { background: #fbeae8; }
.ul-empty { padding: 26px 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 骨架布局：模块内左侧子菜单 + 内容区 ---------- */
.sk-shell { display: flex; align-items: flex-start; }
.sk-content { flex: 1; min-width: 0; }
.sk-side {
  flex: none; width: 172px; position: sticky; top: 62px;
  max-height: calc(100vh - 62px); overflow-y: auto;
  background: var(--card); border-right: 1px solid var(--line); padding: 14px 10px;
}
.sk-side-name { font-size: 12px; color: var(--ink-3); padding: 2px 10px 8px; letter-spacing: .5px; }
.sk-side a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2); margin: 1px 0;
}
.sk-side a:hover { background: #f0f6fc; color: var(--primary); }
.sk-side a.on { background: #eaf2fb; color: var(--primary); font-weight: 600; }
.sk-side-tip { padding: 10px 14px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
@media (max-width: 1000px) {
  .sk-shell { display: block; }
  .sk-content { width: 100%; }
  .sk-side {
    position: static; width: auto; max-height: none;
    display: flex; align-items: center; gap: 4px;
    overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line);
    padding: 8px 12px;
  }
  .sk-side-name { display: none; }
  .sk-side a { white-space: nowrap; margin: 0; }
  .topbar { gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
  .view { padding: 14px; }
}

/* ---------- 场景行（业务类型筛选，同列表引擎 sk-tab） ---------- */
.sk-tabs {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 4px 0 10px;
}
.sk-tab {
  border: 1px solid transparent; background: none; font-family: inherit;
  font-size: 12.5px; color: var(--ink-2);
  padding: 3px 11px; border-radius: 14px; cursor: pointer;
  display: inline-flex; align-items: center; transition: .15s;
}
.sk-tab:hover { background: #f2f5f9; }
.sk-tab.on {
  background: var(--soft); color: var(--primary);
  font-weight: 600;
}
.sk-tab.off { color: #b6bdc9; cursor: not-allowed; }
.sk-tab.off:hover { background: none; }
.sk-tab i {
  font-style: normal; font-size: 10.5px; margin-left: 5px; padding: 0 6px;
  border-radius: 8px; background: #f1f4f8; color: var(--ink-3); line-height: 1.5;
}
.sk-tab.on i { background: var(--primary); color: #fff; }
.sk-tab i.soon { background: #f6f0e2; color: #8a6d2f; }

/* =====================================================================
   以下整套 fl-* 样式取自商标检索系统 filing.css（1:1）
   ===================================================================== */

/* ---------- 列表页 ---------- */
.fl-card { padding: 18px 20px; }
.fl-list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fl-list-head h3 { margin: 0; font-size: 17px; }
.fl-sub { color: #8b92a0; font-size: 12.5px; }
.fl-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: #eaf1f8; color: #17456e; font-size: 12px; border: 1px solid #c9d8e8;
}
.fl-st { font-size: 12px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.fl-st-draft   { background: #eef2f7; color: #5a6474; }
.fl-st-submitted { background: #fff7e0; color: #9c6b12; }
.fl-st-paid    { background: #e6f6ec; color: #1f8a4c; }
.fl-st-queued  { background: #e8f1fb; color: #2456a4; }
.fl-st-filing  { background: #fdf1e3; color: #a4621a; }
.fl-st-staged  { background: #f1ebfa; color: #6b3fa0; }
.fl-st-filed   { background: #e6f6ec; color: #1f8a4c; }
.fl-warn {
  background: #fff8e8; border: 1px solid #f2dfb2; color: #8a6a1c;
  padding: 8px 12px; border-radius: 8px; font-size: 12.5px; margin: 0 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.fl-foot-note { color: #8b92a0; font-size: 12px; margin: 10px 0 0; }

/* ---------- 向导步骤条（橙色箭头样式，对照权大师） ---------- */
.fl-wiz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.fl-wiz-title { font-weight: 600; color: #33405a; }
.fl-steps { display: flex; margin: 4px 0 16px; overflow: hidden; }
.fl-step {
  position: relative; flex: 1; height: 36px; line-height: 36px;
  background: #eef1f6; color: #8b92a0; font-size: 13px; text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  margin-right: -6px; padding: 0 8px 0 18px; white-space: nowrap; cursor: default;
}
.fl-step:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-left: 12px; border-radius: 6px 0 0 6px; }
.fl-step i {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; margin-right: 6px;
  background: rgba(255, 255, 255, .55); color: inherit; font-size: 11.5px; font-weight: 600;
}
.fl-step em { display: none; }
.fl-step.done { background: #dfe9f3; color: #17456e; }
.fl-step.on { background: #17456e; color: #fff; font-weight: 600; }
.fl-step.done i { background: #d9efe2; color: #1f8a4c; }
.fl-step.on i { background: rgba(255, 255, 255, .16); color: #fff; }

.fl-sec { margin: 14px 0 10px; font-size: 15px; color: #33405a; }

/* ---------- 表单 ---------- */
.fl-field { display: flex; align-items: center; gap: 12px; margin: 12px 0; min-width: 0; }
.fl-field-top { align-items: flex-start; }
.fl-field > label { width: 92px; flex: none; text-align: right; color: #5a6474; font-size: 13px; line-height: 36px; }
.fl-field-top > label { line-height: 2; }
.fl-field > label.req::before { content: '* '; color: #b0453c; }
.fl-field > label .fl-opt { color: #9aa3b2; font-size: 12px; font-style: normal; white-space: nowrap; }
.fl-field > .fl-ctrl { flex: 1; min-width: 0; }
.fl-inp {
  flex: 1; height: 36px; min-width: 0; border: 1px solid #dde3ec; border-radius: 8px;
  padding: 0 12px; font-size: 13.5px; color: #33405a; outline: none; width: 100%;
  font-family: inherit; background: #fff;
}
.fl-inp:focus { border-color: #17456e; box-shadow: 0 0 0 2px rgba(23, 69, 110, .14); }
.fl-inp[readonly] { background: #f5f7fa; color: #7a8494; }
.fl-inp.sel { flex: 0 0 240px; }
.fl-inp.sm { height: 32px; font-size: 12.5px; }
.fl-link { color: #17456e; font-size: 12.5px; cursor: pointer; white-space: nowrap; flex: none; }
.fl-tip { color: #9aa3b2; font-size: 12px; line-height: 1.6; min-width: 0; }
.fl-tip.ok { color: #1c7a4e; }
.fl-ocr-diff { background: #fff3c4 !important; border-color: #e0b400 !important; }
.fl-hint { color: #8b92a0; font-size: 12.5px; line-height: 1.7; margin: 6px 0 12px 104px; }
.fl-hint.ok { color: #1f8a4c; }
.fl-hint.warn { color: #b0453c; }

@media (max-width: 860px) {
  .fl-field { flex-direction: column; align-items: stretch; gap: 6px; }
  .fl-field > label { width: auto; text-align: left; line-height: 1.6; }
  .fl-field > label.req::before { margin-right: 2px; }
  .fl-hint { margin-left: 0; }
  .fl-picker { grid-template-columns: 1fr; }
  .fl-pk-left { border-right: 0; border-bottom: 1px solid #eef1f6; }
  .fl-pay { margin-left: 0; }
}

/* 类型分段按钮 */
.fl-seg { display: flex; }
.fl-seg-btn {
  min-width: 110px; height: 36px; border: 1px solid #dde3ec; background: #fff;
  color: #5a6474; font-size: 13.5px; cursor: pointer; margin-left: -1px; font-family: inherit;
}
.fl-seg-btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.fl-seg-btn:last-child { border-radius: 0 8px 8px 0; }
.fl-seg-btn.on { background: #eaf1f8; color: #17456e; border-color: #a9bed6; position: relative; z-index: 1; }

/* 图样上传 */
.fl-imgrow { display: flex; gap: 16px; flex: 1; align-items: flex-start; }
.fl-imgside { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.fl-upbox {
  width: 170px; height: 170px; flex: none; border: 1px dashed #cfd6e0; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: #9aa3b2; gap: 6px; overflow: hidden; background: #fafbfd;
}
.fl-upbox:hover { border-color: #17456e; }
.fl-upbox .fl-plus { font-size: 26px; line-height: 1; }
.fl-upbox .fl-up-tip { font-size: 11px; color: #17456e; }
.fl-upbox.has { cursor: default; border-style: solid; position: relative; }
.fl-upbox.has img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fl-upbox .fl-imgdel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border: 0; background: rgba(30, 35, 48, .62); color: #fff;
  font-size: 11px; line-height: 1.6; padding: 3px 0; cursor: pointer;
}
.fl-upbox .fl-imgdel:hover { background: rgba(200, 48, 20, .85); }
/* 自动生成的文字图样：绿框 + 顶部角标 */
.fl-imgwrap { display: contents; }
.fl-genrow { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.fl-genrow .btn { flex: none; }
.fl-genrow .fl-tip { flex: 1; min-width: 180px; }
.fl-upbox.auto { border-color: #1c7a4e; }
.fl-upbox .fl-auto-tag {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  background: rgba(28, 122, 78, .92); color: #fff;
  font-size: 10px; line-height: 1.7; text-align: center; letter-spacing: .5px;
}

/* ---------- 智能选类：推荐方案行 + 三栏级联 + 已选区 ---------- */
.fl-pk-wrap { flex: 1; min-width: 0; }
.fl-recrow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: #8b92a0; padding: 8px 10px;
  border: 1px solid #e4e9f1; border-bottom: 0; border-radius: 10px 10px 0 0; background: #fcfdfe;
}
.fl-rec {
  border: 1px solid #a9bed6; background: #fff; color: #17456e; font-size: 12px;
  border-radius: 4px; padding: 4px 12px; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.fl-rec:hover { background: #eaf1f8; }
.fl-picker { border-radius: 0 0 10px 10px; }

.fl-feebar {
  display: flex; align-items: center; gap: 14px; justify-content: flex-end;
  margin: 16px -20px -18px; padding: 12px 20px;
  border-top: 1px solid #eef1f6; background: #fafbfd;
  position: sticky; bottom: -18px;
}
.fl-fee-inv { color: #8b92a0; font-size: 12.5px; }
.fl-fee-total { color: #5a6474; font-size: 13px; }
.fl-fee-total b { color: #b0453c; font-size: 18px; margin-left: 4px; }

/* 推荐方案弹窗 */
.fl-ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fl-ind {
  border: 1px solid #e4e9f1; background: #fff; border-radius: 8px; padding: 8px 10px;
  text-align: left; cursor: pointer; font-size: 13px; color: #33405a; font-family: inherit;
}
.fl-ind:hover { border-color: #a9bed6; background: #eaf1f8; }
.fl-ind em { display: block; font-style: normal; color: #b0b7c3; font-size: 11px; margin-top: 3px; }
.fl-chk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 380px; overflow-y: auto; }
.fl-chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #33405a; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.fl-chk:hover { background: #f2f7fc; }
.fl-chk .no { font-weight: 700; color: #b0b7c3; font-size: 11.5px; }
.fl-his-list { display: flex; flex-direction: column; gap: 6px; }
.fl-his {
  border: 1px solid #e4e9f1; background: #fff; border-radius: 8px; padding: 8px 12px;
  text-align: left; cursor: pointer; font-size: 13px; color: #33405a; font-family: inherit;
}
.fl-his:hover { border-color: #a9bed6; background: #eaf1f8; }
.fl-his em { float: right; font-style: normal; color: #17456e; font-size: 11.5px; }

/* 三栏级联（大类 | 类似群 | 小类 | 已选） */
.fl-picker {
  flex: 1; border: 1px solid #e4e9f1; border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 134px 160px minmax(0, .95fr) minmax(0, 1.9fr);
  grid-template-rows: auto minmax(0, 1fr); height: 520px;
}
.fl-pk-searchrow {
  grid-column: 1 / -1; padding: 10px 12px 4px; border-bottom: 1px solid #f0f3f8; background: #fcfdfe;
}
.fl-pk-searchrow .fl-goods-res { max-height: 120px; margin-top: 6px; }
.fl-pk-searchbar { display: flex; align-items: center; gap: 12px; }
.fl-pk-searchbar .fl-link { flex: none; }
.fl-pk-col {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  border-right: 1px solid #eef1f6;
}
.fl-pk-col:last-of-type { border-right: 0; }
.fl-pk-colh {
  flex: none; font-size: 12.5px; font-weight: 600; color: #33405a;
  padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #f0f3f8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fl-pk-list { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 0; }
.fl-pkc {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: 13px; color: #33405a; cursor: pointer; min-width: 0;
}
.fl-pkc:hover { background: #f2f7fc; }
.fl-pkc .no { flex: none; color: #a5adb9; font-family: Consolas, monospace; font-size: 10.5px; width: 22px; }
.fl-pkc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-pkc em { flex: none; font-style: normal; color: #b6bdc9; font-size: 10.5px; }
.fl-pkc .dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%; background: #2f8f5b;
}
.fl-pkc.pick { background: #eaf1f8; color: #17456e; font-weight: 600; }
.fl-pkc.pick .no { color: #17456e; }
.fl-pkc.sel { background: #f0f7f2; }
.fl-pkc.item { padding: 5px 12px 5px 8px; font-weight: 400; font-size: 12px; }
.fl-pkc.item .tick { flex: none; width: 13px; text-align: center; color: #2f8f5b; font-weight: 700; font-size: 11px; }
.fl-pkc.item .code { flex: none; width: 44px; color: #a5adb9; font-family: Consolas, monospace; font-size: 10px; }
.fl-pkc.item .code.nonstd { font-family: inherit; font-size: 10.5px; color: #b8860b; opacity: .85; }
.fl-pkc.item.sel { background: #2f8f5b; color: #fff; font-weight: 600; }
.fl-pkc.item.sel .code { color: #cdeeda; }
.fl-cnt { color: #2f8f5b; font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.fl-cnt.over { color: #b0453c; }
/* 搜索框带放大镜 */
.fl-search { position: relative; flex: none; }
.fl-search .fl-inp { padding-right: 30px; }
.fl-search .fl-mag {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: #b0b7c3; pointer-events: none;
}
.fl-goods-res { max-height: 150px; overflow-y: auto; border: 1px solid #f0f3f8; border-radius: 8px; }
.fl-goods-res:empty { display: none; }
.fl-gitem {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 12.5px;
  border-bottom: 1px solid #f4f6fa;
}
.fl-gitem:last-child { border-bottom: 0; }
.fl-gcls { flex: none; color: #8b92a0; font-size: 11.5px; width: 86px; }
.fl-gname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33405a; }
.fl-gname .code { color: #8792a5; font-family: Consolas, monospace; font-size: 11px; }
.fl-gname .code.nonstd { font-family: inherit; color: #b8860b; font-size: 10.5px; }

/* 右侧已选区：放大占比 + 换明显不同的底色 */
.fl-pk-right {
  padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: #eef5fb; border-left: 2px solid #9dbbdd;
}
.fl-pk-right .fl-pk-head { color: #17456e; font-weight: 600; }
.fl-pk-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5a6474; flex-wrap: wrap; }
.fl-sel-total { color: #b0453c; font-size: 13px; }
.fl-sel-total.over { color: #b0453c; font-weight: 700; }
.fl-viewseg {
  display: inline-flex; border: 1px solid #b9cbde; border-radius: 6px; overflow: hidden;
}
.fl-viewseg button {
  border: 0; background: #fff; color: #5a6474; font-size: 11.5px; padding: 3px 10px; cursor: pointer;
  font-family: inherit;
}
.fl-viewseg button.on { background: #17456e; color: #fff; }
.fl-sel-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.fl-empty { color: #b6bdc9; font-size: 12.5px; text-align: center; padding: 60px 0; }

/* 选项卡视图的类签 */
.fl-clstabs { display: flex; gap: 6px; flex-wrap: wrap; }
.fl-clstab {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid #b9cbde;
  background: #fff; color: #17456e; font-size: 12px; border-radius: 16px;
  padding: 4px 10px; cursor: pointer; font-weight: 600; font-family: inherit;
}
.fl-clstab em { font-style: normal; color: #2f8f5b; font-size: 11px; }
.fl-clstab em.over { color: #b0453c; }
.fl-clstab.on { background: #17456e; color: #fff; border-color: #17456e; }
.fl-clstab.on em { color: #bfe3cf; }
.fl-clstab .xt { font-style: normal; font-weight: 400; color: #9db4c9; padding: 0 1px; }
.fl-clstab .xt:hover { color: #b0453c; }
.fl-clstab.on .xt { color: #cfe0f0; }
.fl-sel.intab { box-shadow: 0 1px 6px rgba(23, 69, 110, .08); }

/* 刚勾选的项在已选区闪烁高亮 */
.fl-good.flash {
  background: #ffefc2; border-radius: 4px; animation: flFlash 1.6s ease-out 1;
  outline: 1px solid #f2c14e;
}
@keyframes flFlash { 0% { background: #ffd95e; } 100% { background: transparent; outline-color: transparent; } }

.fl-rp-empty { color: #b6bdc9; font-size: 12.5px; text-align: center; padding: 70px 20px; line-height: 2; }
.fl-rp-empty svg { width: 64px; height: 52px; display: block; margin: 0 auto 10px; opacity: .75; }
.fl-sel { border: 1px solid #eef1f6; border-radius: 8px; padding: 8px 10px; }
.fl-sel-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #33405a; }
.fl-sel-n { color: #9aa3b2; font-size: 12px; }
.fl-sel-n.over, .num.over { color: #b0453c; font-weight: 700; }
.fl-sel-fee { color: #b0453c; font-size: 12.5px; font-weight: 600; }
.fl-sel-fee.over { color: #b0453c; font-weight: 700; }
.fl-trash { border: 0; background: none; cursor: pointer; color: #b0b7c3; padding: 2px 4px; display: flex; align-items: center; }
.fl-trash:hover { color: #b0453c; }
.fl-trash svg { width: 14px; height: 14px; }
/* 按类似群分组 */
.fl-grps { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.fl-grp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; font-size: 12px; }
.fl-grp .gn { font-style: normal; color: #9aa3b2; font-family: Consolas, monospace; font-size: 11.5px; flex: none; min-width: 38px; }
.fl-good { display: inline-flex; align-items: baseline; gap: 4px; color: #33405a; padding: 1px 2px; cursor: pointer;
  transition: opacity .3s, color .3s; }
.fl-good:hover { background: #f2f7fc; border-radius: 4px; }
.fl-good .fx { font-style: normal; color: #c3cad4; cursor: pointer; padding: 0 1px; visibility: hidden; }
.fl-good:hover .fx { visibility: visible; }
.fl-good .fx:hover { color: #b0453c; }
.fl-good.del-out { text-decoration: line-through; color: #b0453c; opacity: .25; }
.fl-good .fc { font-style: normal; color: #6c87a6; font-family: Consolas, monospace; font-size: 11.5px; }
.fl-good .fc.nonstd { font-family: inherit; color: #b8860b; font-size: 10px; }
.fl-addrow { display: flex; align-items: center; gap: 10px; }

/* 确认页 */
.fl-sum { width: 100%; }
.fl-sum td:first-child { color: #8b92a0; width: 120px; }
.fl-sum tfoot td { background: #fafbfd; }

/* 行内组合：输入框 + 帮助链接 */
.fl-row { display: flex; align-items: center; gap: 10px; }

/* 帮助弹窗 */
.fl-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 26, 40, .34);
  display: grid; place-items: center; padding: 24px;
}
.fl-modal-card {
  background: #fff; border-radius: 14px; width: 560px; max-width: 100%;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(16, 31, 51, .25);
}
.fl-modal-card.wide { width: 780px; }
.fl-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eef1f6; font-size: 14.5px; color: #33405a;
}
.fl-modal-x {
  border: 0; background: none; font-size: 20px; color: #9aa3b2; cursor: pointer; line-height: 1;
}
.fl-modal-x:hover { color: #b0453c; }
.fl-modal-body { padding: 14px 18px; overflow-y: auto; }
.fl-modal-body p { margin: 0 0 9px; font-size: 13px; color: #5a6474; line-height: 1.8; }
.fl-modal-body b { color: #17456e; }
.fl-modal-foot { padding: 10px 18px 14px; text-align: right; }

/* ---------- 第 2 步：温馨提示 / 申请主体 ---------- */
.fl-notice {
  background: #fbf3e3; border: 1px solid #ecd9ae; border-radius: 10px;
  padding: 12px 16px; margin: 10px 0 4px;
}
.fl-notice b { color: #8a6321; font-size: 13.5px; }
.fl-notice .fl-q { font-style: normal; cursor: help; }
.fl-notice p { margin: 6px 0 0; font-size: 12.5px; color: #8a6321; line-height: 1.8; }
.fl-sec .fl-opt { color: #9aa3b2; font-size: 12px; font-style: normal; font-weight: 400; }
.fl-ap-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.fl-ap-bar .fl-inp { max-width: 420px; flex: 1; }
.fl-ap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fl-ap-card {
  border: 1px solid #e2e7ef; border-radius: 10px; padding: 10px 14px;
  cursor: pointer; background: #fff; min-width: 0; position: relative;
}
.fl-ap-card:hover { border-color: #a9bed6; background: #f2f7fc; }
.fl-ap-card.sel { border-color: #17456e; background: #eaf1f8; }
.fl-ap-card .l1 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #17202b; }
.fl-ap-card .l1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-ap-card .l1 .fl-tag { flex: none; }
.fl-ap-on { margin-left: auto; flex: none; color: #17456e; font-size: 11.5px; font-weight: 600; }
.fl-ap-card .l2 { color: #8792a5; font-size: 12px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 40px; }
.fl-ap-card .l3 { color: #9aa3b2; font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-ap-del {
  position: absolute; right: 10px; bottom: 8px; border: none; background: none;
  color: #b0453c; font-size: 12px; cursor: pointer; padding: 2px 6px; border-radius: 6px;
  font-family: inherit;
}
.fl-ap-del:hover { background: #fdf0ee; }

/* ---- 申请主体弹窗：信息卡片版式 ---- */
.fl-m-card {
  border: 1px solid #e9edf3; border-radius: 12px; padding: 12px 16px 14px;
  margin: 14px 0 0; background: #fff;
  box-shadow: 0 1px 3px rgba(23, 69, 110, .05);
}
.fl-m-card-h {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px dashed #e4e9f1;
}
.fl-m-card-h b { font-size: 14px; color: #17202b; }
.fl-dsec-no {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: #eaf1f8; color: #17456e; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.fl-m-card-tip { font-size: 12px; color: #9aa3b2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-m-badge { margin-left: auto; flex: none; font-size: 12px; color: #1c7a4e; font-weight: 600; }
.fl-m-badge.empty { color: #9aa3b2; font-weight: 400; }
.fl-m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fl-m-grid .fl-field { align-items: flex-start; }
.fl-m-grid .fl-field > label { text-align: left; width: 108px; line-height: 1.5; padding-top: 9px; }
@media (max-width: 860px) { .fl-m-grid { grid-template-columns: 1fr; } }

/* ---- 材料上传（证照盒） ---- */
.fl-mat { display: grid; gap: 12px; margin-top: 4px; }
.fl-mat-row { display: flex; align-items: flex-start; gap: 12px; }
.fl-mat-lab { flex: 0 0 96px; font-size: 13px; color: #33405a; padding-top: 44px; }
.fl-mat-lab .req { color: #b0453c; }
.fl-doc { display: flex; align-items: flex-end; gap: 10px; }
.fl-doc-sm { width: auto; }
.fl-doc-box {
  width: 160px; height: 160px; border: 1px dashed #cfd6e0; border-radius: 8px;
  background: #fafbfd; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer; color: #9aa3b2; overflow: hidden;
  text-align: center; font-size: 12px; position: relative;
}
.fl-doc-box:hover { border-color: #17456e; }
.fl-doc-box .fl-plus { font-size: 24px; line-height: 1; }
.fl-mat-row .fl-doc-sm .fl-doc-box { width: 240px; height: 160px; }
.fl-mat-row .fl-doc-sm .fl-doc-box .fl-thumb { object-fit: contain; background: #f6f8fb; }
.fl-thumb {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  cursor: zoom-in; display: block;
}
.fl-doc-acts {
  position: absolute; inset: 0; display: none; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; background: rgba(23, 30, 44, .55);
  border-radius: 8px; z-index: 2;
}
.fl-doc-box:hover .fl-doc-acts { display: flex; }
.fl-doc-acts button {
  width: 78px; padding: 4px 0; font-size: 12.5px; cursor: pointer;
  background: #fff; color: #17456e; border: 1px solid #fff; border-radius: 6px;
  font-family: inherit;
}
.fl-doc-acts button:hover { background: #eaf1f8; }
.fl-ocr-busy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(23, 69, 110, .85); color: #fff; font-size: 12px;
  text-align: center; padding: 4px 0; border-radius: 0 0 8px 8px;
}
.fl-tip b { color: #5a6474; }

/* ---- 材料查看器 ---- */
.fl-viewer {
  position: fixed; inset: 0; background: rgba(23, 30, 44, .55); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.fl-viewer-card {
  background: #fff; border-radius: 12px; max-width: 860px; width: 100%;
  max-height: 88vh; overflow: auto; box-shadow: 0 12px 48px rgba(20, 30, 50, .25);
}
.fl-viewer-body { display: flex; gap: 16px; padding: 16px; }
.fl-viewer-img { flex: 1 1 auto; min-width: 0; max-width: 520px; max-height: 420px; object-fit: contain; border: 1px solid #e4e9f1; border-radius: 8px; }
.fl-viewer-side { flex: 0 0 240px; border-left: 1px solid #eef1f6; padding-left: 14px; }
.fl-viewer-x { border: none; background: none; font-size: 20px; cursor: pointer; color: #7a879c; }
@media (max-width: 860px) { .fl-viewer-body { flex-direction: column; } .fl-viewer-side { border-left: none; padding-left: 0; flex: 1 1 auto; } }

/* ---- 官费超项提醒 ---- */
.fl-over {
  display: inline-block; padding: 1.5px 8px; margin-left: 6px;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  color: #fff; background: #b0453c; border-radius: 999px; white-space: nowrap;
  vertical-align: 1px;
}
.fl-clstab em.over { color: #b0453c; }

/* ---- 批量操作条 ---- */
.fl-batchbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:8px 14px; margin:0 0 10px; background:#eef4fb; border:1px solid #d7e4f2;
  border-radius:8px; font-size:13px; color:#17456e; }
.fl-batchbar b { color:#17456e; }
.fl-batchbar .btn.danger { color:#b0453c; border-color:#d8b0ab; }
.fl-batchbar .btn.danger:hover { background:#f7e9e7; }
input.fl-sel { width:15px; height:15px; cursor:pointer; vertical-align:middle; }
.fl-list-head .fl-inp.sm { width: 220px; }
.fl-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.fl-sort:hover { color: #17456e; background: #f4f8fc; }

/* ---- 业务类型选择卡（新建案件） ---- */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.biz-card {
  border: 1px solid #e2e7ef; border-radius: 12px; padding: 16px 18px;
  background: #fff; cursor: pointer; transition: .15s; position: relative;
}
.biz-card:hover { border-color: #a9bed6; background: #f2f7fc; }
.biz-card.on { border-color: #17456e; background: #eaf1f8; }
.biz-card.off { cursor: not-allowed; background: #fafbfd; }
.biz-card.off:hover { border-color: #e2e7ef; background: #fafbfd; }
.biz-card h4 { margin: 0 0 5px; font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.biz-card p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.biz-chip {
  flex: none; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 9px;
  background: #e6f4ec; color: #1c7a4e;
}
.biz-chip.soon { background: #f6f0e2; color: #8a6d2f; font-weight: 400; }

/* ---- 客户档案页 ---- */
.ap-wrap { max-width: 1180px; margin: 0 auto; }
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .ap-grid { grid-template-columns: repeat(2, 1fr); } }
.ap-card {
  border: 1px solid #e2e7ef; border-radius: 10px; padding: 10px 14px;
  background: #fff; cursor: pointer; min-width: 0; position: relative;
}
.ap-card:hover { border-color: #a9bed6; background: #f2f7fc; }
.ap-card .l1 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #17202b; }
.ap-card .l1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-card .l2 { color: #8792a5; font-size: 12px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-card .l3 { color: #9aa3b2; font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-card .ap-del {
  position: absolute; right: 10px; bottom: 8px; border: none; background: none;
  color: #b0453c; font-size: 12px; cursor: pointer; padding: 2px 6px; border-radius: 6px;
  font-family: inherit;
}
.ap-card .ap-del:hover { background: #fdf0ee; }
.ap-card.sel { border-color: #1d66c4; background: #eef4fb; }
.ap-card .l1 .fl-sel { flex: none; }

/* 客户档案：卡片/列表视图切换 + 批量选择 */
.cl-viewtoggle { display: flex; border: 1px solid #d6dce6; border-radius: 7px; overflow: hidden; flex: none; }
.cl-vbtn { padding: 5px 14px; font-size: 12.5px; background: #fff; border: 0; cursor: pointer; color: #55606e; font-family: inherit; }
.cl-vbtn + .cl-vbtn { border-left: 1px solid #d6dce6; }
.cl-vbtn.on { background: #eef4fb; color: #1d66c4; font-weight: 600; }
.cl-selall { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #55606e; cursor: pointer; white-space: nowrap; flex: none; }
/* 卡片视图的全选行：靠左、灰字，与案件/合同管理表头第一列的全选位置保持一致 */
.cl-cardtools { display: flex; align-items: center; margin-bottom: 10px; }
.cl-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; border: 1px solid #e8e8ee; }
.cl-table th, .cl-table td { padding: 9px 12px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: middle; }
.cl-table th { background: #f6f7fa; color: #666; font-size: 12.5px; white-space: nowrap; font-weight: 600; }
.cl-table tbody tr { cursor: pointer; }
.cl-table tbody tr:hover td { background: #f6f9fd; }
.cl-table tbody tr.sel td { background: #eef4fb; }
.cl-table .cl-tdchk { width: 34px; }
.cl-table .cl-tdwrap { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-act { color: #1d66c4; cursor: pointer; white-space: nowrap; }
.cl-act.warn { color: #b0453c; }
.cl-act:hover { text-decoration: underline; }

/* ---- 账号管理 ---- */
.acc-av {
  width: 28px; height: 28px; border-radius: 8px; background: #e8eff6; color: #17456e;
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none;
}
.acc-user { display: flex; align-items: center; gap: 9px; }
.acc-uid { display: flex; flex-direction: column; line-height: 1.35; }
.acc-uid b { font-size: 13.5px; }
.acc-uid .dim { font-size: 11.5px; }
.acc-role { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #eef1f5; color: #4a5a6b; }
.acc-role.super { background: #fdf3e3; color: #a9700f; }
.acc-st { font-size: 12px; }
.acc-st.on { color: #1c7a4e; }
.acc-st.off { color: #b0453c; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.acc-grid label { font-size: 12.5px; color: var(--ink-2); display: block; }
.acc-grid input, .acc-grid select {
  width: 100%; height: 34px; margin-top: 5px; border: 1px solid var(--line);
  border-radius: 8px; padding: 0 10px; font-size: 13px; font-family: inherit; background: #fcfdfe;
}

/* ---- 退回原因弹窗等小表单 ---- */
.retf { display: flex; flex-direction: column; gap: 8px; }
.retf textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
  font-family: inherit; font-size: 13px; min-height: 88px; resize: vertical;
  outline: none; background: #fbfcfe;
}
.retf textarea:focus { border-color: #4a86b8; background: #fff; }

/* ---- 案件详情 kv ---- */
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 9px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: 12.5px; }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: #fff;
}
.att-row .kind { font-size: 11px; color: var(--primary); background: var(--soft); border-radius: 4px; padding: 1px 6px; flex: none; }
.att-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.att-row .sz { color: var(--ink-3); font-size: 11.5px; flex: none; }


/* ---------- 内嵌模式（主系统 iframe 挂载时）---------- */
body.embed .topbar { display: none; }
body.embed .sk-side { display: none; }
body.embed .sk-shell { display: block; }
body.embed { background: var(--bg, #fff); }

/* ---------- 合同模块 ---------- */
.ct-items { width: 100%; border-collapse: collapse; margin: 4px 0; }
.ct-items th, .ct-items td { border: 1px solid #d9d9d9; padding: 6px 8px; font-size: 13px; text-align: left; }
.ct-items th { background: #f5f6f8; font-weight: 600; }
.ct-items input { width: 100%; border: 1px solid #d9d9d9; border-radius: 4px; padding: 4px 8px; font-size: 13px; box-sizing: border-box; }
.ct-items input:focus { border-color: #1c7a4e; outline: none; }
.ct-bizrow { display: flex; align-items: center; padding: 4px 0; }
.ct-bizrow input[type="text"], .ct-bizrow input:not([type]) { border: 1px solid #d9d9d9; border-radius: 4px; padding: 4px 8px; font-size: 13px; }
.ct-cfg textarea, .ct-cfg input { border: 1px solid #d9d9d9; border-radius: 4px; padding: 6px 8px; font-size: 13px; box-sizing: border-box; }
.ct-cfg label { display: block; }
.ct-form textarea { border: 1px solid #d9d9d9; border-radius: 4px; padding: 6px 8px; font-size: 13px; box-sizing: border-box; }

/* ---- OCR 识别结果确认面板（客户档案弹窗内嵌） ---- */
#flOcrPanel { margin-top: 12px; }
.fl-ocr-review {
  border: 1px solid var(--line); border-radius: 10px; background: #f8fafc;
  padding: 14px 16px; display: grid; gap: 10px;
}
.fl-ocr-head { display: flex; align-items: baseline; gap: 10px; }
.fl-ocr-head b { color: var(--primary); font-size: 14px; }
.fl-ocr-thumb img { display: block; }
.fl-ocr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.fl-ocr-grid .fl-field label { font-size: 12px; color: var(--ink-3); }
.fl-ocr-ct { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.fl-ocr-btns { display: flex; gap: 10px; justify-content: flex-end; }
/* ================================================================
   AI 助手（客户规划对话）· 重设计版
   ================================================================ */
.ai-shell { display: grid; grid-template-columns: 292px 1fr; gap: 16px; align-items: stretch; }
.grow { flex: 1; }

/* ---------- 左侧栏 ---------- */
.ai-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ai-panel { background: #fff; border: 1px solid #e8edf4; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(16,42,88,.04); }
.ai-panel-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #7c8aa5; }
.ai-panel-sub { font-size: 11.5px; color: #a5b1c6; margin-top: 2px; }
.ai-search { width: 100%; box-sizing: border-box; margin-top: 10px; border: 1px solid #e3e9f2; border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 12.5px; background: #f8fafd; }
.ai-search:focus { outline: none; border-color: #4f7cff; background: #fff; }
.ai-cl-list { max-height: 232px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-right: 2px; }
.ai-cl-list::-webkit-scrollbar { width: 5px; }
.ai-cl-list::-webkit-scrollbar-thumb { background: #d9e1ee; border-radius: 4px; }
.ai-cl { text-align: left; border: none; background: transparent; border-radius: 9px; padding: 7px 10px 7px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; position: relative; }
.ai-cl b { font-size: 13px; color: #2c3852; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-cl span { font-size: 11.5px; color: #9aa6bc; }
.ai-cl:hover { background: #f2f6fd; }
.ai-cl.on { background: #eef4ff; }
.ai-cl.on::before { content: ''; position: absolute; left: 3px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #3b6ff0; }
.ai-quick-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ai-quick { text-align: left; border: 1px solid #e8eef7; background: #fafcfe; border-radius: 10px; padding: 8px 11px; font-size: 12.5px; color: #42506b; cursor: pointer; transition: all .15s; }
.ai-quick:hover { border-color: #b9cef7; background: #f0f5ff; color: #2b55c4; transform: translateY(-1px); }
.ai-side-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 2px 4px; }
.ai-btn-mini { border: 1px solid #e3e9f2; background: #fff; border-radius: 8px; padding: 5px 12px; font: inherit; font-size: 12px; color: #5a6884; cursor: pointer; }
.ai-btn-mini:hover { border-color: #b9cef7; color: #2b55c4; }
.ai-side-foot .ai-note { font-size: 11px; color: #a5b1c6; }

/* ---------- 主对话区 ---------- */
.ai-main { display: flex; flex-direction: column; min-height: calc(100vh - 150px); background: #fff; border: 1px solid #e8edf4; border-radius: 16px; box-shadow: 0 4px 24px rgba(16,42,88,.05); overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef1f7; background: linear-gradient(180deg, #fbfdff, #fff); }
.ai-head-ic { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #2b6de8, #6a8dff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 3px 10px rgba(43,109,232,.3); }
.ai-head h3 { margin: 0; font-size: 15px; color: #1e2f4d; }
.ai-head .ai-head-sub { font-size: 12px; color: #9aa6bc; }
.ai-head .ai-btn-rpt { border: none; background: linear-gradient(135deg, #2b6de8, #4f7cff); color: #fff; border-radius: 9px; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(43,109,232,.28); transition: all .15s; }
.ai-head .ai-btn-rpt:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43,109,232,.36); }
.ai-head .ai-btn-rpt:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ai-head .ai-btn-ghost { border: 1px solid #e3e9f2; background: #fff; border-radius: 9px; padding: 6px 12px; font: inherit; font-size: 12.5px; color: #7c8aa5; cursor: pointer; }
.ai-head .ai-btn-ghost:hover { border-color: #cfd9e8; color: #42506b; }

.ai-msgs { flex: 1; overflow-y: auto; padding: 20px 22px 10px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, #fbfcfe 0%, #fff 30%); }
.ai-msgs::-webkit-scrollbar { width: 6px; }
.ai-msgs::-webkit-scrollbar-thumb { background: #dbe3ef; border-radius: 4px; }
.ai-row { display: flex; gap: 10px; align-items: flex-start; }
.ai-row.me { justify-content: flex-end; }
.ai-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.ai-avatar.bot { background: linear-gradient(135deg, #2b6de8, #6a8dff); color: #fff; box-shadow: 0 2px 8px rgba(43,109,232,.25); }
.ai-avatar.me { background: #e8eef7; color: #5a6884; }
.ai-bubble { max-width: 80%; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; line-height: 1.7; }
.ai-bubble.user { background: linear-gradient(135deg, #2b6de8, #4f7cff); color: #fff; border-radius: 14px 14px 4px 14px; box-shadow: 0 2px 10px rgba(43,109,232,.22); }
.ai-bubble.user .md p { color: #fff; }
.ai-bubble.assistant { background: #f7f9fc; border: 1px solid #eef1f7; border-radius: 4px 14px 14px 14px; color: #2c3852; }

/* 打字动画 */
.ai-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9db4dd; animation: aiBounce 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.ai-cursor { color: #4f7cff; animation: aiBlink 1s steps(2) infinite; margin-left: 1px; }
@keyframes aiBlink { 50% { opacity: 0; } }

/* 欢迎页 */
.ai-welcome { margin: auto; text-align: center; padding: 34px 20px 26px; max-width: 480px; }
.ai-welcome .ai-w-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; background: linear-gradient(135deg, #2b6de8, #6a8dff); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(43,109,232,.3); }
.ai-welcome b { display: block; color: #1e2f4d; font-size: 16.5px; margin-bottom: 14px; }
.ai-welcome .ai-step { display: flex; align-items: center; gap: 10px; text-align: left; background: #f8fafd; border: 1px solid #eef2f8; border-radius: 10px; padding: 9px 13px; margin: 7px 0; font-size: 12.5px; color: #5a6884; }
.ai-welcome .ai-step i { flex: none; font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #e3ecfb; color: #2b6de8; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 输入区（卡片式） */
.ai-composer { margin: 0 16px 16px; border: 1.5px solid #dfe7f2; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ai-composer:focus-within { border-color: #4f7cff; box-shadow: 0 0 0 3px rgba(79,124,255,.12); }
.ai-composer textarea { width: 100%; box-sizing: border-box; border: none; resize: none; padding: 12px 14px 6px; font: inherit; font-size: 13.5px; line-height: 1.6; background: transparent; }
.ai-composer textarea:focus { outline: none; }
.ai-composer-bar { display: flex; align-items: center; gap: 10px; padding: 0 8px 8px 14px; }
.ai-hint { font-size: 11px; color: #a5b1c6; }
.ai-send { border: none; background: linear-gradient(135deg, #2b6de8, #4f7cff); color: #fff; border-radius: 9px; padding: 7px 18px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(43,109,232,.28); transition: all .15s; }
.ai-send:hover { transform: translateY(-1px); }
.ai-send:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* 消息内 Markdown */
.md { min-width: 0; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md h2, .md h3, .md h4, .md h5 { margin: 12px 0 6px; color: #1e2f4d; line-height: 1.4; }
.md h2 { font-size: 15px; padding-bottom: 5px; border-bottom: 2px solid #e6ecf5; }
.md h3 { font-size: 14px; }
.md h4 { font-size: 13.5px; color: #31405e; }
.md p { margin: 5px 0; }
.md ul, .md ol { margin: 5px 0; padding-left: 20px; }
.md li { margin: 3px 0; }
.md li::marker { color: #4f7cff; }
.md code { background: #e9eef7; border-radius: 4px; padding: 1px 5px; font-size: 12px; color: #2b55c4; }
.md table { border-collapse: collapse; width: 100%; margin: 9px 0; font-size: 12.5px; border-radius: 8px; overflow: hidden; }
.md th, .md td { border: 1px solid #e0e6f0; padding: 6px 9px; text-align: left; vertical-align: top; }
.md th { background: #eef3fa; color: #1e2f4d; font-weight: 600; }
.md tr:nth-child(even) td { background: #fafbfd; }
.md hr { border: none; border-top: 1px solid #e6ecf5; margin: 10px 0; }
.md blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid #b9cef7; background: #f6f9ff; border-radius: 0 8px 8px 0; color: #42506b; }

/* 报告预览弹窗 */
.ai-report-body { max-height: 62vh; overflow-y: auto; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; padding: 22px 26px; }
.ai-report-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; }
.ai-cfg-ok { font-size: 12.5px; color: #2c7a4b; margin: 4px 0 10px; }
#aiCfgModal select, #aiCfgModal textarea, #aiCfgModal input { width: 100%; box-sizing: border-box; }
#aiCfgModal select { border: 1px solid #dbe2ec; border-radius: 8px; padding: 8px 10px; font: inherit; }
#aiCfgModal textarea, #aiCfgModal input[type=password] { border: 1px solid #dbe2ec; border-radius: 8px; padding: 8px 10px; font: inherit; }
@media (max-width: 900px) { .ai-shell { grid-template-columns: 1fr; } .ai-bubble { max-width: 88%; } }

/* ---------- 合同文档视图（近满屏 Word 式预览） ---------- */
.fl-modal-card.docview { width: min(1140px, 97vw); }
/* 弹窗内 textarea 统一设计语言（反馈框 / 合同付款方式等所有裸 textarea） */
.fl-modal-card textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font: inherit; font-size: 13.5px; color: var(--ink-2, #33405a);
  background: #fff; resize: vertical; line-height: 1.7; outline: none;
}
.fl-modal-card textarea:focus { border-color: #17456e; box-shadow: 0 0 0 2px rgba(23, 69, 110, .12); }
.fl-modal-card textarea::placeholder { color: #a6b0bd; }
.fl-modal-card.docview .fl-modal-body { background: #eceef2; padding: 12px 14px 6px; }
.fl-modal-card.docview .fl-modal-body p.fl-sub { color: #7a8494; }
.ct-preview { width: 100%; height: 62vh; border: none; border-radius: 4px; background: #eceef2; }
.ct-preview.tall { height: 78vh; }

/* ---------- 专家模式 ---------- */
.ai-modeseg { display: inline-flex; background: #eef2f8; border-radius: 10px; padding: 3px; margin-left: 6px; }
.ai-modeseg button { border: none; background: transparent; border-radius: 8px; padding: 5px 14px; font: inherit; font-size: 12.5px; color: #7c8aa5; cursor: pointer; transition: all .15s; }
.ai-modeseg button.on { background: #fff; color: #1e2f4d; font-weight: 600; box-shadow: 0 1px 4px rgba(16,42,88,.12); }
.ai-ecard-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 300px; overflow-y: auto; }
.ai-ecard { display: flex; align-items: flex-start; gap: 9px; text-align: left; border: 1px solid #e8eef7; background: #fafcfe; border-radius: 10px; padding: 9px 11px; cursor: pointer; transition: all .15s; width: 100%; }
.ai-ecard:hover { border-color: #b9cef7; background: #f0f5ff; }
.ai-ecard.on { border-color: #4f7cff; background: #eef4ff; }
.ai-ecard-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #e6f1fb; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ai-ecard-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ai-ecard-t b { font-size: 13px; color: #1e2f4d; font-weight: 600; }
.ai-ecard-t i { font-style: normal; font-size: 11.5px; color: #9aa6bc; line-height: 1.45; }
.ai-f { margin: 0 0 10px; }
.ai-f label { display: block; font-size: 12px; color: #5a6884; margin-bottom: 4px; }
.ai-f .ai-req { font-style: normal; color: #e24b4a; }
.ai-f input, .ai-f textarea, .ai-f select { width: 100%; box-sizing: border-box; border: 1px solid #e3e9f2; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; background: #f8fafd; resize: vertical; }
.ai-f input:focus, .ai-f textarea:focus, .ai-f select:focus { outline: none; border-color: #4f7cff; background: #fff; }
.ai-form-hint { padding: 14px 4px; text-align: center; color: #a5b1c6; font-size: 12.5px; }
#aiFormFields { padding: 10px 14px 0; max-height: 240px; overflow-y: auto; }

/* ---------- 审核弹窗：左合同右审核 ---------- */
.fl-modal-card.docview { width: min(1280px, 97vw); }
.ct-rev-split { display: flex; gap: 14px; align-items: stretch; }
.ct-rev-left { flex: 1; min-width: 0; }
.ct-rev-right { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-rev-box { background: #fff; border: 1px solid #e2e6ec; border-radius: 8px; padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.ct-rev-box h4 { margin: 0 0 6px; font-size: 14px; color: #17456e; }
.ct-rev-box textarea { flex: 1; min-height: 200px; resize: vertical; border: 1px solid #d9d9d9; border-radius: 6px; padding: 8px 10px; font-size: 13px; line-height: 1.7; box-sizing: border-box; width: 100%; }
.ct-rev-box textarea:focus { border-color: #1c7a4e; outline: none; }
.ct-rev-btns { display: flex; flex-direction: column; gap: 8px; }
.ct-rev-btns .btn { width: 100%; padding: 9px 0; font-size: 14px; }
/* 合同查看：手写内容置顶面板 */
.ct-pin { border-left: 3px solid #1c7a4e; background: #f6fbf7; flex: 0 0 auto; }
.ct-note { margin: 4px 0; font-size: 13px; line-height: 1.8; word-break: break-all; }
.ct-note.warn { color: #8a5a17; background: #fdf3e3; border-radius: 6px; padding: 6px 8px; }
.ct-pay { margin: 8px 0 0; font-size: 13px; line-height: 1.8; }
.ct-kv { margin: 4px 0 0; }
.ct-kv dt { width: 62px; flex-shrink: 0; color: #7a8494; }
.ct-kv dd { margin: 0 0 4px; font-size: 12.5px; }
/* 新建 / 编辑合同：分区块录入 */
.ct-form-card { width: min(700px, 96vw); }
.ct-form { display: flex; flex-direction: column; gap: 8px; }
.ct-sec { border: 1px solid #e6ebf2; border-radius: 10px; overflow: hidden; background: #fff; }
.ct-sec-h { display: flex; align-items: center; gap: 7px; padding: 5px 10px;
            background: #f6f9fc; border-bottom: 1px solid #ecf1f7; font-size: 13px; font-weight: 700; color: #17456e; }
.ct-sec-no { display: inline-flex; align-items: center; justify-content: center;
             width: 17px; height: 17px; border-radius: 50%; background: #1c7a4e; color: #fff;
             font-size: 11px; font-weight: 700; flex-shrink: 0; }
.ct-sec-b { padding: 8px 10px 10px; }
.ct-3col { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.ct-sec-b label { font-size: 12px; color: #6b7684; }
.ct-sec-b input, .ct-sec-b textarea, .ct-sec-b select { margin-top: 4px; }
.ct-total { color: #1c7a4e; font-size: 13.5px; white-space: nowrap; }
.ct-items-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ct-auto { font-size: 12.5px; color: #5a6572; }
.ct-auto .fl-tag { margin: 0 2px; }
.ct-label-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ct-3col label, .ct-sec-b > label { margin: 0 0 3px !important; }
.ct-label-row label { margin: 0 !important; }
.ct-pay-presets { display: flex; gap: 6px; }
.ct-pay-presets .btn { padding: 3px 10px; font-size: 12px; }
/* 明细表：轻量行式，去掉灰底大框 */
.ct-items { border-collapse: collapse; width: 100%; }
.ct-items th { font-size: 12px; font-weight: 600; color: #8a94a2; text-align: left;
               padding: 0 8px 6px; border: none; background: transparent; }
.ct-items td { border: none; border-bottom: 1px solid #eef2f7; padding: 4px 4px; }
.ct-items tr:last-child td { border-bottom: none; }
.ct-items input { border: 1px solid #dbe2ec; border-radius: 6px; padding: 6px 9px;
                  font: inherit; font-size: 13px; width: 100%; box-sizing: border-box;
                  background: #fbfcfe; transition: border-color .15s, background .15s; }
.ct-items input:focus { border-color: #1c7a4e; outline: none; background: #fff;
                        box-shadow: 0 0 0 2px rgba(28,122,78,.1); }
.ct-items .num { text-align: right; }
.ct-items .ct-delcol { width: 34px; text-align: center; padding-right: 0; }
.ct-items .ct-delcol .btn { padding: 4px 8px; border-radius: 50%; }
/* 备注：与明细输入框同一套质感 */
.ct-note-wrap { margin-top: 8px; }
.ct-note-wrap label { display: block; margin: 0 0 5px; }
.ct-note-in { display: block; width: 100%; box-sizing: border-box;
              border: 1px solid #dbe2ec; border-radius: 6px; padding: 7px 9px;
              font: inherit; font-size: 13px; background: #fbfcfe;
              transition: border-color .15s, background .15s; }
.ct-note-in:focus { border-color: #1c7a4e; outline: none; background: #fff;
                    box-shadow: 0 0 0 2px rgba(28,122,78,.1); }
.ct-note-wrap .fl-sub { display: block; margin-top: 4px; }
@media (max-width: 860px) {
  .ct-rev-split { flex-direction: column; }
  .ct-rev-right { width: 100%; }
  .ct-rev-box textarea { min-height: 120px; }
}

/* 专家卡管理 */
.ai-exp-admin { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e8eef7; }
.ai-exp-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.ai-exp-grid input { border: 1px solid #dbe2ec; border-radius: 8px; padding: 8px 10px; font: inherit; box-sizing: border-box; }
.ai-mono { font-family: Consolas, Menlo, monospace; font-size: 12px; }
#aiExpModal textarea, #aiExpModal input { border: 1px solid #dbe2ec; border-radius: 8px; padding: 8px 10px; font: inherit; width: 100%; box-sizing: border-box; }
#aiExpModal textarea.ai-mono { font-family: Consolas, Menlo, monospace; font-size: 12px; }

/* 知识库（AI 设置弹窗内） */
.ai-kb-block { margin: 12px 0 4px; border: 1px solid #e8edf4; border-radius: 10px; padding: 10px 12px; background: #fafcfe; }
.ai-kb-title { font-size: 12px; font-weight: 700; color: #7c8aa5; letter-spacing: .06em; }
.ai-kb-sub { font-weight: 400; font-size: 11.5px; color: #a5b1c6; letter-spacing: 0; }
.ai-kb-list { margin: 8px 0; display: flex; flex-direction: column; gap: 5px; max-height: 180px; overflow-y: auto; }
.ai-kb-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #eef1f7; border-radius: 8px; padding: 6px 10px; }
.ai-kb-name { font-size: 12.5px; color: #2c3852; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
.ai-kb-actions { display: flex; align-items: center; gap: 8px; }
.ai-kb-hint { font-size: 11.5px; color: #a5b1c6; padding: 2px 0 6px; }

/* ---- 右侧抽屉（客户档案等长表单；居中弹窗可叠加其上） ---- */
.fl-drawer-wrap {
  position: fixed; inset: 0; z-index: 150; background: rgba(15, 26, 40, .34);
}
.fl-drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: min(620px, 94vw);
  background: #fff; border-radius: 14px 0 0 14px;
  box-shadow: -14px 0 44px rgba(16, 31, 51, .22);
  display: flex; flex-direction: column;
  animation: flDrawerIn .22s ease;
}
@keyframes flDrawerIn {
  from { transform: translateX(48px); opacity: .4; }
  to   { transform: none; opacity: 1; }
}
.fl-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eef1f6; font-size: 14.5px; color: #33405a;
  flex: 0 0 auto;
}
.fl-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.fl-drawer-body .fl-modal-foot {
  position: sticky; bottom: -14px; margin: 0 -18px -14px;
  background: #fff; border-top: 1px solid #eef1f6;
}

/* ---------- 附图识图 ---------- */
.ai-attach { border: 1px solid #e3e9f2; background: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 12.5px; color: #5a6884; cursor: pointer; }
.ai-attach:hover { border-color: #b9cef7; color: #2b55c4; background: #f5f8ff; }
.ai-att-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 0; }
.ai-att { position: relative; display: inline-block; }
.ai-att img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid #e3e9f2; display: block; }
.ai-att-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border: none; border-radius: 50%; background: #e24b4a; color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; padding: 0; }
.ai-att-x:hover { background: #c0392b; }
.ai-msg-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.ai-msg-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.45); }
/* AI 设置弹窗 · 识图区块 */
.ai-vision-block { margin: 12px 0 4px; border: 1px solid #e8edf4; border-radius: 10px; padding: 10px 12px; background: #fafcfe; }
.ai-vision-title { font-size: 12px; font-weight: 700; color: #7c8aa5; letter-spacing: .06em; margin-bottom: 6px; }
.ai-vision-sub { font-weight: 400; font-size: 11.5px; color: #a5b1c6; letter-spacing: 0; }

/* ---------- 驳回复审 ---------- */
.rv-dl { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px;
  font-size: 11px; font-weight: 600; background: #fff3e0; color: #b26a00; vertical-align: 1px; }
.rv-dl.hot { background: #fde8e8; color: #c0392b; }
.rv-att { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 12.5px; }
.rv-att .nm { color: #2b3550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.rv-att .fl-link.danger { color: #c0392b; }

/* Token 用量角标 */
.ai-usage { margin-top: 6px; padding-top: 5px; border-top: 1px dashed #e3e9f2; font-size: 11px; color: #9aa6bc; text-align: right; }

/* ---------- AI 页一屏布局：只有消息区滚动，页面整体不滚 ---------- */
#view-ai { padding: 14px 26px 16px; overflow: hidden; }
#view-ai:not(.hidden) { display: flex; flex-direction: column; }
#view-ai .page-foot { display: none; }
.ai-shell { flex: 1; min-height: 0; overflow: hidden; }
.ai-side { overflow-y: auto; min-height: 0; }
.ai-side::-webkit-scrollbar { width: 5px; }
.ai-side::-webkit-scrollbar-thumb { background: #d9e1ee; border-radius: 4px; }
.ai-main { min-height: 0; height: 100%; }
.ai-msgs { min-height: 0; }
@media (max-width: 900px) {
  #view-ai:not(.hidden) { display: block; height: auto !important; overflow: visible; }
  .ai-main { height: auto; min-height: 70vh; }
}

/* ---------- 修复：aiShell 中间层也要参与高度约束 ---------- */
#view-ai > #aiShell { flex: 1; min-height: 0; height: 100%; }
#aiShell > .ai-shell { height: 100%; }

/* ================= 评审/撤三/异议向导：集中上传区 + 集中填写区 ================= */
.fl-zone {
  border: 1px solid #e4e9f1; border-radius: 12px;
  padding: 16px 18px 14px; margin: 16px 0; background: #fff;
}
.fl-zone-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fl-zone-head b { font-size: 14.5px; color: #17456e; }
.fl-zone-sub { font-size: 12px; color: #9aa3b2; }

/* 上传卡片网格 */
.fl-up-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; margin: 4px 0 10px;
}
.fl-upcard {
  border: 1px solid #e4e9f1; border-radius: 10px; padding: 10px 12px 12px;
  background: #fcfdfe; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.fl-upcard:hover { border-color: #a9bed6; }
.fl-upcard.hl { border-color: #17456e; box-shadow: 0 0 0 3px rgba(23, 69, 110, .18); background: #eef4fa; }
.fl-upcard-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fl-upcard-title { font-size: 13px; font-weight: 600; color: #33405a; }
.fl-upcard-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.fl-upcard-tip { font-size: 11.5px; color: #9aa3b2; line-height: 1.6; }
.fl-upcard .fl-upbox { width: 100%; height: 140px; }
.fl-upcard.wide { grid-column: 1 / -1; }
.fl-upcard-empty { font-size: 12px; color: #b3bac6; padding: 6px 2px; }

/* 徽标 */
.fl-badge {
  display: inline-block; font-size: 10.5px; line-height: 1; padding: 4px 8px;
  border-radius: 999px; white-space: nowrap; font-weight: 600;
}
.fl-badge.b-ocr  { background: #eaf1f8; color: #17456e; border: 1px solid #c3d6ea; }
.fl-badge.b-gov  { background: #e4f3ea; color: #1c7a4e; border: 1px solid #bfe3cd; }
.fl-badge.b-keep { background: #f1f3f7; color: #7a8494; border: 1px solid #dde3ec; }
.fl-badge.b-opt  { background: #faf4e8; color: #8a6321; border: 1px solid #ead9b8; }
.fl-badge.b-req  { background: #f9ecea; color: #b0453c; border: 1px solid #ecd0cc; }

/* 填写区分组标题 */
.fl-fill-sub {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 1px dashed #e4e9f1;
  font-size: 13.5px; font-weight: 600; color: #33405a;
}
.fl-fill-sub:first-child { margin-top: 2px; }
.fl-fill-sub i { font-style: normal; font-size: 12px; font-weight: 400; color: #9aa3b2; }
.fl-auto-ok {
  margin-left: auto; font-size: 11.5px; font-weight: 600; color: #1c7a4e;
  background: #e4f3ea; border-radius: 999px; padding: 3px 10px;
}
.fl-auto-no {
  margin-left: auto; font-size: 11.5px; font-weight: 600; color: #8a6321;
  background: #faf4e8; border-radius: 999px; padding: 3px 10px;
}

/* 字段旁的 OCR 来源标签 */
.fl-ocr-chip {
  display: inline-flex; align-items: center; flex: none; user-select: none;
  font-size: 11px; font-weight: 600; color: #17456e;
  background: #eaf1f8; border: 1px solid #c3d6ea; border-radius: 999px;
  padding: 4px 10px; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.fl-ocr-chip:hover { background: #dbe7f3; }
.fl-ocr-chip.done { color: #1c7a4e; background: #e4f3ea; border-color: #bfe3cd; }
.fl-ocr-chip.done:hover { background: #d6ecdd; }

@media (max-width: 860px) {
  .fl-up-grid { grid-template-columns: 1fr; }
  .fl-upcard.wide { grid-column: auto; }
}

/* fl-row 内：输入框保底宽度，提示自适应换行 */
.fl-ctrl.fl-row .fl-inp { flex: 1 1 240px; min-width: 170px; width: auto; }
.fl-ctrl.fl-row .fl-tip { flex: 1 1 200px; min-width: 160px; }
.fl-ctrl.fl-row .btn { flex: none; }

/* ================= ②填写区双列并排 + 确认表双列 ================= */
@media (min-width: 861px) {
  /* 有分组小节的填写区启用两列网格 */
  .fl-zone:has(.fl-fill-sub) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 26px;
    align-items: start;
  }
  /* 默认整行的元素：标题、分组小节、通知 */
  .fl-zone:has(.fl-fill-sub) > .fl-zone-head,
  .fl-zone:has(.fl-fill-sub) > .fl-fill-sub,
  .fl-zone:has(.fl-fill-sub) > .fl-notice { grid-column: 1 / -1; }
  /* 普通字段占半列，两两并排 */
  .fl-zone:has(.fl-fill-sub) > .fl-field { grid-column: auto; min-width: 0; }
  /* 复杂字段整行：上传行 / 勾选组 / 带按钮的查询行 / 显式标记 w */
  .fl-zone:has(.fl-fill-sub) > .fl-field:has(.fl-imgrow),
  .fl-zone:has(.fl-fill-sub) > .fl-field:has(.fl-chk-grid),
  .fl-zone:has(.fl-fill-sub) > .fl-field:has(.fl-ctrl .btn),
  .fl-zone:has(.fl-fill-sub) > .fl-field.w { grid-column: 1 / -1; }
  /* 半列内允许换行，防溢出 */
  .fl-zone:has(.fl-fill-sub) .fl-ctrl.fl-row { flex-wrap: wrap; row-gap: 4px; }
}
/* 确认汇总表改双列 */
@media (min-width: 861px) {
  table.fl-sum tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 26px;
    align-items: start;
  }
  table.fl-sum tbody tr {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }
  table.fl-sum td:first-child { width: auto; }
  table.fl-sum td { border-bottom: 1px dashed #eef1f6; padding: 7px 4px; }
}
/* 双列区里标签不折行、按内容自适应宽度 */
@media (min-width: 861px) {
  .fl-zone:has(.fl-fill-sub) .fl-field > label {
    width: auto; white-space: nowrap; max-width: 46%;
  }
  .fl-zone:has(.fl-fill-sub) .fl-field-top > label { white-space: normal; }
}

/* ================= 上传卡片统一化：等宽等高、截断防参差 ================= */
@media (min-width: 861px) {
  .fl-up-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
}
@media (max-width: 1500px) and (min-width: 1101px) {
  .fl-up-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .fl-up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 多份材料卡不再横跨整行，与其他卡同尺寸 */
.fl-upcard.wide { grid-column: auto; }
/* 卡片内部结构定高：标题 1 行 + 徽标 1 行 + 上传框 + 提示 2 行 */
.fl-upcard { row-gap: 8px; }
.fl-upcard-head { flex-direction: column; align-items: stretch; gap: 6px; }
.fl-upcard-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; line-height: 1.4;
}
.fl-upcard-badges { flex-wrap: nowrap; overflow: hidden; gap: 4px; }
.fl-badge {
  display: inline-block; flex: none; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fl-upcard-tip {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; min-height: 36px; line-height: 1.6;
}
/* 上传框统一高度；已上传时文件名超长省略 */
.fl-upcard .fl-upbox { height: 140px; }
.fl-upbox.has { justify-content: center; }
.fl-upbox.has .fl-doc-nm {
  display: block; width: 100%; padding: 0 8px; margin-bottom: 26px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 11.5px; color: #33405a; text-align: center;
}
/* 多份材料已传列表：紧凑滚动，不撑高卡片 */
.fl-uplist {
  max-height: 60px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 12px;
}
.fl-uplist .rv-att { padding: 3px 4px; }
.fl-uplist .fl-upcard-empty { padding: 4px 2px; }

/* ================= 问号悬停提示（次要说明收纳） ================= */
.fl-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 1px solid #b9c4d4; color: #8b98ab; background: #f5f7fa;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  cursor: help; user-select: none; vertical-align: middle;
}
.fl-q:hover { background: #17456e; color: #fff; border-color: #17456e; }

/* 字号层级统一：正文 13 / 说明 12 */
.fl-inp { font-size: 13px; }
.fl-zone .fl-tip { font-size: 12px; }

/* ================= ②区左右分栏（案件信息 | 申请人信息） ================= */
@media (min-width: 861px) {
  /* 旧的整体网格停用，改用 subcol 分栏 */
  .fl-zone:has(.fl-fill-sub) { display: block; }
}
.fl-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 34px; align-items: start;
}
.fl-subcol { min-width: 0; }
.fl-wide { margin-top: 12px; }
.fl-grid2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 34px; align-items: start;
}
.fl-grid2 > .fl-field:has(.fl-chk-grid),
.fl-grid2 > .fl-field.w { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .fl-cols, .fl-grid2 { grid-template-columns: 1fr; gap: 2px 0; }
}

/* 卡片提示改单行，超长悬停看全文（消除底部留白） */
.fl-upcard-tip {
  display: block; -webkit-line-clamp: unset; -webkit-box-orient: unset;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 0;
}

/* ============================================================
   视觉对齐「商标注册申请」页（字段不变）：
   白底平铺 + 朴素小节标题 + 左标签固定列宽双列 + 细边框卡片
   ============================================================ */

/* --- 区块容器：不做色块/描边，像注册页一样平铺 --- */
.fl-zone {
  border: none; background: transparent; border-radius: 0;
  padding: 0; margin: 18px 0 6px; box-shadow: none;
}
.fl-zone-head { position: static; padding-left: 0; margin: 0 0 6px; }
.fl-zone-head::before { content: none; }
.fl-zone-head b { font-size: 15px; color: #33405a; }

/* --- 小节标题：注册页 fl-sec 风格，去色条/虚线 --- */
.fl-fill-sub {
  border-bottom: none; padding-bottom: 0; padding-left: 0;
  margin: 16px 0 8px; position: static;
  font-size: 14px; font-weight: 700; color: #33405a;
}
.fl-fill-sub::before { content: none; }
.fl-fill-sub i { font-size: 12px; font-weight: 400; color: #9aa3b2; }

/* --- 上传卡片：注册页细边框卡片风 --- */
.fl-upcard {
  border: 1px solid #e2e7ef; background: #fff; border-radius: 10px;
  box-shadow: none;
}
.fl-upcard:hover { border-color: #a9bed6; box-shadow: none; }
.fl-upcard.hl { border-color: #17456e; box-shadow: 0 0 0 3px rgba(23, 69, 110, .15); background: #f2f7fc; }

/* 上传框：fl-doc-box 同款灰色虚线框 */
.fl-upcard .fl-upbox { border: 1px dashed #cfd6e0; background: #fafbfd; border-radius: 8px; }
.fl-upcard .fl-upbox:hover { border-color: #17456e; background: #fafbfd; }
.fl-upcard .fl-upbox.has { border: 1px solid #cfe6d9; background: #f4faf6; }

/* --- 字段：注册页 fl-m-grid 同款 —— 左标签固定 118px，输入框占满列宽 --- */
.fl-zone .fl-field { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.fl-zone .fl-field > label,
.fl-zone:has(.fl-fill-sub) .fl-field > label,
.fl-zone .fl-field-top > label {
  flex: 0 0 118px; width: 118px; max-width: 118px;
  text-align: left; line-height: 1.5; padding-top: 9px;
  white-space: normal; font-weight: 400; color: #5a6474;
}
.fl-zone .fl-field > .fl-ctrl { flex: 1; min-width: 0; }
.fl-zone .fl-inp { width: auto; flex: 1; min-width: 0; }
.fl-zone .fl-inp.sel { flex: 1 1 100%; width: auto; }

/* 行内控件：输入框占满，说明文字换到下方；带按钮/问号时同行 */
.fl-zone .fl-ctrl.fl-row { flex-wrap: wrap; row-gap: 6px; }
.fl-zone .fl-ctrl.fl-row .fl-inp { flex: 1 1 100%; width: auto; min-width: 0; }
.fl-zone .fl-ctrl.fl-row:has(.btn) .fl-inp,
.fl-zone .fl-ctrl.fl-row:has(.fl-q) .fl-inp { flex: 1 1 auto; }
.fl-zone .fl-ctrl.fl-row .fl-tip { flex: 1 1 auto; min-width: 0; }
.fl-zone .fl-ctrl.fl-row:has(.fl-inp) .fl-tip { flex: 1 1 100%; }

/* 双列间距对齐注册页 fl-m-grid 的 24px */
.fl-cols { gap: 4px 24px; }
.fl-grid2 { gap: 4px 24px; }

/* 自动识别回填的只读框：浅蓝色块与可编辑白框区分 */
.fl-zone .fl-inp[readonly] { background: #e9eff8; border-color: #d9e3f2; color: #3d4a61; }

/* ============================================================
   上传在左 / 识别字段在右：所见即所得对排布局
   ============================================================ */
.fl-pair {
  display: grid; grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr);
  gap: 10px 28px; align-items: start; margin-top: 6px;
}
.fl-pair-up { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fl-pair-up .fl-field { margin: 0; }
.fl-pair-up .fl-upcard { flex: none; }
.fl-pair-fld { min-width: 0; }
/* 其余资料区：1~2 张卡片自适应铺排，不留大片空位 */
.fl-upgrid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 1200px) {
  .fl-pair { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); }
}
@media (max-width: 900px) {
  .fl-pair { grid-template-columns: 1fr; }
}

/* ============================================================
   文件大图预览（图片缩放 / 旋转 / 拖拽，PDF 内嵌阅读）
   ============================================================ */
.fl-viewer {
  flex-direction: column; align-items: stretch; justify-content: flex-start;
  padding: 0; background: rgba(12, 18, 28, .90); backdrop-filter: blur(2px);
}
.fl-viewer-bar {
  flex: none; height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .07); color: #e8eef7;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.fl-viewer-nm {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #e8eef7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fl-viewer-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.fl-vbtn {
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08);
  color: #e8eef7; border-radius: 7px; height: 30px; min-width: 32px; padding: 0 10px;
  font-size: 12.5px; line-height: 28px; cursor: pointer; text-decoration: none;
  display: inline-block; text-align: center; white-space: nowrap;
}
.fl-vbtn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.fl-vzoom { min-width: 52px; text-align: center; font-size: 12px; color: #b9c8db; }
.fl-viewer-stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: grab;
}
.fl-viewer-stage.dragging { cursor: grabbing; }
.fl-viewer-img {
  max-width: none; max-height: none; transform-origin: center center;
  user-select: none; -webkit-user-drag: none;
  box-shadow: 0 10px 44px rgba(0, 0, 0, .5); background: #fff;
}
.fl-viewer-pdf { width: 100%; height: 100%; border: none; background: #fff; }
.fl-viewer-none { color: #cfd8e5; text-align: center; font-size: 13px; }
.fl-viewer-none .btn { margin-top: 10px; }
@media (max-width: 720px) {
  .fl-viewer-bar { height: auto; padding: 8px 12px; flex-wrap: wrap; }
  .fl-viewer-nm { flex: 1 1 100%; }
}

/* 已上传卡片：整块可点，查看大图 */
.fl-upcard .fl-upbox.has.viewable {
  cursor: zoom-in; flex-direction: row; justify-content: flex-start;
  align-items: center; gap: 8px; padding: 6px 10px 26px;
}
.fl-upcard .fl-upbox.has.viewable .fl-doc-thumb {
  width: 48px; height: 48px; flex: none; object-fit: contain;
  border: 1px solid #e2e8f2; border-radius: 6px; background: #fff;
}
.fl-upcard .fl-upbox.has.viewable .fl-doc-ico { flex: none; font-size: 22px; line-height: 1; }
.fl-upcard .fl-upbox.has.viewable .fl-doc-nm {
  flex: 1; min-width: 0; width: auto; margin: 0; padding: 0; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; overflow: hidden; line-height: 1.4; font-size: 11.5px;
}
.fl-doc-eye {
  position: absolute; top: 4px; right: 6px; z-index: 1;
  font-size: 11px; line-height: 1; padding: 2px 4px; border-radius: 5px;
  background: rgba(23, 69, 110, .08); color: #17456e; pointer-events: none;
}
.fl-upbox.has.viewable:hover { border-color: #17456e; background: #f4f8fd; }
.fl-upbox.has img[data-view-att] { cursor: zoom-in; }
.fl-thumb { cursor: zoom-in; }

/* ============================================================
   OCR 识别结果确认弹窗（人工核对原件后才回填）
   ============================================================ */
.fl-modal-card.wide:has(.fl-ocr-confirm) {
  width: 1200px; max-width: calc(100vw - 40px); max-height: 94vh;
}
.fl-ocr-confirm { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 18px; }
.fl-ocr-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* 证照预览容器：图片由 JS 定位/缩放（滚轮缩放 + 拖动 + 旋转） */
.fl-ocr-imgwrap {
  position: relative; overflow: hidden; width: 100%;
  height: clamp(440px, 62vh, 680px);
  border: 1px solid #e2e8f2; border-radius: 8px; background: #f7f9fc;
}
.fl-ocr-imgwrap.sm { height: 340px; }
.fl-ocr-imgwrap > img {
  position: absolute; transform-origin: center; will-change: transform;
  display: block; max-width: none; cursor: zoom-in;
}
.fl-ocr-rot {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  height: 26px; padding: 0 10px; border-radius: 13px;
  border: 1px solid #cfd6e0; background: rgba(255, 255, 255, .92);
  color: #33405a; font-size: 12px; cursor: pointer; font-family: inherit;
}
.fl-ocr-rot:hover { background: #eaf1f8; border-color: #17456e; }
.fl-ocr-zoomtip {
  position: absolute; bottom: 8px; right: 10px; z-index: 3;
  font-size: 11px; color: #5a6474; background: rgba(255, 255, 255, .9);
  padding: 3px 9px; border-radius: 999px; pointer-events: none;
  border: 1px solid #e2e8f2;
}
.fl-ocr-hint { font-size: 12px; color: #7a879c; line-height: 1.7; background: #f5f8fc; border-radius: 8px; padding: 8px 10px; }
.fl-ocr-hint b { color: #b0453c; }
.fl-ocr-main { min-width: 0; }
.fl-ocr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fl-ocr-grid2 .fl-field { flex-direction: column; align-items: stretch; gap: 6px; margin: 0; }
.fl-ocr-grid2 .fl-field.w { grid-column: 1 / -1; }   /* 名称/地址等长内容独占整行 */
.fl-ocr-grid2 .fl-field > label,
.fl-ocr-grid2 .fl-field-top > label { width: auto; max-width: none; padding: 0; font-size: 14px; color: #5a6474; font-weight: 600; }
/* 核对字段放大：字号/高度对齐执照原文，扫一眼就能对完 */
.fl-ocr-grid2 .fl-inp {
  width: 100%; height: 46px; padding: 0 14px;
  font-size: 17px; font-weight: 600; color: #1f2a3d; letter-spacing: .3px;
}
/* 核对框用多行文本域：内容有几行撑多高，不截断 */
.fl-ocr-grid2 textarea.fl-inp {
  height: auto; min-height: 46px; max-height: 150px; overflow-y: auto;
  line-height: 1.5; padding: 9px 14px; resize: none; word-break: break-all;
}
.fl-ocr-warn {
  font-size: 12.5px; color: #8a5b12; background: #fdf6e6; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 10px; line-height: 1.6;
}
.fl-ocr-raw { margin-top: 10px; font-size: 12px; color: #7a879c; }
.fl-ocr-raw summary { cursor: pointer; }
.fl-ocr-raw pre {
  margin: 6px 0 0; max-height: 150px; overflow: auto; background: #f7f9fc;
  border-radius: 8px; padding: 8px 10px; font-size: 11.5px; line-height: 1.6;
  white-space: pre-wrap; color: #5a6474;
}
.fl-ocr-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
@media (max-width: 860px) {
  .fl-ocr-confirm { grid-template-columns: 1fr; }
  .fl-ocr-grid2 { grid-template-columns: 1fr; }
  .fl-ocr-imgwrap { height: 340px; }
}

/* ============================================================
   页首提示条收纳：一行小胶囊「💡 提示 ?」，悬停展开完整内容
   ============================================================ */
.fl-nq-row { margin: 0 0 10px; line-height: 0; }
.fl-nq {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 10px; border-radius: 13px;
  background: #fdf6e6; border: 1px solid #f0e2c0;
  font-size: 12px; color: #8a6321; cursor: help; line-height: 1;
}
.fl-nq-b { font-weight: 600; }
.fl-nq-q {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  background: #e8d9b5; color: #8a6321; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.fl-nq:hover { background: #faedcc; border-color: #dcc894; }
.fl-nq-pop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  width: 540px; max-width: 78vw; z-index: 40; cursor: default;
  background: #fffdf5; border: 1px solid #f0e2c0; border-radius: 10px;
  padding: 12px 16px; box-shadow: 0 8px 26px rgba(90, 60, 10, .18);
}
.fl-nq-pop::before { content: none; }
.fl-nq:hover .fl-nq-pop, .fl-nq-pop:hover { display: block; }
.fl-nq-pop p { margin: 5px 0; font-size: 12.5px; color: #8a6321; line-height: 1.8; }
.fl-nq-pop b { color: #7a5518; }
.fl-nq-pop p:first-child { margin-top: 0; }
.fl-nq-pop p:last-child { margin-bottom: 0; }

/* 顶栏提醒胶囊（保存草稿旁）+ 上传框拖拽高亮 */
.fl-wiz-head .fl-nq { height: 26px; margin-right: 6px; }
.fl-wiz-head .fl-nq-pop { width: 500px; right: auto; }
.fl-upbox.drag {
  border-color: #17456e !important; background: #e8f1fb !important;
  border-style: dashed; box-shadow: 0 0 0 3px rgba(23, 69, 110, .12) inset;
}

/* ============================================================
   预览改居中弹窗（不再铺满全屏）：.fl-viewer 为遮罩，.fl-viewer-box 为窗口
   ============================================================ */
.fl-viewer { align-items: center; justify-content: center; padding: 28px; }
.fl-viewer-box {
  display: flex; flex-direction: column; overflow: hidden;
  width: min(920px, 94vw); height: min(680px, 88vh);
  background: #10161f; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
.fl-viewer-bar { border-radius: 12px 12px 0 0; }
@media (max-width: 720px) {
  .fl-viewer { padding: 10px; }
  .fl-viewer-box { width: 100%; height: 92vh; }
}

/* ============================================================
   附件卡悬停操作层：预览 / 重新上传 / 删除（截图同款）
   ============================================================ */
.fl-upbox.has { position: relative; overflow: hidden; }
.fl-upmask {
  position: absolute; inset: 0; z-index: 4; display: none;
  flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
  background: rgba(17, 24, 34, .62); border-radius: inherit;
}
.fl-upbox.has:hover .fl-upmask,
.fl-upbox.has:focus-within .fl-upmask { display: flex; }
.fl-upbtn {
  min-width: 56px; padding: 4px 10px; font-size: 12.5px; letter-spacing: 1px;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 4px; cursor: pointer; line-height: 1.4;
}
.fl-upbtn:hover { background: rgba(255, 255, 255, .16); }
.fl-upbtn.warn:hover { background: rgba(202, 52, 26, .9); }
.fl-reup-hold { display: none; }

/* 缩略图窗口内的 OCR 提醒条（顾问一眼可见） */
.fl-ocr-mask {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  background: rgba(23, 69, 110, .9); color: #fff; font-size: 12px;
  padding: 3px 6px; text-align: center;
  animation: fl-ocr-pulse 1.3s ease-in-out infinite alternate;
}
@keyframes fl-ocr-pulse { from { opacity: .82; } to { opacity: 1; } }

/* 证明材料组卡：编号条目（一、二、三…）+ 组内上传按钮 */
.fl-upitem { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.fl-upitem-no {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #eef4fa; color: #17456e; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.fl-upcard .fl-upitem .fl-upbox { flex: 1; width: auto; height: 110px; margin-top: 0; }
.fl-upbox.add { border-style: dashed; }
.fl-upcard .fl-upbox.add { margin-top: 8px; height: 52px; }

/* ============ 填报说明（2026-11-20）：业务卡小按钮 + 弹窗正文 ============ */
.biz-card { position: relative; padding-bottom: 30px; }
.biz-card-foot { position: absolute; right: 10px; bottom: 8px; }
.biz-guide-btn {
  font-size: 12px; color: #17456e; cursor: pointer; user-select: none;
  background: #eef4fa; border: 1px solid #c9dcf0; border-radius: 12px;
  padding: 2px 10px; transition: background .15s, border-color .15s;
}
.biz-guide-btn:hover { background: #dbe9f7; border-color: #17456e; }
.biz-card.off .biz-guide-btn { color: #8a94a6; background: #f2f4f8; border-color: #dfe4ec; }

.fl-guide { font-size: 13px; line-height: 1.75; color: var(--ink); }
.fl-guide .fl-g-intro {
  margin: 0 0 14px; padding: 10px 12px; background: #eef4fa;
  border-left: 3px solid #17456e; border-radius: 4px;
}
.fl-guide h4 { margin: 16px 0 8px; font-size: 13.5px; color: #17456e; }
.fl-guide .fl-g-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fl-guide .fl-g-tbl th, .fl-guide .fl-g-tbl td {
  border: 1px solid #dbe3ee; padding: 6px 9px; text-align: left; vertical-align: top;
}
.fl-guide .fl-g-tbl th { background: #f2f6fb; color: var(--ink); white-space: nowrap; }
.fl-guide .fl-g-ul { margin: 0; padding-left: 20px; }
.fl-guide .fl-g-ul li { margin: 4px 0; }
.fl-guide .fl-g-note {
  margin-top: 14px; padding: 10px 12px; background: #fdf6ec;
  border: 1px solid #ecd9b8; border-radius: 6px; color: #6d5518; font-size: 12.5px;
}
.biz-extra-guides { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============ 更新日志独立板块（时间线）2026-11-20 ============ */
.ul-timeline { margin-top: 16px; }
.ul-tl-group { display: flex; gap: 14px; }
.ul-tl-date {
  flex: none; width: 92px; padding-top: 4px; text-align: right;
  font-weight: 700; font-size: 13px; color: #17456e;
}
.ul-tl-items { flex: 1; position: relative; padding: 0 0 18px 20px; border-left: 2px solid #d8e2ef; }
.ul-tl-group:last-child .ul-tl-items { padding-bottom: 2px; }
.ul-tl-item { position: relative; margin-bottom: 12px; }
.ul-tl-item:last-child { margin-bottom: 0; }
.ul-tl-dot {
  position: absolute; left: -27px; top: 12px; width: 10px; height: 10px;
  border-radius: 50%; background: #17456e; box-shadow: 0 0 0 3px #eef4fa;
}
.ul-tl-card { background: #f7fafd; border: 1px solid #e2e9f3; border-radius: 8px; padding: 10px 12px; }
.ul-tl-head { display: flex; align-items: center; gap: 10px; }
.ul-tl-head b { font-size: 13.5px; color: var(--ink); }
.ul-tl-head .ul-time { margin-left: auto; }
.ul-tl-card p { margin: 6px 0 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; white-space: pre-wrap; }

/* ============ 用户反馈板块 ============ */
.fb-item {
  border: 1px solid #e2e9f3; border-radius: 8px; background: #f7fafd;
  padding: 10px 12px; margin-top: 10px;
}
.fb-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-item-top b { font-size: 12.5px; color: var(--ink-3); }
.fb-meta { font-size: 12px; color: var(--ink-3); }
.fb-content { margin: 8px 0 6px; font-size: 13px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; }
.fb-shot {
  max-width: 200px; max-height: 130px; display: block; cursor: zoom-in;
  border: 1px solid #dbe3ee; border-radius: 6px; margin-bottom: 8px; background: #fff;
}
.fb-review { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px dashed #dbe3ee; padding-top: 8px; }
.fb-review .fl-inp { flex: 1; min-width: 160px; }
.fb-reviewed { font-size: 12px; color: var(--ink-3); }
.st.closed { background: #eef0f4; color: #6b7688; }

/* ============ 更新日志右抽屉（2026-11-20 二轮：铃铛点击直接弹出） ============ */
.ul-panel {
  right: 0 !important; top: 0 !important; height: 100vh; width: 400px;
  max-width: calc(100vw - 40px); border-radius: 0; border-top: none; border-bottom: none; border-right: none;
  box-shadow: -16px 0 40px rgba(16, 31, 51, .20);
  display: flex; flex-direction: column;
  animation: ulDrawerIn .22s ease;
}
@keyframes ulDrawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.ul-panel .ul-list { flex: 1; max-height: none; overflow-y: auto; padding: 8px 10px; }
.ul-panel .ul-head { padding: 14px 14px; }

/* ============ 意见反馈弹窗二轮美化（2026-11-20） ============ */
.fb-form { padding: 2px 0; }
.fb-form-tip {
  margin: 0 0 14px; padding: 10px 12px; background: #eef4fa;
  border-left: 3px solid #17456e; border-radius: 4px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
}
.fb-row { display: flex; align-items: center; gap: 10px; }
.fb-row .fl-inp { flex: 1; }
.fb-file-hint { font-size: 11.5px; color: var(--ink-3); flex: none; }
.fb-form .lg-lb { display: block; margin: 12px 0 6px; }
.fb-form .lg-lb .req { color: #c0392b; font-style: normal; }
.fb-prev { margin-top: 10px; }
.fb-prev:empty { display: none; }
.fb-prev-box {
  position: relative; display: inline-block; border: 1px solid #dbe3ee;
  border-radius: 8px; padding: 6px; background: #f7fafd;
}
.fb-prev-box img { max-width: 100%; max-height: 180px; display: block; border-radius: 5px; }
.fb-prev-x {
  position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
  border-radius: 50%; background: #c0392b; color: #fff; text-align: center;
  line-height: 18px; font-size: 13px; cursor: pointer; user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.fb-tag {
  display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px;
  background: #eef4fa; color: #17456e; border: 1px solid #c9dcf0; white-space: nowrap;
}
.fb-link { font-size: 12px; color: #17456e; text-decoration: none; display: inline-block; margin-bottom: 8px; }
.fb-link:hover { text-decoration: underline; }

/* Word 合同模板列表行 */
.ct-tplrow { display: flex; align-items: center; gap: 12px; padding: 9px 12px;
             border: 1px solid #e8edf3; border-radius: 8px; margin-bottom: 8px; background: #fbfdfe; }
.ct-tplrow > div:first-child { min-width: 220px; }

/* 定金 + 尾款手动输入行 */
.ct-split { display: flex; align-items: center; gap: 14px; margin: 6px 0 2px;
            font-size: 12.5px; color: #5a6572; }
.ct-split label { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.ct-split input { width: 100px; border: 1px solid #dbe2ec; border-radius: 6px;
                  padding: 5px 8px; font: inherit; font-size: 13px; }
.ct-split input:focus { border-color: #1c7a4e; outline: none; }
.ct-split .fl-sub { color: #c0392b; }

/* ============================================================
   手机端适配（html.mob 类驱动）2026-11-23
   真机（≤480px / 移动 UA）由 index.html 头部脚本自动加类；
   桌面端用 topbar「手机版」按钮模拟，同一套规则两处生效。
   ============================================================ */
html.mob .topbar { gap: 8px; padding: 8px 12px; }
html.mob .brand { gap: 8px; min-width: 0; }
html.mob .mark { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
html.mob .brand h1 { font-size: 14px; white-space: nowrap; }
html.mob .brand .sub { display: none; }
html.mob .sk-topnav {
  order: 3; width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
html.mob .sk-topnav::-webkit-scrollbar { display: none; }
html.mob .sk-top-item { padding: 6px 12px; font-size: 13px; }
html.mob .topbar-right { gap: 4px; }
html.mob .stat-pill { display: none; }

/* 弹窗：占满屏宽，内容可滚动（含 wide 变体，此前漏兜底） */
html.mob .modal { padding: 10px; }
html.mob .modal-card,
html.mob .fl-modal-card { width: 100% !important; max-width: 100% !important; max-height: 94vh; }
html.mob .modal-body, html.mob .fl-modal-body { -webkit-overflow-scrolling: touch; }

/* 表单：标签上置、控件整行 */
html.mob .fl-field { flex-direction: column; align-items: stretch; gap: 5px; }
html.mob .fl-field > label { width: auto; text-align: left; line-height: 1.5; }
html.mob .fl-inp.sel { flex: 1 1 100%; }
html.mob .fl-hint { margin-left: 0; }

/* 触控目标 & 间距 */
html.mob .btn { min-height: 38px; }
html.mob .btn.sm { min-height: 34px; }
html.mob .view { padding: 10px 10px 48px; }
html.mob .fl-card { padding: 14px 12px; }
html.mob .fl-step { font-size: 12px; padding: 0 4px 0 14px; }
html.mob .fl-pair { gap: 10px 0; }

/* 大图预览铺满 */
html.mob .fl-viewer { padding: 0; }
html.mob .fl-viewer-box { width: 100% !important; height: 100vh; height: 100dvh; border-radius: 0; }
html.mob .fl-viewer-bar { border-radius: 0; }

/* 触屏遮罩常显（真机 + 桌面模拟手机时同样生效） */
html.mob .fl-upbox.has .fl-upmask { display: flex; background: rgba(17, 24, 34, .28); }
html.mob .fl-upbtn { padding: 6px 12px; font-size: 13px; }
html.mob .fl-ocr-rot { height: 32px; font-size: 13px; }

/* ---------- 2026-11-23 全盘梳理：多列网格降级 / 宽容器兜底 ---------- */
/* 多列网格一律降单列 */
html.mob .biz-grid,
html.mob .fl-ind-grid,
html.mob .fl-chk-grid,
html.mob .fl-ap-list,
html.mob .fl-ocr-grid,
html.mob .ct-3col,
html.mob .ai-exp-grid,
html.mob .fl-cols,
html.mob .fl-grid2,
html.mob .fl-up-grid,
html.mob .fl-ocr-grid2,
html.mob .fl-ocr-confirm,
html.mob .fl-m-grid,
html.mob .acc-grid { grid-template-columns: 1fr !important; }

/* 数据表格：容器内横向滑动（全局已有 overflow-x，这里保证 min-width 不破容器） */
html.mob .table-wrap { -webkit-overflow-scrolling: touch; }
html.mob table { font-size: 12.5px; }

/* 右侧抽屉 / 更新日志面板占满 */
html.mob .fl-drawer,
html.mob .ul-panel { width: 100vw !important; max-width: 100vw !important; }

/* 内联大输入在小屏放开 */
html.mob .ct-tplrow > div:first-child { min-width: 0; }
html.mob .ct-tplrow { flex-wrap: wrap; }
html.mob input[style*="width:220px"] { width: 100% !important; }
html.mob .fl-nq-pop { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }

/* 表格列宽固定百分比在窄屏下允许收缩 */
html.mob th, html.mob td { word-break: break-word; }

/* 省市区三个内联 88px 输入：手机端放开撑满 */
html.mob .fl-inp[style*="width:88px"] { width: auto !important; min-width: 0 !important; flex: 1 1 30% !important; }

/* 列表头（标题+搜索+按钮）手机端换行铺排 */
html.mob .fl-list-head { flex-wrap: wrap; gap: 8px; }
html.mob .fl-list-head .grow { display: none; }
html.mob .fl-list-head h3 { flex: 1 1 100%; }
html.mob .fl-list-head .fl-sub { flex-basis: 100%; white-space: normal; font-size: 11.5px; }
html.mob .fl-list-head .fl-inp { flex: 1 1 150px !important; width: auto !important; min-width: 0 !important; }

/* 数据列表卡片化：td 带 data-l 的表（合同管理等）手机端转卡片，不再横向硬挤 */
html.mob .mcards thead { display: none; }
html.mob .mcards table, html.mob .mcards tbody { display: block; min-width: 0 !important; }
html.mob .mcards tbody tr {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px 8px; margin-bottom: 10px;
}
html.mob .mcards tbody tr:hover { background: #fff; }
html.mob .mcards td { display: flex; align-items: baseline; gap: 8px; border-bottom: none; padding: 3px 0; }
html.mob .mcards td::before { content: attr(data-l); flex: 0 0 64px; font-size: 11.5px; color: var(--ink-3); }
html.mob .mcards td[data-l=""]::before { content: none; }
html.mob .mcards td.num { text-align: left; font-variant-numeric: tabular-nums; }
html.mob .mcards td:last-child {
  flex-wrap: wrap; gap: 6px; margin-top: 7px; padding-top: 8px;
  border-top: 1px dashed var(--line);
}
html.mob .mcards td.empty { display: block; text-align: center; }

/* 二级子菜单手机端折叠：一条「☰ 模块名」行，点开下拉，选完自动收起
   （桌面端 .sk-side-body 为 display:contents，渲染结构统一但布局不变） */
.sk-side-body { display: contents; }
.sk-side-toggle { display: none; }
html.mob .sk-side { display: block; position: static; width: auto; max-height: none; overflow: visible; padding: 6px 10px; }
html.mob .sk-side-name { display: none; }
html.mob .sk-side-body { display: none; }
html.mob .sk-side.open .sk-side-body { display: block; padding: 2px 0 6px; }
html.mob .sk-side a { padding: 11px 12px; font-size: 14px; }
html.mob .sk-side-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; padding: 7px 4px; font-size: 13.5px;
  color: var(--ink-2); font-family: inherit; cursor: pointer; text-align: left;
}
html.mob .sk-side-toggle::after { content: '▾'; margin-left: auto; color: var(--ink-3); }
html.mob .sk-side.open .sk-side-toggle::after { content: '▴'; }

/* ---------- 桌面模拟手机模式（html.sim，配合 html.mob） ---------- */
html.sim { background: #d8dee7; }
html.sim .topbar,
html.sim .sk-shell {
  max-width: 430px; margin-left: auto; margin-right: auto;
  box-shadow: 0 0 0 1px #c3ccd9, 0 8px 40px rgba(30, 41, 59, .25);
}
html.sim .topbar { border-radius: 18px 18px 0 0; }
html.sim .sk-shell { border-radius: 0 0 18px 18px; min-height: calc(100vh - 48px); margin-top: 24px; }
html.sim .fl-modal-card,
html.sim .modal-card,
html.sim .fl-drawer,
html.sim .ul-panel,
html.sim .fl-viewer-box { max-width: 430px !important; }
html.sim .fl-viewer { padding: 24px 0; }
