/* 每日记录 · 手机云端录入页样式（移动端优先） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f1f5f4; color: #1f2937; font-size: 16px;
  min-height: 100vh;
}
.hidden { display: none !important; }
.page { max-width: 480px; margin: 0 auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }

/* 密钥设置 */
#setup { display: flex; align-items: center; min-height: 90vh; }
#setup .card { background: #fff; border-radius: 16px; padding: 22px 18px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
#setup h1 { margin: 0 0 8px; font-size: 20px; }
#setup input { width: 100%; }
.hint { color: #6b7280; font-size: 13px; line-height: 1.6; margin: 6px 0 14px; }
.err { color: #dc2626; font-size: 13px; min-height: 18px; margin: 8px 0 0; }

/* 顶栏 */
.top { display: flex; align-items: center; gap: 8px; padding: 4px 0 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; }
.dot.on { background: #16a34a; }
.dot.off { background: #ef4444; }
.title { font-weight: 700; font-size: 17px; flex: 1; }
.linkbtn { background: none; border: none; color: #0f766e; font-size: 14px; padding: 4px; }

/* 项目选择 */
.projbar { margin-bottom: 12px; }
.sel, .inp {
  width: 100%; padding: 12px 14px; font-size: 16px;
  border: 1px solid #d1d5db; border-radius: 12px; background: #fff; color: #1f2937;
  appearance: none; -webkit-appearance: none;
}
.sel:focus, .inp:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.inp.big { font-size: 24px; font-weight: 700; }
.lbl { display: block; margin: 14px 2px 6px; font-size: 13px; color: #6b7280; }

.pane { background: #fff; border-radius: 16px; padding: 6px 14px 16px; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 14px; }

/* 标志按钮 */
.tagrow { display: flex; gap: 10px; }
.tagbtn {
  flex: 1; padding: 14px 0; font-size: 18px; font-weight: 700;
  border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; color: #374151;
}
.tagbtn.on { border-color: #0f766e; background: #ecfdf5; color: #0f766e; }
.tagbtn.other { font-size: 14px; font-weight: 600; }

/* qb 双标签 */
.tabbar { display: flex; gap: 8px; padding: 10px 0 4px; }
.qtab {
  flex: 1; padding: 11px 0; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid #e5e7eb; background: #f9fafb; color: #6b7280;
}
.qtab.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 步进器 */
.stepper { display: flex; align-items: center; gap: 10px; }
.step {
  width: 52px; height: 48px; font-size: 24px; font-weight: 700;
  border: 1px solid #d1d5db; border-radius: 12px; background: #fff; color: #0f766e;
}
.step:active { background: #ecfdf5; }
.inp.num { text-align: center; font-size: 20px; font-weight: 700; }
.tip { margin-top: 10px; font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; min-height: 16px; }

/* 提交按钮 */
.btn-primary {
  width: 100%; padding: 16px 0; margin-top: 4px;
  font-size: 18px; font-weight: 700; letter-spacing: 6px;
  border: none; border-radius: 14px; background: #0f766e; color: #fff;
}
.btn-primary:active { opacity: .85; }

/* 队列 / 离线提示 */
.queue {
  margin-top: 12px; padding: 10px 12px; font-size: 13px;
  background: #fef3c7; border: 1px solid #fde68a; border-radius: 10px; color: #92400e;
}

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(17,24,39,.92); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-size: 14px; max-width: 86vw; text-align: center; z-index: 9;
}

.foot { margin-top: 18px; text-align: center; font-size: 12px; color: #9ca3af; line-height: 1.8; }
.foot a { color: #0f766e; }
