:root {
  --ink: #173d39;
  --ink-2: #245b53;
  --ink-3: #377066;
  --paper: #f7f3ea;
  --paper-2: #fffdf8;
  --mint: #dcece5;
  --mint-2: #eef6f1;
  --peach: #d98b68;
  --peach-2: #f2d2be;
  --gold: #f7dfa9;
  --blush: #f4cbd3;
  --lilac: #d9d0ef;
  --powder: #cfe6e2;
  --muted: #6f7d78;
  --line: rgba(23, 61, 57, 0.12);
  --shadow: 0 24px 65px rgba(30, 56, 50, 0.1);
  --shadow-soft: 0 12px 35px rgba(30, 56, 50, 0.07);
  --radius: 26px;
  --sidebar: 238px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(220, 236, 229, 0.65), transparent 30rem),
    var(--paper);
}

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

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

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

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--peach);
  font-style: normal;
}

h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  font-size: 16px;
}

p,
li {
  line-height: 1.65;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--peach);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 28px 20px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 13rem),
    var(--ink);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.brand {
  margin: 0 8px 42px;
  color: #fff;
}

.brand strong,
.mobile-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.brand small,
.mobile-brand small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-symbol {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--peach), #f0bb8d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-symbol i {
  position: absolute;
  width: 27px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.brand-symbol i:first-child {
  transform: translateY(-7px) rotate(8deg);
}

.brand-symbol i:nth-child(2) {
  width: 21px;
}

.brand-symbol i:last-child {
  transform: translateY(7px) rotate(-8deg);
}

.brand-symbol.mini {
  width: 35px;
  height: 35px;
  border-radius: 12px;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.68);
  text-align: left;
  background: transparent;
  transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item span {
  color: var(--gold);
  font-size: 17px;
}

.nav-item .nav-glyph {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 15px;
  background: var(--gold);
  box-shadow: 0 4px 12px rgba(8, 32, 29, 0.2);
}

.nav-item[data-view-link="home"] .nav-glyph {
  background: #f7dfb7;
}

.nav-item[data-view-link="tasks"] .nav-glyph {
  background: var(--blush);
}

.nav-item[data-view-link="achievements"] .nav-glyph {
  background: var(--lilac);
}

.nav-item[data-view-link="data"] .nav-glyph {
  background: var(--powder);
}

.sidebar-card {
  margin-top: auto;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.sidebar-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.founder {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 8px 0;
}

.avatar {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 800;
  background: var(--gold);
}

.founder strong,
.founder small {
  display: block;
}

.founder small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 0 42px 70px;
}

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.mobile-brand {
  display: none;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.ready-pill,
.consent-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  background: var(--mint);
}

.ready-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e9d79;
  box-shadow: 0 0 0 4px rgba(78, 157, 121, 0.12);
}

.view {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 54px;
  animation: view-in 300ms ease;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

.panel {
  border: 1px solid rgba(23, 61, 57, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
}

.panel-heading,
.hero-row,
.page-heading,
.star-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.hero-row {
  align-items: flex-end;
  margin-bottom: 38px;
}

.hero-row h1 {
  margin-bottom: 15px;
}

.hero-row .lead {
  margin-bottom: 0;
}

.hero-action {
  flex: none;
  margin-bottom: 12px;
}

.primary-button,
.secondary-button,
.quiet-button,
.danger-button,
.share-button {
  min-height: 45px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  transition: 180ms ease;
}

.primary-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 61, 57, 0.18);
}

.primary-button:hover,
.share-button:hover {
  transform: translateY(-2px);
}

.primary-button span {
  margin-left: 8px;
}

.primary-button.wide {
  width: 100%;
}

.secondary-button {
  color: var(--ink);
  background: var(--gold);
}

.quiet-button {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
}

.quiet-button.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quiet-button.compact {
  min-height: 36px;
  padding: 0 12px;
}

.danger-button {
  color: #9b3e38;
  background: #f8e5df;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}

.icon-button.active {
  color: #fff;
  background: var(--ink-2);
}

.text-button {
  padding: 5px 0;
  border: 0;
  color: var(--peach);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 20px;
  align-items: stretch;
}

.today-card {
  min-height: 650px;
  padding: 30px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.task-meta span,
.why-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  background: var(--mint-2);
}

.task-intro {
  margin-bottom: 16px;
  color: #465f59;
  font-size: 14px;
  line-height: 1.75;
}

.task-intro b {
  color: var(--ink);
}

.say-example {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border-left: 4px solid var(--peach);
  border-radius: 4px 15px 15px 4px;
  background: #fbede5;
}

.say-example small {
  color: #9a6553;
  font-size: 9px;
  font-weight: 700;
}

.say-example strong {
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 500;
}

.task-do-title {
  margin: 20px 0 0;
  font-size: 12px;
}

.task-steps {
  display: grid;
  gap: 13px;
  margin: 13px 0 18px;
  padding: 0;
  list-style: none;
}

.task-steps li {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 12px;
  align-items: start;
  color: #465f59;
  font-size: 13px;
}

.task-steps li b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  font-size: 11px;
  background: var(--mint);
}

.task-finish {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: center;
  margin-bottom: 22px;
  padding: 13px 14px;
  border-radius: 15px;
  background: var(--mint-2);
}

.task-finish i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  background: var(--ink-2);
}

.task-finish p,
.task-finish b,
.task-finish span {
  display: block;
  margin: 0;
}

.task-finish b {
  color: var(--ink);
  font-size: 10px;
}

.task-finish span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.task-actions,
.data-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.star-card {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(248, 226, 186, 0.23), transparent 17rem),
    radial-gradient(circle at 5% 95%, rgba(217, 139, 104, 0.28), transparent 20rem),
    linear-gradient(145deg, #173d39, #245d54 72%, #7c5d4d);
  box-shadow: 0 28px 70px rgba(23, 61, 57, 0.23);
}

.share-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.star-card h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.25;
}

.week-stamp {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.constellation {
  position: relative;
  min-height: 350px;
  margin: 12px 0 4px;
}

.home-word-preview {
  display: flex;
  min-height: 280px;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 18px;
}

.home-word-preview > p {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.home-word-star {
  position: relative;
  display: grid;
  min-width: 82px;
  min-height: 72px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  text-align: center;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 30px rgba(248, 226, 186, 0.08);
}

.home-word-star:nth-child(even) {
  transform: translateY(16px);
}

.home-word-star i,
.home-word-star b {
  display: block;
}

.home-word-star i {
  color: rgba(248, 226, 186, 0.72);
  font-style: normal;
}

.home-word-star b {
  max-width: 70px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-word-star.bright {
  border-color: rgba(248, 226, 186, 0.48);
  background: rgba(248, 226, 186, 0.12);
  box-shadow:
    0 0 0 8px rgba(248, 226, 186, 0.035),
    0 0 34px rgba(248, 226, 186, 0.22);
}

.star-line {
  position: absolute;
  z-index: 0;
  display: block;
  height: 1px;
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.12);
}

.star-line.lit {
  height: 2px;
  background: linear-gradient(90deg, rgba(248, 226, 186, 0.9), rgba(248, 226, 186, 0.35));
  box-shadow: 0 0 15px rgba(248, 226, 186, 0.34);
}

.language-star {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 94px;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  transform: translate(-50%, -50%);
}

.language-star i {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.28);
  font-size: 18px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.05);
}

.language-star b {
  margin-top: 6px;
  color: inherit;
  font-size: 10px;
}

.language-star small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
}

.language-star.lit {
  color: #fff;
}

.language-star.lit i {
  border-color: rgba(248, 226, 186, 0.42);
  color: var(--gold);
  background: rgba(248, 226, 186, 0.14);
  box-shadow:
    0 0 0 7px rgba(248, 226, 186, 0.05),
    0 0 30px rgba(248, 226, 186, 0.42);
}

.language-star.depth-2 i {
  box-shadow:
    0 0 0 9px rgba(248, 226, 186, 0.07),
    0 0 34px rgba(248, 226, 186, 0.5);
}

.language-star.depth-3 i {
  background: rgba(248, 226, 186, 0.24);
  box-shadow:
    0 0 0 11px rgba(248, 226, 186, 0.09),
    0 0 40px rgba(248, 226, 186, 0.58);
}

.constellation-core {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(248, 226, 186, 0.45);
  border-radius: 50%;
  color: var(--ink);
  text-align: center;
  background: var(--gold);
  box-shadow: 0 0 0 10px rgba(248, 226, 186, 0.06);
  transform: translate(-50%, -50%);
}

.constellation-core i,
.constellation-core b,
.constellation-core small {
  display: block;
}

.constellation-core i {
  margin-bottom: 2px;
  font-style: normal;
}

.constellation-core b {
  font-size: 11px;
}

.constellation-core small {
  margin-top: 3px;
  font-size: 8px;
  opacity: 0.68;
}

.language-star.just-lit i {
  animation: star-burst 900ms ease;
}

@keyframes star-burst {
  0% {
    transform: scale(0.4) rotate(-25deg);
    box-shadow: 0 0 0 0 rgba(248, 226, 186, 0.7);
  }
  55% {
    transform: scale(1.35) rotate(8deg);
    box-shadow: 0 0 0 22px rgba(248, 226, 186, 0);
  }
}

.tiny-star {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
}

.tiny-star.a {
  left: 7%;
  top: 18%;
}

.tiny-star.b {
  right: 9%;
  top: 22%;
}

.tiny-star.c {
  left: 55%;
  bottom: 5%;
}

.star-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.star-summary div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.star-summary strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 500;
}

.star-summary span,
.star-summary p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.family-achievements {
  display: flex;
  min-height: 48px;
  gap: 7px;
  align-items: stretch;
  margin-top: 12px;
}

.family-achievements > span {
  display: grid;
  flex: 1;
  grid-template-columns: auto 1fr;
  gap: 0 7px;
  align-content: center;
  padding: 9px 11px;
  border: 1px solid rgba(248, 226, 186, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.family-achievements i {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--gold);
  font-style: normal;
}

.family-achievements small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
}

.family-achievements b {
  color: #fff;
  font-size: 9px;
}

.family-achievements p {
  align-self: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  line-height: 1.55;
}

.star-summary p {
  margin: 0;
  text-align: right;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.share-button {
  color: var(--ink);
  background: var(--gold);
}

.sound-inline {
  padding: 0 8px;
  border: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  background: transparent;
}

.week-panel {
  display: grid;
  grid-template-columns: 1fr minmax(430px, 0.9fr);
  gap: 30px;
  align-items: center;
  margin-top: 20px;
  padding: 25px 30px;
}

.achievement-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.achievement-page-grid.merged-achievement-guide {
  grid-template-columns: 1fr;
}

.star-words-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 30px;
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 255, 255, 0.72), transparent 11rem),
    radial-gradient(circle at 8% 110%, rgba(244, 203, 211, 0.48), transparent 18rem),
    linear-gradient(135deg, #fdf8f2, #f1ecfa 54%, #e7f3ef);
}

.star-words-panel::after {
  position: absolute;
  right: 34px;
  top: 18px;
  color: rgba(185, 132, 120, 0.25);
  font-family: Georgia, serif;
  font-size: 64px;
  content: "✦";
  pointer-events: none;
}

.star-words-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.star-words-heading h2 {
  margin: 6px 0 4px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 34px;
  font-weight: 500;
}

.star-words-heading p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.star-words-action {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}

.star-words-action > span {
  display: grid;
  min-width: 76px;
  justify-items: center;
  padding: 7px 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
}

.star-words-action strong {
  color: var(--peach);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.star-words-action small {
  color: var(--muted);
  font-size: 8px;
}

.star-word-sky {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-height: 106px;
  margin-top: 22px;
}

.star-word-card {
  position: relative;
  display: grid;
  min-height: 106px;
  align-content: center;
  justify-items: center;
  padding: 18px 8px 12px;
  border: 1px solid rgba(185, 132, 120, 0.16);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 9px 26px rgba(30, 56, 50, 0.06);
}

.star-word-card > i {
  color: #d49b73;
  font-size: 19px;
  font-style: normal;
  text-shadow: 0 0 16px rgba(247, 223, 169, 0.95);
}

.star-word-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin-top: 2px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-word-card > span {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 8px;
}

.star-word-card > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.star-word-more {
  display: grid;
  min-height: 106px;
  place-content: center;
  gap: 5px;
  border: 1px dashed rgba(185, 132, 120, 0.3);
  border-radius: 22px;
  color: var(--ink-3);
  font-size: 10px;
  background: rgba(255, 253, 248, 0.58);
}

.star-word-more i {
  color: #d49b73;
  font-size: 19px;
  font-style: normal;
}

.star-word-more:hover,
.star-word-more:focus-visible {
  border-color: rgba(185, 132, 120, 0.62);
  background: rgba(255, 253, 248, 0.9);
}

.star-word-remove {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 50%;
  color: rgba(23, 61, 57, 0.42);
  font-size: 12px;
  background: transparent;
}

.star-word-remove:hover,
.star-word-remove:focus-visible {
  color: var(--ink);
  background: rgba(23, 61, 57, 0.07);
}

.star-word-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px dashed rgba(23, 61, 57, 0.16);
  border-radius: 22px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.35);
}

.star-word-empty i {
  color: var(--peach);
  font-size: 26px;
  font-style: normal;
}

.star-word-empty b,
.star-word-empty small {
  display: block;
}

.star-word-empty small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 400;
}

.word-constellation-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  color: #fffaf2;
  background:
    radial-gradient(circle at 18% 20%, rgba(248, 210, 157, 0.18), transparent 23%),
    radial-gradient(circle at 82% 72%, rgba(200, 120, 88, 0.19), transparent 25%),
    linear-gradient(145deg, #173d39 0%, #23564f 58%, #3e514b 100%);
  box-shadow: 0 24px 55px rgba(23, 61, 57, 0.2);
}

.word-constellation-panel::before,
.word-constellation-panel::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: #f7dba7;
  box-shadow:
    82px 28px rgba(255, 255, 255, 0.48),
    212px 84px rgba(247, 219, 167, 0.5),
    396px 32px rgba(255, 255, 255, 0.35),
    528px 116px rgba(255, 255, 255, 0.55),
    684px 40px rgba(247, 219, 167, 0.4),
    804px 134px rgba(255, 255, 255, 0.38);
  opacity: 0.75;
}

.word-constellation-panel::before {
  left: 8%;
  top: 18%;
}

.word-constellation-panel::after {
  right: 12%;
  bottom: 16%;
  transform: rotate(180deg);
}

.word-constellation-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.word-constellation-heading .eyebrow {
  color: rgba(248, 226, 186, 0.78);
}

.word-constellation-heading h3 {
  margin: 5px 0 4px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 24px;
  font-weight: 600;
}

.word-constellation-heading p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  line-height: 1.7;
}

.word-constellation-heading .quiet-button {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.08);
}

.word-connection-stage {
  position: relative;
  z-index: 2;
  min-height: 350px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 226, 186, 0.08), transparent 34%),
    rgba(4, 30, 29, 0.22);
}

.word-connection-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.word-link-line {
  fill: none;
  stroke: rgba(248, 226, 186, 0.46);
  stroke-linecap: round;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(247, 219, 167, 0.55));
}

.word-link-line.is-new {
  stroke: #f7dba7;
  stroke-dasharray: 10 12;
  stroke-width: 3;
  animation: star-route 1.6s linear infinite, draw-route 1.1s ease-out both;
}

.word-link-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  display: grid;
  width: 78px;
  min-height: 68px;
  place-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.24), transparent 30%),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.025),
    0 0 28px rgba(247, 219, 167, 0.12);
  backdrop-filter: blur(7px);
}

.word-link-node::before {
  position: absolute;
  left: 50%;
  top: -7px;
  color: #f7dba7;
  font-size: 15px;
  content: "✦";
  transform: translateX(-50%);
  text-shadow: 0 0 14px #f7dba7;
}

.word-link-node b {
  display: block;
  max-width: 66px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-link-node small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 7px;
}

.word-link-node.is-connected {
  border-color: rgba(248, 226, 186, 0.68);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.38), transparent 30%),
    rgba(200, 120, 88, 0.22);
  box-shadow:
    0 0 0 9px rgba(248, 226, 186, 0.045),
    0 0 34px rgba(247, 219, 167, 0.32);
}

.word-link-node.is-celebrating {
  animation: node-bloom 1.8s ease-out both;
}

.word-connection-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  max-width: 54%;
  place-items: center;
  padding: 13px 20px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(248, 226, 186, 0.34);
  border-radius: 999px;
  text-align: center;
  background: rgba(10, 43, 40, 0.76);
  box-shadow: 0 10px 32px rgba(4, 24, 23, 0.25);
  backdrop-filter: blur(10px);
}

.word-connection-banner span {
  color: rgba(248, 226, 186, 0.68);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.word-connection-banner strong {
  margin-top: 3px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 15px;
  font-weight: 600;
}

.word-connection-banner.is-new {
  animation: phrase-reveal 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.star-scene-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  width: min(300px, 42%);
  justify-items: center;
  transform: translate(-50%, -50%);
}

.star-scene-visual {
  position: relative;
  width: 100%;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid rgba(248, 226, 186, 0.3);
  border-radius: 34px;
  background:
    radial-gradient(circle at 72% 20%, rgba(247, 219, 167, 0.2), transparent 28%),
    linear-gradient(160deg, rgba(24, 78, 70, 0.92), rgba(8, 42, 40, 0.88));
  box-shadow:
    0 18px 45px rgba(4, 24, 23, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.12);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.star-scene-shell.is-new .star-scene-visual {
  animation: scene-arrive 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.star-scene-object,
.star-scene-character {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 48px;
  line-height: 1;
  background: rgba(255, 253, 247, 0.88);
  box-shadow:
    0 10px 25px rgba(4, 24, 23, 0.25),
    0 0 28px rgba(247, 219, 167, 0.18);
}

.star-scene-object.left {
  left: 15%;
  top: 42px;
}

.star-scene-object.right {
  right: 15%;
  top: 42px;
}

.star-scene-track {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 35px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(247, 219, 167, 0.75), transparent);
  box-shadow: 0 0 12px rgba(247, 219, 167, 0.42);
}

.star-scene-track::before,
.star-scene-track::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #fff2d0;
  box-shadow: 0 0 12px #f7dba7;
}

.star-scene-track::before {
  left: 18%;
}

.star-scene-track::after {
  right: 18%;
}

.star-scene-character {
  left: 19%;
  bottom: 38px;
}

.star-scene-action-mark {
  position: absolute;
  left: 54%;
  top: 48px;
  z-index: 2;
  color: #fff2d0;
  font-size: 38px;
  font-style: normal;
  opacity: 0.72;
  text-shadow: 0 0 16px rgba(247, 219, 167, 0.72);
}

.star-scene-moon {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(248, 226, 186, 0.66);
  box-shadow: 0 0 24px rgba(247, 219, 167, 0.52);
}

.star-scene-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126px;
  height: 80px;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 1px dashed rgba(247, 219, 167, 0.52);
  border-radius: 50%;
}

.scene-descriptor .star-scene-character {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.star-scene-descriptor-mark {
  position: absolute;
  right: 29%;
  top: 25px;
  z-index: 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #173d39;
  font-size: 20px;
  background: #f8e2ba;
  box-shadow: 0 0 18px rgba(247, 219, 167, 0.7);
}

.star-scene-bridge-route {
  position: absolute;
  left: 34%;
  right: 34%;
  top: 78px;
  height: 24px;
  border-top: 3px solid rgba(247, 219, 167, 0.82);
  border-radius: 50%;
  box-shadow: 0 -5px 15px rgba(247, 219, 167, 0.38);
}

.star-scene-bridge-route::after {
  position: absolute;
  left: 50%;
  top: -10px;
  content: "✦";
  color: #fff2d0;
  transform: translateX(-50%);
  text-shadow: 0 0 14px #f7dba7;
}

.star-scene-heart {
  position: absolute;
  left: 50%;
  top: 70px;
  z-index: 4;
  color: #fff2d0;
  font-size: 26px;
  font-style: normal;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 18px #f7dba7;
}

.star-scene-replay {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.star-scene-replay:hover,
.star-scene-replay:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.star-scene-visual.is-celebrating .star-scene-character.motion-run {
  animation: visual-run 1.75s cubic-bezier(0.35, 0, 0.28, 1) both;
}

.star-scene-visual.is-celebrating .star-scene-action-mark.motion-run {
  animation: visual-trail 1.6s ease-out both;
}

.star-scene-visual.is-celebrating .star-scene-character.motion-jump {
  animation: visual-jump 1.55s ease-in-out both;
}

.star-scene-visual.is-celebrating .star-scene-character.motion-eat,
.star-scene-visual.is-celebrating .star-scene-character.motion-drink,
.star-scene-visual.is-celebrating .star-scene-character.motion-hug,
.star-scene-visual.is-celebrating .star-scene-character.motion-look,
.star-scene-visual.is-celebrating .star-scene-character.motion-reach {
  animation: visual-nod 1.45s ease-in-out both;
}

.star-scene-visual.is-celebrating .star-scene-character.motion-sleep,
.star-scene-visual.is-celebrating .star-scene-character.motion-float,
.star-scene-visual.is-celebrating .star-scene-character.motion-think,
.star-scene-visual.is-celebrating .star-scene-character.motion-feel {
  animation: visual-float 1.9s ease-in-out both;
}

.star-scene-visual.is-celebrating .star-scene-character.motion-grow {
  animation: visual-grow 1.5s ease-out both;
}

.star-scene-visual.is-celebrating .star-scene-character.motion-small {
  animation: visual-small 1.5s ease-out both;
}

.star-scene-visual.is-celebrating .star-scene-object.left {
  animation: visual-meet-left 1.35s ease-out both;
}

.star-scene-visual.is-celebrating .star-scene-object.right {
  animation: visual-meet-right 1.35s ease-out both;
}

.star-word-visual-celebration {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 160;
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 46%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), rgba(247, 226, 198, 0.92) 42%, rgba(23, 61, 57, 0.94) 100%);
  box-shadow:
    0 32px 100px rgba(5, 31, 29, 0.38),
    0 0 0 9999px rgba(8, 33, 31, 0.22);
  animation: visual-celebration 2.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.star-word-visual-celebration .visual-halo {
  position: absolute;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(200, 120, 88, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.12),
    0 0 42px rgba(247, 219, 167, 0.72);
  animation: visual-halo 1.8s ease-out both;
}

.star-word-visual-celebration .visual-glyph {
  z-index: 2;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 86px;
  line-height: 1;
  filter: drop-shadow(0 12px 18px rgba(30, 56, 50, 0.2));
  animation: visual-glyph-bloom 1.65s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.star-word-visual-celebration .visual-star {
  position: absolute;
  color: #fff7df;
  font-style: normal;
  text-shadow: 0 0 15px #f7dba7;
  animation: visual-star-flight 1.5s ease-out both;
}

.star-word-visual-celebration .visual-star.one {
  left: 28px;
  top: 44px;
}

.star-word-visual-celebration .visual-star.two {
  right: 32px;
  top: 30px;
  animation-delay: 0.08s;
}

.star-word-visual-celebration .visual-star.three {
  right: 42px;
  bottom: 32px;
  animation-delay: 0.16s;
}

.star-word-visual-celebration.is-repeat {
  animation-duration: 1.85s;
}

.word-link-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  background: #fff4d9;
  box-shadow: 0 0 16px #f7dba7;
  animation: spark-flight 1.15s ease-out var(--spark-delay) both;
}

.word-connection-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(430px, 80%);
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
}

.word-connection-empty i {
  display: block;
  margin-bottom: 8px;
  color: #f7dba7;
  font-size: 28px;
  font-style: normal;
  text-shadow: 0 0 24px rgba(247, 219, 167, 0.75);
}

.word-link-suggestions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.word-link-suggestion {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.word-link-suggestion small {
  color: rgba(248, 226, 186, 0.62);
  font-size: 7px;
}

.word-link-suggestion b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-link-suggestion:hover,
.word-link-suggestion:focus-visible {
  border-color: rgba(248, 226, 186, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.word-link-dialog .star-word-input {
  margin-top: 18px;
}

@keyframes star-route {
  to {
    stroke-dashoffset: -44;
  }
}

@keyframes draw-route {
  from {
    opacity: 0;
    stroke-dashoffset: 180;
  }
  to {
    opacity: 1;
  }
}

@keyframes node-bloom {
  0% {
    transform: translate(-50%, -50%) scale(0.78);
  }
  45% {
    transform: translate(-50%, -50%) scale(1.16);
    box-shadow:
      0 0 0 18px rgba(248, 226, 186, 0.08),
      0 0 58px rgba(247, 219, 167, 0.72);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes phrase-reveal {
  from {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes spark-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(0) scale(0.4);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(var(--spark-distance)) scale(0);
  }
}

@keyframes scene-arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes visual-run {
  0% {
    left: 8%;
    transform: translateY(0) rotate(-4deg);
  }
  18% {
    transform: translateY(-8px) rotate(3deg);
  }
  42% {
    transform: translateY(0) rotate(-3deg);
  }
  68% {
    transform: translateY(-7px) rotate(3deg);
  }
  100% {
    left: 61%;
    transform: translateY(0) rotate(0);
  }
}

@keyframes visual-trail {
  0% {
    opacity: 0;
    transform: translateX(-25px) scale(0.5);
  }
  45% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(52px) scale(1.15);
  }
}

@keyframes visual-jump {
  0%,
  100% {
    left: 24%;
    transform: translateY(0) rotate(0);
  }
  50% {
    left: 52%;
    transform: translateY(-48px) rotate(8deg);
  }
}

@keyframes visual-nod {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  34% {
    transform: translateY(-8px) rotate(-4deg);
  }
  68% {
    transform: translateY(2px) rotate(4deg);
  }
}

@keyframes visual-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes visual-grow {
  0% {
    transform: translate(-50%, -50%) scale(0.72);
  }
  72% {
    transform: translate(-50%, -50%) scale(1.22);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes visual-small {
  0% {
    transform: translate(-50%, -50%) scale(1.15);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.76);
  }
}

@keyframes visual-meet-left {
  from {
    transform: translateX(-22px) scale(0.88);
    opacity: 0.45;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes visual-meet-right {
  from {
    transform: translateX(22px) scale(0.88);
    opacity: 0.45;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes visual-celebration {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.68);
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -54%) scale(1.06);
  }
}

@keyframes visual-halo {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 0.18;
    transform: scale(1.26);
  }
}

@keyframes visual-glyph-bloom {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.55) rotate(-8deg);
  }
  58% {
    opacity: 1;
    transform: translateY(-6px) scale(1.08) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes visual-star-flight {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.4);
  }
  42% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-34px) scale(1.3);
  }
}

.star-word-privacy {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  color: #8c7b75;
  font-size: 9px;
}

.star-word-dialog h2 {
  margin-bottom: 4px;
}

.star-word-input {
  display: grid;
  gap: 7px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.star-word-input input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  font-size: 17px;
  background: var(--mint-2);
  outline: none;
}

.star-word-input input:focus {
  border-color: rgba(36, 91, 83, 0.48);
  box-shadow: 0 0 0 3px rgba(220, 236, 229, 0.72);
}

.star-word-form-grid {
  grid-template-columns: repeat(3, 1fr);
}

.star-word-dialog-actions {
  margin-top: 20px;
}

.achievement-star-card {
  min-height: 680px;
}

.achievement-guide {
  padding: 30px;
}

.achievement-guide h2 {
  margin: 8px 0 24px;
}

.achievement-principles {
  display: grid;
  gap: 12px;
}

.achievement-principles article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--mint-2);
}

.achievement-principles i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-2);
  font-size: 10px;
  font-style: normal;
  background: var(--ink-2);
}

.achievement-principles b {
  font-size: 13px;
}

.achievement-principles p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.achievement-kindness {
  align-self: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  text-align: right;
}

.week-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.rhythm-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.rhythm-day {
  display: grid;
  min-height: 57px;
  place-items: center;
  border-radius: 14px;
  color: #82918d;
  background: var(--mint-2);
}

.rhythm-day b,
.rhythm-day small {
  display: block;
  font-size: 11px;
}

.rhythm-day small {
  margin-top: -12px;
  font-size: 8px;
}

.rhythm-day.today {
  outline: 2px solid rgba(217, 139, 104, 0.35);
}

.rhythm-day.done {
  color: #fff;
  background: var(--ink-2);
}

.coach-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 26px 30px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.coach-orb {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 18px;
  color: var(--ink);
  background: var(--gold);
}

.coach-strip h2 {
  margin-bottom: 6px;
}

.coach-strip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.page-heading {
  align-items: flex-end;
  margin-bottom: 32px;
}

.page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 5vw, 62px);
}

.page-heading .lead {
  margin-bottom: 0;
}

.steps-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 14px;
}

.steps-indicator span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #96a29f;
  font-size: 11px;
  background: #e8ece9;
}

.steps-indicator span.active {
  color: #fff;
  background: var(--ink-2);
}

.steps-indicator i {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.codesign {
  min-height: 560px;
  padding: 36px;
}

.codesign-step {
  display: none;
  animation: view-in 250ms ease;
}

.codesign-step.active {
  display: block;
}

.codesign-step > h2 {
  margin-bottom: 28px;
  font-size: 30px;
}

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

.choice-cards input,
.response-options input,
.decision-options input,
.dimension-options input,
.growth-options input,
.support-options input {
  position: absolute;
  opacity: 0;
}

.choice-cards label > span {
  display: grid;
  min-height: 105px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  background: #fff;
  transition: 180ms ease;
}

.choice-cards small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.choice-cards input:checked + span {
  border-color: var(--ink-2);
  background: var(--mint-2);
  box-shadow: inset 0 0 0 1px var(--ink-2);
}

.choice-help {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.step-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 30px;
}

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

.form-grid label,
.reason-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

select,
input[type="search"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  outline: none;
  background: #fff;
}

select {
  min-height: 49px;
  padding: 0 13px;
}

input[type="search"] {
  min-height: 48px;
  padding: 0 14px 0 40px;
}

textarea {
  min-height: 70px;
  resize: vertical;
  padding: 14px 52px 14px 14px;
  line-height: 1.55;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(55, 112, 102, 0.1);
}

.draft-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.draft-label span,
.draft-label b {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  background: var(--mint);
}

.draft-label b {
  color: var(--peach);
  background: #fbebe2;
}

.plan-draft > h2 {
  font-size: 32px;
}

.why-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.adjust-panel {
  margin: 25px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--mint-2);
}

.adjust-panel > b {
  display: block;
  margin-bottom: 11px;
  font-size: 12px;
}

.adjust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adjust-chips button,
.filter-chip,
.prompt-chips button,
.answer-feedback button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  background: #fff;
}

.review-gate {
  max-width: 650px;
  margin: 50px auto;
  text-align: center;
}

.review-gate > span {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #925346;
  font-size: 10px;
  background: #f8e4dc;
}

.review-gate p {
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.task-explore-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.task-category-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 15px 40px rgba(31, 69, 61, 0.06);
  backdrop-filter: blur(12px);
}

.task-category-rail .filter-chip {
  display: grid;
  min-height: 64px;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px;
  border: 0;
  border-radius: 17px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.task-category-rail .filter-chip:hover {
  background: rgba(225, 235, 226, 0.65);
}

.task-category-rail .filter-chip.active {
  color: var(--ink);
  background: var(--mint);
}

.task-category-rail .filter-chip > span:last-child,
.task-category-rail .filter-chip b,
.task-category-rail .filter-chip small {
  display: block;
}

.task-category-rail .filter-chip b {
  font-size: 11px;
}

.task-category-rail .filter-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.filter-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  padding: 3px;
  border: 2px solid rgba(217, 139, 104, 0.45);
  border-radius: 50%;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  background: #fff;
}

.filter-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.task-category-rail .filter-chip.active .filter-avatar {
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(217, 139, 104, 0.15);
}

.all-avatar {
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold), #f3c5ae);
}

.saved-avatar {
  color: #a86052;
  background: #fae8df;
}

.task-library-sections {
  display: grid;
  gap: 42px;
  min-width: 0;
}

.personalised-garden-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(250, 232, 223, 0.78), rgba(220, 236, 229, 0.72));
}

.personalised-garden-note > span,
.recommendation-reason,
.task-evidence-panel > span {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #8e5548;
  font-size: 9px;
  font-weight: 800;
  background: #fff5ef;
}

.personalised-garden-note b,
.personalised-garden-note p {
  display: block;
  margin: 0;
}

.personalised-garden-note p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.recommendation-reason {
  margin-bottom: 8px;
  color: #466b60;
  background: #edf6f1;
}

.task-category-section {
  display: grid;
  gap: 17px;
}

.task-category-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
}

.task-category-heading h2,
.task-category-heading p {
  margin: 0;
}

.task-category-heading h2 {
  margin: 2px 0 5px;
  font-size: 25px;
}

.task-category-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 11px;
}

.task-category-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 23px;
  background: var(--mint);
}

.category-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border-radius: 14px;
  color: #725c4d;
  background: #f7ead9;
}

.category-notice b {
  font-size: 10px;
}

.category-notice span {
  font-size: 10px;
  line-height: 1.55;
}

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

.task-explore-layout .task-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.task-library-card {
  overflow: hidden;
  border: 1px solid rgba(23, 61, 57, 0.09);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(23, 61, 57, 0.07);
}

.task-card-cover {
  position: relative;
  display: flex;
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  padding: 21px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(248, 226, 186, 0.32), transparent 7rem),
    linear-gradient(140deg, var(--ink-2), #6c6851);
}

.cover-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
}

.cover-open:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -5px;
}

.task-card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 35, 31, 0.46), rgba(15, 35, 31, 0.02) 62%);
}

.task-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.task-library-card:hover .task-card-cover img {
  transform: scale(1.025);
}

.category-music-rhythm .task-card-cover {
  background:
    radial-gradient(circle at 85% 15%, rgba(248, 226, 186, 0.38), transparent 7rem),
    linear-gradient(140deg, #574b74, #9b6b70);
}

.category-story-minds .task-card-cover {
  background:
    radial-gradient(circle at 85% 15%, rgba(248, 226, 186, 0.28), transparent 7rem),
    linear-gradient(140deg, #31566a, #7a6b85);
}

.category-words-concepts .task-card-cover {
  background:
    radial-gradient(circle at 85% 15%, rgba(248, 226, 186, 0.3), transparent 7rem),
    linear-gradient(140deg, #3d6b5d, #778663);
}

.quiet-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.task-card-cover span {
  position: relative;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: rgba(23, 61, 57, 0.72);
  backdrop-filter: blur(5px);
}

.task-card-cover i {
  position: relative;
  z-index: 2;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-style: normal;
  background: rgba(255, 255, 255, 0.1);
}

.task-card-body {
  padding: 13px 18px 20px;
}

.task-social-actions {
  display: flex;
  gap: 3px;
  margin: 0 -5px 4px;
}

.task-social-actions button {
  display: grid;
  min-width: 48px;
  min-height: 44px;
  place-items: center;
  padding: 3px 6px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
}

.task-social-actions button:hover {
  background: var(--mint-2);
}

.task-social-actions b,
.task-social-actions small {
  display: block;
}

.task-social-actions b {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.task-social-actions small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.task-social-actions button[aria-pressed="true"] b {
  color: var(--peach);
}

.task-card-body .task-meta {
  margin: 10px 0 12px;
}

.task-card-body h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.task-caption {
  display: -webkit-box;
  min-height: 57px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.task-audio-preview {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(185, 132, 120, 0.18);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(248, 226, 186, 0.34), rgba(220, 236, 229, 0.48));
}

.task-audio-preview small {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 700;
}

.task-audio-preview audio {
  width: 100%;
  height: 34px;
  accent-color: var(--peach);
}

.task-audio-preview.detail-audio {
  margin: 18px 0 4px;
  padding: 14px;
}

.story-example-panel,
.task-evidence-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7f0e8, #eef4f1);
}

.story-example-panel h3,
.story-example-panel p,
.task-evidence-panel p {
  margin: 0;
}

.story-example-panel > small {
  color: #8e5548;
  font-weight: 800;
}

.story-example-panel > em,
.task-evidence-panel > small {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.55;
}

.story-prompt-list,
.task-evidence-panel > div {
  display: grid;
  gap: 6px;
}

.story-prompt-list span,
.task-evidence-panel a {
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.task-evidence-panel a {
  text-decoration: none;
}

.voice-snapshot-panel {
  display: grid;
  gap: 13px;
}

.voice-snapshot-panel > p,
.voice-live-status {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.voice-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eee9;
}

.voice-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8db7a7, #efb19d);
  transition: width 80ms linear;
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-confirmed-text {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 700;
}

.voice-confirmed-text input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.voice-summary-list {
  display: grid;
  gap: 8px;
}

.voice-summary-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--mint-2);
}

.voice-summary-list b,
.voice-summary-list small,
.voice-summary-list p {
  display: block;
  margin: 0;
}

.voice-summary-list small,
.voice-summary-list p,
.voice-summary-list > p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.voice-summary-list button {
  border: 0;
  color: #9b5d55;
  font-size: 9px;
  background: transparent;
}

.task-card-body .card-actions {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.saved-empty {
  padding: 60px 30px;
  text-align: center;
}

.saved-empty > span {
  color: var(--peach);
  font-size: 38px;
}

.saved-empty h2 {
  margin: 8px 0;
}

.saved-empty p {
  color: var(--muted);
  font-size: 11px;
}

.task-detail-dialog {
  width: min(94vw, 760px);
  padding: 0;
}

.task-detail-dialog > .dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.88);
}

.task-detail-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--mint);
}

.task-detail-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 35, 31, 0.2), transparent 60%);
}

.task-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-detail-cover span {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  background: rgba(23, 61, 57, 0.75);
  backdrop-filter: blur(5px);
}

.task-detail-body {
  padding: 27px 32px 32px;
}

.task-detail-body h2 {
  margin: 6px 0 12px;
  font-size: 31px;
}

.task-detail-body h3 {
  margin-top: 24px;
  font-size: 13px;
}

.task-detail-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.easy-sheet-why,
.easy-sheet-say,
.easy-sheet-easier,
.easy-sheet-reflect {
  margin-top: 14px;
  padding: 15px 17px;
  border-radius: 17px;
}

.easy-sheet-why {
  border: 1px solid rgba(76, 125, 111, 0.16);
  background: rgba(220, 236, 229, 0.5);
}

.easy-sheet-say {
  border: 1px solid rgba(185, 132, 120, 0.18);
  background: linear-gradient(135deg, rgba(248, 226, 186, 0.43), rgba(250, 239, 231, 0.72));
}

.easy-sheet-why small,
.easy-sheet-say small {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.easy-sheet-why p,
.easy-sheet-say p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
}

.easy-sheet-say p {
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 14px;
}

.easy-sheet-easier,
.easy-sheet-reflect {
  display: grid;
  gap: 4px;
  color: var(--ink-2);
  background: rgba(245, 243, 237, 0.9);
}

.easy-sheet-easier b,
.easy-sheet-reflect b {
  font-size: 10px;
}

.easy-sheet-easier span,
.easy-sheet-reflect span {
  font-size: 11px;
  line-height: 1.65;
}

.easy-sheet-reflect {
  background: rgba(250, 228, 224, 0.48);
}

.task-detail-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 20px;
}

.task-card-body h2 {
  font-size: 19px;
}

.task-card-body p {
  color: var(--muted);
  font-size: 12px;
}

.boundary-banner {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 17px;
  border-radius: 16px;
  color: #765247;
  background: #f8e8df;
}

.boundary-banner b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.boundary-banner p {
  margin: 0;
  font-size: 11px;
}

.chat-panel {
  max-width: 900px;
  min-height: 590px;
  margin: 0 auto;
  padding: 22px;
}

.ask-bridge-dialog {
  width: min(94vw, 900px);
  padding: 26px;
}

.ask-bridge-dialog .ask-heading {
  padding-right: 45px;
}

.ask-bridge-dialog .ask-heading h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.ask-bridge-dialog .chat-panel {
  min-height: 520px;
  padding: 16px;
  box-shadow: none;
}

.ask-bridge-dialog .messages {
  height: 315px;
}

.ask-bridge-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: grid;
  min-width: 138px;
  min-height: 58px;
  grid-template-columns: 38px 1fr;
  gap: 0 10px;
  align-items: center;
  padding: 9px 15px 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 19px;
  color: #fff;
  text-align: left;
  background: var(--ink);
  box-shadow: 0 18px 45px rgba(15, 39, 35, 0.28);
}

.ask-bridge-fab > span {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  font-size: 18px;
  background: var(--gold);
}

.ask-bridge-fab b,
.ask-bridge-fab small {
  display: block;
}

.ask-bridge-fab b {
  align-self: end;
  font-size: 11px;
}

.ask-bridge-fab small {
  align-self: start;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 8px;
}

.messages {
  display: flex;
  height: 385px;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 8px 4px 20px;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 87%;
}

.message.assistant > div {
  padding: 15px 17px;
  border-radius: 4px 18px 18px;
  color: #435b55;
  font-size: 12px;
  background: var(--mint-2);
}

.message.user {
  align-self: flex-end;
  padding: 13px 16px;
  border-radius: 18px 4px 18px 18px;
  color: #fff;
  font-size: 12px;
  background: var(--ink-2);
}

.message p {
  margin: 7px 0 0;
}

.message-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  background: var(--gold);
}

.prompt-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.prompt-chips button {
  flex: none;
}

.chat-form {
  position: relative;
}

.send-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
}

.form-note {
  display: block;
  margin-top: 8px;
  color: #9a837a;
  font-size: 9px;
}

.answer-sources {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.answer-sources a {
  color: var(--ink-2);
  font-size: 10px;
}

.answer-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 13px;
}

.answer-feedback span {
  font-size: 10px;
}

.resource-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 15px;
}

.resource-total strong {
  color: var(--peach);
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 500;
}

.resource-total span {
  color: var(--muted);
  font-size: 10px;
}

.resource-toolbar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
}

.search-box {
  position: relative;
}

.search-box > span {
  position: absolute;
  left: 14px;
  top: 13px;
  z-index: 1;
  color: var(--muted);
}

.resource-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 22px;
}

.resource-card h2 {
  font-size: 18px;
}

.resource-card > p {
  color: var(--muted);
  font-size: 12px;
}

.resource-card .publisher {
  margin: -3px 0 14px;
  color: var(--peach);
  font-size: 10px;
  font-weight: 800;
}

.resource-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.tier {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--ink-2);
}

.tier-B {
  background: #53788d;
}

.tier-C,
.tier-E {
  background: #7b8061;
}

.tier-D {
  background: #a96b56;
}

.resource-use {
  margin-top: auto;
  padding: 12px;
  border-radius: 13px;
  color: #51645f;
  font-size: 10px;
  line-height: 1.55;
  background: var(--mint-2);
}

.resource-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 9px;
}

.resource-footer a {
  color: var(--peach);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 50px;
  color: var(--muted);
  text-align: center;
}

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

.data-grid > .panel {
  padding: 27px;
}

.full-span {
  grid-column: 1 / -1;
}

.preference-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.preference-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--mint-2);
}

.preference-list b,
.preference-list small {
  display: block;
}

.preference-list b {
  font-size: 12px;
}

.preference-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

input[type="checkbox"] {
  accent-color: var(--ink-2);
}

.data-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.data-stats span {
  display: grid;
  min-height: 85px;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  background: var(--mint-2);
}

.data-stats strong {
  display: block;
  margin-bottom: -20px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 31px;
}

.weekly-report-panel {
  margin-top: 20px;
  background:
    radial-gradient(circle at 88% 8%, rgba(247, 223, 169, 0.42), transparent 18rem),
    var(--paper-2);
}

.weekly-report-summary {
  max-width: 760px;
  margin: 12px 0 20px;
  color: var(--ink-2);
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 20px;
  line-height: 1.55;
}

.weekly-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.weekly-report-metrics article {
  display: grid;
  min-height: 100px;
  place-items: center;
  padding: 14px;
  border-radius: 17px;
  text-align: center;
  background: var(--mint-2);
}

.weekly-report-metrics strong {
  color: var(--peach);
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 500;
}

.weekly-report-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.weekly-report-detail {
  margin-top: 12px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(247, 223, 169, 0.16);
}

.weekly-report-detail b {
  font-size: 12px;
}

.weekly-report-detail p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.weekly-history-list {
  display: grid;
  gap: 9px;
}

.weekly-history-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mint-2);
}

.weekly-history-item b,
.weekly-history-item small {
  display: block;
}

.weekly-history-item small,
.weekly-history-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.weekly-history-item strong {
  color: var(--peach);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}

.weekly-history-empty {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 11px;
  background: var(--mint-2);
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.boundary-columns > div {
  padding: 20px;
  border-radius: 18px;
  background: var(--mint-2);
}

.boundary-columns li {
  color: var(--muted);
  font-size: 12px;
}

.legal-note {
  margin: 18px 0 0;
  color: #958078;
  font-size: 9px;
}

.parent-resource-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.parent-resource-entry h2,
.parent-resource-entry p {
  margin-bottom: 0;
}

.parent-resource-entry p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

dialog {
  width: min(94vw, 680px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border: 0;
  border-radius: 25px;
  color: var(--ink);
  background: var(--paper-2);
  box-shadow: 0 40px 110px rgba(10, 35, 31, 0.32);
}

dialog::backdrop {
  background: rgba(12, 35, 32, 0.62);
  backdrop-filter: blur(7px);
}

.dialog-close {
  float: right;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--mint-2);
}

.response-options,
.decision-options,
.dimension-options,
.growth-options,
.support-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.response-options label span,
.decision-options label span,
.dimension-options label span,
.support-options label span {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  background: #fff;
}

.response-options input:checked + span,
.decision-options input:checked + span,
.dimension-options input:checked + span,
.support-options input:checked + span {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.dialog-help {
  margin: -5px 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.growth-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.growth-options label span {
  display: grid;
  min-height: 72px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  background: #fff;
}

.growth-options label small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 500;
}

.growth-options input:checked + span {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.growth-options input:checked + span small {
  color: rgba(255, 255, 255, 0.64);
}

.reason-field {
  margin-bottom: 20px;
}

.consent-dialog {
  width: min(94vw, 720px);
}

.consent-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.consent-brand b,
.consent-brand small {
  display: block;
}

.consent-brand small {
  color: var(--muted);
  font-size: 9px;
}

.consent-dialog > form > p {
  color: var(--muted);
  font-size: 12px;
}

.consent-points {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.consent-points label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border-radius: 15px;
  background: var(--mint-2);
}

.consent-points b,
.consent-points small {
  display: block;
}

.consent-points b {
  font-size: 12px;
}

.consent-points small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.voice-disabled {
  padding: 15px;
  border: 1px dashed rgba(23, 61, 57, 0.2);
  border-radius: 15px;
}

.voice-disabled span {
  color: var(--muted);
  font-size: 10px;
}

.family-profile-panel {
  background:
    radial-gradient(circle at 92% 12%, rgba(223, 204, 236, 0.48), transparent 32%),
    var(--paper);
}

.profile-summary {
  min-height: 74px;
  margin: 4px 0 18px;
  padding: 15px;
  border-radius: 16px;
  background: var(--mint-2);
}

.profile-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.profile-summary strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
}

.profile-summary span {
  display: inline-flex;
  margin: 3px 5px 0 0;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-dialog {
  width: min(94vw, 760px);
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 18px;
}

.profile-field {
  display: grid;
  gap: 7px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 700;
}

.profile-field.full {
  grid-column: 1 / -1;
}

.profile-field input,
.profile-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  background: #fff;
}

.profile-field input:focus,
.profile-field select:focus {
  border-color: rgba(23, 61, 57, 0.44);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 236, 229, 0.72);
}

.profile-boundary {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--peach);
  border-radius: 8px 14px 14px 8px;
  background: #fdf7f1;
}

.profile-boundary b {
  font-size: 10px;
}

.profile-boundary span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.voice-disabled b {
  float: right;
  color: var(--peach);
  font-size: 10px;
}

.voice-disabled p {
  clear: both;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.video-placeholder {
  display: grid;
  min-height: 230px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(248, 226, 186, 0.25), transparent 10rem),
    var(--ink);
}

.video-placeholder span {
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.video-placeholder small {
  margin-top: -80px;
  color: rgba(255, 255, 255, 0.6);
}

.brief-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.brief-list div {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
  background: var(--mint-2);
}

.brief-list dt {
  color: var(--peach);
  font-size: 10px;
  font-weight: 800;
}

.brief-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 370px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 11px;
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(10px);
  transition: 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  :root {
    --sidebar: 210px;
  }

  .main {
    padding-inline: 28px;
  }

  .home-grid,
  .week-panel,
  .achievement-page-grid {
    grid-template-columns: 1fr;
  }

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

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

  .today-card,
  .star-card {
    min-height: 0;
  }

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

  .task-category-heading {
    grid-template-columns: 46px 1fr;
  }

  .task-category-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .category-notice {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 760px) {
  .personalised-garden-note {
    grid-template-columns: 1fr;
  }

  .personalised-garden-note > span {
    margin-bottom: -7px;
  }
  body {
    padding-bottom: 86px;
  }

  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 0 15px 45px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 68px;
    background: rgba(247, 243, 234, 0.9);
    backdrop-filter: blur(14px);
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-brand strong {
    font-size: 15px;
  }

  .mobile-brand small {
    color: var(--muted);
    font-size: 7px;
  }

  .top-actions .ready-pill,
  .top-actions .quiet-button {
    display: none;
  }

  .view {
    padding-top: 32px;
  }

  .task-explore-layout {
    display: block;
  }

  .task-category-rail {
    position: sticky;
    top: 68px;
    z-index: 12;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 -15px 24px;
    padding: 10px 15px;
    border-width: 1px 0;
    border-radius: 0;
    background: rgba(247, 243, 234, 0.94);
    box-shadow: none;
    scrollbar-width: none;
  }

  .task-category-rail::-webkit-scrollbar {
    display: none;
  }

  .task-category-rail .filter-chip {
    display: grid;
    width: 72px;
    min-height: 82px;
    flex: 0 0 72px;
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
    padding: 5px 2px;
    text-align: center;
  }

  .task-category-rail .filter-chip b {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .task-category-rail .filter-chip small {
    display: none;
  }

  .filter-avatar {
    width: 52px;
    height: 52px;
  }

  .task-explore-layout .task-grid {
    grid-template-columns: 1fr;
  }

  .task-library-sections {
    gap: 36px;
  }

  .task-card-cover {
    aspect-ratio: 4 / 3;
  }

  .task-detail-cover {
    aspect-ratio: 4 / 3;
  }

  .task-detail-body {
    padding: 22px;
  }

  .task-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 43px;
  }

  .hero-row,
  .page-heading,
  .panel-heading {
    display: block;
  }

  .hero-action {
    width: 100%;
    margin-top: 16px;
  }

  .home-grid {
    display: block;
  }

  .today-card,
  .star-card {
    margin-bottom: 14px;
    padding: 21px;
    border-radius: 21px;
  }

  .today-card .panel-heading {
    position: relative;
  }

  .today-card .panel-heading .icon-button {
    position: absolute;
    right: 0;
    top: 0;
  }

  .task-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .task-actions .primary-button,
  .task-actions .text-button {
    grid-column: 1 / -1;
  }

  .star-card {
    min-height: 690px;
  }

  .constellation {
    min-height: 360px;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }

  .week-panel {
    gap: 20px;
    padding: 21px;
  }

  .rhythm-days {
    gap: 4px;
  }

  .rhythm-day {
    min-height: 48px;
  }

  .coach-strip {
    grid-template-columns: auto 1fr;
    padding: 21px;
  }

  .coach-strip .secondary-button {
    grid-column: 1 / -1;
  }

  .steps-indicator {
    margin-top: 18px;
  }

  .codesign {
    min-height: 0;
    padding: 21px;
  }

  .choice-cards,
  .form-grid,
  .task-grid,
  .resource-grid,
  .data-grid,
  .boundary-columns {
    grid-template-columns: 1fr;
  }

  .choice-cards label > span {
    min-height: 88px;
  }

  .full-span {
    grid-column: auto;
  }

  .data-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .weekly-report-metrics {
    grid-template-columns: 1fr;
  }

  .star-words-panel {
    padding: 22px;
  }

  .star-words-heading {
    display: grid;
  }

  .star-words-action {
    justify-content: space-between;
  }

  .star-words-action .primary-button {
    flex: 1;
  }

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

  .star-word-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-field.full {
    grid-column: auto;
  }

  .home-word-preview {
    min-height: 235px;
    gap: 12px;
    padding-inline: 4px;
  }

  .home-word-star {
    min-width: 70px;
    min-height: 62px;
  }

  .word-constellation-panel {
    margin-inline: -8px;
    padding: 18px;
    border-radius: 23px;
  }

  .word-constellation-heading {
    display: grid;
  }

  .word-constellation-heading .quiet-button {
    width: 100%;
  }

  .word-connection-stage {
    min-height: 320px;
  }

  .word-link-node {
    width: 66px;
    min-height: 60px;
  }

  .word-link-node b {
    max-width: 55px;
    font-size: 11px;
  }

  .word-connection-banner {
    max-width: 70%;
    padding: 11px 15px;
  }

  .star-scene-shell {
    width: min(230px, 62%);
  }

  .star-scene-visual {
    min-height: 145px;
    border-radius: 27px;
  }

  .star-scene-object,
  .star-scene-character {
    width: 62px;
    height: 62px;
    font-size: 39px;
  }

  .star-scene-object.left {
    left: 11%;
  }

  .star-scene-object.right {
    right: 11%;
  }

  .star-word-visual-celebration {
    width: 178px;
    height: 178px;
  }

  .star-word-visual-celebration .visual-glyph {
    font-size: 72px;
  }

  .word-link-suggestions {
    grid-template-columns: 1fr;
  }

  .weekly-history-item {
    grid-template-columns: 1fr auto;
  }

  .weekly-history-item p {
    grid-column: 1 / -1;
  }

  .step-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .resource-total {
    margin-top: 15px;
  }

  .resource-toolbar {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 0;
  }

  .chat-panel {
    min-height: 590px;
    padding: 14px;
  }

  .messages {
    height: 410px;
  }

  .message {
    max-width: 96%;
  }

  dialog {
    padding: 22px;
  }

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

  .mobile-nav {
    position: fixed;
    inset: auto 9px 9px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 19px;
    background: rgba(23, 61, 57, 0.96);
    box-shadow: 0 18px 45px rgba(15, 39, 35, 0.3);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    display: grid;
    min-height: 50px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
  }

  .mobile-nav button.active {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-nav span,
  .mobile-nav small {
    display: block;
    font-size: 15px;
  }

  .mobile-nav .nav-glyph {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: 13px;
    background: var(--gold);
  }

  .mobile-nav [data-view-link="home"] .nav-glyph {
    background: #f7dfb7;
  }

  .mobile-nav [data-view-link="tasks"] .nav-glyph {
    background: var(--blush);
  }

  .mobile-nav [data-view-link="achievements"] .nav-glyph {
    background: var(--lilac);
  }

  .mobile-nav [data-view-link="data"] .nav-glyph {
    background: var(--powder);
  }

  .mobile-nav small {
    margin-top: -7px;
    font-size: 7px;
  }

  .toast {
    right: 13px;
    bottom: 83px;
    left: 13px;
    max-width: none;
  }

  .ask-bridge-fab {
    right: 15px;
    bottom: 82px;
    min-width: 54px;
    min-height: 54px;
    grid-template-columns: 1fr;
    padding: 8px;
    border-radius: 18px;
  }

  .ask-bridge-fab > span {
    width: 38px;
    height: 38px;
    grid-row: auto;
  }

  .ask-bridge-fab b,
  .ask-bridge-fab small {
    display: none;
  }

  .ask-bridge-dialog {
    width: min(96vw, 900px);
    padding: 18px;
  }

  .ask-bridge-dialog .chat-panel {
    min-height: 500px;
  }

  .ask-bridge-dialog .messages {
    height: 320px;
  }

  .parent-resource-entry {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
