:root {
  color-scheme: light;
  --paper: #f3efe5;
  --paper-deep: #e8e1d3;
  --ink: #17231d;
  --ink-soft: #59645d;
  --card: #fffdf8;
  --line: rgba(23, 35, 29, 0.14);
  --green: #166b4c;
  --green-soft: #dcecdf;
  --orange: #bb5a25;
  --orange-soft: #f7e4d5;
  --deep: #163a2c;
  --deep-ink: #f5f1e8;
  --shadow: 0 24px 70px rgba(44, 47, 37, 0.11);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.92), transparent 31rem),
    radial-gradient(circle at 88% 16%, rgba(196, 218, 197, 0.65), transparent 28rem),
    linear-gradient(180deg, #f8f5ed 0%, var(--paper) 44%, #ece5d8 100%);
}

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

[hidden] {
  display: none !important;
}

.share-preview-image {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.page-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 26px 0 30px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #f8f4ea;
  background: var(--ink);
  font-family: "Songti SC", SimSun, serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-copy small,
.header-meta {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.header-meta {
  margin: 0;
  text-transform: uppercase;
}

.today-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.today-card::before {
  position: absolute;
  top: -90px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--state-glow, rgba(22, 107, 76, 0.12));
  content: "";
  filter: blur(4px);
  pointer-events: none;
}

.today-topline,
.next-heading,
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.today-date {
  margin: 0 0 5px;
  color: var(--ink);
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

.weekday {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.status-pill,
.next-state {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.today-heading {
  position: relative;
  max-width: 760px;
  margin: clamp(44px, 9vw, 90px) 0 30px;
}

.today-heading h1 {
  max-width: 830px;
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.title-greeting {
  display: inline-block;
  margin: 0 0.06em 0.14em 0;
}

.title-message {
  display: inline-block;
  white-space: nowrap;
}

.status-description {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
  text-wrap: pretty;
}

.data-warning {
  position: relative;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(187, 90, 37, 0.3);
  border-radius: 16px;
  color: #7e3a17;
  background: rgba(247, 228, 213, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.duty-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.duty-card {
  min-height: 220px;
  padding: clamp(22px, 4vw, 31px);
  border: 1px solid rgba(23, 35, 29, 0.1);
  border-radius: 24px;
}

.duty-card--floor {
  background: var(--green-soft);
}

.duty-card--trash {
  background: var(--orange-soft);
}

.card-index,
.rule-number {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.card-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.card-name {
  margin: 38px 0 10px;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.card-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.rest-note {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.rest-note p {
  flex: 0 0 auto;
  margin: 0;
}

.rest-line {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.next-card {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 28px;
  color: var(--deep-ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(161, 207, 177, 0.18), transparent 23rem),
    var(--deep);
  box-shadow: 0 18px 50px rgba(22, 58, 44, 0.18);
}

.eyebrow--light {
  color: rgba(245, 241, 232, 0.56);
}

.next-heading h2 {
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.next-state {
  border-color: rgba(245, 241, 232, 0.16);
  color: rgba(245, 241, 232, 0.76);
  background: rgba(255, 255, 255, 0.06);
}

.next-content {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(250px, 1.2fr);
  gap: 28px;
  align-items: end;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
}

.next-date {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

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

.next-people div {
  padding: 14px 16px;
  border: 1px solid rgba(245, 241, 232, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.next-people span {
  display: block;
  margin-bottom: 7px;
  color: rgba(245, 241, 232, 0.54);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.next-people strong {
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 700;
}

.next-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(245, 241, 232, 0.56);
  font-size: 13px;
  line-height: 1.65;
}

.schedule-card {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 16px 44px rgba(44, 47, 37, 0.07);
}

.schedule-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.schedule-heading h2 {
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.schedule-range {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: right;
}

.schedule-list {
  margin-top: 30px;
}

.schedule-group + .schedule-group {
  margin-top: 25px;
}

.schedule-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.schedule-group-title::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.schedule-group--today .schedule-group-title {
  color: var(--green);
}

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

.schedule-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

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

.schedule-row--today {
  margin: 2px 0;
  border: 1px solid rgba(22, 107, 76, 0.22);
  border-radius: 16px;
  background: rgba(220, 236, 223, 0.7);
}

.schedule-date {
  display: grid;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.schedule-date strong {
  font-size: 17px;
  line-height: 1.2;
}

.schedule-date span {
  color: var(--ink-soft);
  font-size: 12px;
}

.schedule-detail {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
}

.schedule-badge {
  display: inline-flex;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.schedule-badge--duty {
  color: var(--green);
  background: rgba(220, 236, 223, 0.9);
}

.schedule-badge--rest {
  color: var(--ink-soft);
  background: rgba(23, 35, 29, 0.06);
}

.schedule-badge--holiday {
  color: var(--orange);
  background: rgba(247, 228, 213, 0.9);
}

.schedule-badge--unknown {
  color: #7e3a17;
  background: rgba(247, 228, 213, 0.72);
}

.schedule-assignment {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.schedule-task {
  color: var(--ink-soft);
  white-space: nowrap;
}

.schedule-task strong {
  margin-left: 5px;
  color: var(--ink);
  font-size: 15px;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.rule {
  display: flex;
  gap: 17px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.45);
}

.rule h2 {
  margin: 0 0 7px;
  font-size: 15px;
}

.rule p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

body[data-state="rest"] {
  --state-glow: rgba(187, 90, 37, 0.12);
}

body[data-state="unknown"] {
  --state-glow: rgba(120, 90, 44, 0.12);
}

body[data-state="duty"] .status-pill {
  border-color: rgba(22, 107, 76, 0.22);
  color: var(--green);
  background: rgba(220, 236, 223, 0.78);
}

body[data-state="rest"] .status-pill {
  border-color: rgba(187, 90, 37, 0.22);
  color: var(--orange);
  background: rgba(247, 228, 213, 0.78);
}

body[data-state="unknown"] .status-pill {
  border-color: rgba(126, 58, 23, 0.2);
  color: #7e3a17;
  background: rgba(247, 228, 213, 0.7);
}

.noscript {
  margin: 16px;
  padding: 16px;
  border: 1px solid #bb5a25;
  border-radius: 12px;
  background: #fff5ec;
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 22px, 980px);
    padding-top: 16px;
  }

  .site-header {
    margin-bottom: 34px;
  }

  .header-meta {
    display: none;
  }

  .today-card {
    border-radius: 24px;
  }

  .today-topline {
    flex-wrap: wrap;
  }

  .today-heading {
    margin: 42px 0 24px;
  }

  .today-heading h1 {
    font-size: clamp(38px, 12vw, 68px);
  }

  .title-greeting {
    display: block;
    margin: 0 0 0.26em;
  }

  .duty-grid,
  .next-content,
  .rules {
    grid-template-columns: 1fr;
  }

  .duty-card {
    min-height: 176px;
  }

  .card-name {
    margin-top: 27px;
  }

  .next-content {
    gap: 18px;
    margin-top: 30px;
  }

  .next-people {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    border-radius: 24px;
  }

  .schedule-heading {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  .schedule-range {
    text-align: left;
  }

  .schedule-list {
    margin-top: 24px;
  }

  .schedule-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .schedule-date strong {
    font-size: 16px;
  }

  .schedule-detail {
    gap: 6px 9px;
  }

  .schedule-badge {
    min-width: 42px;
  }

  .schedule-assignment {
    gap: 4px 14px;
  }

  .site-footer {
    display: grid;
    gap: 7px;
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .duty-card,
  .next-card,
  .today-heading,
  .status-pill {
    transition:
      background-color 180ms ease,
      color 180ms ease,
      border-color 180ms ease;
  }
}
