/* 辟谷页合规包装与响应式整理：不改变账号、记录和同行管理功能。 */
.fasting-contextbar {
  min-height: 52px;
  padding-inline: clamp(20px, 5vw, 74px);
  background: #fafaf7;
}

.fasting-contextbar strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.auth-shell {
  min-height: calc(100dvh - 52px);
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
}

.auth-intro {
  min-height: calc(100dvh - 52px);
  padding: clamp(34px, 4.5vw, 68px);
  background: #f1f3ed;
}

.auth-intro > div {
  padding: clamp(56px, 8vh, 92px) 0;
}

.auth-intro h1 {
  max-width: 9em;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1.13;
}

.auth-intro > div p {
  max-width: 32em;
  font-size: 15px;
}

.auth-form-section {
  align-items: start;
  padding-top: clamp(58px, 8vh, 96px);
  padding-bottom: 72px;
}

.auth-form-wrap header h2 {
  font-size: clamp(34px, 3vw, 42px);
}

.auth-google {
  margin-top: 27px;
}

.auth-form {
  gap: 17px;
  margin-top: 24px;
}

.auth-submit {
  min-height: 52px;
}

.biguan-demo-entry {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.biguan-demo-entry p,
.biguan-demo-entry small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.biguan-demo-entry button {
  width: 100%;
  min-height: 50px;
  margin: 11px 0 8px;
  border: 1px solid var(--sage-deep);
  background: transparent;
  color: var(--sage-deep);
  cursor: pointer;
}

.biguan-demo-entry button:hover {
  background: var(--sage-light);
}

.group-request-status {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--sage-deep);
  font-size: 13px;
  line-height: 1.7;
}

.group-request-status.is-error {
  color: #7b4335;
}

.group-approval-section {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-approval-section > header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.group-approval-section > header p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.group-approval-section > header h2 {
  margin: 0;
  font: 500 26px/1.35 "Sanliang Display", "PingFang SC", sans-serif;
}

.group-approval-section > header > strong {
  color: var(--sage);
  font-size: 42px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.group-approval-list article {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.group-approval-list article > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.2fr) auto;
  align-items: baseline;
  gap: 18px;
}

.group-approval-list article span,
.group-approval-list article time {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-approval-list article > div:last-child {
  display: flex;
  gap: 9px;
}

.group-approval-list button {
  min-width: 72px;
  min-height: 44px;
  border: 1px solid var(--sage-deep);
  background: transparent;
  color: var(--sage-deep);
  cursor: pointer;
}

.group-approval-list button[data-approve] {
  background: var(--sage-deep);
  color: #fff;
}

.group-approval-list button[data-reject] {
  border-color: #cbbcb3;
  color: #765344;
}

.group-approval-empty {
  margin: 0;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* 不把限制饮食清单和内部阶段判断作为公开指导展示。 */
.rules-section,
.phase-flow,
.calendar-note {
  display: none !important;
}

.content-page {
  padding-top: 66px;
}

.content-heading {
  margin-bottom: 44px;
}

.content-heading > p:last-child {
  max-width: 42em;
}

.topbar {
  height: 92px;
}

.nav-item::after {
  bottom: 17px;
}

.today-layout {
  max-width: 1320px;
  padding-top: 72px;
  grid-template-columns: 230px minmax(500px, 560px) minmax(260px, 1fr);
  gap: 42px;
}

.day-rail {
  padding-top: 164px;
  padding-left: 36px;
}

.page-heading {
  min-height: 164px;
  margin-left: -190px;
}

.group-aside {
  margin-top: 208px;
  padding-left: 32px;
}

.page-safety,
.safety-note p {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .today-layout {
    grid-template-columns: 170px minmax(480px, 1fr);
  }

  .day-rail {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .fasting-contextbar {
    min-height: 48px;
    padding-inline: 18px;
  }

  .auth-shell,
  .auth-intro {
    min-height: 0;
  }

  .auth-intro {
    padding: 20px 18px 24px;
  }

  .auth-intro > div {
    padding: 30px 0 20px;
  }

  .auth-intro h1 {
    max-width: 9em;
    font-size: clamp(34px, 10.5vw, 42px);
  }

  .auth-intro > div p {
    font-size: 13px;
    line-height: 1.75;
  }

  .auth-form-section {
    padding: 32px 18px 58px;
  }

  .auth-form-wrap header h2 {
    font-size: 33px;
  }

  .auth-role > div {
    grid-template-columns: 1fr;
  }

  .auth-role button + button {
    border-left: 0;
    border-top: 1px solid #cfcfc7;
  }

  .auth-form input {
    font-size: 16px;
  }

  .topbar {
    min-height: 118px;
  }

  .topbar nav {
    gap: 22px;
    justify-content: flex-start;
  }

  .today-layout {
    padding: 42px 18px 68px;
  }

  .page-heading {
    min-height: 0;
    margin-bottom: 38px;
  }

  .day-rail {
    padding-top: 22px;
  }

  .segment,
  .task-item,
  .primary-action {
    min-height: 50px;
  }

  .content-page {
    padding: 50px 18px 78px;
  }

  .period-editor dl > div,
  .practice-section dl > div {
    padding-inline: 0;
  }

  .group-approval-section {
    margin-top: 34px;
  }

  .group-approval-section > header {
    min-height: 88px;
  }

  .group-approval-list article {
    display: block;
    padding: 20px 0;
  }

  .group-approval-list article > div:first-child {
    display: block;
  }

  .group-approval-list article span,
  .group-approval-list article time {
    display: block;
    margin-top: 6px;
  }

  .group-approval-list article > div:last-child {
    margin-top: 17px;
  }

  .group-approval-list button {
    flex: 1;
    min-height: 48px;
  }
}

@media (max-width: 359px) {
  .auth-role > div,
  .segment-row,
  .task-row,
  .record-grid {
    grid-template-columns: 1fr;
  }
}
