:root{
  --bg:#070A10;
  --panel:#0D1220;
  --panel2:#0B1020;
  --line:rgba(255,255,255,.10);
  --text:#E9EDF7;
  --muted:rgba(233,237,247,.68);
  --muted2:rgba(233,237,247,.45);
  --accent:#3AE6D1;
  --accent2:#5BB1FF;
  --danger:#FF6A5A;
  --warn:#F7C454;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(58,230,209,.20), transparent 60%),
    radial-gradient(1100px 700px at 110% 20%, rgba(91,177,255,.16), transparent 58%),
    radial-gradient(800px 500px at 70% 120%, rgba(247,196,84,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

.app{
  height:100%;
  display:grid;
  grid-template-columns: 320px 1fr;
}

.sidebar{
  padding:20px 16px;
  border-right:1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,18,32,.92), rgba(7,10,16,.92));
  backdrop-filter: blur(10px);
  overflow:auto;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:8px 8px 16px;
  margin-bottom:10px;
}
.brandMark{
  width:42px;height:42px;
  border-radius:12px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(58,230,209,.95), transparent 60%),
    radial-gradient(16px 16px at 70% 65%, rgba(91,177,255,.9), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.brandTitle{font-weight:800;letter-spacing:.5px}
.brandSub{font-size:12px;color:var(--muted)}

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  margin:12px 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.panelTitle{
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:10px;
}

.stats{display:grid;gap:10px}
.stat{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
}
.statLabel{font-size:12px;color:var(--muted2)}
.statValue{font-weight:800;font-size:18px}

.legend{display:flex;flex-direction:column;gap:8px}
.legendItem{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}
.dot{width:10px;height:10px;border-radius:999px;display:inline-block}
.dotUnvisited{background:#3B7DD8}
.dotVisited{background:var(--accent)}
.dotException{background:var(--warn)}

.mapRefreshHint{
  display:none;
  padding:10px 16px;
  background:rgba(247,196,84,.12);
  border:1px solid rgba(247,196,84,.28);
  border-radius:8px;
  font-size:13px;
  color:var(--warn);
  text-align:center;
}
.mapRefreshHint a{
  color:var(--accent);
  text-decoration:underline;
  cursor:pointer;
}

.dotNonStreet{background:#B56BD9}

.filterGrid{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.filterSelect{
  padding:8px 10px;
  font-size:12px;
}

.main{
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.topbar{
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,18,32,.66), rgba(7,10,16,0));
}
.topbarRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.topbarRow + .topbarRow{margin-top:8px}
.topbarLeft{
  display:flex;
  align-items:baseline;
  gap:8px;
}
.title{font-size:14px;font-weight:800}
.subtitle{font-size:11px;color:var(--muted);}
.topbarRight .btn{padding:4px 10px;font-size:11px}
.topbarRight{flex-shrink:0}

.uploadCard{
  margin:0;
  border:none;
  background:none;
  box-shadow:none;
  padding:0 10px;
}
.uploadCard.compact .uploadCardInner{display:none}
.uploadCardInner{}
.meta{margin:4px 0;color:var(--muted);font-size:11px;min-height:14px}

.mappingTitle{font-size:12px}
.mappingGrid{gap:6px 10px;margin-top:8px}
.mappingActions{margin-top:8px}
.mappingActions .btn{padding:6px 12px;font-size:12px}
.fieldLabel{font-size:11px}
.field .select,.field .input{padding:7px 10px;font-size:12px}
.hint{font-size:11px}

.fileHidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}
.fileBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(180px 60px at 30% 20%, rgba(58,230,209,.18), transparent 70%),
    rgba(0,0,0,.22);
  color:var(--text);
  cursor:pointer;
  user-select:none;
  font-weight:700;
  font-size:12px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.fileBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(58,230,209,.38);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.fileBtnIcon{
  width:10px;height:10px;border-radius:3px;
  background: linear-gradient(135deg, rgba(58,230,209,.95), rgba(91,177,255,.85));
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}
.filePill{
  flex:1;
  min-width:160px;
  padding:7px 10px;
  font-size:12px;
  border-radius:12px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color:var(--muted);
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.filePill:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.22);
}
.filePillActive{
  border-color: rgba(58,230,209,.45);
  background: rgba(58,230,209,.08);
  color: rgba(233,237,247,.86);
}
.filePillDrag{
  border-color: rgba(58,230,209,.70);
  background: rgba(58,230,209,.12);
  color: rgba(233,237,247,.92);
}

.workspace{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:8px;
  padding:0 10px 10px;
  flex:1;
  min-height:0;
}

.mapWrap{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height:0;
}

.map{width:100%;height:100%;min-height:420px}
.mapOverlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:24px;
  text-align:center;
  background: radial-gradient(500px 260px at 50% 20%, rgba(58,230,209,.14), transparent 65%), rgba(0,0,0,.45);
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
}
.mapOverlayText{max-width:600px}
/* P4：地图加载中时给用户"跳过"按钮 —— 野外等不起 20 秒 */
.mapOverlaySkip{
  padding:8px 16px;
  border-radius:9px;
  border:1px solid rgba(58,230,209,.45);
  background:rgba(58,230,209,.14);
  color:#C7F6EF;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.mapOverlaySkip:hover{background:rgba(58,230,209,.24)}
.hidden{display:none}

.rightPane{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:0;
  overflow-y:auto;
}

.card{
  border-radius:12px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding:10px;
}
.cardHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.cardTitle{font-size:13px;font-weight:800}
.badge{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color:var(--muted);
}

.kv{
  display:grid;
  grid-template-columns: 72px 1fr;
  gap:8px 10px;
  margin-top:10px;
}
.k{font-size:12px;color:var(--muted2)}
.v{font-size:13px;color:var(--text)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}

.help{margin-top:8px;font-size:11px;color:var(--muted);line-height:1.6}
.hint{margin-top:8px;font-size:11px;color:var(--muted)}

.actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}

.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.20);
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover{transform: translateY(-1px);background: rgba(0,0,0,.28);border-color: rgba(255,255,255,.26);box-shadow: 0 12px 30px rgba(0,0,0,.35)}
.btn:active{transform: translateY(0px)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.btnPrimary{
  background: linear-gradient(135deg, rgba(58,230,209,.95), rgba(91,177,255,.82));
  border-color: rgba(58,230,209,.38);
  color:#051015;
}
.btnPrimary:hover{background: linear-gradient(135deg, rgba(58,230,209,1), rgba(91,177,255,.9))}
.btnGhost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
  color:var(--muted);
}

.input,.select,.textarea,.file{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
.input:focus,.select:focus,.textarea:focus{
  border-color: rgba(58,230,209,.55);
  box-shadow: 0 0 0 4px rgba(58,230,209,.14);
}
.select{cursor:pointer}
.textarea{resize:vertical;min-height:90px}
.field{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.fieldLabel{font-size:12px;color:var(--muted2)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.mapping{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.10);
}
.mappingTitle{font-weight:800;font-size:13px}
.mappingGrid{display:grid;grid-template-columns: repeat(2, minmax(0,1fr));gap:10px 12px;margin-top:10px}
.mappingActions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}

.form{
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.formBody{
  overflow:auto;
  padding-right:4px;
  padding-bottom:14px;
}
.formFooter{
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(13,18,32,.18), rgba(13,18,32,.55));
}

.audit{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
}
.auditTitle{
  font-weight:800;
  font-size:12px;
  color: rgba(233,237,247,.82);
  letter-spacing:.6px;
}
.auditGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 12px;
  margin-top:10px;
}

.photoBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  flex-wrap:wrap;
}
/* 拍摄对象下拉：跟着"添加照片"按钮走，先选对象再选文件 */
.photoSubject{
  flex:0 0 auto;
  min-width:96px;
  padding:8px 10px;
}
/* 照片角上的拍摄对象徽标，深色半透明压住图片不抢戏 */
.photoTile{position:relative}
.photoSubjTag{
  position:absolute;
  left:6px;
  top:6px;
  padding:2px 7px;
  border-radius:999px;
  font-size:11px;
  line-height:1.4;
  color:rgba(255,255,255,.92);
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(2px);
  pointer-events:none;
}
.photoBtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(180px 60px at 30% 20%, rgba(91,177,255,.16), transparent 70%),
    rgba(0,0,0,.20);
  color:var(--text);
  cursor:pointer;
  user-select:none;
  font-weight:800;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.photoBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(91,177,255,.35);
  box-shadow: 0 14px 30px rgba(0,0,0,.30);
}
.photoBtnIcon{
  width:12px;height:12px;border-radius:4px;
  background: linear-gradient(135deg, rgba(91,177,255,.95), rgba(58,230,209,.82));
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}
.photoHint{
  font-size:12px;
  color:var(--muted);
  text-align:right;
}

.photoList{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
.photoTile{
  position:relative;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  aspect-ratio: 1 / 1;
}
.photoImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.03) contrast(1.02);
}
.photoCap{
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  padding:8px 10px;
  border-radius:14px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(233,237,247,.88);
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.photoRemove{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.42);
  color: rgba(233,237,247,.86);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.photoRemove:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
  background: rgba(0,0,0,.55);
}

.btnWide{
  width:100%;
  justify-content:center;
}

@media (max-width: 880px) {
  .mobileTopbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 16px;
    border-bottom:1px solid var(--line);
    background: linear-gradient(180deg, rgba(13,18,32,.95), rgba(7,10,16,.90));
    backdrop-filter: blur(10px);
    position:sticky;
    top:0;
    z-index:30;
  }
  .mobileBrand{
    display:flex;
    align-items:center;
    gap:10px;
  }
  .mobileBrand .brandMark{
    width:34px;height:34px;
    border-radius:10px;
    background:
      radial-gradient(10px 10px at 30% 30%, rgba(58,230,209,.95), transparent 60%),
      radial-gradient(12px 12px at 70% 65%, rgba(91,177,255,.9), transparent 58%),
      linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.14);
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
  }
  .mobileBrand .brandTitle{font-weight:800;font-size:15px;letter-spacing:.5px}
  .mobileSpacer{width:44px;flex-shrink:0}

  .sidebarToggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    width:44px;height:44px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.22);
    cursor:pointer;
    padding:10px;
    flex-shrink:0;
    transition: background .12s ease, border-color .12s ease;
  }
  .sidebarToggle:hover{background:rgba(0,0,0,.32);border-color:rgba(255,255,255,.26)}
  .sidebarToggle span{
    display:block;
    width:22px;
    height:2px;
    border-radius:999px;
    background:var(--text);
    transition: transform .22s ease, opacity .18s ease;
  }
  .sidebarOpen .sidebarToggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .sidebarOpen .sidebarToggle span:nth-child(2){opacity:0;transform:scaleX(0)}
  .sidebarOpen .sidebarToggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .sidebarBackdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(4px);
    z-index:35;
    transition: opacity .28s ease;
  }

  .app{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:fixed;
    top:61px;
    left:0;
    bottom:0;
    width:300px;
    max-width:82vw;
    z-index:40;
    transform:translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    border-right:1px solid var(--line);
    box-shadow: 8px 0 40px rgba(0,0,0,.6);
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  .sidebarOpen .sidebar{transform:translateX(0)}

  .main{
    height:100%;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }

  .topbar{
    padding:14px 16px;
    flex-wrap:wrap;
    gap:10px;
  }
  .topbarRight{width:100%}
  .topbarRight .btn{width:100%}

  .topbarRow{flex-wrap:wrap}
  .topbarRow .filePill{min-width:0;flex:1}
  .topbarRow .fileBtn{justify-content:center}
  .topbarRow .btnPrimary{width:100%;order:10}
  .uploadCard{padding:0 12px}

  .mappingGrid{grid-template-columns:1fr}

  .workspace{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:0 12px 12px;
  }
  .mapWrap{min-height:380px;flex-shrink:0}
  .map{min-height:380px}
  .rightPane{flex:1;overflow:visible}

  .card{padding:12px}
  .cardHeader{flex-wrap:wrap}

  .auditGrid{grid-template-columns:1fr}
  .form{max-height:none}
  .grid2{grid-template-columns:1fr}

  .photoList{grid-template-columns:repeat(2, minmax(0,1fr))}
  .photoBar{flex-direction:column;align-items:stretch}
  .photoHint{text-align:left}

  .kv{grid-template-columns:64px 1fr}
}
@media (min-width: 881px) {
  .mobileTopbar{display:none}
  .sidebarBackdrop{display:none}
  .sidebarToggle{display:none}
}

@media (max-width: 1080px){
  .workspace{grid-template-columns: 1fr}
  .auditGrid{grid-template-columns: 1fr}
  .photoList{grid-template-columns: repeat(2, minmax(0,1fr))}
}

.btnCta{
  padding:12px 24px;
  font-size:15px;
  letter-spacing:1px;
  background: linear-gradient(135deg, rgba(58,230,209,.95), rgba(91,177,255,.82));
  border-color: rgba(58,230,209,.48);
  box-shadow: 0 6px 24px rgba(58,230,209,.28);
  animation: ctaPulse 2s ease-in-out infinite;
}
@keyframes ctaPulse{
  0%,100%{box-shadow:0 6px 24px rgba(58,230,209,.28)}
  50%{box-shadow:0 8px 36px rgba(58,230,209,.48)}
}

.loadingOverlay{
  position:fixed;
  inset:0;
  z-index:100;
  align-items:center;
  justify-content:center;
  background:rgba(7,10,16,.78);
  backdrop-filter:blur(6px);
}
.loadingOverlay:not(.hidden){
  display:flex;
}
.loadingContent{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}
.loadingSpinner{
  width:52px;
  height:52px;
  border-radius:999px;
  border:4px solid rgba(255,255,255,.12);
  border-top-color:var(--accent);
  animation:spin .78s linear infinite;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}
.loadingText{
  font-size:17px;
  font-weight:800;
  color:var(--text);
  letter-spacing:.5px;
}
.loadingSub{
  font-size:13px;
  color:var(--muted);
}


/* ---------- 全局提示条（替代原来只进 console 的静默失败） ---------- */
.appNotice{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:2px 0 12px;
  padding:11px 14px;
  border-radius:12px;
  font-size:13px;
  line-height:1.7;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.appNotice.hidden{display:none}
/* 导入撤销条：绿色调表示"操作成功但可回滚"，与错误红区分开 */
.undoBar{
  display:flex;
  align-items:center;
  gap:12px;
  margin:2px 0 12px;
  padding:11px 14px;
  border-radius:12px;
  font-size:13px;
  line-height:1.6;
  border:1px solid rgba(46,204,140,.40);
  background:rgba(46,204,140,.10);
  color:#C9F2DE;
}
.undoBar.hidden{display:none}
.undoText{flex:1;min-width:0}
.undoBtn{
  flex:0 0 auto;
  padding:6px 12px;
  border-radius:9px;
  border:1px solid rgba(46,204,140,.55);
  background:rgba(46,204,140,.16);
  color:#D8F7E8;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.undoBtn:hover{background:rgba(46,204,140,.28)}
.undoClose{
  flex:0 0 auto;
  width:26px;height:26px;
  border:none;border-radius:8px;
  background:transparent;
  color:rgba(255,255,255,.55);
  font-size:18px;line-height:1;
  cursor:pointer;
}
.undoClose:hover{color:#fff;background:rgba(255,255,255,.08)}
.appNotice--info{
  border-color:rgba(91,177,255,.38);
  background:rgba(91,177,255,.10);
  color:#CFE6FF;
}
.appNotice--warn{
  border-color:rgba(247,196,84,.42);
  background:rgba(247,196,84,.10);
  color:#FBE3AE;
}
.appNotice--error{
  border-color:rgba(255,106,90,.45);
  background:rgba(255,106,90,.10);
  color:#FFD3CD;
}
.appNoticeBody{flex:1;min-width:0}
.appNoticeBody > div + div{margin-top:5px}
.appNoticeBody > div:first-child{font-weight:650}
.appNoticeClose{
  flex:none;
  align-self:center;
  padding:6px 13px;
  border-radius:8px;
  border:1px solid currentColor;
  background:transparent;
  color:inherit;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  opacity:.9;
}
.appNoticeClose:hover{opacity:1;background:rgba(255,255,255,.08)}

/* 导入结果摘要 */
.importSummary{margin-top:8px;font-size:13px;line-height:1.7;color:var(--muted)}
.importSummary b{font-weight:700;color:var(--text)}
.importSummary .skippedItem{color:var(--warn)}

/* ==========================================================================
   P2 新增：点位列表 / 路线 / 会话 / 离线降级
   ========================================================================== */

/* ---------- 点位列表 ---------- */
.listCount{
  display:inline-block;
  margin-left:6px;
  padding:1px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  vertical-align:middle;
}
.listTools{
  display:grid;
  grid-template-columns:1fr 120px;
  gap:8px;
  margin-bottom:8px;
}
.listTools .input,.listTools .select{font-size:13px}
.poiListBody{
  max-height:min(46vh,520px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  margin:0 -4px;
  padding:0 4px;
}
.poiRow{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:8px 9px;
  border-radius:9px;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .12s ease,border-color .12s ease;
}
.poiRow:hover{background:rgba(255,255,255,.055)}
.poiRowActive{
  background:rgba(91,177,255,.14);
  border-color:rgba(91,177,255,.42);
}
.poiRowOrphan{
  border-style:dashed;
  border-color:rgba(247,196,84,.36);
}
.poiDot{
  flex:none;
  width:9px;height:9px;
  margin-top:6px;
  border-radius:999px;
  box-shadow:0 0 0 2px rgba(0,0,0,.35);
}
.poiRowMain{flex:1;min-width:0}
.poiRowName{
  font-size:13px;
  font-weight:600;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.poiTag{
  display:inline-block;
  margin-left:6px;
  padding:0 5px;
  border-radius:4px;
  background:rgba(247,196,84,.18);
  color:var(--warn);
  font-size:10px;
  font-weight:600;
  vertical-align:middle;
}
.poiRowMeta{
  margin-top:3px;
  font-size:11.5px;
  color:var(--muted2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.listEmpty,.listMore{
  padding:14px 8px;
  text-align:center;
  font-size:12px;
  color:var(--muted2);
  line-height:1.7;
}
.routeInfo{
  margin-bottom:8px;
  padding:9px 11px;
  border-radius:9px;
  border:1px solid rgba(58,230,209,.32);
  background:rgba(58,230,209,.09);
  font-size:12.5px;
  line-height:1.7;
  color:#C7F6EF;
}
.routeInfoSub{color:var(--muted);font-size:11.5px}
.routeInfoTitle{font-weight:600;font-size:13px}
.routeInfoActions{display:flex;gap:8px;margin-top:6px}
.routeInfoBtn{
  flex:0 0 auto;
  padding:4px 10px;
  border-radius:7px;
  border:1px solid rgba(58,230,209,.45);
  background:rgba(58,230,209,.16);
  color:#D8F7F2;
  font-size:11.5px;
  font-weight:600;
  cursor:pointer;
}
.routeInfoBtn:hover{background:rgba(58,230,209,.26)}
.routeInfoBtnGhost{
  border-color:rgba(255,255,255,.22);
  background:transparent;
  color:var(--muted);
}
.routeInfoBtnGhost:hover{background:rgba(255,255,255,.08);color:var(--text)}

/* P4：路线序号徽标 —— 走访员照着 1/2/3 顺序走 */
.poiRouteBadge{
  flex:none;
  width:22px;height:22px;
  margin-top:2px;
  border-radius:999px;
  background:rgba(58,230,209,.92);
  color:#0a2e29;
  font-size:11.5px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 0 2px rgba(0,0,0,.3);
}
/* P4：行内"去这家"按钮 —— 不依赖本应用地图，跳百度地图 App */
.poiRowNav{
  flex:none;
  align-self:center;
  padding:5px 10px;
  border-radius:8px;
  border:1px solid rgba(91,177,255,.42);
  background:rgba(91,177,255,.14);
  color:#CFE6FF;
  font-size:11.5px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
.poiRowNav:hover{background:rgba(91,177,255,.26)}

/* ---------- 会话面板 ---------- */
.sessionIdle .btn,.sessionActive .btn{width:100%;margin-top:8px}
.sessionStats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  text-align:center;
}
.sessionStatValue{
  font-size:19px;
  font-weight:800;
  color:var(--accent);
  line-height:1.25;
}
.sessionStatLabel{font-size:11px;color:var(--muted2);margin-top:2px}
.sessionDone .help{margin-top:4px}

/* ---------- 地图不可用降级 ---------- */
.mapFallbackPanel{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:32px;
  text-align:center;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(247,196,84,.10), transparent 65%),
    rgba(7,10,16,.94);
  z-index:5;
}
.mapFallbackPanel.hidden{display:none}
.mapFallbackTitle{
  font-size:15px;
  font-weight:800;
  color:var(--warn);
  letter-spacing:.3px;
}
.mapFallbackMsg{
  max-width:520px;
  font-size:12.5px;
  line-height:1.75;
  color:var(--muted);
}
.mapFallbackHint{
  max-width:520px;
  font-size:12px;
  line-height:1.75;
  color:var(--muted2);
}
/* 降级时右侧列表要更宽，成为主操作区 */
body.mapFallback .workspace{grid-template-columns:1fr minmax(360px,44%)}
body.mapFallback .poiListBody{max-height:min(62vh,680px)}

/* ---------- 离线状态 ---------- */
body.isOffline .mobileTopbar::after{
  content:"离线";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  padding:2px 8px;
  border-radius:999px;
  background:rgba(247,196,84,.18);
  color:var(--warn);
  font-size:10px;
  font-weight:700;
}
.mobileTopbar{position:relative}

@media (max-width:900px){
  .listTools{grid-template-columns:1fr 108px}
  .poiListBody{max-height:38vh}
}
