/* ---------- 员工端 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  background: var(--card);
  border-radius: 15px;
  padding: 12px 12px 11px;
  box-shadow: var(--shadow);
}

.stat .k {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}

.stat .v {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.stat .v small {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  margin-left: 2px;
}

.stat.warn .v {
  color: var(--warn);
}

.stat.ok .v {
  color: var(--ok);
}

/* 时段网格外的尾巴信息 */
.tail-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: #a1432c;
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

.tail-note .i {
  flex: 0 0 auto;
}

/* 已选摘要 */
.my-today {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--ok-soft);
  margin-bottom: 12px;
}

.my-today .txt {
  flex: 1;
  font-size: 13px;
  color: #0b6b4e;
  font-weight: 600;
}

/* 我的记录卡片 */
.record-tabs {
  display: flex;
  gap: 6px;
  background: #f2f3f8;
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 4px;
}

.record-tabs button {
  flex: 1;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
}

.record-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 24, 50, 0.08);
}

.cancel-btn {
  flex: 0 0 auto;
  align-self: center;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--danger-soft);
}

.cancel-btn.dead {
  color: var(--ink-3);
  background: #f2f3f7;
  cursor: not-allowed;
}

/* 登录页 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  max-width: 440px;
  margin: 0 auto;
}

.login-logo {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 14px 30px rgba(91, 75, 255, 0.3);
  margin-bottom: 20px;
}

.login-h {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.3;
}

.login-p {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 26px;
}

.err-box {
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: #b42828;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.feishu-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}

/* 桌面端：左「选日期+时段」，右「我的预约」+提示 */
@media (min-width: 900px) {
  .lane {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .lane > .col {
    min-width: 0;
  }
  .lane > .col > .card:only-child {
    margin-bottom: 0;
  }
}

/* 底部固定条占位，避免遮挡最后一块内容 */
@media (max-width: 899px) {
  .shell {
    padding-bottom: calc(190px + var(--safe-b)) !important;
  }
}
