:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172033;
  --sub: #5c677d;
  --line: #e5e9f2;
  --primary: #1b6fff;
  --ok: #0d9b5f;
  --warn: #d98a00;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(32, 45, 73, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #d8e7ff 0%, transparent 35%), var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px 24px;
}

.head {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.tiny {
  color: var(--sub);
  font-size: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-head h3 {
  margin: 0;
}

.week-text {
  font-size: 12px;
  color: var(--sub);
  white-space: nowrap;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.row:last-child { border-bottom: 0; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  background: #eaf0ff;
  color: #2356c9;
}

.ok { background: #e9f8f0; color: var(--ok); }
.warn { background: #fff4e5; color: var(--warn); }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

button:disabled { opacity: 0.6; }

.copy-btn {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--sub);
}

.list li:last-child { border-bottom: 0; }

.stat-subtitle {
  margin-top: 10px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #1b4fbf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.empty {
  color: var(--sub);
  font-size: 13px;
  padding: 4px 0;
}
