/* CHS-DRG / DIP 3.0 分组平台 — 设计规范：医保数智平台（企业控制台） */
:root {
  --bg: #F4F7FC; --panel: #FFFFFF; --panel-2: #FAFBFD; --field: #F5F7FA;
  --line: #E3E9F2; --line-2: #EDF1F7;
  --ink: #101828; --ink-2: #344054; --ink-3: #475467; --ink-4: #667085; --ink-5: #98A2B3; --ink-6: #C0C8D4;
  --blue: #1A5FD6; --blue-deep: #0B3B8C; --blue-soft: #EAF1FE; --blue-line: #B9D0F7; --blue-2: #4A90E8;
  --green: #027A48; --green-soft: #ECFDF3; --orange: #B54708; --orange-soft: #FFF6ED; --red: #B42318; --red-soft: #FEF3F2; --violet: #6941C6; --violet-soft: #F4F0FF; --teal: #0E7490; --teal-soft: #ECFEFF;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.03); --shadow-pop: 0 12px 28px rgba(16, 24, 40, 0.16); --shadow-btn: 0 2px 8px rgba(26, 95, 214, 0.26); --shadow-dock: 0 10px 26px rgba(11, 59, 140, 0.13), 0 1px 2px rgba(16,24,40,.06);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --top-h: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 13px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { transition: transform 140ms var(--ease-out); cursor: pointer; -webkit-tap-highlight-color: transparent; }
a, button, .rowi, .tile { -webkit-tap-highlight-color: transparent; }
button:active:not(:disabled) { transform: scale(0.97); }
code { font-family: var(--mono); font-size: 0.95em; }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--ink-4); background: #fff; }
a { color: var(--blue); text-decoration: none; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-line); outline-offset: 1px; }
.in input:focus-visible, .in select:focus-visible, .search input:focus-visible, textarea:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
.hint { font-size: 12px; color: var(--ink-5); font-weight: 400; }
.hint.mt { margin: 10px 0 0; } .hint.grow { margin-right: auto; } .sub-hint { margin-left: 8px; }
.ptabs.mb { margin-bottom: 14px; } .progress.pad { padding: 10px 18px 0; } .ai-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link { border: 0; background: none; color: var(--blue); padding: 0; font-size: 13px; }
.cn { font-family: inherit; font-weight: 600; color: var(--blue); }   /* 编码：与名称同字体同字号，仅以加粗与颜色区分 */
.cn + .nm, .nm { color: var(--ink-2); }                                   /* 名称 */
.pair { display: inline; } .pair .cn::after { content: " · "; color: var(--ink-6); font-weight: 400; }

/* ================= 顶栏 ================= */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.top-global { max-width: 640px; width: 100%; height: 38px; }
.top-global kbd { margin-left: 4px; }
.gsug { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 65; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; max-height: min(60vh, 520px); overflow: auto; }
.gsug-g { font-size: 11px; color: var(--ink-5); padding: 8px 10px 3px; letter-spacing: 0.04em; }
.gsug-item { padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsug-item.active, .gsug-item:hover { background: var(--blue-soft); }
.gsug-empty { padding: 14px 10px; font-size: 13px; color: var(--ink-5); }
.gear-wrap { position: relative; margin-left: 10px; }
.gear { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-4); display: grid; place-items: center; }
.gear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.gear-wrap.open .gear, .gear:hover { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }
.gear-wrap.open .gear svg { transform: rotate(60deg); }
.pop { position: fixed; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: min(86dvh, 720px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgba(11,59,140,0.28); z-index: 120; opacity: 0; transform: translate(-50%, -50%) scale(0.98); pointer-events: none; transition: opacity 0.18s, transform 0.2s var(--ease-out); }
.pop.open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.modal-scrim { position: fixed; inset: 0; background: rgba(16,24,40,0.45); backdrop-filter: blur(2px); z-index: 110; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-scrim.show { opacity: 1; pointer-events: auto; }
body.no-scroll { overflow: hidden; }
.pop-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.pop-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pop-f { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line-2); background: var(--panel-2); border-radius: 0 0 16px 16px; }
.pop-x { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-5); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.pop-x:hover { background: var(--field); color: var(--ink-2); }
.pop-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); } .pop-h b { font-size: 16px; font-weight: 600; }
.pop-b { padding: 6px 20px 16px; overflow: auto; }
.pop-b .setrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 14px; padding: 8px 0; border-bottom: 0; }
.pop-b .setrow > label { text-align: right; font-size: 13px; color: var(--ink-2); white-space: nowrap; line-height: 30px; }
.pop-b .sv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pop-b .sv > .in { flex: 1 1 100%; }
.pop-b .sv small { color: var(--ink-5); font-size: 11px; line-height: 1.5; flex: 1 1 100%; }
.pop-b .sv small:not(:first-child) { flex: 1 1 auto; }
.pop-b .sv > span { color: var(--ink-2); font-size: 13px; line-height: 30px; }
.pop-b .sec-h { margin: 12px 0 4px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 8px; }
.pop-b .sec-h small { font-weight: 400; color: var(--ink-5); }
.grp-h { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }

/* ================= 主体 ================= */
.main { max-width: 1320px; margin: 0 auto; padding: 22px 24px 140px; }
.page { display: none; animation: rise 0.25s var(--ease-out); }
.page.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; min-height: 52px; }
.page-head h1 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.page-head > div:first-child { flex: 1 1 520px; min-width: 0; }
.page-head p { margin: 0; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ================= 组件 ================= */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; min-height: 50px; border-bottom: 1px solid var(--line-2); }
.card-head.wrap { flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.head-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 16px 18px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); background: var(--panel-2); border-radius: 0 0 14px 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-btn); }
.btn.primary:hover { background: #164FB5; }
.btn.lg { height: 42px; padding: 0 24px; font-size: 14px; } .btn.sm { height: 30px; padding: 0 12px; font-size: 13px; } .btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-btn input { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--ink-3); }
.tag.blue { background: var(--blue-soft); color: var(--blue); } .tag.green { background: var(--green-soft); color: var(--green); } .tag.orange { background: var(--orange-soft); color: var(--orange); } .tag.red { background: var(--red-soft); color: var(--red); } .tag.violet { background: var(--violet-soft); color: var(--violet); } .tag.teal { background: var(--teal-soft); color: var(--teal); }
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dot.ok { color: var(--green); } .dot.warn { color: var(--orange); } .dot.bad { color: var(--red); } .dot.info { color: var(--blue); } .dot.neutral { color: var(--ink-5); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; min-width: 300px; max-height: 60vh; overflow: auto; }
.menu-group { font-size: 11px; color: var(--ink-5); padding: 8px 12px 3px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.menu button:hover { background: var(--blue-soft); color: var(--blue); }
.menu button small { display: block; color: var(--ink-5); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px); background: #101828; color: #fff; border-radius: 9px; padding: 9px 16px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 200; box-shadow: var(--shadow-pop); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }
.ac { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,0.10); padding: 4px; max-height: 280px; overflow: auto; }
.ac-item { display: block; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item.active, .ac-item:hover { background: var(--blue-soft); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs.pad { padding: 0 18px; margin: 0; }
.tab { border: 0; background: transparent; padding: 10px 2px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tab .cnt { font-size: 11px; background: var(--line-2); color: var(--ink-4); padding: 1px 7px; border-radius: 999px; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.tab.active .cnt { background: var(--blue-soft); color: var(--blue); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.fld .seg { display: flex; width: 100%; min-height: 36px; } .fld .seg button { flex: 1; }
.blk { border-top: 1px solid var(--line-2); }
.blk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px; cursor: pointer; list-style: none; user-select: none; }
.blk-h::-webkit-details-marker { display: none; }
.blk-h .hint::after { content: "展开"; margin-left: 8px; color: var(--blue); }
.blk[open] > .blk-h .hint::after { content: "收起"; }
.blk-h:hover { background: var(--panel-2); }
.blk-h h4 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.blk-h h4::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--blue); }
.blk-b { padding: 0 18px 18px; }
.blk-b .sec-h:first-child { margin-top: 0; }
.card-head.sub { border-top: 1px solid var(--line-2); margin-top: 16px; }
.ptabs-wrap { padding: 14px 18px 0; }
.ptabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: linear-gradient(115deg, #EEF3FC 0%, #F5F7FA 45%, #F3F1FB 100%); border: 1px solid var(--line-2); }
.ptabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-4); font-size: 14px; font-weight: 500; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.ptabs button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ptabs button:hover { color: var(--ink-2); }
.ptabs button.active { background: linear-gradient(160deg, #FFFFFF 0%, #F5F9FF 100%); color: var(--blue); font-weight: 600; box-shadow: 0 1px 3px rgba(26,95,214,0.12), 0 0 0 1px rgba(26,95,214,0.05); }
.ptabs button .cnt { font-size: 11px; background: var(--line-2); color: var(--ink-4); padding: 1px 7px; border-radius: 999px; }
.ptabs button.active .cnt { background: var(--blue-soft); color: var(--blue); }
.ptabs.sm button { min-height: 32px; font-size: 13px; padding: 0 12px; flex: none; }
.ptabs button .sub { color: var(--ink-5); font-weight: 400; }
.ptabs button.active .sub { color: var(--blue); opacity: 0.7; }
.seg button { border: 0; background: #fff; padding: 6px 13px; font-size: 13px; color: var(--ink-3); border-right: 1px solid var(--line); white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button.active { background: linear-gradient(160deg, #EAF1FE, #F1F6FF); color: var(--blue); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 12px; flex: 1; min-width: 200px; max-width: 460px; }
.search.sm { height: 32px; max-width: 260px; min-width: 160px; }
.search.lg { height: 44px; max-width: none; margin-bottom: 12px; box-shadow: var(--shadow-card); border-radius: 12px; }
.search.lg input { font-size: 14px; }
.search:focus-within { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(26,95,214,0.05); }
.search svg { width: 15px; height: 15px; stroke: var(--ink-5); fill: none; stroke-width: 1.8; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl .pair { white-space: nowrap; }
.tbl-wrap .tbl { min-width: 640px; }
.tbl-wrap.narrow .tbl, #engBody .tbl-wrap .tbl { min-width: 0; }
#engBody .tbl td { white-space: normal; } #engBody .tbl .pair { white-space: normal; }
#engBody .expr, #engBody .steps li, #engBody .sib .r, #engBody .advice .a { min-width: 0; overflow-wrap: anywhere; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-4); font-size: 12px; background: var(--panel-2); padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(even) td { background: #F8FAFD; }
.tbl.click tbody tr:hover td, #batchTable tbody tr:hover td { background: #EEF4FF; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ctr { text-align: center; font-variant-numeric: tabular-nums; }
.tbl.click tbody tr { cursor: pointer; }
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.tbl-wrap.flat { border: 0; border-radius: 0 0 14px 14px; }
.tbl .v { font-weight: 600; white-space: nowrap; } .tbl .v.MCC { color: var(--red); } .tbl .v.CC { color: var(--orange); } .tbl .v.排除, .tbl .v.无 { color: var(--ink-5); font-weight: 400; }
.tbl .why { color: var(--ink-4); font-size: 12px; }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-4); }
.empty.sm { padding: 40px 20px; }
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; }
.empty p { margin: 0; }
.empty .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.split { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split .list { padding: 6px; max-height: calc(100dvh - 330px); overflow: auto; }
#codeList { height: calc(100dvh - var(--top-h) - 230px); max-height: none; min-height: 360px; background: #F7F9FC; }
#codeList .rowi { background: #fff; }
#codeDetail { background: #fff; }
#codeDetail { min-height: calc(100dvh - var(--top-h) - 174px); }
.split .detail { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100dvh - var(--top-h) - 32px); overflow: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
#dataTilesDrg, #dataTilesDip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { --tint: #EAF1FE; --tint-ink: #1A5FD6; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-card); text-align: left; background: linear-gradient(135deg, var(--tint) 0%, #FFFFFF 62%); }
.tile.click { cursor: pointer; transition: border-color 0.2s, transform 0.2s; } .tile.click:hover { border-color: var(--tint-ink); transform: translateY(-1px); }
.tile .k { grid-column: 1; font-size: 12px; color: var(--ink-4); }
.tile .ico { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--tint-ink); border: 1px solid rgba(255,255,255,0.7); }
.tile .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile .v { grid-column: 1; font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.tile .v.long { font-size: 22px; }
.tile .s { grid-column: 1 / -1; font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.tile .s b { color: var(--tint-ink); font-weight: 600; }
.tile.blue { --tint: #EAF1FE; --tint-ink: #1A5FD6; }
.tile.green { --tint: #E6F7EE; --tint-ink: #027A48; }
.tile.orange { --tint: #FFF1E3; --tint-ink: #B54708; }
.tile.red { --tint: #FEECEA; --tint-ink: #B42318; }
.tile.violet { --tint: #F1ECFF; --tint-ink: #6941C6; }
.tile.teal { --tint: #E3F7FA; --tint-ink: #0E7490; }
.logic { padding: 8px 22px 18px; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 18px; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.8; counter-increment: step; }
.flow li:last-child { border-bottom: 0; }
.flow li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 11px; display: grid; place-items: center; }
.flow li::after { content: ""; position: absolute; left: 12.5px; top: 44px; bottom: -4px; width: 1px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow li b { color: var(--ink); font-weight: 600; }
.flow li span { color: var(--ink-3); }
.flow code { background: var(--field); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; font-size: 12px; color: var(--blue-deep); }
.prose h4 { font-size: 14px; margin: 12px 0 4px; } .prose h4:first-child { margin-top: 0; }
.prose p { margin: 0 0 8px; color: var(--ink-3); font-size: 14px; line-height: 1.8; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.setrow:last-child { border-bottom: 0; }
.setrow b { display: block; font-size: 13px; } .setrow small { color: var(--ink-5); font-size: 12px; }
.setrow .in { min-width: 240px; }
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; min-height: 36px; align-items: center; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-4); font-size: 13px; cursor: pointer; }
.stepper li b { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); color: var(--ink-4); display: grid; place-items: center; font-size: 11px; }
.stepper li.on { color: var(--ink-2); } .stepper li.on b { background: var(--blue-soft); color: var(--blue); }
.stepper li.cur { border-color: var(--blue); color: var(--blue); font-weight: 600; } .stepper li.cur b { background: var(--blue); color: #fff; }
.stepper li .val { font-family: var(--mono); font-weight: 600; color: var(--blue); }
.stepper.static li { cursor: default; }
.stepper li::after { content: "›"; color: var(--ink-6); margin-left: 4px; } .stepper li:last-child::after { content: none; }
/* 时间线步骤（规则库） */
.timeline { list-style: none; margin: 0 0 16px; padding: 18px 8px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); }
.timeline li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 12px; cursor: pointer; min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--blue); }
.timeline li i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; background: #fff; border: 2px solid var(--line); color: var(--ink-5); transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.timeline li.done i { background: var(--blue); border-color: var(--blue); color: #fff; }
.timeline li.cur i { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline li b { font-size: 12px; color: var(--ink-5); font-weight: 500; letter-spacing: 0.02em; }
.timeline li.cur b { color: var(--blue); font-weight: 600; }
.timeline li span { font-size: 13px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline li.done span, .timeline li.cur span { color: var(--ink); }
.timeline li:hover i { border-color: var(--blue-line); }
.step-sec { margin-bottom: 24px; }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-title b { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 11px; }
.step-title h2 { margin: 0; font-size: 16px; font-weight: 600; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcard { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.mcard:hover { border-color: var(--blue-line); background: #F9FBFF; }
.mcard .cn { font-size: 16px; }
.mcard .nm { font-size: 13px; color: var(--ink); font-weight: 500; }
.mcard .meta { font-size: 12px; color: var(--ink-5); display: flex; gap: 10px; }
.rows { display: grid; gap: 8px; }
.rowi { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; }
.rowi:hover { border-color: var(--blue-line); background: #F9FBFF; }
.rowi.active { border-color: var(--blue); background: var(--blue-soft); }
.rowi .nm { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowi .sub { font-size: 12px; color: var(--ink-5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowi .side { font-size: 12px; color: var(--ink-5); text-align: right; white-space: nowrap; }
.expr { background: var(--field); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 8px 0 12px; }
.explain { color: var(--ink-3); font-size: 14px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: minmax(56px, max-content) minmax(0, 1fr); gap: 8px 14px; font-size: 13px; margin: 8px 0 12px; }
.kv dt { color: var(--ink-5); } .kv dd { margin: 0; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.members { columns: 2; column-gap: 18px; font-size: 12px; }
.members div { break-inside: avoid; padding: 2px 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chips-row button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 9px; font-size: 12px; }
.chips-row button:hover { border-color: var(--blue); color: var(--blue); }
.chips-row button.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.sec-h { font-size: 12px; color: var(--ink-5); font-weight: 600; letter-spacing: 0.02em; margin: 16px 0 8px; }
.sec-h:first-child { margin-top: 0; }
details.fold { border-top: 1px solid var(--line-2); padding: 8px 0; }
details.fold summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 13px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary .tog { color: var(--blue); flex: none; } details.fold summary .tog::after { content: "展开"; } details.fold[open] summary .tog::after { content: "收起"; }
details.fold .members { margin-top: 8px; }

/* ================= 工作台 ================= */
.work-layout { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.fsec { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; }
.card-body > .fsec:first-child { margin-top: 0; }
.fsec i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.fsec i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fsec span { font-size: 13px; font-weight: 700; color: var(--ink); } .fsec small { color: var(--ink-5); font-size: 12px; }
.fsec.dx i { background: var(--blue-soft); color: var(--blue); } .fsec.op i { background: var(--teal-soft); color: var(--teal); } .fsec.pt i { background: var(--green-soft); color: var(--green); } .fsec.nb i { background: var(--orange-soft); color: var(--orange); }
.fcol { display: grid; grid-template-columns: 1fr; }
.fsec + .fld { margin-top: 0; }
.fld { display: grid; gap: 6px; margin-bottom: 12px; }
.fld label { font-size: 12px; color: var(--ink-3); }
.fld .req::after { content: " *"; color: var(--red); }
.fgrid { display: grid; grid-template-columns: 1fr; }
.in { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; background: #fff; }
.in.ro { background: var(--panel-2); }
.in:focus-within { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(26,95,214,0.05); }
.in input, .in select { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0; font-size: 13px; height: 28px; line-height: 28px; }
.in input::placeholder { color: var(--ink-5); }
.code { text-transform: uppercase; } .code::placeholder { text-transform: none; }
.in .name { font-size: 13px; color: var(--ink-2); flex: 1 1 auto; min-width: 0; height: 28px; line-height: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in .name:not(:empty)::before { content: "·"; color: var(--ink-6); margin-right: 4px; }
.in .name:empty { display: none; }
.in input.code:not(.chip-input) { min-width: 0; }
.in input.code { font-size: 13px; font-weight: 600; color: var(--blue); }
.in input.code::placeholder { font-weight: 400; color: var(--ink-5); }
.in .name.miss { color: var(--orange); }
.in select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2' stroke-linecap='round'><path d='m7 10 5 5 5-5'/></svg>") no-repeat right center / 14px; padding-right: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 8px; border-radius: 6px; background: var(--blue-soft); font-size: 13px; line-height: 1; max-width: 100%; }
.chip .pair { display: inline-flex; align-items: center; min-width: 0; }
.chip .cn { font-size: 13px; } .chip .nm { font-size: 13px; color: var(--ink-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { border: 0; background: transparent; color: var(--ink-5); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; padding: 0; font-size: 14px; line-height: 1; }
.chip button:hover { background: rgba(26,95,214,0.12); color: var(--blue); }
.chip-input { flex: 1 1 120px !important; }
.fsub { border-top: 1px solid var(--line-2); margin-top: 4px; }
.fsub[open] .fcol { padding-bottom: 2px; }
.fsub summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 10px; }
.fsub summary .fsec { margin: 0; }
.fsub summary .tog { color: var(--blue); } .fsub summary .tog::after { content: "展开"; } .fsub[open] summary .tog::after { content: "收起"; }
.fsub summary small { color: var(--ink-5); font-weight: 400; }
.fsub summary::-webkit-details-marker { display: none; }
.history-list { display: grid; gap: 8px; padding: 12px 18px 18px; }
.history-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; background: #fff; text-align: left; width: 100%; font-size: 13px; }
.history-item .nm, .history-item .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item:hover { border-color: var(--blue-line); background: #F5F9FF; }
.history-item .cn { white-space: nowrap; }
.history-item time { color: var(--ink-5); font-size: 12px; white-space: nowrap; }
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.ticket { --tint: #EAF1FE; --tint-ink: #1A5FD6; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; background: linear-gradient(135deg, var(--tint) 0%, #FFFFFF 58%); }
.ticket.ok { --tint: #E6F4FF; --tint-ink: #1A5FD6; } .ticket.warn { --tint: #FFF1E3; --tint-ink: #B54708; } .ticket.bad { --tint: #FEECEA; --tint-ink: #B42318; }
.ticket .t-head { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 16px; border-bottom: 1px solid rgba(16,24,40,0.06); }
.ticket .t-title b { font-size: 14px; } .ticket .t-title small { color: var(--ink-5); margin-left: 6px; font-weight: 400; }
.ticket .t-body { padding: 14px 16px 12px; }
.ticket .t-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ticket .t-code { font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--tint-ink); letter-spacing: -0.01em; }
.ticket .t-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.ticket .trows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-bottom: 12px; }
.ticket .trows > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed rgba(16,24,40,0.08); min-width: 0; }
.ticket .tl { color: var(--ink-5); } .ticket .tv { color: var(--ink-2); overflow-wrap: anywhere; }
.ticket .facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 6px; background: rgba(255,255,255,0.7); border: 1px solid rgba(16,24,40,0.08); font-size: 12px; color: var(--ink-2); font-weight: 500; }
.fact i { font-style: normal; font-size: 11px; color: var(--ink-5); background: var(--field); border-radius: 4px; padding: 1px 6px; }
.fact.red { color: var(--red); } .fact.orange { color: var(--orange); } .fact.green { color: var(--green); } .fact.violet { color: var(--violet); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tags:last-child { margin-bottom: 0; }
.warnbox { background: var(--orange-soft); color: var(--orange); border: 1px solid #FEDF89; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.failbox { background: var(--red-soft); color: var(--red); border: 1px solid #FECDCA; border-radius: 9px; padding: 10px 12px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.infobox { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--blue-line); border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.steps { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-3); }
.steps li { padding: 8px 0 8px 18px; position: relative; border-top: 1px solid var(--line-2); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-6); }
.steps li.hit::before { background: var(--green); }
.steps code { color: var(--ink); }
.sib { display: grid; gap: 8px; }
.sib .r { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; }
.sib .r.cur { border-color: var(--blue); background: var(--blue-soft); }
.sib .r .rule { color: var(--ink-5); font-size: 12px; }
.advice { display: grid; gap: 8px; }
.advice .a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.advice .a i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.advice .a.warn i { background: var(--orange-soft); color: var(--orange); } .advice .a.info i { background: var(--blue-soft); color: var(--blue); } .advice .a.risk i { background: var(--red-soft); color: var(--red); } .advice .a.ok i { background: var(--green-soft); color: var(--green); }
.advice .a b { display: block; font-size: 13px; margin-bottom: 2px; } .advice .a p { margin: 0; color: var(--ink-3); font-size: 13px; }
.ai-box { border: 1px dashed var(--blue-line); border-radius: 10px; padding: 12px 14px; background: #F9FBFF; }
.ai-out { white-space: pre-wrap; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* ================= 批量 ================= */
textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 10px 12px; font-family: var(--mono); font-size: 13px; resize: vertical; outline: none; }
textarea:focus { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(26,95,214,0.05); }
.progress { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.progress .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4A90E8, #1A5FD6); transition: width 0.15s; }
.batch-card { display: flex; flex-direction: column; min-height: calc(100dvh - var(--top-h) - 150px); }
.batch-wrap { flex: 1; min-height: 320px; border-radius: 0; position: relative; }
.batch-wrap.drag { outline: 2px dashed var(--blue-line); outline-offset: -6px; }
.batch-wrap .empty { position: absolute; inset: 0; display: grid; place-content: center; }
#batchTable { min-width: 1320px; } #batchTable th { position: sticky; top: 0; z-index: 1; }
#batchTable td:nth-child(3), #batchTable td:nth-child(5) { white-space: nowrap; }
#batchTable td:nth-child(13) { min-width: 240px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--line-2); }
.pager:empty { display: none; }
.pg-btns { display: flex; gap: 4px; align-items: center; }
.pg-btns button { min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 13px; color: var(--ink-3); padding: 0 8px; }
.pg-btns button.active { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); font-weight: 600; }
.pg-btns button:disabled { opacity: 0.4; cursor: default; } .pg-btns span { color: var(--ink-5); padding: 0 4px; }
.pager select { border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; background: #fff; font-size: 13px; }
#batchTable td.code { white-space: nowrap; } #batchTable td.wrap { min-width: 220px; }
#batchTable tbody tr { cursor: pointer; }

/* ================= 隐藏式底部 Dock（iOS 26 液态玻璃） ================= */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 0); z-index: 70; display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 30px; isolation: isolate;
  background: linear-gradient(115deg, rgba(214,228,255,0.50) 0%, rgba(255,255,255,0.34) 38%, rgba(236,226,255,0.40) 72%, rgba(214,242,246,0.46) 100%);
  -webkit-backdrop-filter: blur(36px) saturate(200%); backdrop-filter: blur(36px) saturate(200%);
  box-shadow: 0 22px 46px rgba(11,59,140,0.18), 0 2px 6px rgba(16,24,40,0.06), inset 0 1px 1px rgba(255,255,255,0.85), inset 0 -10px 18px rgba(255,255,255,0.22), inset 0 0 0 0.5px rgba(255,255,255,0.35);
  transition: transform 0.45s var(--ease-drawer), opacity 0.3s; }
/* 玻璃边缘：渐变描边（用遮罩只保留 1px 边） */
.dock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.35) 30%, rgba(255,255,255,0.08) 55%, rgba(255,255,255,0.55) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
/* 顶部高光与折射光斑 */
.dock::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(140% 90% at 18% -30%, rgba(255,255,255,0.75), rgba(255,255,255,0) 55%), radial-gradient(60% 120% at 95% 120%, rgba(163,196,255,0.28), rgba(255,255,255,0) 60%); }
.dock.hide { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 78px; padding: 8px 10px 7px; border: 0; border-radius: 23px; background: transparent; color: var(--ink-3); font-size: 12px; transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out); }
.dock-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-out); filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6)); }
.dock-item:hover { background: rgba(255,255,255,0.32); color: var(--ink); } .dock-item:hover svg { transform: translateY(-2px) scale(1.08); }
.dock-item { z-index: 1; }
.dock-item.active { color: var(--blue); font-weight: 600; }
.dock-lens { position: absolute; left: 0; top: 7px; width: 0; height: 0; border-radius: 23px; pointer-events: none; z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.92) 0%, rgba(236,243,255,0.75) 60%, rgba(226,236,255,0.65) 100%);
  box-shadow: 0 6px 16px rgba(11,59,140,0.14), inset 0 1px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(255,255,255,0.4), inset 0 0 0 0.5px rgba(26,95,214,0.14);
  transition: transform 0.55s cubic-bezier(0.22, 1.2, 0.36, 1), width 0.45s var(--ease-out), height 0.2s; will-change: transform; }
.dock-lens.moving { animation: lens-squash 0.42s var(--ease-out); }
@keyframes lens-squash { 0% { scale: 1 1; } 35% { scale: 1.12 0.9; } 70% { scale: 0.96 1.04; } 100% { scale: 1 1; } }
.dock-item svg.bounce { animation: icon-pop 0.5s cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes icon-pop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-5px) scale(1.18); } 60% { transform: translateY(1px) scale(0.96); } 100% { transform: translateY(0) scale(1); } }
.dock-item span { transition: transform 0.3s var(--ease-out); }
.dock-item.active span { transform: translateY(-1px); }
.dock-item kbd { position: absolute; top: 4px; right: 6px; opacity: 0; transition: opacity 0.2s; }
.dock-item:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--blue-line); border-radius: 23px; }
.dock-item:active { transform: scale(0.96); }
.dock:hover .dock-item kbd { opacity: 1; }
.dock-handle { position: fixed; left: 50%; bottom: 6px; transform: translate(-50%, 24px); z-index: 69; width: 132px; height: 22px; border: 0; background: transparent; opacity: 0; transition: transform 0.3s var(--ease-drawer), opacity 0.3s; display: grid; place-items: center; }
.dock-handle i { display: block; width: 88px; height: 5px; border-radius: 3px; background: rgba(16,24,40,0.28); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.dock-handle.show { transform: translate(-50%, 0); opacity: 1; }
.dock-handle:hover i { background: rgba(16,24,40,0.45); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .dock { background: rgba(255,255,255,0.92); } }

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
  .work-layout, .split, .split.even { grid-template-columns: 1fr; }
  .split .detail { position: static; max-height: none; }
  .split .list { max-height: 46vh; }
  .overview { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  :root { --top-h: 52px; }
  .topbar { padding: 0 14px; }
  .top-global kbd { display: none; }
  .pop-b .setrow { grid-template-columns: 1fr; gap: 4px; } .pop-b .setrow > label { text-align: left; }
  .main { padding: 14px 14px 120px; }
  .page-head .acts { width: 100%; } .page-head .acts .btn { flex: 1 1 calc(50% - 5px); } .page-head .acts .search.sm { flex: 1 1 100%; max-width: none; } .page-head .acts .ptabs.sm { width: 100%; } .page-head .acts .ptabs.sm button { flex: 1; }
  .page-head p { white-space: normal; }
  .card-head, .card-body, .card-foot { padding-left: 14px; padding-right: 14px; }
  .ticket .trows { grid-template-columns: 1fr; } .ticket .t-code { font-size: 24px; }
  .members { columns: 1; }
  .menu { left: 0; right: auto; min-width: 260px; }
  .tiles, #dataTilesDrg, #dataTilesDip { grid-template-columns: 1fr; } .tile .v { font-size: 22px; }
  .flow li { grid-template-columns: 1fr; padding-left: 36px; } .logic { padding: 6px 14px 14px; }
  .dock { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 20px); justify-content: space-between; padding: 6px; border-radius: 28px; } .dock-lens { top: 6px; }
  .dock-item { min-width: 0; flex: 1; padding: 7px 4px 6px; font-size: 11px; } .dock-item kbd { display: none; }
  .rowi { grid-template-columns: 70px minmax(0, 1fr); } .rowi .side { display: none; }
  .history-item { grid-template-columns: 70px minmax(0, 1fr); } .history-item .hint, .history-item time { display: none; }
  .blk-h { padding: 12px 14px; } .blk-b { padding: 0 14px 14px; }
  .ptabs-wrap { padding: 12px 14px 0; } .ptabs button { font-size: 13px; min-height: 40px; gap: 6px; padding: 0 6px; white-space: nowrap; } .ptabs button svg, .ptabs button .sub { display: none; } .ptabs button .cnt { font-size: 10px; padding: 0 5px; }
  .card-head { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; } .card-head h3 { flex-wrap: wrap; }
  .card-head .head-acts { width: 100%; } .card-head .head-acts .seg { display: flex; width: 100%; } .card-head .head-acts .seg button { flex: 1; } .card-head .head-acts .search.sm { flex: 1 1 100%; max-width: none; min-width: 0; }
  .stepper { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; } .stepper li { flex: none; }
  .timeline { padding: 14px 4px 12px; } .timeline li { padding: 0 4px; gap: 4px; } .timeline li b { font-size: 11px; } .timeline li span { font-size: 12px; }
  .rowi { grid-template-columns: auto minmax(0, 1fr); } .rowi .cn { min-width: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dt { margin-top: 6px; } .kv dt:first-child { margin-top: 0; }
  .page-head { margin-bottom: 12px; }
  .grid-cards { grid-template-columns: 1fr; }
  #codeList { height: auto; min-height: 0; max-height: 40vh; } #codeDetail { height: auto; min-height: 0; max-height: none; position: static; }
  .batch-card { min-height: 0; }
  .toast { bottom: 84px; }
}
