/* ============================================================
 * 打卡助手 - 样式（移动端优先，浅色主题）
 * ============================================================ */

:root {
  --green: #07c160;
  --green-dark: #06ad56;
  --red: #fa5151;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-sub: #8a8f99;
  --line: #eceef1;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 给底部固定菜单留位 */
  padding-bottom: calc(58px + env(safe-area-inset-bottom));
}

/* ---------------- 顶部 ---------------- */
.hero {
  background: linear-gradient(135deg, #07c160 0%, #0aa85c 100%);
  color: #fff;
  padding: calc(28px + env(safe-area-inset-top)) 24px 34px;
  border-radius: 0 0 26px 26px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.24);
}

.hero-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.92;
}

.hero-time {
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  margin: 8px 0 2px;
  line-height: 1.1;
}

.hero-date {
  font-size: 13px;
  opacity: 0.86;
}

/* ---------------- 内容区 ---------------- */
.content {
  flex: 1;
  padding: 16px 16px 8px;
}

/* 两个页签各占一块，切换靠 hidden */
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* .panel 设了 display:flex 会盖掉 hidden 的默认 display:none，必须显式还原 */
.panel[hidden] { display: none; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
}

.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ---------------- 分段控件 ---------------- */
.segmented {
  display: flex;
  background: #f2f4f6;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.seg-item {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  padding: 12px 0;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-item span {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
  margin-left: 2px;
}

.seg-item.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 6px rgba(17, 24, 39, 0.1);
}

/* ---------------- 今日打卡状态 ---------------- */
.today-status {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.today-item {
  flex: 1;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  min-width: 0;
}

.today-item .today-head {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 3px;
}

.today-item .today-value {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-item.done { background: #eefaf2; border-color: #cdeedb; }
.today-item.done .today-value { color: var(--green); }
.today-item.pending .today-value { color: #c3c9d2; font-weight: 500; }

/* 今日状态的数据来源角标（后端同步 / 仅本机） */
.today-meta {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-sub);
  margin-top: 7px;
}

.today-meta b { color: var(--green); font-weight: 600; }
.today-meta.warn b { color: #ef8f00; }

/* ---------------- 我的考勤时间（后端返回） ---------------- */
.my-schedule {
  font-size: 13px;
  color: var(--text-sub);
  background: #f5fbf7;
  border: 1px solid #ddefe3;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.my-schedule b { color: var(--green); font-weight: 600; font-size: 14px; }

/* ---------------- 类型提示（如下班打卡时间限制） ---------------- */
.type-hint {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff8ec;
  border: 1px solid #ffe3b8;
  color: #a8690a;
  font-size: 12px;
  line-height: 1.6;
}

.type-hint b { font-weight: 600; }

/* ---------------- 考勤时间 ---------------- */
.card-label.clickable { cursor: pointer; user-select: none; }

.chevron {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
}

.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  animation: fadeUp 0.18s ease;
}

.schedule li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.schedule li:last-child { border-bottom: none; padding-bottom: 0; }

.schedule .role { flex: 1; color: var(--text); }

.schedule .slot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.schedule .slot .tag {
  font-size: 11px;
  color: var(--text-sub);
}

.schedule .slot b { font-weight: 600; }

.schedule .arrow { color: #c3c9d2; margin: 0 2px; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 11px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
}

.field input:focus {
  border-color: var(--green);
  background: #fff;
}

.field input::placeholder { color: #b9bfc9; }

.input-wrap { position: relative; }

.input-wrap input { padding-right: 48px !important; }

.eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 17px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}

/* ---------------- 开关行 ---------------- */
.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 14px;
  cursor: pointer;
}

.switch-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex: none;
}

/* ---------------- 定位 ---------------- */
.mini-btn {
  border: none;
  background: #eefaf2;
  color: var(--green);
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
}

.mini-btn:active { background: #dff5e8; }

.mini-btn:disabled { opacity: 0.55; cursor: default; }

.mini-btn.ghost {
  background: #f2f4f6;
  color: var(--text-sub);
}

.label-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.geo-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
  margin-top: 10px;
}

.geo-hint b { color: var(--green); font-weight: 600; }

.geo-hint.warn b { color: var(--red); }

.lnglat {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.lnglat-item {
  flex: 1;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
}

.lnglat-item span {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.lnglat-item b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------------- 主按钮 ---------------- */
.primary-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #07c160 0%, #0aa85c 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 1px;
  padding: 16px 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.3);
  transition: transform 0.12s, box-shadow 0.18s, opacity 0.18s;
}

.primary-btn:active { transform: scale(0.985); }

.primary-btn:disabled {
  opacity: 0.62;
  box-shadow: none;
  cursor: default;
}

/* ---------------- 结果 ---------------- */
.result {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.22s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.result-head {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.result-head.info { background: #2f7fed; }
.result-head.warn { background: #ef8f00; }
.result-head.ok { background: var(--green); }
.result-head.fail { background: var(--red); }

.result-body {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #4a4f57;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------------- 历史 ---------------- */
.history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.history-item:last-child { border-bottom: none; padding-bottom: 0; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.dot.ok { background: var(--green); }
.dot.fail { background: var(--red); }
.dot.info { background: #2f7fed; }
.dot.warn { background: #ef8f00; }

.history-main { flex: 1; min-width: 0; }

.history-title { font-size: 14px; font-weight: 500; }

.history-sub {
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-time {
  font-size: 12px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  line-height: 1.3;
}

.history-time b {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.history-time span { color: #b0b6c0; }

/* ---------------- 日报 ---------------- */
.report-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}

.rpt-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f2f4f6;
  color: var(--text-sub);
  flex: none;
}

.rpt-badge.draft { background: #fff8ec; color: #a8690a; }
.rpt-badge.pending { background: #eaf2ff; color: #2f7fed; }
.rpt-badge.done { background: #eefaf2; color: var(--green); }
.rpt-badge.reject { background: #fdecec; color: var(--red); }

.report-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
  margin-top: 9px;
}

.report-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpt-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fafbfc;
}

.rpt-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.rpt-item .field { margin-bottom: 10px; }
.rpt-item .field:last-child { margin-bottom: 0; }

.report-textarea,
.rpt-item input[type="text"],
.rpt-item textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
}

.report-textarea { min-height: 76px; line-height: 1.5; }

/* 工作内容框由 JS 按内容自动撑高，不再出现内部滚动条 */
.rpt-item textarea[data-field="content"] {
  min-height: 72px;
  line-height: 1.55;
  overflow: hidden;
}

.report-textarea:focus,
.rpt-item input:focus,
.rpt-item textarea:focus { border-color: var(--green); }

.segmented.mini { padding: 3px; }
.segmented.mini .seg-item { padding: 8px 0; font-size: 14px; }

.rpt-empty {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  padding: 14px 0;
}

.report-actions {
  display: flex;
  gap: 10px;
}

.report-actions .primary-btn {
  width: auto;
  flex: 1;
  padding: 14px 0;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.ghost-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 14px;
  padding: 14px 0;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.18s;
}

.ghost-btn:active { transform: scale(0.985); }
.ghost-btn:disabled { opacity: 0.55; cursor: default; }

/* ---------------- 通讯录选择（协作人） ---------------- */
/* 输入框 + 「通讯录」按钮并排；按钮会撑到和输入框一样高 */
.input-pick {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* 缩小一点字号，好让「公司-部门-姓名」这种长串尽量显示完整 */
.input-pick input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.pick-btn {
  flex: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 0 13px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.pick-btn:active { background: #eefaf2; }
.pick-btn:disabled { opacity: 0.5; cursor: default; }

/* 底部抽屉：搜索 + 分组联系人列表 */
.sheet-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: rgba(17, 24, 39, 0.45);
  animation: fadeIn 0.16s ease;
}

.sheet-mask[hidden] { display: none; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  background: var(--card);
  border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(17, 24, 39, 0.18);
  animation: sheetUp 0.2s ease;
}

.sheet[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetUp {
  from { transform: translateY(16px); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 10px;
  font-size: 15px;
  font-weight: 600;
}

.sheet-search { padding: 0 16px 10px; }

.sheet-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: #f2f4f6;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
}

.sheet-search input:focus { border-color: var(--green); background: var(--card); }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 8px 14px;
}

.ct-group-title {
  padding: 10px 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.ct-group-title i {
  font-style: normal;
  color: var(--green);
  font-size: 11px;
  margin-left: 4px;
}

.ct-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 11px;
  cursor: pointer;
}

.ct-item:active { background: #f2f4f6; }
.ct-item.on { background: #eefaf2; }

.ct-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9ecf1;
}

/* 没有头像时用姓名首字兜底 */
.ct-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.ct-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ct-main b { font-size: 14px; font-weight: 600; }

.ct-main i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-empty {
  padding: 30px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-sub);
}

/* ---------------- 底部菜单 ---------------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  color: var(--text-sub);
  padding: 8px 0 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.18s;
}

.tab-ico {
  font-size: 19px;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity 0.18s, transform 0.18s, filter 0.18s;
}

.tab-text { font-size: 11px; font-weight: 500; }

.tab-item.active { color: var(--green); }
.tab-item.active .tab-ico {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

/* ---------------- 页脚 ---------------- */
.footer {
  text-align: center;
  font-size: 12px;
  color: #b0b6bf;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 12%;
  transform: translate(-50%, 10px);
  max-width: 78vw;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 99;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- Git 提交 → 日报 ---------------- */
/* 折叠面板：和 .panel 一样，hidden 会被 display:flex 之类的规则盖掉，显式声明 */
.git-body[hidden] { display: none; }

.git-state {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sub);
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  margin-bottom: 14px;
  word-break: break-all;
}

.git-state b { color: var(--text); font-weight: 600; }
.git-state.ok { background: #eefaf2; border-color: #cdeedb; }
.git-state.ok b { color: var(--green-dark); }
.git-state.warn { background: #fff8ec; border-color: #f6e3c4; color: #a8690a; }
.git-state.warn b { color: #a8690a; }
.git-state.fail { background: #fdeeee; border-color: #f8d4d4; color: #c33b3b; }
.git-state.fail b { color: #c33b3b; }

/* 分支 + 作者并排 */
.git-row {
  display: flex;
  gap: 10px;
}

.git-row .field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 11px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  /* 自绘下拉箭头，避免各端样式不一致 */
  background-image: linear-gradient(45deg, transparent 50%, #9aa1ac 50%),
                    linear-gradient(135deg, #9aa1ac 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  text-overflow: ellipsis;
}

.field select:focus { border-color: var(--green); background-color: #fff; }

.git-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.ghost-btn.small,
.primary-btn.small {
  width: auto;
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

/* 提交列表预览：让用户在提交前先看一遍抓到了什么 */
.git-log {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.git-log-head {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.git-log-head b { color: var(--green-dark); font-weight: 600; }

.git-commit {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.git-commit:last-child { border-bottom: none; }

.git-commit .gc-time {
  flex: none;
  color: #b0b6c0;
  font-variant-numeric: tabular-nums;
}

.git-commit .gc-title {
  flex: 1;
  min-width: 0;
  color: var(--text);
  word-break: break-word;
}

.git-commit .gc-author {
  flex: none;
  color: var(--text-sub);
  font-size: 12px;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- 账号状态 ---------------- */
.account-meta {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 193, 96, 0.09);
  border: 1px solid rgba(7, 193, 96, 0.22);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
}

.account-meta b { color: var(--green-dark); font-weight: 600; }

.account-meta.warn {
  background: rgba(239, 143, 0, 0.1);
  border-color: rgba(239, 143, 0, 0.3);
}

.account-meta.warn b { color: #ef8f00; }

/* ---------------- 登录按钮（账号卡片里的独立按钮） ---------------- */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 193, 96, 0.35);
  border-radius: 12px;
  background: rgba(7, 193, 96, 0.08);
  color: var(--green-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-btn:active { background: rgba(7, 193, 96, 0.16); }

.login-btn:disabled { opacity: 0.55; cursor: default; }

.login-ico { font-size: 15px; line-height: 1; }

/* ---------------- 我的日报（列表） ---------------- */
.list-body[hidden] { display: none; }

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.list-toolbar select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa1ac 50%),
                    linear-gradient(135deg, #9aa1ac 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.rpt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rl-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
}

.rl-item.open { background: #fff; }

.rl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
}

.rl-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.rl-date em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sub);
  margin-left: 5px;
}

.rl-count {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 12px;
  color: var(--text-sub);
}

.rl-arrow {
  flex: none;
  font-size: 11px;
  color: #b0b6c0;
}

.rl-body {
  padding: 0 12px 12px;
  border-top: 1px dashed var(--line);
  margin-top: -1px;
  padding-top: 10px;
}

.rl-block + .rl-block { margin-top: 10px; }

.rl-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 3px;
}

.rl-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.rl-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 3px;
}

.rl-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
  background: #f2f4f6;
  border-radius: 8px;
  padding: 8px 10px;
  white-space: pre-wrap;
}

.rl-note.audit { background: #fdecec; color: var(--red); }

/* 明细加载 / 失败 / 空态 */
.rl-tip {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-sub);
}

.rl-tip.err { color: var(--red); }

.rl-tip .mini-btn { margin-top: 6px; }

.rpt-badge.wait { background: #f0edff; color: #6c4ed9; }

/* ---------------- 深色模式 ---------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --card: #1d2025;
    --text: #f1f3f5;
    --text-sub: #9096a0;
    --line: #2a2e35;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }
  .segmented { background: #24282e; }
  .seg-item.active { background: #2e333a; box-shadow: none; }
  .field input[type="text"],
  .field input[type="tel"],
  .field input[type="password"] { background: #24282e; color: var(--text); }
  .field input:focus { background: #2a2f36; }
  .lnglat-item { background: #24282e; }
  .mini-btn { background: rgba(7, 193, 96, 0.16); }
  .mini-btn.ghost { background: #24282e; color: var(--text-sub); }
  .today-item { background: #24282e; }
  .today-item.done { background: rgba(7, 193, 96, 0.12); border-color: rgba(7, 193, 96, 0.3); }
  .today-item.pending .today-value { color: #5c626b; }
  .today-meta.warn b { color: #e8a94a; }
  .my-schedule {
    background: rgba(7, 193, 96, 0.1);
    border-color: rgba(7, 193, 96, 0.24);
  }
  .type-hint {
    background: rgba(239, 143, 0, 0.12);
    border-color: rgba(239, 143, 0, 0.28);
    color: #e8a94a;
  }
  .rpt-item { background: #24282e; }
  .report-textarea,
  .rpt-item input[type="text"],
  .rpt-item textarea { background: #24282e; color: var(--text); }
  .rpt-badge { background: #24282e; }
  .rpt-badge.draft { background: rgba(239, 143, 0, 0.14); color: #e8a94a; }
  .rpt-badge.pending { background: rgba(47, 127, 237, 0.16); color: #6aa8f5; }
  .rpt-badge.done { background: rgba(7, 193, 96, 0.14); color: #4fd07f; }
  .rpt-badge.reject { background: rgba(250, 81, 81, 0.16); color: #f57272; }
  .ghost-btn { background: #24282e; }
  .tabbar { background: rgba(29, 32, 37, 0.97); }
  .result-body { color: #b9c0c9; }
  .pick-btn { background: #24282e; }
  .pick-btn:active { background: rgba(7, 193, 96, 0.16); }
  .sheet { box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5); }
  .sheet-search input { background: #24282e; }
  .ct-item:active { background: #24282e; }
  .ct-item.on { background: rgba(7, 193, 96, 0.14); }
  .ct-avatar { background: #2a2e35; }
  .git-state { background: #24282e; border-color: #2e333a; }
  .git-state.ok { background: rgba(7, 193, 96, 0.12); border-color: rgba(7, 193, 96, 0.3); }
  .git-state.warn { background: rgba(239, 143, 0, 0.12); border-color: rgba(239, 143, 0, 0.28); }
  .git-state.fail { background: rgba(250, 81, 81, 0.12); border-color: rgba(250, 81, 81, 0.28); }
  .field select { background-color: #24282e; color: var(--text); }
  .field select:focus { background-color: #2a2f36; }
  .git-commit .gc-time { color: #5c626b; }
  .rpt-badge.wait { background: rgba(124, 92, 226, 0.18); color: #a993f0; }
  .account-meta {
    background: rgba(7, 193, 96, 0.1);
    border-color: rgba(7, 193, 96, 0.24);
  }
  .account-meta.warn {
    background: rgba(239, 143, 0, 0.12);
    border-color: rgba(239, 143, 0, 0.28);
  }
  .account-meta.warn b { color: #e8a94a; }
  .login-btn {
    background: rgba(7, 193, 96, 0.14);
    border-color: rgba(7, 193, 96, 0.32);
    color: #4fd07f;
  }
  .login-btn:active { background: rgba(7, 193, 96, 0.22); }
  .list-toolbar select { background-color: #24282e; color: var(--text); }
  .rl-item { background: #24282e; }
  .rl-item.open { background: #24282e; }
  .rl-note { background: #2a2e35; }
  .rl-note.audit { background: rgba(250, 81, 81, 0.12); color: #f57272; }
  .history-time span { color: #5c626b; }
}
