:root {
  --ink: #17224a;
  --ink-soft: #667094;
  --muted: #9aa2bd;
  --line: rgba(112, 122, 165, 0.18);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --lilac: #dcdcff;
  --lilac-2: #c7cdfb;
  --blue: #8eb8f8;
  --blue-soft: #eaf5ff;
  --night: #172653;
  --night-deep: #101936;
  --moon: #f8d776;
  --peach: #ffe8e2;
  --rose: #f7b6c7;
  --purple: #7476d8;
  --shadow: 0 24px 70px rgba(53, 62, 107, 0.24);
  --soft-shadow: 0 14px 34px rgba(67, 75, 126, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(216, 220, 255, 0.9), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(248, 215, 118, 0.34), transparent 24%),
    linear-gradient(135deg, #f7f2fb 0%, #eef4ff 54%, #fff8f2 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.phone-frame {
  position: relative;
  width: min(100%, 393px);
  height: min(852px, calc(100dvh - 36px));
  min-height: 720px;
  overflow: hidden;
  border-radius: 34px;
  background: #f6f3ff;
  box-shadow: var(--shadow);
}

.status-bar {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.app-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 58px 17px 104px;
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.74), transparent 25%),
    linear-gradient(180deg, #dadcff 0%, #f9f7ff 38%, #fffafa 100%);
  transition: opacity 180ms ease, transform 180ms ease;
}
.app-view > .sky-bg { display: none; }

.app-view.hidden {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
}

.view-player {
  padding-bottom: 26px;
  background:
    radial-gradient(circle at 56% 18%, rgba(99, 124, 218, 0.55), transparent 28%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}

.sky-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.star-dot,
.deep-star {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 16px rgba(248, 215, 118, 0.5);
}

.star-dot-a {
  top: 40px;
  left: 136px;
}

.star-dot-b {
  top: 120px;
  right: 34px;
  width: 9px;
  height: 9px;
}

.star-dot-c {
  top: 78px;
  right: 96px;
  width: 7px;
  height: 7px;
}

.moon-chip {
  position: absolute;
  top: 54px;
  right: 78px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 9px 0 0 #dadcff;
}

.cloud-soft {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.cloud-soft::before,
.cloud-soft::after,
.cover-cloud::before,
.cover-cloud::after,
.sleep-cloud::before,
.sleep-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.cloud-soft::before {
  left: 12px;
  width: 50px;
  height: 50px;
}

.cloud-soft::after {
  right: 18px;
  width: 76px;
  height: 76px;
}

.cloud-soft-a {
  top: 84px;
  left: -18px;
  width: 150px;
  height: 42px;
}

.cloud-soft-b {
  top: 88px;
  right: -36px;
  width: 164px;
  height: 48px;
}

.topbar,
.nav-title {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-lockup,
.nav-title strong {
  text-align: center;
}

.brand-lockup strong,
.nav-title strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.brand-lockup span {
  display: block;
  margin-top: 4px;
  color: #515b86;
  font-size: 11px;
  font-weight: 700;
}

.avatar-button,
.round-icon,
.back-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(94, 99, 147, 0.12);
}

.avatar-button {
  display: grid;
  place-items: center;
}

.round-icon {
  position: relative;
}

.bell-icon::before {
  content: "";
  position: absolute;
  inset: 10px 12px 9px;
  border: 2px solid #6674bd;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 0;
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6674bd;
}

.settings-icon::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 3px solid #6674bd;
  border-radius: 50%;
}

.settings-icon::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 7px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: #6674bd;
  transform: rotate(45deg);
}

.save-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  width: 13px;
  height: 16px;
  border: 2px solid #dbe9ff;
  border-radius: 8px 8px 4px 4px;
  transform: rotate(-45deg);
}

.back-button {
  position: relative;
}

.back-button::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-left: 2px solid #6070ad;
  border-bottom: 2px solid #6070ad;
  transform: rotate(45deg);
}

.back-button.light,
.round-icon.light {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.back-button.light::before {
  border-color: #eef6ff;
}

.search-field {
  position: relative;
  z-index: 2;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 24px rgba(92, 98, 152, 0.08);
}

.search-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #9fa8c9;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-dot::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #9fa8c9;
  transform: rotate(45deg);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.search-field input::placeholder {
  color: #727da2;
}

.tonight-card {
  position: relative;
  z-index: 2;
  min-height: 222px;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 14%, rgba(248, 215, 118, 0.34), transparent 20%),
    linear-gradient(145deg, rgba(114, 128, 219, 0.95), rgba(153, 174, 248, 0.92));
  color: #fff;
  box-shadow: 0 18px 38px rgba(89, 100, 178, 0.24);
}

.tonight-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tonight-copy p,
.player-panel p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.tonight-copy h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.tonight-copy span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 650;
}

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

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}

.primary-button {
  background: linear-gradient(145deg, #6575ee, #8797ff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(108, 121, 228, 0.30);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.hero-art {
  position: relative;
  min-width: 0;
}

.cover-moon {
  position: absolute;
  top: 18px;
  left: 8px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 22px rgba(248, 215, 118, 0.42);
}

.cover-cloud,
.sleep-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
}

.cover-cloud {
  left: -8px;
  bottom: 22px;
  width: 140px;
  height: 42px;
}

.cover-cloud::before {
  left: 12px;
  width: 56px;
  height: 56px;
}

.cover-cloud::after {
  right: 18px;
  width: 72px;
  height: 72px;
}

.sheep,
.sheep-avatar,
.story-cover,
.topic-art,
.theme-art {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.sheep,
.sheep-avatar {
  background:
    radial-gradient(circle at 26% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 72% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 12%, #fff 0 16%, transparent 17%),
    linear-gradient(180deg, #fff8f5, #fff);
  box-shadow: inset 0 -8px 16px rgba(211, 188, 218, 0.16);
}

.sheep::before,
.sheep-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 54%;
  height: 46%;
  border-radius: 48% 52% 46% 54%;
  transform: translate(-50%, -50%);
  background: #ffe9e4;
}

.sheep::after,
.sheep-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 27%;
  height: 9%;
  border-left: 4px solid #332d47;
  border-right: 4px solid #332d47;
  border-radius: 999px;
  transform: translateX(-50%);
}

.sheep-sleep {
  position: absolute;
  left: 26px;
  bottom: 46px;
  width: 94px;
  height: 84px;
  border-radius: 44% 48% 40% 40%;
  transform: rotate(-6deg);
  z-index: 2;
}

.sheep-player {
  position: absolute;
  left: 112px;
  bottom: 74px;
  width: 116px;
  height: 96px;
  border-radius: 44% 48% 40% 40%;
  transform: rotate(-8deg);
  z-index: 2;
}

.sheep-avatar {
  border-radius: 50%;
}

.sheep-avatar.mini {
  width: 30px;
  height: 30px;
}

.sheep-avatar.floating {
  position: absolute;
  right: 70px;
  top: 20px;
  width: 58px;
  height: 58px;
}

.sheep-avatar.large {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.section-block {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.last-block {
  margin-bottom: 8px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.section-head span,
.text-button {
  color: #6f789b;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.chip-row,
.mood-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar,
.mood-row::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(117, 125, 180, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #4d5782;
  font-size: 12px;
  font-weight: 850;
}

.chip.active {
  color: #4c4ec9;
  border-color: #8c86ef;
  background: #f2efff;
  box-shadow: 0 8px 18px rgba(102, 105, 197, 0.12);
}

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

.topic-card,
.theme-card {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(69, 78, 128, 0.10);
}

.topic-card strong,
.theme-card strong {
  display: block;
  margin: 10px 12px 3px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.topic-card small,
.theme-card small {
  display: block;
  margin: 0 12px 13px;
  color: #727b9e;
  font-size: 11px;
  font-weight: 650;
}

.topic-art,
.theme-art {
  width: 100%;
  height: 96px;
  display: block;
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(145deg, #9aa4f0, #dee8ff);
}

.topic-art::before,
.theme-art::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 54px;
  left: 50%;
  bottom: 12px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.86);
}

.topic-art::after,
.theme-art::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 56px;
  height: 48px;
  border-radius: 44% 48% 40% 40%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 26% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 72% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 10%, #fff 0 16%, transparent 17%),
    linear-gradient(180deg, #fff8f5, #fff);
}

.art-moon-sheep {
  background:
    radial-gradient(circle at 25% 24%, var(--moon) 0 17%, transparent 18%),
    linear-gradient(145deg, #8b94e9, #d6ddff);
}

.art-star-sheep,
.art-bedtime {
  background:
    radial-gradient(circle at 78% 24%, var(--moon) 0 8%, transparent 9%),
    linear-gradient(145deg, #7f8be5, #cbd8ff);
}

.art-miss {
  background: linear-gradient(145deg, #f8c7ce, #fff0ef);
}

.art-comfort {
  background: linear-gradient(145deg, #b8d7ff, #fff3d5);
}

.art-school {
  background: linear-gradient(145deg, #d2e6ff, #ffe8a8);
}

.story-list {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(69, 78, 128, 0.10);
}

.story-item,
.saved-story,
.settings-list button {
  width: 100%;
  min-height: 74px;
  display: grid;
  align-items: center;
  grid-template-columns: 56px 1fr 16px;
  gap: 12px;
  padding: 11px 14px;
  text-align: left;
  background: transparent;
  color: var(--ink);
}

.story-item + .story-item,
.settings-list button + button {
  border-top: 1px solid var(--line);
}

.story-item strong,
.saved-story strong,
.settings-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.2;
}

.story-item small,
.saved-story small,
.settings-list small {
  display: block;
  color: #777f9d;
  font-size: 11px;
  font-weight: 650;
}

.story-item i,
.saved-story i,
.settings-list i,
.profile-card i {
  width: 8px;
  height: 8px;
  border-right: 2px solid #9aa2bd;
  border-bottom: 2px solid #9aa2bd;
  transform: rotate(-45deg);
}

.story-cover {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(145deg, #8290ee, #dbe5ff);
}

.story-cover::before {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 8px;
  width: 34px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.story-cover::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 22px;
  width: 24px;
  height: 22px;
  border-radius: 44% 48% 40% 40%;
  background:
    radial-gradient(circle at 26% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 72% 24%, #fff 0 12%, transparent 13%),
    linear-gradient(180deg, #fff8f5, #fff);
}

.cover-2 {
  background: linear-gradient(145deg, #8d97ea, #cbd6ff);
}

.cover-3 {
  background: linear-gradient(145deg, #b2cfff, #fff1d7);
}

.cover-4 {
  background: linear-gradient(145deg, #a8d7ff, #eaf8ff);
}

.cover-5 {
  background: linear-gradient(145deg, #7885de, #c8d2ff);
}

.child-card,
.profile-card {
  position: relative;
  z-index: 2;
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 32px rgba(69, 78, 128, 0.11);
}

.child-card {
  justify-content: space-between;
}

.child-card span,
.child-card strong,
.profile-card h1,
.profile-card p {
  display: block;
}

.child-card span {
  color: #4d5782;
  font-size: 12px;
  font-weight: 800;
}

.child-card strong {
  margin-top: 7px;
  font-size: 15px;
}

.small-pill {
  position: relative;
  z-index: 2;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  color: #4d5782;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(69, 78, 128, 0.10);
}

.mood-card {
  flex: 0 0 58px;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 16px;
  border: 1px solid rgba(117, 125, 180, 0.18);
  background: rgba(255, 255, 255, 0.70);
  color: #4d5782;
  font-size: 11px;
  font-weight: 850;
}

.mood-card.active {
  border-color: #8078e8;
  background: #f2efff;
}

.mood-star,
.mood-cloud,
.mood-sun,
.mood-heart {
  width: 24px;
  height: 24px;
  display: block;
}

.mood-star,
.asset-star,
.tab-star {
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 0 5px rgba(248, 215, 118, 0.18);
}

.mood-cloud,
.tab-cloud {
  border-radius: 999px;
  background: #d8eaff;
  box-shadow: -7px 5px 0 -2px #fff, 8px 5px 0 -1px #fff;
}

.mood-sun {
  border-radius: 50%;
  background: #ffd56d;
}

.mood-heart {
  border-radius: 50% 50% 44% 44%;
  background: #f5b3c2;
}

.theme-card {
  padding-bottom: 2px;
}

.theme-card.active {
  border-color: #8178ef;
  box-shadow: 0 0 0 2px rgba(129, 120, 239, 0.18), 0 14px 28px rgba(69, 78, 128, 0.12);
}

.segment-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.segment-row button {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.70);
  color: #60698c;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid rgba(117, 125, 180, 0.16);
}

.segment-row button.active {
  color: #4c4ec9;
  border-color: #8178ef;
  background: #f2efff;
}

.input-block {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 18px;
}

.input-block > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.input-block small {
  color: #7b83a2;
  font-size: 11px;
}

textarea {
  width: 100%;
  min-height: 78px;
  resize: none;
  border: 1px solid rgba(117, 125, 180, 0.14);
  outline: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea::placeholder {
  color: #717b9d;
}

.generate-button {
  margin-top: 13px;
}

.profile-card {
  min-height: 130px;
  display: grid;
  grid-template-columns: 72px 1fr 12px;
}

.profile-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.profile-card p {
  margin: 0;
  color: #6d7698;
  font-size: 12px;
  font-weight: 750;
}

.settings-list {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(69, 78, 128, 0.10);
}

.settings-list button {
  grid-template-columns: 34px 1fr auto 14px;
  min-height: 58px;
}

.asset-star,
.asset-note,
.asset-crown,
.asset-gear {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #eef2ff;
}

.asset-note {
  background: linear-gradient(145deg, #b4c8ff, #d7e4ff);
}

.asset-crown {
  background: linear-gradient(145deg, #ffe08a, #fff3ca);
}

.asset-gear {
  background: linear-gradient(145deg, #aeb8ff, #d5dbff);
}

.player-nav {
  color: #f7fbff;
}

.player-stage {
  position: relative;
  min-height: 350px;
  margin: 6px 0 4px;
}

.deep-star-a {
  left: 42px;
  top: 72px;
}

.deep-star-b {
  right: 34px;
  top: 154px;
  width: 10px;
  height: 10px;
}

.deep-moon {
  position: absolute;
  right: 58px;
  top: 72px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 34px rgba(248, 215, 118, 0.48);
}

.deep-moon::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--night);
}

.sleep-cloud {
  left: 70px;
  bottom: 64px;
  width: 210px;
  height: 52px;
}

.sleep-cloud::before {
  left: 22px;
  width: 68px;
  height: 68px;
}

.sleep-cloud::after {
  right: 28px;
  width: 84px;
  height: 84px;
}

.player-panel {
  color: #fff;
}

.player-panel p {
  color: #b9c9f2;
}

.player-panel h1 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.15;
}

.player-panel > span {
  display: block;
  color: #c9d7f3;
  font-size: 12px;
  font-weight: 700;
}

.wave-line {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 10px;
}

.wave-line b {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, #d7ecff, #88aae9);
}

.wave-line b:nth-child(1) { height: 18px; }
.wave-line b:nth-child(2) { height: 28px; }
.wave-line b:nth-child(3) { height: 22px; }
.wave-line b:nth-child(4) { height: 36px; }
.wave-line b:nth-child(5) { height: 30px; }
.wave-line b:nth-child(6) { height: 24px; }
.wave-line b:nth-child(7) { height: 28px; }
.wave-line b:nth-child(8) { height: 16px; }

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #d7ecff;
}

.player-controls {
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.control-button,
.play-button {
  min-height: 46px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.control-button {
  background: rgba(255, 255, 255, 0.10);
  color: #e7efff;
}

.play-button {
  width: 78px;
  height: 78px;
  min-height: 78px;
  border-radius: 50%;
  background: #f7fbff;
  color: var(--night);
}

.story-text {
  max-height: 112px;
  overflow: auto;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfeaff;
  font-size: 12px;
  line-height: 1.75;
}

.tabbar {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  height: 94px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 26px 16px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -16px 34px rgba(78, 82, 126, 0.10);
}

/* Backend connection and remote playback states */
.auth-panel {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, #f5f2ff 0%, #fbf8f0 100%);
}

.auth-panel.hidden { display: none; }

.auth-panel-art {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-panel .eyebrow {
  margin: 0 0 8px;
  color: #8579a7;
  font-size: 12px;
  letter-spacing: .08em;
}

.auth-panel h1 {
  margin: 0;
  color: #3c3650;
  font-size: 27px;
  line-height: 1.25;
}

.auth-intro {
  margin: 12px 0 24px;
  color: #817b8e;
  font-size: 14px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #655e78;
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  border: 1px solid #e1dced;
  border-radius: 16px;
  padding: 13px 15px;
  color: #3c3650;
  background: rgba(255, 255, 255, .84);
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: #a89bca;
  box-shadow: 0 0 0 3px rgba(168, 155, 202, .16);
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: #b26767;
  font-size: 13px;
}

.auth-close { justify-self: center; }

.connection-pill {
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  color: #75678e;
  background: rgba(255,255,255,.7);
  font-size: 11px;
}

.connection-pill.connected {
  color: #527a68;
  background: #e6f0e8;
}

.connection-status {
  margin: -10px 20px 12px;
  color: #8a8392;
  font-size: 12px;
}

.connection-status.connected { color: #527a68; }

.section-caption {
  color: #9aa2bd;
  font-size: 12px;
}

.section-note {
  margin: 12px 4px 0;
  color: #9a94a8;
  font-size: 12px;
  line-height: 1.6;
}

.empty-state {
  margin: 8px 0 0;
  padding: 24px 16px;
  border: 1px dashed rgba(112, 122, 165, .24);
  border-radius: 18px;
  color: #8f8ca2;
  font-size: 13px;
  text-align: center;
  background: rgba(255, 255, 255, .48);
}

.player-status {
  min-height: 19px;
  margin: 12px 0 0;
  color: #9d91b4;
  font-size: 12px;
  text-align: center;
}

#remote-audio { display: none; }

.tab-button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: transparent;
  color: #747b9b;
  font-size: 11px;
  font-weight: 850;
}

.tab-button span {
  position: relative;
  width: 34px;
  height: 28px;
  display: block;
}

.tab-button.active {
  color: #3f47b7;
}

.tab-button.active span {
  transform: translateY(-2px);
}

.tab-star {
  width: 28px !important;
  height: 28px !important;
}

.tab-sheep {
  width: 34px !important;
  height: 28px !important;
  border-radius: 50%;
  background:
    radial-gradient(circle at 25% 24%, #fff 0 13%, transparent 14%),
    radial-gradient(circle at 72% 24%, #fff 0 13%, transparent 14%),
    linear-gradient(180deg, #fff3f0, #fff);
}

@media (max-width: 430px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* Reference UI pass: soft lavender night-sky, calmer cards, and a clearer three-screen rhythm. */
:root {
  --ink: #202955;
  --ink-soft: #7c82a2;
  --line: rgba(87, 92, 141, .13);
  --lilac: #e6e8ff;
  --purple: #7885e2;
  --blue-soft: #f1f3ff;
}

body {
  background:
    radial-gradient(circle at 12% 12%, #f8f4ff 0, transparent 34%),
    radial-gradient(circle at 90% 18%, #fff6e9 0, transparent 28%),
    linear-gradient(150deg, #e8eaff 0%, #eef0ff 58%, #fffaf8 100%);
}

.app-shell { padding: 24px; }

.phone-frame {
  width: min(100%, 402px);
  height: min(874px, calc(100dvh - 30px));
  min-height: 720px;
  border-radius: 34px;
  background: #f7f7ff;
  box-shadow: 0 26px 80px rgba(78, 83, 145, .20);
}

.status-bar {
  padding: 0 24px;
  color: #18234d;
  font-size: 11px;
  letter-spacing: .01em;
}

.app-view {
  padding: 56px 16px 112px;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 255, 255, .72), transparent 20%),
    linear-gradient(180deg, #dfe2ff 0%, #f4f3ff 34%, #fbf9fc 100%);
}

.sky-bg { opacity: .8; }

.topbar,
.nav-title {
  grid-template-columns: 38px 1fr 42px;
  gap: 8px;
  margin-bottom: 13px;
}

.brand-lockup strong,
.nav-title strong {
  color: #1f2853;
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-lockup span {
  margin-top: 3px;
  color: #566087;
  font-size: 10px;
}

.avatar-button,
.round-icon,
.back-button {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 6px 18px rgba(92, 98, 152, .10);
}

.connection-pill {
  width: 40px;
  min-height: 32px;
  justify-self: end;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.72);
  color: #566087;
  font-size: 10px;
}

.connection-pill.connected { background: #e8f2ec; color: #527a68; }

.search-field {
  min-height: 43px;
  margin-bottom: 14px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .95);
  background: rgba(255,255,255,.75);
  box-shadow: 0 6px 16px rgba(86, 92, 148, .08);
}

.search-field input { font-size: 12px; color: #29335f; }
.search-field input::placeholder { color: #9298b4; }

.tonight-card {
  min-height: 222px;
  grid-template-columns: minmax(0, 1fr) 122px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 224, 134, .68) 0 8%, transparent 9%),
    radial-gradient(circle at 94% 35%, rgba(255, 243, 176, .86) 0 3%, transparent 4%),
    linear-gradient(145deg, #7c8be4 0%, #6678d8 50%, #8e9cf0 100%);
  box-shadow: 0 14px 30px rgba(81, 94, 188, .24);
}

.tonight-copy h1 { max-width: 205px; font-size: 24px; line-height: 1.18; text-wrap: balance; }
.tonight-copy span { margin-top: 8px; font-size: 11px; line-height: 1.55; }

.hero-actions {
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: auto;
}

.primary-button,
.secondary-button { min-height: 43px; font-size: 13px; }

.tonight-card .primary-button {
  background: rgba(63, 69, 181, .66);
  box-shadow: none;
  font-size: 12px;
}

.tonight-card .secondary-button {
  min-height: 26px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-size: 11px;
}

.section-block { margin-top: 17px; }
.section-head { margin-bottom: 9px; }
.section-head h2 { color: #202955; font-size: 15px; letter-spacing: -.01em; }
.section-head span, .text-button, .section-caption { color: #8187a4; font-size: 11px; }

.chip-row { gap: 8px; }
.chip { min-height: 32px; padding: 0 14px; border-color: rgba(110, 116, 178, .15); background: rgba(255,255,255,.74); color: #5f678b; font-size: 11px; }
.chip.active { border-color: #8d8bea; background: #faf7ff; color: #5c5bcc; box-shadow: none; }

.view-home .topic-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 1fr);
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.view-home .topic-grid::-webkit-scrollbar { display: none; }

.topic-card,
.theme-card {
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  background: #fffdfd;
  box-shadow: 0 7px 18px rgba(77, 83, 139, .09);
}

.topic-card strong, .theme-card strong { margin: 9px 11px 3px; font-size: 13px; }
.topic-card small, .theme-card small { margin: 0 11px 12px; color: #858ba8; font-size: 10px; }

.topic-art, .theme-art { height: 112px; border-radius: 15px 15px 10px 10px; }
.art-moon-sheep { background: radial-gradient(circle at 25% 22%, #ffdd82 0 17%, transparent 18%), linear-gradient(145deg, #8290e5, #c6d6ff); }
.art-star-sheep, .art-bedtime { background: radial-gradient(circle at 78% 22%, #ffdf87 0 8%, transparent 9%), linear-gradient(145deg, #7d8bdd, #c8d6ff); }
.art-school-sheep { background: radial-gradient(circle at 74% 24%, #ffdf87 0 8%, transparent 9%), linear-gradient(145deg, #a8b8f4, #e2e8ff); }
.art-miss { background: linear-gradient(145deg, #f6cbd0, #fff0f2); }
.art-comfort { background: linear-gradient(145deg, #bfdcff, #fff1ca); }
.art-school { background: linear-gradient(145deg, #c8e1ff, #ffe7a7); }

.story-list { border-radius: 16px; background: #fffdfd; box-shadow: 0 7px 18px rgba(77, 83, 139, .08); }
.story-item, .saved-story, .settings-list button { min-height: 70px; grid-template-columns: 52px 1fr 14px; gap: 11px; padding: 10px 13px; }
.story-item strong, .saved-story strong, .settings-list strong { margin-bottom: 4px; font-size: 12px; }
.story-item small, .saved-story small, .settings-list small { color: #858ba6; font-size: 10px; }
.story-cover { width: 50px; height: 50px; border-radius: 12px; }

.child-card, .profile-card {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(255,255,255,.82), rgba(255,248,250,.78));
  box-shadow: 0 8px 20px rgba(79, 83, 142, .09);
}

.child-card span { color: #60698f; font-size: 11px; }
.child-card strong { margin-top: 6px; font-size: 14px; }
.small-pill { min-height: 31px; padding: 0 12px; color: #596387; box-shadow: 0 5px 13px rgba(73, 77, 131, .08); }

.mood-row { gap: 8px; }
.mood-card { flex-basis: 55px; min-height: 60px; border-radius: 15px; border-color: rgba(110, 116, 178, .12); background: rgba(255,255,255,.78); color: #596387; font-size: 10px; }
.mood-card.active { border-color: #8f89e9; background: #fff5eb; box-shadow: none; }

.theme-grid { gap: 10px; }
.theme-card.active { border-color: #8f89e9; box-shadow: 0 0 0 2px rgba(143,137,233,.16); }
.segment-row { gap: 7px; }
.segment-row button { min-height: 39px; border-radius: 13px; background: rgba(255,255,255,.78); color: #68708f; font-size: 12px; }
.segment-row button.active { border-color: #8d87e7; background: #faf7ff; color: #5859c8; }

.input-block { margin-top: 16px; }
.input-block > span { margin-bottom: 7px; color: #202955; font-size: 14px; }
.input-block small { color: #858ba7; font-size: 10px; }
textarea { min-height: 76px; border: 1px solid rgba(117,125,180,.13); border-radius: 16px; background: rgba(255,255,255,.78); font-size: 12px; }

.generate-button { width: 100%; margin-top: 12px; background: linear-gradient(110deg, #7d8de8, #7c86dc); box-shadow: 0 9px 20px rgba(98, 112, 211, .20); }

.profile-card { min-height: 132px; background: linear-gradient(112deg, rgba(255,255,255,.84), rgba(255,246,247,.82)); }
.profile-card h1 { font-size: 23px; }
.profile-card p { color: #7d829d; font-size: 12px; }
.connection-status { margin: -8px 4px 6px; color: #858ba7; font-size: 10px; }
.settings-list { border-radius: 16px; background: #fffdfd; box-shadow: 0 7px 18px rgba(77,83,139,.08); }
.settings-list button { grid-template-columns: 32px 1fr auto 14px; min-height: 56px; }
.section-note { color: #858ba7; font-size: 10px; }

.tabbar { height: 86px; padding: 9px 28px 14px; border-top-left-radius: 28px; border-top-right-radius: 28px; background: rgba(255,255,255,.86); box-shadow: 0 -10px 26px rgba(78,82,126,.08); }
.tab-button { gap: 4px; color: #7d839e; font-size: 10px; }
.tab-button.active { color: #424baf; }
.tab-button span { transform: scale(.86); }

.app-toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 96px;
  z-index: 60;
  padding: 11px 14px;
  border-radius: 13px;
  color: #fff;
  background: rgba(32, 41, 85, .90);
  box-shadow: 0 8px 20px rgba(37,43,90,.20);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.app-toast.visible { opacity: 1; transform: translateY(0); }

/* Final legibility pass for the tiny sheep illustrations and account hint. */
.sheep,
.sheep-avatar {
  background:
    radial-gradient(ellipse at 7% 52%, #f6c5cb 0 9%, transparent 10%),
    radial-gradient(ellipse at 93% 52%, #f6c5cb 0 9%, transparent 10%),
    radial-gradient(circle at 26% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 72% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 12%, #fff 0 16%, transparent 17%),
    linear-gradient(180deg, #fff8f5, #fff);
}

.topic-art::after,
.theme-art::after {
  background:
    radial-gradient(circle at 36% 49%, #3c3555 0 2px, transparent 2.6px),
    radial-gradient(circle at 64% 49%, #3c3555 0 2px, transparent 2.6px),
    radial-gradient(ellipse at 50% 68%, #efb7bd 0 8%, transparent 9%),
    radial-gradient(circle at 26% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 72% 24%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 10%, #fff 0 16%, transparent 17%),
    linear-gradient(180deg, #fff8f5, #fff);
}

.connection-status {
  margin: 7px 5px -1px;
  min-height: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .app-toast { transition: none; }
}

/* High-fidelity reference pass: the reference files are full scroll captures,
   so the three app views keep their own long internal canvas. */
.app-shell { padding: 0; }

.phone-frame {
  width: min(100%, 393px);
  height: min(100dvh, 852px);
  min-height: 720px;
  border-radius: 30px;
  background: #f6f4ff;
  box-shadow: 0 24px 70px rgba(65, 70, 133, .18);
}

.status-bar {
  height: 44px;
  padding: 0 22px;
  font-size: 12px;
  color: #131a4c;
}

.app-view {
  padding: 58px 15px 124px;
  background:
    radial-gradient(circle at 15% 3%, rgba(255,255,255,.66), transparent 23%),
    linear-gradient(180deg, #dfe2ff 0%, #f3f2ff 31%, #faf8fc 100%);
}

.topbar,
.nav-title { margin-bottom: 14px; }

.topbar { grid-template-columns: 38px 1fr 38px; gap: 8px; }

.brand-lockup strong,
.nav-title strong { color: #182252; font-size: 18px; }

.brand-lockup span { color: #465080; font-size: 10px; }

.avatar-button,
.round-icon,
.back-button,
.connection-pill {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: 0 7px 18px rgba(78,84,144,.10);
}

.connection-pill {
  position: relative;
  padding: 0;
  color: transparent;
  font-size: 0;
}

.connection-pill.connected { background: rgba(255,255,255,.82); }
.connection-pill::before { border-color: #384aa1; }
.connection-pill::after { background: #384aa1; }

.search-field {
  min-height: 43px;
  margin-bottom: 14px;
  padding: 0 15px;
  border-radius: 22px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 6px 16px rgba(84,90,150,.08);
}

.search-field input { color: #29335f; font-size: 13px; }
.search-field input::placeholder { color: #9298b4; }

.tonight-card {
  min-height: 160px;
  grid-template-columns: minmax(0, 1fr) 126px;
  padding: 15px 14px 13px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,224,134,.78) 0 7%, transparent 8%),
    radial-gradient(circle at 94% 34%, rgba(255,243,176,.88) 0 3%, transparent 4%),
    linear-gradient(145deg, #7083e2 0%, #5d72d7 53%, #8797ec 100%);
  box-shadow: 0 14px 30px rgba(81,94,188,.22);
}

.tonight-copy p { font-size: 11px; }
.tonight-copy h1 { max-width: 232px; font-size: 22px; line-height: 1.15; }
.tonight-copy > span { margin-top: 7px; font-size: 11px; line-height: 1.45; }
.tonight-card .secondary-button { display: none; }
.hero-actions { margin-top: auto; }
.tonight-card .primary-button { min-height: 38px; font-size: 12px; }

.section-block { margin-top: 20px; }
.section-head { margin-bottom: 9px; }
.section-head h2 { color: #17224a; font-size: 17px; }
.section-head span, .text-button, .section-caption { color: #858ba8; font-size: 11px; }

.chip-row { gap: 8px; }
.chip { min-height: 31px; padding: 0 14px; font-size: 11px; }

.view-home .topic-grid {
  grid-auto-columns: 166px;
  gap: 10px;
}

.topic-card,
.theme-card {
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 7px 18px rgba(77,83,139,.08);
}

.topic-art, .theme-art { height: 88px; border-radius: 15px 15px 10px 10px; }
.topic-card strong, .theme-card strong { margin: 9px 11px 3px; font-size: 13px; }
.topic-card small, .theme-card small { margin: 0 11px 11px; font-size: 10px; }

.story-list { border-radius: 16px; }
.story-item, .saved-story {
  min-height: 70px;
  grid-template-columns: 50px 1fr 14px;
  gap: 11px;
  padding: 10px 13px;
}
.story-cover { width: 48px; height: 48px; border-radius: 12px; }
.story-item strong, .saved-story strong { font-size: 13px; }
.story-item small, .saved-story small { font-size: 10px; }

.child-card { min-height: 93px; padding: 15px; border-radius: 18px; }
.child-card strong { font-size: 14px; }
.small-pill { min-height: 30px; padding: 0 11px; font-size: 11px; }

.mood-row { gap: 7px; }
.mood-card { flex-basis: 55px; min-height: 60px; }
.theme-grid { gap: 9px; }
.theme-card { padding-bottom: 1px; }
.segment-row { gap: 7px; }
.segment-row button { min-height: 38px; font-size: 11px; }
.input-block { margin-top: 15px; }
textarea { min-height: 78px; }
.generate-button { min-height: 46px; margin-top: 12px; }

.profile-card { min-height: 126px; padding: 17px; border-radius: 19px; }
.profile-card h1 { font-size: 23px; }
.profile-card p { font-size: 12px; }
.connection-status, .section-note { display: none; }
.view-profile .section-block { margin-top: 22px; }
.view-profile .story-item { min-height: 77px; }
.view-profile .story-cover { width: 50px; height: 50px; }
.settings-list button { min-height: 64px; }

.asset-star,
.asset-note,
.asset-crown,
.asset-gear {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
}

.asset-star::before { content: "☆"; position: absolute; inset: -2px 0 0; color: #34353c; font-size: 29px; line-height: 28px; }
.asset-note::before { content: ""; position: absolute; left: 5px; top: 7px; width: 3px; height: 14px; border-radius: 2px; background: #34353c; box-shadow: 6px -4px 0 #34353c, 12px 2px 0 #34353c; }
.asset-crown::before { content: "♕"; position: absolute; inset: -1px 0 0; color: #34353c; font-size: 25px; line-height: 28px; }
.asset-gear::before { content: "⚙"; position: absolute; inset: 0; color: #34353c; font-size: 24px; line-height: 28px; }

button:focus { outline: none; }
button:focus-visible { outline: 2px solid rgba(91, 101, 198, .62); outline-offset: 2px; }

.tabbar {
  height: 96px;
  padding: 10px 28px 16px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  background: rgba(255,255,255,.88);
}

@media (max-width: 430px) {
  .phone-frame {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }
}

/* Figma frame “改2”: use the exported artwork as the source of truth for the
   illustration layer, while leaving the existing interaction layer intact. */
.app-view {
  padding-top: 65px;
  background:
    radial-gradient(circle at 11% 6%, rgba(255, 255, 255, .72), transparent 24%),
    linear-gradient(180deg, #d5e4ff 0%, #ebeafd 31%, #f6f9ff 100%);
}

.connection-pill {
  background-image: url("./assets/figma/home_bell.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.connection-pill.connected {
  background-color: rgba(255, 255, 255, .82);
  background-image: url("./assets/figma/home_bell.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.connection-pill::before,
.connection-pill::after { display: none; }

.search-dot {
  width: 20px;
  height: 20px;
  border: 0;
  background: url("./assets/figma/home_search.svg") center / contain no-repeat;
}
.search-dot::after { display: none; }

.sheep-avatar::before,
.sheep-avatar::after { display: none; }
.view-home .sheep-avatar.mini,
.auth-panel .sheep-avatar.large {
  background: url("./assets/figma/home_avatar.png") center / contain no-repeat;
}
.view-create .sheep-avatar.floating {
  background: url("./assets/figma/create_avatar.png") center / contain no-repeat;
}
.view-profile .sheep-avatar.large {
  background: url("./assets/figma/profile_avatar.png") center / contain no-repeat;
}

.tonight-card {
  height: 183px;
  min-height: 183px;
  display: block;
  padding: 16px;
  background: #6479df;
  border-radius: 20px;
}
.hero-reference-img {
  position: absolute;
  z-index: 0;
  left: 0;
  top: -4%;
  width: 100%;
  height: 126.4%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}
.tonight-copy { position: static; z-index: auto; }
.tonight-copy > p,
.tonight-copy > h1,
.tonight-copy > span { position: relative; z-index: 2; }
.hero-art { display: none; }
.tonight-copy p { margin-bottom: 7px; }
.tonight-copy h1 { font-size: 22px; max-width: 245px; }
.tonight-copy > span { max-width: 260px; }
.hero-actions {
  position: absolute;
  right: 0;
  bottom: 45px;
  width: 218px;
  margin: 0;
  z-index: 2;
}
.tonight-card .primary-button {
  width: 100%;
  min-height: 40px;
  background: rgba(58, 57, 178, .67);
  box-shadow: none;
  font-size: 12px;
}

.view-home .topic-grid {
  grid-auto-columns: 147px;
  gap: 8px;
}
.view-home .section-block:not(.last-block) { margin-top: 27px; }
.view-home .last-block { margin-top: 24px; }
.view-home .topic-card {
  height: 158px;
  border-radius: 16px;
}
.view-home .topic-art {
  height: 95px;
  border-radius: 15px 15px 10px 10px;
}
.view-home .art-moon-sheep {
  background: url("./assets/figma/home_topic1.png") center / cover no-repeat;
}
.view-home .art-star-sheep {
  background: url("./assets/figma/home_topic2.png") center / cover no-repeat;
}
.view-home .art-school-sheep {
  background: url("./assets/figma/create_story4.png") center / cover no-repeat;
}
.topic-art::before,
.topic-art::after,
.theme-art::before,
.theme-art::after { display: none; }
.view-home .topic-card strong { margin: 8px 10px 3px; font-size: 13px; }
.view-home .topic-card small { margin: 0 10px 10px; font-size: 10px; }

.recommendation-chips {
  margin: -1px 0 12px;
}
.recommendation-chips .chip {
  min-height: 32px;
  padding: 0 13px;
}
.recommendation-chips .chip.active {
  border-color: #8d8bea;
  background: #faf7ff;
}
.view-home .story-list { border-radius: 16px; }
.view-home .story-item {
  min-height: 73px;
  grid-template-columns: 48px 1fr 12px;
  gap: 12px;
  padding: 12px 16px;
}
.view-home .story-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.story-cover {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.story-cover::before,
.story-cover::after { display: none; }
.cover-1 { background-image: url("./assets/figma/home_story1.png"); }
.cover-2 { background-image: url("./assets/figma/home_story2.png"); }
.cover-3 { background-image: url("./assets/figma/home_story3.png"); }
.cover-4 { background-image: url("./assets/figma/home_story4.png"); }
.cover-5 { background-image: url("./assets/figma/home_story5.png"); }

.view-create .child-card {
  min-height: 79px;
  height: 79px;
  padding: 13px 16px;
  border-radius: 18px;
}
.view-create { padding-bottom: 34px; }
.view-player { padding-bottom: 34px; }
.view-create .section-block { margin-top: 17px; }
.view-create .saved-story {
  min-height: 98px;
  height: 98px;
  grid-template-columns: 64px 1fr 12px;
  gap: 12px;
  padding: 16px;
}
.view-create .saved-story .story-cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}
.view-create .mood-card {
  min-height: 62px;
  flex-basis: 64px;
}
.view-create .input-block { margin-top: 23px; }
.view-create .input-block > span { margin-bottom: 14px; }
.view-create .generate-button { margin-top: 34px; }
.view-create .mood-star { background: url("./assets/figma/create_theme1.png") center / 32px 32px no-repeat; box-shadow: none; }
.view-create .mood-cloud { background: url("./assets/figma/create_theme2.png") center / 32px 32px no-repeat; box-shadow: none; }
.view-create .mood-sun { background: url("./assets/figma/create_theme3.png") center / 32px 32px no-repeat; }
.view-create .mood-heart { background: url("./assets/figma/create_theme4.png") center / 32px 32px no-repeat; }
.view-create .theme-art { height: 88px; }
.view-create .art-bedtime { background: url("./assets/figma/create_story1.png") center / cover no-repeat; }
.view-create .art-miss { background: url("./assets/figma/create_story2.png") center / cover no-repeat; }
.view-create .art-comfort { background: url("./assets/figma/create_story3.png") center / cover no-repeat; }
.view-create .art-school { background: url("./assets/figma/create_story4.png") center / cover no-repeat; }

.settings-icon {
  background-image: url("./assets/figma/profile_settings.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}
.settings-icon::before,
.settings-icon::after { display: none; }
.view-profile .profile-card {
  min-height: 128px;
  height: 128px;
  padding: 18px;
  border-radius: 20px;
}
.view-profile .section-block { margin-top: 27px; }
.view-profile .section-block + .section-block { margin-top: 35px; }
.view-profile .section-head { margin-bottom: 14px; }
.view-profile .story-item {
  min-height: 97px;
  grid-template-columns: 68px 1fr 12px;
  gap: 12px;
  padding: 14px 16px;
}
.view-profile .story-cover {
  width: 68px;
  height: 68px;
  border-radius: 12px;
}
.view-profile .settings-list button {
  min-height: 56px;
  grid-template-columns: 32px 1fr auto 12px;
}
.asset-star,
.asset-note,
.asset-crown,
.asset-gear {
  background-position: center;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: none;
}
.asset-star { background-image: url("./assets/figma/profile_icon1.svg"); }
.asset-note { background-image: url("./assets/figma/profile_icon2.svg"); }
.asset-crown { background-image: url("./assets/figma/profile_icon3.svg"); }
.asset-gear { background-image: url("./assets/figma/profile_icon4.svg"); }
.asset-star::before,
.asset-note::before,
.asset-crown::before,
.asset-gear::before { display: none; }

.tab-button span {
  width: 40px;
  height: 40px;
  transform: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}
.tab-cloud { background-image: url("./assets/figma/home_nav_home.png"); }
.tab-star { background-image: url("./assets/figma/home_nav_discover.png"); }
.tab-sheep { background-image: url("./assets/figma/home_nav_profile.png"); }
.tabbar.tabbar-profile .tab-cloud { background-image: url("./assets/figma/profile_nav1.png"); }
.tabbar.tabbar-profile .tab-star { background-image: url("./assets/figma/profile_nav2.png"); }
.tabbar.tabbar-profile .tab-sheep { background-image: url("./assets/figma/profile_nav3.png"); }
.tabbar { height: 84px; padding: 8px 28px 12px; }
.tabbar.tabbar-hidden { display: none; }
