:root {
  --ink: #171717;
  --muted: #68615a;
  --line: #d7d0c8;
  --paper: #fff7f4;
  --panel: #fffdf9;
  --accent: #2f7d68;
  --accent-dark: #1e5d4c;
  --gold: #d28f32;
  --night: #223049;
  --pink: #f5a7b8;
  --soft-pink: #ffe3ea;
  --mint: #dff4ea;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(245, 167, 184, 0.35), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(223, 244, 234, 0.86), transparent 30%),
    linear-gradient(315deg, rgba(210, 143, 50, 0.12), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button.ghost {
  width: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
}

button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.worktop button.ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: white;
}

.worktop button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.brand,
.worktop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 230px;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 48, 73, 0.94), rgba(47, 125, 104, 0.9) 58%, rgba(245, 167, 184, 0.78)),
    var(--night);
  color: white;
}

.brand.compact,
.worktop.compact {
  min-height: 160px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #f3c77c;
  font-weight: 700;
  letter-spacing: 0;
}

.brand h1,
.worktop h1 {
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.worktopText {
  max-width: 680px;
}

.programCard {
  display: grid;
  gap: 6px;
  width: 190px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.adminActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.programCard span {
  color: #f3c77c;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.programCard b {
  font-size: 18px;
}

.programCard small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.mascotStage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(250px, 34vw);
  flex: 0 0 auto;
}

.mascotStage img {
  display: block;
  width: min(230px, 32vw);
  filter: drop-shadow(0 18px 24px rgba(34, 48, 73, 0.24));
}

.mascotStage .programCard {
  width: 100%;
}

.lead {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.price {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #f7cf8b;
  font-size: 30px;
  font-weight: 800;
}

.price::before {
  content: "￥";
  margin-right: 2px;
  font-size: 18px;
}

.panel,
.day {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.88);
  padding: 18px;
  box-shadow: 0 14px 36px rgba(34, 48, 73, 0.08);
}

.panel h2 {
  margin-bottom: 16px;
  font-size: 21px;
}

.panelTitle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panelTitle span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--night);
  color: white;
  font-weight: 800;
}

.panelTitle h2 {
  margin-bottom: 4px;
}

.panelTitle p {
  color: var(--muted);
  line-height: 1.6;
}

.panel > label,
.panel > button,
.panel > textarea {
  margin-top: 14px;
}

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

.statusLine {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.loginShell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.loginPanel {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 26px;
  box-shadow: 0 18px 48px rgba(34, 48, 73, 0.12);
  text-align: center;
}

.loginMascot {
  width: 150px;
  max-width: 46vw;
  margin: -82px auto 8px;
  filter: drop-shadow(0 16px 24px rgba(34, 48, 73, 0.16));
}

.loginPanel .eyebrow {
  color: var(--gold);
}

.loginPanel h1 {
  margin-bottom: 12px;
  font-size: 34px;
}

.loginPanel label,
.loginPanel button {
  margin-top: 16px;
  text-align: left;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hidden {
  display: none;
}

.signalBox {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9ee;
  padding: 14px;
}

.signalBox h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.signalBox p {
  color: var(--muted);
  line-height: 1.6;
}

.chips,
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chips label,
.checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 11px;
  color: var(--ink);
  cursor: pointer;
}

.chips input,
.checks input {
  width: auto;
}

.summaryStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summaryStrip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9ee;
  padding: 12px;
}

.summaryStrip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.summaryStrip b {
  font-size: 16px;
}

.panelHead,
.dayHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.planList {
  display: grid;
  gap: 14px;
}

.day {
  margin-bottom: 0;
}

.dayHead {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.dayNo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--accent));
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(245, 167, 184, 0.28);
}

.day h3 {
  font-size: 19px;
}

.day p {
  margin-top: 10px;
  line-height: 1.7;
}

.dayGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dayGrid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, white, #fff9fb);
  padding: 12px;
}

.dayGrid b {
  color: var(--accent-dark);
}

.timing {
  color: var(--accent-dark);
  font-weight: 700;
}

.reason {
  color: var(--muted);
}

details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details label,
details button {
  margin-top: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.stat b {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 700;
}

.customerPage {
  background:
    linear-gradient(180deg, #fff6fa 0%, #fffdf9 46%, #f2fbf7 100%),
    #fffdf9;
}

.customerPage button {
  background: linear-gradient(135deg, #f38ca7, #55b999);
  box-shadow: 0 12px 26px rgba(245, 167, 184, 0.28);
}

.customerPage button:hover {
  background: linear-gradient(135deg, #e67895, #409f80);
}

.customerPage input,
.customerPage select,
.customerPage textarea {
  border-color: rgba(245, 167, 184, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.customerShell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.customerHero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.8fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(245, 167, 184, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 239, 245, 0.94) 52%, rgba(229, 248, 241, 0.96) 100%);
  box-shadow: 0 26px 80px rgba(80, 58, 72, 0.14);
}

.customerHero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: linear-gradient(90deg, #f38ca7 0 22%, #ffd580 22% 42%, #94dcca 42% 62%, #9fc5ff 62% 82%, #cdb7ff 82% 100%);
  content: "";
}

.heroCopy {
  display: grid;
  align-content: center;
  padding: 52px 42px 42px;
  z-index: 1;
}

.tinyLabel {
  color: #2f7d68;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.ticketPill {
  width: max-content;
  margin-top: 12px;
  border: 1px solid rgba(245, 167, 184, 0.62);
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  color: #8f4960;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(245, 167, 184, 0.16);
}

.heroCopy h1 {
  max-width: 600px;
  margin-top: 18px;
  font-size: 76px;
  line-height: 1.02;
  color: #2a1a21;
  letter-spacing: 0;
}

.heroLead {
  max-width: 560px;
  margin-top: 20px;
  color: #625a55;
  font-size: 18px;
  line-height: 1.8;
}

.benefitRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.benefitRow span {
  border: 1px solid rgba(245, 167, 184, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px 13px;
  color: #4d4039;
  font-size: 14px;
  font-weight: 800;
}

.benefitRow span:nth-child(2) {
  border-color: rgba(148, 220, 202, 0.72);
}

.benefitRow span:nth-child(3) {
  border-color: rgba(255, 213, 128, 0.78);
}

.benefitRow span:nth-child(4) {
  border-color: rgba(159, 197, 255, 0.7);
}

.benefitRow span:nth-child(5) {
  border-color: rgba(205, 183, 255, 0.72);
}

.heroMascot {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 42px 34px 34px 0;
}

.mascotFrame {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(390px, 38vw);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 229, 236, 0.9) 58%, rgba(220, 246, 237, 0.9) 100%);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.34),
    0 24px 48px rgba(80, 58, 72, 0.14);
}

.mascotFrame img {
  display: block;
  width: min(430px, 42vw);
  margin-bottom: -18px;
  filter: drop-shadow(0 22px 30px rgba(80, 58, 72, 0.16));
}

.sleepBubble {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  border: 1px solid rgba(47, 125, 104, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 11px 16px;
  color: #2f7d68;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(80, 58, 72, 0.12);
}

.unlockCard,
.softPanel,
.contentMap {
  margin-top: 16px;
}

.unlockCard {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  gap: 18px;
  border: 1px solid rgba(148, 220, 202, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(80, 58, 72, 0.08);
}

.unlockCard h2,
.sectionIntro h2 {
  margin-top: 6px;
  color: #2a1a21;
  font-size: 28px;
  line-height: 1.18;
}

.unlockCard p,
.sectionIntro p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.unlockForm {
  display: grid;
  gap: 12px;
}

.contentMap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.contentMap article {
  --day-color: #f38ca7;
  --day-soft: #fff2f6;
  position: relative;
  min-height: 146px;
  overflow: hidden;
  border: 1px solid var(--day-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--day-soft));
  padding: 15px;
  box-shadow: 0 14px 32px rgba(80, 58, 72, 0.07);
}

.contentMap article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--day-color);
  content: "";
}

.contentMap .mapTwo {
  --day-color: #94dcca;
  --day-soft: #eefaf6;
}

.contentMap .mapThree {
  --day-color: #ffd580;
  --day-soft: #fff8e5;
}

.contentMap .mapFour {
  --day-color: #9fc5ff;
  --day-soft: #eff5ff;
}

.contentMap .mapFive {
  --day-color: #cdb7ff;
  --day-soft: #f5f0ff;
}

.contentMap span {
  display: inline-block;
  margin-top: 10px;
  color: #5d4b52;
  font-size: 12px;
  font-weight: 900;
}

.contentMap b {
  display: block;
  margin-top: 10px;
  color: #211815;
  font-size: 18px;
}

.contentMap p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.softPanel {
  border: 1px solid rgba(245, 167, 184, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 24px;
  box-shadow: 0 20px 56px rgba(80, 58, 72, 0.08);
}

.sectionIntro {
  margin-bottom: 18px;
}

.compactIntro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.signalBox.refined,
.refinedStrip div,
.refinedDay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff9fb),
    #fff;
}

.signalBox.refined {
  border-color: rgba(148, 220, 202, 0.48);
}

.refinedStrip div {
  border-color: rgba(245, 167, 184, 0.36);
  box-shadow: 0 10px 22px rgba(80, 58, 72, 0.05);
}

.reminderBox {
  margin-bottom: 18px;
  border: 1px solid rgba(47, 125, 104, 0.28);
  border-radius: 8px;
  background: var(--mint);
  padding: 16px 18px;
}

.reminderHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reminderHead b {
  font-size: 16px;
  color: var(--accent-dark);
}

.reminderHead span {
  border: 1px solid rgba(47, 125, 104, 0.32);
  border-radius: 999px;
  background: white;
  color: var(--accent-dark);
  font-size: 13px;
  padding: 4px 12px;
}

.reminderBox p {
  margin-top: 8px;
  line-height: 1.7;
}

.reminderSteps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.rhythmPortrait {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 220, 202, 0.52);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 213, 128, 0.28), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff6fa 48%, #effaf6 100%);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(80, 58, 72, 0.08);
}

.rhythmPortrait::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #f38ca7, #ffd580, #94dcca, #9fc5ff, #cdb7ff);
  content: "";
}

.portraitHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  margin-bottom: 14px;
}

.portraitHead span,
.portraitGrid span {
  display: block;
  color: #2f7d68;
  font-size: 13px;
  font-weight: 900;
}

.portraitHead h3 {
  margin-top: 6px;
  color: #2a1a21;
  font-size: 23px;
  line-height: 1.25;
}

.portraitTags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.portraitTags b {
  border: 1px solid rgba(245, 167, 184, 0.5);
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 10px;
  color: #8f4960;
  font-size: 13px;
}

.portraitGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portraitGrid article {
  border: 1px solid rgba(245, 167, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 13px;
}

.portraitGrid p {
  margin-top: 8px;
  color: #51463f;
  font-size: 15px;
  line-height: 1.65;
}

.refinedDay {
  border-color: rgba(245, 167, 184, 0.42);
  box-shadow: 0 16px 42px rgba(80, 58, 72, 0.08);
}

.refinedDay .dayHead {
  align-items: center;
  border-bottom: 1px solid rgba(245, 167, 184, 0.26);
  padding-bottom: 12px;
}

.darkGhost {
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .shell {
    padding: 12px;
  }

  .brand {
    min-height: 210px;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .worktop {
    min-height: 210px;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .price {
    width: 76px;
    height: 76px;
    font-size: 24px;
  }

  .brand h1,
  .worktop h1 {
    font-size: 38px;
  }

  .programCard {
    width: 100%;
  }

  .mascotStage,
  .mascotStage img {
    width: 100%;
    max-width: 240px;
  }

  .adminActions {
    width: 100%;
  }

  .adminActions button {
    flex: 1;
  }

  .grid.two,
  .grid.three,
  .stats,
  .summaryStrip,
  .dayGrid {
    grid-template-columns: 1fr;
  }

  .panelHead {
    align-items: flex-start;
    flex-direction: column;
  }

  .customerShell {
    padding: 12px;
  }

  .customerHero,
  .unlockCard {
    grid-template-columns: 1fr;
  }

  .customerHero {
    min-height: auto;
  }

  .heroCopy {
    padding: 26px 20px 10px;
  }

  .heroCopy h1 {
    font-size: 42px;
  }

  .heroLead {
    font-size: 16px;
  }

  .heroMascot {
    padding: 0 16px 22px;
  }

  .mascotFrame {
    width: 100%;
    min-height: 310px;
  }

  .mascotFrame img {
    width: min(300px, 90vw);
    margin-bottom: -8px;
  }

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

  .softPanel {
    padding: 18px;
  }

  .compactIntro {
    flex-direction: column;
  }

  .portraitHead {
    flex-direction: column;
  }

  .portraitTags {
    justify-content: flex-start;
  }

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

.dayLead {
  margin-top: 12px;
  color: #6d5f58;
  font-size: 15px;
  line-height: 1.7;
}

.dayStamp {
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 167, 184, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  color: #8f4960;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.dayStamp.stamped {
  border-color: rgba(47, 125, 104, 0.42);
  background: var(--mint);
  color: var(--accent-dark);
}

.dayStamp.today {
  border-color: rgba(210, 143, 50, 0.5);
  background: #fff3dd;
  color: #9a6614;
}

.dayContent {
  border-top: 1px dashed rgba(245, 167, 184, 0.4);
}

.dayContent summary {
  color: #8f4960;
  font-size: 14px;
}

.dayBlock {
  margin-top: 14px;
}

.dayBlock > b {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 15px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(245, 167, 184, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff9fb);
  padding: 10px 12px;
}

.timeline i {
  font-style: normal;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.timeline p {
  margin: 0;
  color: #51463f;
  font-size: 14px;
  line-height: 1.65;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: #51463f;
  font-size: 14px;
  line-height: 1.9;
}

.steps li::marker {
  color: #e0789a;
  font-weight: 800;
}

@media (max-width: 720px) {
  .timeline li {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
  }
}

/* ===== 20260914 完善：隐私告知、站点页脚、后台留存/导出/作废 ===== */
.privacyConsent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  background: #fff9ee;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
}
.privacyConsent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.siteFooter {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  padding: 22px 16px 34px;
}
.siteFooter p {
  margin: 2px 0;
}

.retentionBar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 180px;
  padding: 18px 8px 4px;
}
.retentionCol {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 168px;
}
.retentionCount {
  font-weight: 700;
  color: var(--accent-dark);
}
.retentionTrack {
  width: 70%;
  max-width: 56px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: #f4efe9;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.retentionFill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 8px 8px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}
.retentionDay {
  font-size: 12px;
  color: var(--muted);
}
.exportRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.exportRow button {
  min-width: 110px;
}
.revokeBtn {
  background: #fff;
  color: #b3402e;
  border: 1px solid #d98b7e;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}
.revokeBtn:hover {
  background: #fdeee9;
}
@media (max-width: 720px) {
  .retentionBar {
    gap: 8px;
  }
  .exportRow button {
    min-width: calc(50% - 6px);
  }
}

/* === 记录Tab切换（十二时辰 / 日常作息） === */
.recordTabs { margin-top: 20px; border: 1px solid #e8e0f0; border-radius: 14px; overflow: hidden; background: #faf8fc; }
.recordTabBar { display: flex; border-bottom: 1px solid #e8e0f0; background: #fff; }
.recordTab { flex: 1; padding: 12px 8px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: #8a7f94; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.recordTab:hover { background: #f5f0fa; }
.recordTab.active { color: #5b3a7a; background: #f3ecf9; box-shadow: inset 0 -2px 0 #8b5cf6; }
.recordTab .tabCount { font-size: 12px; font-weight: 500; background: #ece4f5; color: #7a6b8a; padding: 1px 7px; border-radius: 10px; }
.recordTab.active .tabCount { background: #8b5cf6; color: #fff; }
.recordTabContent { padding: 0; }
.tabPanel { display: none; }
.tabPanel.active { display: block; }
@media (max-width: 480px) {
  .recordTab { font-size: 13px; padding: 10px 4px; }
  .recordTab .tabCount { font-size: 11px; padding: 1px 5px; }
}

/* === 打卡成功鼓励Toast === */
.checkinToast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #5b3a7a 0%, #8b5cf6 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(91, 58, 122, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  line-height: 1.5;
}
.checkinToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px) {
  .checkinToast { font-size: 13px; padding: 12px 18px; top: 12px; }
}

/* === 顶部进度条 === */
.progressStrip { margin: 16px 0 4px; padding: 0 4px; }
.progressLabel { font-size: 13px; font-weight: 600; color: #5b3a7a; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.progressBar { height: 8px; background: #ece4f5; border-radius: 4px; overflow: hidden; }
.progressFill { height: 100%; background: linear-gradient(90deg, #8b5cf6 0%, #d4a574 100%); border-radius: 4px; transition: width 0.5s ease; }
@media (max-width: 480px) {
  .progressStrip { margin: 12px 0 2px; }
  .progressLabel { font-size: 12px; }
  .progressBar { height: 6px; }
}

/* === 体感自评折叠 === */
.signalExtra.hidden { display: none; }
.signalToggle { margin-top: 8px; font-size: 13px; padding: 6px 14px; color: #7a6b8a; border: 1px solid #d8cfe5; background: #faf8fc; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.signalToggle:hover { background: #f3ecf9; color: #5b3a7a; border-color: #b8a5d4; }
@media (max-width: 480px) {
  .signalToggle { font-size: 12px; padding: 5px 12px; }
}

/* === 合并后的今日节奏与行动 === */
.stepsMerged { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #d8cfe5; list-style: none; padding-left: 0; }
.stepsMerged li { position: relative; padding: 8px 12px 8px 36px; margin-bottom: 6px; background: #faf7fc; border-radius: 8px; font-size: 14px; line-height: 1.6; color: #4a3f55; }
.stepsMerged li::before { content: attr(data-step); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background: #8b5cf6; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 480px) {
  .stepsMerged li { font-size: 13px; padding: 7px 10px 7px 32px; }
  .stepsMerged li::before { width: 18px; height: 18px; font-size: 11px; left: 8px; }
}

/* === Day1 上手指引 === */
.onboardingGuide { margin: 16px 0; padding: 20px; background: linear-gradient(135deg, #faf7fc 0%, #f5f0fa 100%); border: 1px solid #e0d5f0; border-radius: 16px; position: relative; }
.onboardingTitle { font-size: 16px; font-weight: 700; color: #5b3a7a; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.onboardingTitle::before { content: '👋'; font-size: 18px; }
.onboardingSteps { list-style: none; padding: 0; margin: 0 0 16px 0; }
.onboardingSteps li { padding: 6px 0; font-size: 14px; line-height: 1.6; color: #4a3f55; border-bottom: 1px dashed #e0d5f0; }
.onboardingSteps li:last-child { border-bottom: 0; }
.onboardingSteps li b { color: #5b3a7a; margin-right: 4px; }
.onboardingClose { display: block; width: 100%; padding: 10px; background: linear-gradient(135deg, #5b3a7a 0%, #8b5cf6 100%); color: #fff; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.onboardingClose:hover { opacity: 0.9; }
@media (max-width: 480px) {
  .onboardingGuide { padding: 16px; }
  .onboardingTitle { font-size: 15px; }
  .onboardingSteps li { font-size: 13px; }
  .onboardingClose { font-size: 13px; padding: 9px; }
}

/* === 备案号链接 === */
.siteFooter .beianLink { color: #8a7f94; text-decoration: none; font-size: 12px; transition: color 0.2s; }
.siteFooter .beianLink:hover { color: #5b3a7a; text-decoration: underline; }
