
/* ===== 四角取点器（quad.js）===== */
.qp-svg{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}
.qp-poly{fill:rgba(0,255,136,.09);stroke:#00ff88;stroke-width:1.6;stroke-dasharray:7 4}
.qp-layer{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none}
.qp-h{position:absolute;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;
  border:2px solid #00ff88;background:rgba(0,24,12,.72);pointer-events:auto;cursor:grab;
  touch-action:none;box-shadow:0 0 0 1px rgba(0,0,0,.6)}
.qp-h.on{background:#00ff88;cursor:grabbing}
.qp-h:after{content:'';position:absolute;left:50%;top:50%;width:1px;height:9px;
  transform:translate(-50%,-50%);background:#00ff88}
.qp-h.on:after{background:#04220f}
.qp-h i{position:absolute;left:27px;top:1px;font:700 12px/1 ui-monospace,monospace;
  color:#00ff88;text-shadow:0 1px 2px #000;font-style:normal}
.qp-mag{position:absolute;right:8px;bottom:8px;border:1.5px solid #00ff88;border-radius:8px;
  overflow:hidden;background:#000;box-shadow:0 4px 18px rgba(0,0,0,.6);pointer-events:none}

/* 照片面板：贴图 / 四角取点 模式条 */
.phmode{display:flex;align-items:center;gap:8px;margin:10px 0 4px}
.pm{padding:7px 13px;border-radius:999px;border:1px solid #2a3038;background:#141920;
  color:#9aa2ad;cursor:pointer;font-size:13px}
.pm.on{border-color:#00ff88;color:#00ff88;background:#0f1a14}
.qpstat{margin-left:6px;font-size:12px;color:#8a8f98;font-family:ui-monospace,monospace}
.qpstat b{color:#00ff88;font-weight:600}

/* ===== 字类型：图片选择器（2026-10-19 用户：光文字看不出结构） ===== */
.typepick{display:flex;align-items:center;gap:10px;padding:7px 9px;border:1px solid #2a3038;
  border-radius:10px;background:#12161d;cursor:pointer;user-select:none}
.typepick:hover{border-color:#3a4450}
.typepick img{width:62px;height:46px;object-fit:cover;border-radius:7px;background:#0b0e13;flex:0 0 auto}
.tpinfo{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.tpinfo b{font-size:13.5px;color:#e8eaee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpinfo span{font-size:11.5px;color:#8a8f98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpchev{color:#8a8f98;font-size:12px}
.typemodal{position:fixed;inset:0;background:rgba(4,6,9,.72);display:flex;align-items:center;
  justify-content:center;z-index:9000;padding:20px}
.typemodal[hidden]{display:none}
.tmwin{background:#11141a;border:1px solid #262c36;border-radius:14px;max-width:940px;width:100%;
  max-height:88vh;display:flex;flex-direction:column;overflow:hidden}
.tmhead{display:flex;align-items:baseline;gap:12px;padding:14px 16px;border-bottom:1px solid #222833}
.tmhead b{font-size:15px}
.tmhint{font-size:12px;color:#8a8f98}
.tmhead button{margin-left:auto;background:none;border:none;color:#8a8f98;font-size:18px;cursor:pointer}
.tmgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px;overflow:auto;
  align-content:start;grid-auto-rows:max-content}
@media(max-width:760px){.tmgrid{grid-template-columns:repeat(2,1fr)}}
.tmcard{border:1px solid #262c36;border-radius:10px;background:#0e1117;overflow:hidden;cursor:pointer;
  display:flex;flex-direction:column}
.tmcard:hover{border-color:#00ff88}
.tmcard.on{border-color:#00ff88;box-shadow:0 0 0 1px #00ff88 inset}
.tmcard img{width:100%;height:118px;object-fit:contain;background:#0a0d12;display:block}
.tmcard div{padding:8px 10px 10px}
.tmcard b{display:block;font-size:13px;color:#e8eaee}
.tmcard span{display:block;font-size:11px;color:#8a8f98;margin-top:3px;line-height:1.45}

/* 卡片文字 + 悬停详情 */
.tmcard .tmbody{padding:8px 10px 10px}
.tmcard .tmbody b{display:block;font-size:13px;color:#e8eaee;margin-bottom:3px}
.tmcard .tmspec{display:block;font-size:11px;color:#9fe8c0;margin-bottom:2px}
.tmcard .tmus{display:block;font-size:11px;color:#8a8f98;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmtip{position:fixed;z-index:9500;width:300px;background:#0e1218;border:1px solid #00ff88;
  border-radius:10px;padding:10px 12px;box-shadow:0 12px 40px rgba(0,0,0,.6);pointer-events:none}
.tmtip[hidden]{display:none}
.tmtip b{display:block;color:#00ff88;font-size:13.5px;margin-bottom:6px}
.tmtip table{width:100%;border-collapse:collapse}
.tmtip th{width:62px;text-align:left;font-weight:400;color:#8a8f98;font-size:11.5px;
  padding:2px 0;vertical-align:top;white-space:nowrap}
.tmtip td{color:#d8dde5;font-size:11.5px;padding:2px 0;line-height:1.45}

/* 层卡片：内嵌勾选（封底塞在字壳里 ⇒ 不计入总厚） */
.lyc .ins{display:inline-flex;align-items:center;gap:2px;font-size:10.5px;color:#8a8f98;
  white-space:nowrap;flex:0 0 auto}
.lyc .ins input{width:12px;height:12px;accent-color:#00ff88;margin:0}
.lyc .gl{font-size:11px;gap:3px}
.lyc{flex-wrap:nowrap!important}
.lyc .role{flex:1 1 auto;min-width:34px}
.lyc input[type=number]{width:54px!important}

/* 层卡片：删除键右上角绝对定位，勾选项排第二行（面板窄，一行塞不下 ✗） */
.lyc{position:relative;flex-wrap:wrap!important;padding-right:26px}
.lyc .del{position:absolute;right:5px;top:5px;line-height:1}
.lyc .gl{margin-left:0}
.lyc .ins{margin-right:0}

/* 撑脚/离墙：默认无，勾选才计入总厚 */
.standrow{display:flex;align-items:center;gap:7px;margin-top:9px;font-size:11.5px;color:#8a8f98;flex-wrap:wrap}
.standrow .stck{display:inline-flex;align-items:center;gap:5px;color:#c9cdd2;cursor:pointer}
.standrow .stck input{width:14px;height:14px;accent-color:#00ff88;margin:0}
.standrow input[type=number]{width:56px;height:26px;background:#0d1016;border:1px solid #2a3038;
  border-radius:6px;color:#e8eaee;padding:0 7px;font:inherit;font-size:12px}
.standrow input[type=number]:disabled{opacity:.4}
.standrow .stmm{color:#6f7681}
.standrow .sthint{flex:1 1 100%;font-size:10.5px;color:#6f7681}
