* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 13px/1.45 "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: #2b2b2b; background: #eceae4;
  display: grid; grid-template-rows: 50px minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
  --c: #e8730c; --c2: #2f6fb0; --line: #dcd8ce;
}
button { font: inherit; cursor: pointer; }
.btn {
  border: 1px solid var(--line); background: #fff; color: #333; border-radius: 8px;
  padding: 6px 12px; white-space: nowrap; transition: background .15s;
}
.btn:hover { background: #fbf4ea; border-color: #e0c9a8; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.icon { padding: 4px 10px; font-size: 16px; }
.btn.sm { padding: 3px 9px; font-size: 12px; border-radius: 6px; }
.btn.primary { background: var(--c); border-color: var(--c); color: #fff; }
.btn.primary:hover { background: #d4650a; }
.btn.danger { color: #c62828; }
.btn.danger:hover { background: #fdecea; border-color: #f2b8b5; }

#top {
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: #fff; border-bottom: 1px solid var(--line); min-width: 0;
}
.brand { font-size: 16px; white-space: nowrap; }
.brand b { color: var(--c); }
.proj { display: flex; gap: 6px; min-width: 0; }
#projSel { max-width: 260px; min-width: 120px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
.grp { display: flex; gap: 6px; }
.grp.right { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 6px 14px; color: #555; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--c); color: #fff; }
.seg.sm button { padding: 3px 9px; font-size: 12px; }

#main { display: flex; min-height: 0; min-width: 0; }
#tools {
  width: 78px; flex: none; background: #fff; border-right: 1px solid var(--line);
  overflow-y: auto; padding: 6px 5px; display: flex; flex-direction: column; gap: 3px;
}
#tools button {
  border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 5px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; color: #444; font-size: 11.5px;
}
#tools button i { font-style: normal; font-size: 19px; line-height: 1.2; }
#tools button:hover { background: #f6f1e8; }
#tools button.on { background: #fff1e0; border-color: #f3c58f; color: #b4560a; font-weight: bold; }

#views { flex: 1; display: flex; min-width: 0; gap: 4px; padding: 4px; }
.pane { position: relative; flex: 1; min-width: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
body[data-view="plan"] #view3dWrap { display: none; }
body[data-view="3d"] #planWrap { display: none; }
#plan { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
#view3dWrap canvas { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
.paneTitle {
  position: absolute; left: 10px; top: 8px; background: rgba(255,255,255,.88); padding: 2px 9px;
  border-radius: 6px; font-weight: bold; color: #555; pointer-events: none; font-size: 12px; z-index: 2;
}
.paneTitle .unit { font-weight: normal; color: #999; margin-left: 6px; }
.paneBtns { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
#statusBar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 10px 3px 120px; font-size: 12px; color: #666;
  background: linear-gradient(transparent, rgba(255,255,255,.9) 40%); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.camBar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 3;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.9); padding: 5px 8px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12);
  max-width: calc(100% - 20px);
}
.chk { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #555; white-space: nowrap; }
.labels3d { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lb3 {
  position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; padding: 1px 6px; border-radius: 5px;
  background: rgba(255,255,255,.85); color: #333; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.lb3.sl { background: #fff3e6; color: #b03024; font-weight: bold; }
.lb3.pl { background: #f4efe5; color: #4a4339; }
.lb3.rl { background: #eef3f7; }
.lb3.dm { background: #1565c0; color: #fff; font-weight: bold; }
.lb3.dl { background: #f6ede4; color: #7b5534; }
.lb3.wl { background: rgba(255,255,255,.6); color: #777; font-size: 10px; }
.lb3.pp { background: #e7f0fb; color: #3f7cc4; }

#side {
  width: 310px; flex: none; background: #fff; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: #faf9f6; padding: 9px; color: #666; }
.tabs button.on { background: #fff; color: var(--c); font-weight: bold; box-shadow: inset 0 -2px var(--c); }
.tabPane { flex: 1; overflow-y: auto; padding: 10px 12px 30px; }
.phead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.phead .ti { font-size: 15px; font-weight: bold; }
.phead .acts { display: flex; gap: 4px; }
.row { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.row .lab { flex: 0 0 112px; color: #555; font-size: 12.5px; }
.row .lab[title] { text-decoration: underline dotted #bbb; text-underline-offset: 3px; cursor: help; }
.row input[type=number], .row input[type=text], .row select {
  flex: 1; min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff;
}
.row input:focus, .row select:focus { outline: 2px solid #f6c48d; border-color: #e8a45c; }
.row .u { color: #999; font-size: 12px; width: 22px; }
.row .ro { flex: 1; color: #2f6fb0; font-weight: bold; }
.row.chkrow { cursor: pointer; }
.row.chkrow .lab { flex: 1; }
.row.chkrow input { width: 16px; height: 16px; margin: 0 2px 0 0; }
.row.btns { gap: 6px; flex-wrap: wrap; }
.selwrap { flex: 1; display: flex; gap: 4px; align-items: center; min-width: 0; }
.selwrap select { flex: 1; min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.selwrap input[type=color], .colorMini { width: 34px; height: 28px; padding: 1px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sec { margin: 12px 0 4px; padding-top: 8px; border-top: 1px dashed var(--line); font-weight: bold; color: #8a5a2b; font-size: 12.5px; }
.hint { color: #888; font-size: 12px; padding: 6px 0; }
.summary { margin-top: 12px; padding: 8px 10px; background: #f3f8fd; border-radius: 8px; font-size: 12.5px; color: #234; }
.checks { margin-top: 8px; }
.ck { font-size: 12px; padding: 4px 8px; margin: 3px 0; border-radius: 6px; background: #f6f6f3; }
.ck.warn { background: #fff4e5; color: #8a4b00; }
.ck.ok { background: #edf7ed; color: #2e6b30; }
.ck.note { background: none; color: #aaa; font-size: 11px; }
.ck.li { cursor: pointer; }
.gates .gate { border: 1px solid #f0dcc4; background: #fffaf3; border-radius: 8px; padding: 6px 8px; margin: 6px 0; }
.gates .gtitle { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.gates .row .lab { flex-basis: 90px; }
.tplbtn { display: block; width: 100%; text-align: left; margin: 4px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stats div { background: #f7f4ee; border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.stats b { color: var(--c); font-size: 15px; }
#listPane .li { padding: 6px 8px; border-radius: 7px; cursor: pointer; margin: 2px 0; }
#listPane .li:hover { background: #f8f3ea; }
#listPane .li.on { background: #fff1e0; }
#listPane .li b { display: block; font-size: 12.5px; }
#listPane .li span { color: #666; font-size: 12px; }

.menu {
  position: fixed; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.16); padding: 5px; min-width: 220px; max-width: calc(100vw - 12px);
}
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; }
.menu button:hover { background: #fbf2e6; }
.menu button.danger { color: #c62828; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
#toast {
  position: fixed; left: 50%; top: 60px; transform: translate(-50%, -20px); opacity: 0; z-index: 60;
  background: #333; color: #fff; padding: 8px 16px; border-radius: 9px; transition: .25s; pointer-events: none; max-width: 90vw;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 70; padding: 16px; }
.modal[hidden] { display: none; }
.modal .card { background: #fff; border-radius: 14px; padding: 18px 22px; max-width: 620px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal h2 { margin: 0 0 8px; color: var(--c); }
.modal ol { padding-left: 20px; margin: 0 0 10px; }
.modal li { margin: 5px 0; }
.modal .keys { color: #777; font-size: 12px; background: #f6f4ef; padding: 6px 10px; border-radius: 8px; }
#sheetBtn { display: none; }

@media (max-width: 1100px) {
  #side { width: 270px; }
  .row .lab { flex-basis: 96px; }
}
@media (max-width: 820px) {
  body { grid-template-rows: auto minmax(0, 1fr); }
  #top { flex-wrap: wrap; gap: 6px; padding: 6px 8px; }
  .brand { display: none; }
  #projSel { max-width: 150px; }
  .grp.right { margin-left: 0; }
  #main { flex-direction: column; }
  #tools {
    order: 2; width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-top: 1px solid var(--line);
    padding: 4px; gap: 2px; flex: none;
  }
  #tools button { flex: 0 0 62px; font-size: 10.5px; }
  #views { order: 1; flex: 1; min-height: 0; flex-direction: column; }
  #side {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 62vh; z-index: 40; border-radius: 14px 14px 0 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,.2); transform: translateY(105%); transition: transform .25s;
  }
  body.sheet #side { transform: none; }
  #sheetBtn { display: block; position: fixed; right: 10px; bottom: 86px; z-index: 45; box-shadow: 0 2px 10px rgba(0,0,0,.2); background: var(--c); color: #fff; border-color: var(--c); }
  body.sheet #sheetBtn { bottom: calc(62vh + 8px); }
  .camBar { bottom: 6px; gap: 4px; padding: 4px; }
  .camBar .chk { font-size: 11px; }
  #statusBar { padding-left: 100px; font-size: 11px; }
}

/* 3D 尺寸线 */
.lb3.dim3 { font-weight: bold; font-size: 11.5px; color: #fff; padding: 1px 7px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.lb3.dw { background: #e53935; }
.lb3.dd { background: #2e7d32; }
.lb3.dh { background: #1565c0; }
.lb3.dr { background: #ef6c00; }
.dimLegend { position: absolute; right: 10px; top: 8px; z-index: 2; display: flex; gap: 8px; background: rgba(255,255,255,.88); padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: bold; pointer-events: none; }
.dimLegend .dw { color: #e53935; } .dimLegend .dd { color: #2e7d32; } .dimLegend .dh { color: #1565c0; } .dimLegend .dr { color: #ef6c00; }
.camBar select { font: inherit; font-size: 12px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 6px; }

/* 分屏时 3D 占大头 */
body[data-view="split"] #view3dWrap { flex: 1.8; }
@media (max-width: 820px) { body[data-view="split"] #view3dWrap { flex: 1.4; } }

/* 简单高度标注：只写数字，白底彩字 */
.lb3.dim3.hs { background: rgba(255,255,255,.92); font-size: 12px; padding: 0 6px; }
.lb3.dim3.hs.dh { color: #1565c0; }
.lb3.dim3.hs.dr { color: #ef6c00; }

/* 开车用的方向键（触屏/鼠标都能按住） */
#drivePad { display: none; position: fixed; right: 330px; bottom: 90px; z-index: 46; flex-direction: column; align-items: center; gap: 4px; user-select: none; }
body.driving #drivePad { display: flex; }
#drivePad div { display: flex; gap: 4px; }
#drivePad button { width: 52px; height: 46px; border-radius: 10px; border: 1px solid #ccc; background: rgba(255,255,255,.92); font-size: 20px; touch-action: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
#drivePad button:active { background: #ffe0b8; }
#drivePad .stop { width: 46px; height: 34px; font-size: 15px; }
@media (max-width: 820px) { #drivePad { right: 10px; bottom: 140px; } }

/* 开车仪表 */
#driveHud { display: none; position: absolute; left: 10px; top: 40px; z-index: 6; background: rgba(255,255,255,.94); border-radius: 12px; padding: 8px 10px; box-shadow: 0 3px 14px rgba(0,0,0,.18); width: 330px; font-size: 12px; }
body.driving #driveHud { display: block; }
#driveHud .hd-top { display: flex; align-items: center; gap: 6px; }
#driveHud .hd-top b { font-size: 13px; }
#driveHud .hd-top span { color: #777; flex: 1; }
#driveHud .hd-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
#driveHud .hd-gear { width: 34px; height: 34px; border-radius: 8px; background: #2e7d32; color: #fff; font: bold 20px/34px sans-serif; text-align: center; }
#driveHud .hd-gear.r { background: #ef6c00; }
#driveHud .hd-speed b { font-size: 20px; }
#driveHud .hd-wheel { display: flex; align-items: center; gap: 4px; }
#driveHud .hd-wheel svg { width: 38px; height: 38px; transition: transform .08s linear; }
#driveHud .hd-sens { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
#driveHud .hd-sens span { padding: 3px 6px; border-radius: 6px; font-weight: bold; text-align: center; }
#driveHud .hd-sens .ok { background: #e8f5e9; color: #2e7d32; }
#driveHud .hd-sens .mid { background: #fff3e0; color: #e65100; }
#driveHud .hd-sens .bad { background: #ffebee; color: #c62828; }
#driveHud .btn.on { background: #e8730c; color: #fff; border-color: #e8730c; }
.carpick select { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 820px) { #driveHud { width: auto; right: 10px; top: 36px; font-size: 11px; } }

/* 有鼠标键盘的电脑上不显示触屏方向键（用键盘开），免得挡住 3D 画面 */
@media (hover: hover) and (pointer: fine) { body.driving #drivePad { display: none; } }

/* 选车目录 */
#carCat .cat { background: #fff; border-radius: 14px; width: min(1180px, 96vw); height: min(860px, 94vh); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
#carCat .cat-head { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#carCat .cat-head h2 { margin: 0 8px 0 0; font-size: 18px; color: var(--c); }
#carCat .cat-head input, #carCat .cat-head select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
#carCat .cat-q { flex: 1; min-width: 160px; }
#carCat .cat-x { margin-left: auto; }
#carCat .cat-chips { display: flex; gap: 6px; padding: 8px 14px 0; flex-wrap: wrap; }
#carCat .chip { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; }
#carCat .chip.on { background: var(--c); border-color: var(--c); color: #fff; }
#carCat .chip.chk { display: inline-flex; align-items: center; gap: 4px; }
#carCat .cat-garage { display: flex; gap: 12px; align-items: center; padding: 8px 14px; flex-wrap: wrap; font-size: 13px; }
#carCat .cat-garage input { width: 70px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
#carCat .cat-garage .hint { padding: 0; }
#carCat .cat-count { padding: 0 14px 6px; color: #777; font-size: 12px; }
#carCat .cat-grid { flex: 1; overflow-y: auto; padding: 4px 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-content: start; }
#carCat .ccard { border: 2px solid #eee; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; transition: .15s; display: flex; flex-direction: column; padding-bottom: 8px; }
#carCat .ccard:hover { border-color: #f3c58f; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
#carCat .ccard.on { border-color: var(--c); box-shadow: 0 0 0 3px rgba(232,115,12,.25); }
#carCat .ph { position: relative; aspect-ratio: 16 / 10; background: #f1f1ee; overflow: hidden; }
#carCat .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
#carCat .ph .noimg { font-size: 48px; text-align: center; line-height: 130px; }
#carCat .ph .slide { position: absolute; left: 6px; top: 6px; background: #2f6fb0; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; }
#carCat .nm { padding: 6px 10px 2px; font-size: 14px; }
#carCat .sp { padding: 0 10px; font-size: 12px; color: #555; }
#carCat .fit { margin: 4px 10px 0; font-size: 12px; font-weight: bold; padding: 2px 8px; border-radius: 8px; align-self: flex-start; }
#carCat .fit.ok { background: #e8f5e9; color: #2e7d32; }
#carCat .fit.no { background: #ffebee; color: #c62828; }
#carCat .cr { margin: 4px 10px 0; font-size: 10.5px; color: #999; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#carCat .cat-foot { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
#carCat .cat-sel { flex: 1; }
.carpick .cp-top { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; }
.carpick .cp-img { width: 120px; height: 75px; object-fit: cover; border-radius: 8px; background: #f1f1ee; font-size: 34px; text-align: center; line-height: 75px; }
#carCat .cat-grid { grid-auto-rows: max-content; }
#carCat .ccard > * { flex-shrink: 0; }

/* 选车目录：详细参数 + 筛选 */
#carCat .cat-pt .lbl { font-size: 12.5px; color: #555; align-self: center; }
#carCat .cat-filters { display: flex; gap: 10px 14px; padding: 8px 14px 0; flex-wrap: wrap; align-items: center; font-size: 12.5px; }
#carCat .cat-filters input[type=number], #carCat .cat-garage input[type=number] { width: 78px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
#carCat .cat-filters .chk { display: inline-flex; gap: 4px; align-items: center; }
#carCat .dims { display: flex; gap: 10px; padding: 2px 10px; font-size: 12.5px; color: #333; }
#carCat .dims b { color: var(--c); font-size: 14px; }
#carCat .specs { padding: 4px 10px 0; font-size: 12px; }
#carCat .pts { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
#carCat .pts span { color: #fff; font-size: 10.5px; padding: 1px 6px; border-radius: 8px; }
#carCat .kv { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed #eee; padding: 2px 0; }
#carCat .kv span { color: #888; white-space: nowrap; }
#carCat .kv b { text-align: right; font-weight: 600; color: #333; }
#carCat .kv i { font-style: normal; font-weight: normal; font-size: 11.5px; }
#carCat .cat-foot .hint { flex: 1; padding: 0; text-align: right; }

#carCat .ph .ptag { position: absolute; right: 6px; bottom: 6px; background: rgba(232,115,12,.95); color: #fff; font-weight: bold; font-size: 13px; padding: 2px 8px; border-radius: 8px; }
#carCat .ph .ptag.used { background: rgba(90,90,90,.9); }
#carCat .ph .ptag.ext { background: rgba(47,111,176,.92); }
#carCat .kv small { font-weight: normal; color: #888; }

#carCat .ctry { padding: 0 10px 2px; font-size: 12px; color: #666; }

#carCat .detail { margin: 6px 10px 0; font-size: 13px; font-weight: bold; color: #e8730c; text-decoration: none; }
#carCat .detail:hover { text-decoration: underline; }

/* 冲孔图案选择 */
.pat-pick { margin: 6px 0; }
.pat-pick .lab { color: #555; font-size: 12.5px; margin-bottom: 4px; }
.pat-pick .pats { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 5px; }
.pat-pick .pat { border: 2px solid #e5e1d8; background: #fff; border-radius: 8px; padding: 3px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pat-pick .pat.on { border-color: var(--c); box-shadow: 0 0 0 2px rgba(232,115,12,.25); }
.pat-pick .pat canvas { width: 54px; height: 40px; border-radius: 4px; display: block; }
.pat-pick .pat span { font-size: 10.5px; line-height: 1.15; text-align: center; color: #444; }

/* 顶楼屋顶设计器 */
.modal .card.atCard { max-width: 1180px; width: 100%; padding: 14px 18px; display: flex; flex-direction: column; }
.atHead { display: flex; align-items: center; justify-content: space-between; }
.atHead h2 { font-size: 18px; margin: 0; }
.atBody { display: flex; gap: 18px; align-items: flex-start; }
.atForm { flex: 0 0 330px; }
.atForm .row .lab { flex: 0 0 150px; }
.atForm .row input[type=number], .atForm .row select { flex: 1; min-width: 0; }
.atRes { flex: 1; min-width: 0; }
.atSvg { width: 100%; height: auto; background: #f7f9fb; border: 1px solid #e3e6ea; border-radius: 8px; }
.atLegend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #555; margin: 4px 0 6px; }
.atLegend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: -2px; }
.atTbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.atTbl td, .atTbl th { padding: 3px 6px; border-bottom: 1px solid #eee; text-align: left; }
.atTbl td:first-child { color: #666; white-space: nowrap; }
.atTbl.cmp tr[data-a] { cursor: pointer; }
.atTbl.cmp tr[data-a]:hover { background: #fff6ea; }
.atTbl.cmp tr.on { background: #ffe9c9; font-weight: bold; }
.atTbl.cmp tr.over td { color: #b03a2e; }
.atTbl .best { color: #c0392b; }
.atFoot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; }
.atFoot .hint { flex: 1; font-size: 12px; color: #888; }
.whTools .row .lab { flex: 0 0 112px; }
@media (max-width: 820px) { .atBody { flex-direction: column; } .atForm { flex: none; width: 100%; } }
