:root {
  --ink: #111111;
  --muted: #6f6c67;
  --line: #ded8ce;
  --paper: #fffdf8;
  --cream: #f7f2e9;
  --teal: #007a68;
  --teal-dark: #006051;
  --pink: #f6a9a3;
  --yellow: #ffe7a9;
  --shadow: 0 22px 60px rgba(35, 28, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 231, 169, 0.42), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(246, 169, 163, 0.22), transparent 24%),
    #f3f0eb;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1720px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding: 28px 48px 36px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(222, 216, 206, 0.92);
  border-radius: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.husky-logo {
  position: relative;
  width: 62px;
  height: 58px;
  flex: 0 0 auto;
}

.husky-logo .ear {
  position: absolute;
  top: 1px;
  width: 19px;
  height: 30px;
  border: 5px solid var(--ink);
  background: #fff;
  transform: rotate(-16deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.husky-logo .ear.left {
  left: 7px;
}

.husky-logo .ear.right {
  right: 7px;
  transform: rotate(16deg);
}

.husky-logo .face {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: 48px;
  border: 5px solid var(--ink);
  border-radius: 48% 48% 44% 44%;
  background: #fff;
}

.husky-logo .eye {
  position: absolute;
  top: 18px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.husky-logo .eye.left {
  left: 16px;
}

.husky-logo .eye.right {
  right: 16px;
}

.husky-logo .nose {
  position: absolute;
  left: 50%;
  top: 27px;
  width: 9px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

.husky-logo .smile {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 22px;
  height: 10px;
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 22px 22px;
  transform: translateX(-50%);
}

.nav-tabs {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
}

.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  padding: 12px 0;
}

.nav-link::after {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2px;
  height: 5px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.identity-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 0 24px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(21, 18, 12, 0.06);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  transition: 180ms ease;
}

.identity-switch:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.switch-arrows {
  font-size: 27px;
  line-height: 1;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 420px;
  align-items: center;
  gap: 32px;
  padding: 48px 34px 18px;
}

.daily-kicker {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(56px, 6.2vw, 108px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 span,
.heart {
  color: var(--teal);
  -webkit-text-stroke: 3px var(--ink);
}

.hero-line {
  max-width: 620px;
  margin: 26px 0 28px;
  color: #3e3a35;
  font-size: 24px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.primary-btn,
.secondary-btn,
.text-btn,
.filter-btn {
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  transition: 180ms ease;
}

.primary-btn {
  min-height: 60px;
  padding: 0 36px;
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.07);
  font-size: 22px;
}

.primary-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.secondary-btn {
  min-height: 60px;
  padding: 0 36px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 22px;
}

.secondary-btn:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.primary-btn.small {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
}

.streak-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 12px 30px 12px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff8e8;
  box-shadow: 0 10px 20px rgba(70, 52, 20, 0.06);
  color: #3b342b;
  font-size: 25px;
  font-weight: 700;
}

.streak-card strong {
  color: var(--teal);
  font-size: 37px;
}

.calendar-icon {
  position: relative;
  width: 44px;
  height: 40px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.calendar-icon::before {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 10px;
  border-top: 4px solid var(--ink);
  content: "";
}

.calendar-icon::after {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 17px;
  height: 9px;
  border-left: 4px solid var(--teal);
  border-bottom: 4px solid var(--teal);
  content: "";
  transform: rotate(-45deg);
}

.hero-art {
  position: relative;
  min-height: 430px;
}

.sun-doodle {
  position: absolute;
  top: 10px;
  left: 13%;
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 46px;
  animation: softFloat 3.6s ease-in-out infinite;
}

.cloud-doodle {
  position: absolute;
  top: 60px;
  right: 12%;
  width: 118px;
  height: 42px;
  border: 5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.cloud-doodle::before,
.cloud-doodle::after {
  position: absolute;
  bottom: 18px;
  border: 5px solid var(--ink);
  border-bottom: 0;
  background: #fff;
  content: "";
}

.cloud-doodle::before {
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 0 0;
}

.cloud-doodle::after {
  right: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 0 0;
}

.heart {
  position: absolute;
  font-size: 34px;
  font-weight: 900;
}

.heart.h1 {
  left: 8%;
  top: 174px;
  color: var(--pink);
}

.heart.h2 {
  left: 29%;
  top: 150px;
  color: var(--teal);
}

.scale-doodle {
  position: absolute;
  left: 6%;
  bottom: 42px;
  width: 128px;
  height: 98px;
  border: 5px solid var(--ink);
  border-radius: 28px;
  background: var(--teal);
  transform: rotate(-8deg);
}

.scale-doodle span {
  position: absolute;
  left: 35px;
  top: 16px;
  width: 56px;
  height: 30px;
  border: 4px solid var(--ink);
  border-radius: 50% 50% 42% 42%;
  background: #fff;
}

.bowl-doodle {
  position: absolute;
  left: 26%;
  bottom: 40px;
  width: 116px;
  height: 64px;
  border: 5px solid var(--ink);
  border-radius: 0 0 60px 60px;
  background: #fff;
  overflow: hidden;
}

.bowl-doodle span {
  position: absolute;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: #f5b07d;
}

.bowl-doodle span:nth-child(1) {
  left: 12px;
  background: #7fc7a1;
}

.bowl-doodle span:nth-child(2) {
  left: 40px;
}

.bowl-doodle span:nth-child(3) {
  right: 12px;
  background: #f4c268;
}

.note-doodle {
  position: absolute;
  top: 88px;
  right: 0;
  display: grid;
  gap: 10px;
  width: 205px;
  min-height: 160px;
  padding: 28px 20px;
  border: 4px solid var(--ink);
  background: #fffaf0;
  box-shadow: 9px 10px 0 rgba(0, 0, 0, 0.08);
  color: #2d2923;
  font-size: 20px;
  font-weight: 800;
  transform: rotate(7deg);
}

.note-doodle::before {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 34px;
  height: 25px;
  background: var(--teal);
  border: 3px solid var(--ink);
  content: "";
  transform: translateX(-50%) rotate(-3deg);
}

.husky-hero {
  position: absolute;
  right: 18%;
  bottom: 50px;
  width: 305px;
  height: 245px;
  animation: softFloat 3.2s ease-in-out infinite;
}

.hero-head {
  position: absolute;
  z-index: 2;
  left: 38px;
  top: 36px;
  width: 128px;
  height: 108px;
  border: 6px solid var(--ink);
  border-radius: 48% 48% 42% 42%;
  background: #fff;
}

.hero-ear {
  position: absolute;
  z-index: 1;
  top: 2px;
  width: 56px;
  height: 94px;
  border: 6px solid var(--ink);
  background: #333;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-ear.left {
  left: 40px;
  transform: rotate(-14deg);
}

.hero-ear.right {
  left: 120px;
  transform: rotate(22deg);
}

.mask {
  position: absolute;
  top: -1px;
  width: 48px;
  height: 58px;
  background: #333;
  border-radius: 0 0 60% 60%;
}

.mask.left {
  left: 0;
}

.mask.right {
  right: 0;
}

.hero-eye {
  position: absolute;
  z-index: 3;
  top: 50px;
  width: 12px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

.hero-eye.left {
  left: 38px;
}

.hero-eye.right {
  right: 38px;
}

.hero-nose {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 70px;
  width: 25px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

.tongue {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 88px;
  width: 22px;
  height: 34px;
  border: 4px solid var(--ink);
  border-radius: 0 0 18px 18px;
  background: var(--pink);
  transform: translateX(-50%);
}

.husky-hero .body {
  position: absolute;
  right: 28px;
  bottom: 48px;
  width: 220px;
  height: 112px;
  border: 6px solid var(--ink);
  border-radius: 52% 40% 40% 46%;
  background: #fff;
}

.husky-hero .body::before {
  position: absolute;
  left: 54px;
  top: -1px;
  width: 94px;
  height: 54px;
  border-radius: 0 0 50px 50px;
  background: #333;
  content: "";
}

.tail {
  position: absolute;
  right: 0;
  top: 66px;
  width: 72px;
  height: 128px;
  border: 6px solid var(--ink);
  border-left: 0;
  border-radius: 0 80px 80px 0;
  background: #fff;
  transform: rotate(-16deg);
}

.leg {
  position: absolute;
  bottom: 18px;
  width: 72px;
  height: 46px;
  border: 6px solid var(--ink);
  border-radius: 35px;
  background: #fff;
}

.leg.front {
  left: 68px;
}

.leg.back {
  right: 72px;
}

.flowers {
  position: absolute;
  right: 5%;
  bottom: 28px;
  width: 150px;
  height: 95px;
}

.flowers span {
  position: absolute;
  bottom: 0;
  width: 48px;
  height: 48px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.flowers span::after {
  position: absolute;
  left: 50%;
  top: 45px;
  width: 5px;
  height: 50px;
  background: var(--ink);
  content: "";
}

.flowers span:nth-child(1) {
  left: 18px;
  background: var(--yellow);
}

.flowers span:nth-child(2) {
  right: 12px;
  background: var(--pink);
}

.quick-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.quick-card,
.records-panel,
.message-card,
.form-card,
.record-side,
.goal-card,
.history-item {
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 12px 28px rgba(24, 19, 12, 0.04);
}

.quick-card {
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  align-items: center;
  min-height: 142px;
  padding: 22px 22px;
  color: var(--ink);
  text-align: left;
  transition: 180ms ease;
}

.quick-card:hover {
  border-color: var(--ink);
  transform: translateY(-5px);
}

.quick-card:hover i {
  transform: translateX(6px);
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.quick-card small {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.quick-card i {
  font-style: normal;
  font-size: 28px;
  transition: 180ms ease;
}

.card-icon {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--ink);
  font-size: 36px;
}

.card-icon.scale {
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: var(--teal);
}

.card-icon.scale::before {
  position: absolute;
  top: 10px;
  width: 30px;
  height: 17px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 40% 40%;
  background: #fff;
  content: "";
}

.card-icon.bowl::before {
  width: 58px;
  height: 34px;
  border: 4px solid var(--ink);
  border-radius: 0 0 40px 40px;
  background: #fff;
  content: "";
}

.card-icon.bowl::after {
  position: absolute;
  top: 2px;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 13px -13px 0 -1px var(--pink);
  content: "";
  transform: rotate(-35deg);
}

.card-icon.envelope {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.card-icon.envelope::before {
  position: absolute;
  inset: 10px 8px auto;
  height: 30px;
  border-left: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  content: "";
  transform: rotate(-45deg);
}

.home-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  margin-top: 22px;
}

.records-panel,
.message-card {
  padding: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title h2,
.message-card h2,
.form-card label,
.record-side h2,
.goal-card h2 {
  margin: 0;
  font-size: 24px;
}

.section-title h2 span {
  color: var(--teal);
}

.text-btn {
  padding: 8px 16px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.text-btn:hover {
  border-color: var(--line);
  background: #fff8e8;
}

.records-table {
  display: grid;
  gap: 8px;
}

.record-row {
  display: grid;
  grid-template-columns: 120px 190px 170px minmax(180px, 1fr) 130px 32px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid #ebe4d8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  transition: 160ms ease;
}

.record-row:hover {
  border-color: var(--ink);
  background: #fffaf0;
  transform: translateX(3px);
}

.avatar-pair,
.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}

.avatar::before,
.avatar::after {
  position: absolute;
  content: "";
}

.avatar.girl::before {
  left: 4px;
  right: 4px;
  top: 3px;
  height: 12px;
  border-radius: 12px 12px 6px 6px;
  background: #222;
}

.avatar.boy::before {
  left: 5px;
  right: 4px;
  top: 3px;
  height: 13px;
  border-radius: 12px 12px 8px 4px;
  background: #222;
}

.avatar.boy::after {
  left: 16px;
  top: 3px;
  width: 10px;
  height: 17px;
  border-radius: 0 0 10px 10px;
  background: #fff;
  transform: rotate(20deg);
}

.mood-mini {
  font-size: 22px;
}

.status {
  display: inline-flex;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: #e8f6f1;
  font-weight: 800;
}

.status.partial {
  color: #8a5c00;
  background: #fff4d5;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.message-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.message-card::before,
.message-card::after {
  position: absolute;
  color: #f4c75f;
  font-size: 31px;
  content: "☀";
}

.message-card::before {
  left: 30px;
  top: 32px;
}

.message-card::after {
  right: 30px;
  bottom: 28px;
}

.message-card.empty-message {
  min-height: 250px;
  justify-content: center;
}

.message-card.empty-message .mail-icon,
.message-card.empty-message h2 {
  display: none;
}

.message-card.empty-message p {
  margin: 0;
  font-size: 24px;
}

.message-card.has-message .mail-icon::after {
  color: #f4c75f;
  content: "☀";
  font-size: 23px;
}

.mail-icon {
  position: relative;
  width: 62px;
  height: 44px;
  margin-bottom: 18px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.mail-icon::before {
  position: absolute;
  left: 13px;
  top: 8px;
  width: 29px;
  height: 29px;
  border-left: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  content: "";
  transform: rotate(-45deg);
}

.mail-icon::after {
  position: absolute;
  right: -11px;
  top: -12px;
  color: var(--pink);
  content: "☀";
  font-size: 24px;
}

.message-card p,
.message-modal p {
  width: 100%;
  margin: 18px 0 24px;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff8e8;
  color: #292520;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 700;
}

.page-head {
  padding: 48px 34px 28px;
  text-align: center;
}

.page-head p {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.1;
}

.page-head span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 21px;
}

.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
}

.record-form {
  display: grid;
  gap: 18px;
}

.form-card {
  padding: 24px;
}

.form-card label {
  display: block;
  margin-bottom: 16px;
  font-weight: 900;
}

.inline-input {
  display: flex;
  align-items: center;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
  color: var(--ink);
  outline: none;
  transition: 160ms ease;
}

input {
  min-height: 56px;
  padding: 0 18px;
  font-size: 20px;
}

textarea {
  min-height: 96px;
  padding: 16px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 122, 104, 0.1);
}

.inline-input span {
  font-size: 22px;
  font-weight: 800;
}

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

.food-field {
  display: block;
  margin: 0;
}

.food-field span {
  display: block;
  margin: 0 0 10px;
  color: #111;
  font-size: 18px;
  font-weight: 900;
}

.food-field textarea {
  min-height: 118px;
}

.tag-row,
.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-row button,
.filter-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.tag-row button:hover,
.tag-row button.active,
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--teal);
  background: #e8f6f1;
  color: var(--teal);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.mood-grid button {
  display: grid;
  min-height: 94px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 32px;
  transition: 160ms ease;
}

.mood-grid button span {
  font-size: 14px;
  font-weight: 800;
}

.mood-grid button:hover,
.mood-grid button.active {
  border-color: var(--ink);
  background: #fff8e8;
  transform: translateY(-4px) scale(1.02);
}

.message-input {
  min-height: 130px;
}

.form-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  text-align: right;
}

.submit-btn {
  justify-self: start;
  min-width: 220px;
}

.record-side {
  align-self: start;
  position: sticky;
  top: 20px;
  padding: 26px;
}

.record-side p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.side-dog {
  position: relative;
  height: 160px;
  margin-bottom: 18px;
  border: 2px dashed var(--line);
  border-radius: 20px;
  background: #fff8e8;
}

.side-dog span {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 88px;
  height: 68px;
  border: 5px solid var(--ink);
  border-radius: 50% 50% 42% 42%;
  background: #fff;
  transform: translateX(-50%);
}

.side-dog span::before,
.side-dog span::after {
  position: absolute;
  top: -32px;
  width: 35px;
  height: 52px;
  border: 5px solid var(--ink);
  background: #333;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.side-dog span::before {
  left: 2px;
  transform: rotate(-16deg);
}

.side-dog span::after {
  right: 2px;
  transform: rotate(16deg);
}

.today-status {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.history-toolbar {
  justify-content: center;
  margin: 0 0 24px;
}

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

.history-item {
  padding: 22px;
}

.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.history-top h2 {
  margin: 0;
  font-size: 25px;
}

.history-people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.person-detail {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}

.person-detail h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.person-detail p {
  margin: 8px 0;
  color: #3e3a35;
  line-height: 1.55;
}

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

.goal-card {
  padding: 26px;
}

.goal-card label {
  display: block;
  margin-top: 18px;
  font-weight: 800;
}

.goal-card input {
  display: inline-block;
  width: 160px;
  margin: 0 8px;
}

.goal-card.wide {
  grid-column: 1 / -1;
  text-align: center;
}

.goal-card.wide strong {
  display: block;
  margin: 12px 0;
  color: var(--teal);
  font-size: 54px;
}

.goal-card.wide p {
  color: var(--muted);
  font-size: 20px;
}

.progress-line {
  height: 16px;
  margin-top: 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.progress-line span {
  display: block;
  width: 36%;
  height: 100%;
  background: var(--teal);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 19, 14, 0.24);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(470px, 100%);
  padding: 34px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 14px 16px 0 rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: popIn 180ms ease-out;
}

.modal h2 {
  margin: 0;
  font-size: 28px;
}

.modal > p {
  color: #3a352f;
  font-size: 18px;
  line-height: 1.6;
}

.modal input {
  margin: 18px 0 10px;
  text-align: center;
}

.close-btn {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff8e8;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
}

.modal-error {
  min-height: 24px;
  margin: 0 0 12px;
  color: #b73b2d;
  font-weight: 800;
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  body {
    padding: 14px;
  }

  .app-shell {
    padding: 22px;
    border-radius: 28px;
  }

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

  .nav-tabs {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .identity-switch {
    justify-self: start;
  }

  .hero,
  .record-layout,
  .home-bottom {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 360px;
  }

  .quick-cards,
  .goals-grid,
  .history-people {
    grid-template-columns: 1fr 1fr;
  }

  .record-row {
    grid-template-columns: 90px 150px 130px 1fr;
  }

  .record-row .status,
  .record-row .row-arrow {
    display: none;
  }
}

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

  .brand {
    font-size: 22px;
  }

  .nav-tabs {
    gap: 24px;
  }

  .hero {
    padding: 32px 4px 8px;
  }

  .hero-line {
    font-size: 19px;
  }

  .hero-art {
    transform: scale(0.82);
    transform-origin: left top;
    min-height: 310px;
  }

  .quick-cards,
  .goals-grid,
  .history-people,
  .food-grid,
  .mood-grid {
    grid-template-columns: 1fr;
  }

  .record-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-head {
    padding: 34px 4px 20px;
  }
}

/* Main title image and final hero composition from provided assets. */
.hero {
  grid-template-columns: 0.74fr 1.26fr;
  align-items: center;
  gap: 14px;
  padding-top: 34px;
}

.hero-copy {
  align-self: center;
  padding-left: 8px;
}

.hero-title-img {
  display: block;
  width: min(620px, 100%);
  height: auto;
  object-fit: contain;
  margin: 0 0 24px;
}

.hero-copy .hero-line[hidden],
.hero-copy .daily-kicker,
.hero-copy h1 {
  display: none !important;
}

.hero-actions {
  margin-top: 4px;
}

.streak-card {
  margin-top: 24px;
}

.hero-art-assets {
  min-height: 500px;
}

.hero-sun {
  left: 2%;
  top: 12px;
  width: 160px;
}

.hero-left {
  left: -1%;
  bottom: 8px;
  width: 340px;
}

.hero-left-extra {
  left: 22%;
  top: 172px;
  width: 128px;
}

.hero-dog {
  left: 31%;
  bottom: 34px;
  width: 420px;
}

.hero-top-right {
  right: -1%;
  top: 26px;
  width: 270px;
}

.hero-right {
  right: 0;
  bottom: 4px;
  width: 245px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-title-img {
    width: min(560px, 100%);
  }

  .hero-art-assets {
    min-height: 410px;
  }

  .hero-sun {
    width: 125px;
  }

  .hero-left {
    width: 270px;
  }

  .hero-dog {
    left: 30%;
    width: 330px;
  }

  .hero-top-right {
    right: 0;
    width: 220px;
  }

  .hero-right {
    width: 190px;
  }
}

@media (max-width: 720px) {
  .hero-title-img {
    width: 100%;
    margin-bottom: 18px;
  }

  .hero-art-assets {
    min-height: 305px;
  }
}

/* Single uploaded hero image plus refresh-random floating side image. */
.hero-art-assets {
  min-height: 500px;
  overflow: visible;
}

.hero-main-image {
  position: absolute;
  left: -8%;
  top: -5%;
  width: 112%;
  max-height: 120%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Requested cleanup: goals, record side panel, and message-card decoration. */
.progress-line {
  display: none !important;
}

.goals-grid {
  align-items: stretch;
}

.goal-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  padding: 34px 38px;
}

.goal-card h2 {
  margin-bottom: 28px;
  font-size: 30px;
}

.goal-card label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 20px;
}

.goal-card input {
  width: 190px;
  margin: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
}

.goal-card.wide {
  min-height: 190px;
  justify-content: center;
}

.record-side {
  padding: 34px 32px;
}

.side-dog {
  display: none !important;
}

.record-side h2 {
  font-size: 30px;
  line-height: 1.25;
}

.record-side p {
  margin: 22px 0 26px;
  font-size: 19px;
}

.today-status {
  gap: 16px;
  margin-top: 0;
}

.status-line {
  min-height: 72px;
  padding: 16px 20px;
  border-radius: 18px;
}

.message-card::before,
.message-card::after,
.message-card.has-message .mail-icon::after {
  display: none !important;
}

.hero-random-image {
  position: absolute;
  right: 0;
  top: 16%;
  width: 22%;
  max-height: 66%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  animation: randomSideFloat 4.8s ease-in-out infinite;
}

.hero-asset,
.hero-sun,
.hero-left,
.hero-left-extra,
.hero-dog,
.hero-top-right,
.hero-right {
  display: none !important;
}

@keyframes randomSideFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1180px) {
  .hero-art-assets {
    min-height: 420px;
  }

  .hero-main-image {
    left: -5%;
    width: 104%;
  }

  .hero-random-image {
    width: 24%;
    top: 18%;
  }
}

@media (max-width: 720px) {
  .hero-art-assets {
    min-height: 300px;
  }

  .hero-main-image {
    left: -7%;
    width: 110%;
  }

  .hero-random-image {
    right: 0;
    width: 25%;
    top: 20%;
  }
}

/* Visual pass: closer to the supplied warm hand-drawn UI reference. */
body {
  background: #e9e4dc;
  color: #111;
}

.app-shell {
  width: min(1770px, 100%);
  padding: 26px 54px 34px;
  background: #fffdf8;
  border: 0;
  border-radius: 52px;
  box-shadow: 0 18px 42px rgba(41, 35, 27, 0.12);
}

.brand {
  gap: 18px;
  font-size: 31px;
  font-weight: 900;
}

.nav-link {
  font-size: 21px;
}

.nav-link::after {
  height: 6px;
  bottom: 0;
  background: #00836f;
}

.identity-switch {
  min-height: 58px;
  padding: 0 25px;
  border: 2px solid #ded7cb;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: none;
}

.daily-kicker {
  display: none;
}

.hero {
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 442px;
  padding: 50px 30px 8px;
}

.hero-copy h1 {
  font-size: clamp(68px, 6.4vw, 116px);
  font-weight: 950;
  letter-spacing: 0;
}

.hero-line {
  max-width: 590px;
  margin: 24px 0 28px;
  color: #28231e;
  font-size: 24px;
  line-height: 1.75;
}

.primary-btn {
  min-height: 62px;
  padding: 0 44px;
  border: 0;
  border-radius: 999px;
  background: #00836f;
  box-shadow: inset 0 -8px 0 rgba(0, 81, 69, 0.34);
  font-size: 24px;
  font-weight: 900;
}

.primary-btn:hover {
  background: #00725f;
  box-shadow: inset 0 -8px 0 rgba(0, 67, 57, 0.35), 0 8px 18px rgba(0, 122, 104, 0.18);
}

.secondary-btn {
  min-height: 62px;
  padding: 0 42px;
  border: 3px solid #111;
  background: #fffdf8;
  font-size: 24px;
  font-weight: 900;
}

.secondary-btn:hover {
  background: #fff6e2;
}

.streak-card {
  margin-top: 28px;
  padding: 11px 30px 11px 17px;
  border: 2px solid #ded7cb;
  border-radius: 999px;
  background: #fff8e8;
  box-shadow: none;
  font-size: 26px;
}

.calendar-icon {
  border-width: 4px;
}

.hero-art {
  min-height: 445px;
}

.sun-doodle {
  border-width: 4px;
  background: #ffe8ac;
}

.note-doodle {
  border-width: 3px;
  background: #fff8e8;
  box-shadow: 7px 8px 0 rgba(17, 17, 17, 0.08);
}

.scale-doodle,
.bowl-doodle,
.hero-head,
.hero-ear,
.husky-hero .body,
.tail,
.leg {
  border-width: 5px;
}

.quick-cards {
  gap: 25px;
  margin-top: 18px;
}

.quick-card,
.records-panel,
.message-card,
.form-card,
.record-side,
.goal-card,
.history-item {
  border: 1.8px solid #e3ddd3;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: none;
}

.quick-card {
  min-height: 142px;
  grid-template-columns: 94px 1fr 28px;
  padding: 22px 26px;
}

.quick-card:hover,
.record-row:hover,
.history-item:hover,
.form-card:hover {
  border-color: #111;
  box-shadow: 5px 7px 0 rgba(17, 17, 17, 0.08);
}

.quick-card strong {
  font-size: 25px;
  font-weight: 900;
}

.quick-card small {
  color: #6b665f;
  font-size: 17px;
}

.card-icon.scale,
.card-icon.envelope,
.card-icon.bowl::before {
  border-width: 4px;
}

.home-bottom {
  grid-template-columns: minmax(0, 1fr) 472px;
  gap: 32px;
  margin-top: 22px;
}

.records-panel,
.message-card {
  padding: 22px 24px;
}

.record-row {
  grid-template-columns: 126px 206px 176px minmax(190px, 1fr) 138px 32px;
  min-height: 54px;
  border-color: #eee7dc;
  border-radius: 12px;
  background: #fffefa;
}

.message-card {
  border: 2px solid #d6d0c5;
  border-radius: 26px;
}

.message-card p {
  margin: 16px 0 22px;
  border: 2px solid #ded7cb;
  border-radius: 16px;
  background: #fff8e8;
  font-size: 21px;
  font-weight: 900;
}

.mail-icon {
  border-width: 4px;
}

.page-head {
  padding-top: 44px;
}

.page-head h1 {
  font-weight: 950;
}

input,
textarea {
  border-color: #ded7cb;
  border-radius: 14px;
  background: #fffefa;
}

.mood-grid button,
.tag-row button,
.filter-btn {
  border-color: #ded7cb;
  background: #fffefa;
}

.mood-grid button:hover,
.mood-grid button.active {
  border-color: #111;
  background: #fff8e8;
  box-shadow: 4px 6px 0 rgba(17, 17, 17, 0.08);
}

.modal-backdrop {
  background: rgba(46, 43, 38, 0.42);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(760px, 92vw);
  min-height: 452px;
  padding: 54px 66px 56px;
  border: 5px solid #111;
  border-radius: 38px;
  background: #fffdf8;
  box-shadow: 22px 26px 0 rgba(17, 17, 17, 0.18);
}

.modal h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: 0;
}

.message-modal p {
  margin: 34px 0 38px;
  padding: 28px 34px;
  border: 3px solid #ded7cb;
  border-radius: 24px;
  background: #fff8e8;
  color: #38332d;
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.55;
  font-weight: 900;
}

.message-modal .mail-icon {
  width: 88px;
  height: 64px;
  margin: 0;
}

.message-modal .mail-icon::before {
  left: 18px;
  top: 12px;
  width: 42px;
  height: 42px;
}

.message-modal.empty-message {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: center;
}

.message-modal.empty-message .mail-icon,
.message-modal.empty-message h2 {
  display: none;
}

.message-modal.empty-message p {
  margin-top: 0;
}

.close-btn {
  right: 28px;
  top: 26px;
  width: 58px;
  height: 58px;
  background: #fff8e8;
  font-size: 42px;
  line-height: 1;
}

.close-btn:hover {
  transform: rotate(8deg) scale(1.03);
}

@media (max-width: 1180px) {
  .app-shell {
    padding: 22px;
    border-radius: 34px;
  }

  .home-bottom,
  .hero,
  .record-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .modal {
    min-height: 360px;
    padding: 42px 24px 34px;
    border-radius: 28px;
    box-shadow: 12px 14px 0 rgba(17, 17, 17, 0.16);
  }

  .message-modal p {
    font-size: 21px;
  }
}

/* Final alignment with the supplied main visual: static hand-drawn hero. */
.sun-doodle,
.husky-hero {
  animation: none;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 4px solid #111;
  border-radius: 50%;
  background: #fffdf8;
  content: "";
}

.hero-art::before {
  left: 24%;
  top: 148px;
}

.hero-art::after {
  right: 24%;
  top: 88px;
}

.sun-doodle {
  left: 20%;
  top: 26px;
}

.cloud-doodle {
  top: 78px;
  right: 16%;
}

.heart.h1 {
  left: 13%;
  top: 188px;
}

.heart.h2 {
  left: 29%;
  top: 174px;
}

.scale-doodle {
  left: 10%;
  bottom: 34px;
}

.bowl-doodle {
  left: 31%;
  bottom: 42px;
}

.husky-hero {
  right: 18%;
  bottom: 62px;
}

.note-doodle {
  right: 2%;
  top: 88px;
}

.flowers {
  right: 4%;
  bottom: 30px;
}

/* Reference icons: transparent hand-drawn UI symbols from the supplied crops. */
.quick-card {
  background: #fffdf8;
}

.card-icon {
  width: 76px;
  height: 76px;
  background: transparent;
  color: #111;
  overflow: visible;
}

.card-icon.scale {
  border: 5px solid #111;
  border-radius: 18px;
  background: #0f8b7c;
  box-shadow: inset 0 0 0 9px #fffdf8;
}

.card-icon.scale::before {
  left: 50%;
  top: 10px;
  width: 38px;
  height: 24px;
  border: 4px solid #111;
  border-radius: 50% 50% 45% 45%;
  background: #fffdf8;
  transform: translateX(-50%);
}

.card-icon.scale::after {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: #111;
  box-shadow:
    -13px 2px 0 -1px #111,
    -8px -3px 0 -1px #111,
    8px -3px 0 -1px #111,
    13px 2px 0 -1px #111;
  content: "";
  transform: translateX(-50%);
}

.card-icon.bowl {
  width: 84px;
  height: 78px;
}

.card-icon.bowl::before {
  position: absolute;
  left: 8px;
  bottom: 10px;
  width: 66px;
  height: 39px;
  border: 5px solid #111;
  border-radius: 0 0 42px 42px;
  background:
    radial-gradient(circle at 20px 10px, #111 0 2px, transparent 3px),
    radial-gradient(circle at 34px 8px, #111 0 2px, transparent 3px),
    radial-gradient(circle at 48px 13px, #111 0 2px, transparent 3px),
    #fffdf8;
  box-shadow: 0 10px 0 -5px #111;
  content: "";
}

.card-icon.bowl::after {
  position: absolute;
  left: 44px;
  top: 8px;
  width: 7px;
  height: 58px;
  border-radius: 999px;
  background: #d79b55;
  border: 3px solid #111;
  box-shadow: 13px -4px 0 -1px #d79b55, 13px -4px 0 2px #111;
  content: "";
  transform: rotate(31deg);
}

.card-icon.bowl .icon-heart,
.card-icon.bowl span {
  display: none;
}

.card-icon.bowl {
  background:
    radial-gradient(circle at 21px 15px, #f7aaa2 0 9px, transparent 10px);
}

.card-icon.mood {
  width: 64px;
  height: 64px;
  border: 4px solid #111;
  border-radius: 50%;
  background: #ffe8ac;
  color: transparent;
  font-size: 0;
}

.card-icon.mood::before,
.card-icon.mood::after {
  position: absolute;
  top: 22px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  content: "";
}

.card-icon.mood::before {
  left: 19px;
}

.card-icon.mood::after {
  right: 19px;
}

.card-icon.mood {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.card-icon.mood + span::before {
  display: none;
}

.card-icon.mood:after {
  box-shadow: none;
}

.card-icon.mood span {
  display: none;
}

.card-icon.mood::selection {
  background: transparent;
}

.card-icon.mood {
  --smile-y: 38px;
}

.card-icon.mood i,
.card-icon.mood em {
  display: none;
}

.card-icon.mood::marker {
  content: "";
}

.card-icon.mood {
  background:
    radial-gradient(circle at 21px 25px, #111 0 3px, transparent 4px),
    radial-gradient(circle at 43px 25px, #111 0 3px, transparent 4px),
    radial-gradient(ellipse at 50% 39px, transparent 0 13px, #111 14px 16px, transparent 17px),
    #ffe8ac;
}

.card-icon.envelope {
  width: 78px;
  height: 61px;
  border: 5px solid #111;
  border-radius: 9px;
  background: transparent;
}

.card-icon.envelope::before {
  inset: auto;
  left: 9px;
  top: 10px;
  width: 48px;
  height: 38px;
  border-left: 5px solid #111;
  border-bottom: 5px solid #111;
  transform: rotate(-45deg);
}

.card-icon.envelope::after {
  position: absolute;
  left: 50%;
  top: 10px;
  color: #f7aaa2;
  content: "♥";
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 0;
  transform: translateX(-50%);
}

.quick-card:nth-child(3) .card-icon::after {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 24px;
  height: 14px;
  border-bottom: 4px solid #111;
  border-radius: 0 0 30px 30px;
  background: transparent;
  box-shadow: none;
  content: "";
  transform: translateX(-50%);
}

/* Right hero: fixed composition using the same elements as the supplied visual. */
.hero-art {
  min-height: 455px;
  background: transparent;
}

.hero-art::before,
.hero-art::after {
  background: #fffdf8;
}

.sun-doodle {
  left: 19%;
  top: 20px;
  width: 96px;
  height: 96px;
  font-size: 0;
}

.sun-doodle::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  content: "☺";
  font-size: 48px;
}

.sun-doodle::after {
  position: absolute;
  inset: -27px;
  background:
    linear-gradient(#111, #111) 50% 0 / 5px 20px no-repeat,
    linear-gradient(#111, #111) 50% 100% / 5px 20px no-repeat,
    linear-gradient(90deg, #111, #111) 0 50% / 20px 5px no-repeat,
    linear-gradient(90deg, #111, #111) 100% 50% / 20px 5px no-repeat;
  content: "";
  pointer-events: none;
}

.scale-doodle {
  left: 8%;
  bottom: 30px;
  width: 142px;
  height: 105px;
}

.bowl-doodle {
  left: 29%;
  bottom: 40px;
  width: 124px;
  height: 68px;
}

.husky-hero {
  right: 21%;
  bottom: 72px;
  width: 310px;
  height: 250px;
}

.cloud-doodle {
  right: 16%;
  top: 70px;
}

.note-doodle {
  right: 0;
  top: 78px;
  width: 214px;
}

.flowers {
  right: 3%;
  bottom: 30px;
}

/* Latest requested polish. */
.brand-hidden {
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.topbar {
  grid-template-columns: minmax(160px, 1fr) auto minmax(260px, 1fr);
}

.quick-card:nth-child(4) strong {
  font-size: 25px;
}

.quick-card:nth-child(4) small {
  color: #6b665f;
}

.form-card[data-section="message"] label {
  font-size: 24px;
}

.hero-art {
  isolation: isolate;
}

.sun-doodle {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  background: #ffe5a0;
  box-shadow: inset 0 0 0 4px #111;
  font-size: 0;
}

.sun-doodle::before {
  display: none;
}

.sun-doodle::after {
  position: absolute;
  inset: -35px;
  background:
    linear-gradient(#111, #111) 50% 0 / 5px 22px no-repeat,
    linear-gradient(#111, #111) 50% 100% / 5px 22px no-repeat,
    linear-gradient(90deg, #111, #111) 0 50% / 22px 5px no-repeat,
    linear-gradient(90deg, #111, #111) 100% 50% / 22px 5px no-repeat,
    linear-gradient(45deg, transparent 44%, #111 45% 54%, transparent 55%) 13% 13% / 28px 28px no-repeat,
    linear-gradient(-45deg, transparent 44%, #111 45% 54%, transparent 55%) 87% 13% / 28px 28px no-repeat,
    linear-gradient(-45deg, transparent 44%, #111 45% 54%, transparent 55%) 13% 87% / 28px 28px no-repeat,
    linear-gradient(45deg, transparent 44%, #111 45% 54%, transparent 55%) 87% 87% / 28px 28px no-repeat;
  content: "";
  pointer-events: none;
}

.hero-art .heart,
.cloud-doodle,
.scale-doodle,
.bowl-doodle,
.note-doodle,
.flowers,
.hero-art::before,
.hero-art::after {
  animation: gentleDrift 5.8s ease-in-out infinite;
}

.cloud-doodle,
.note-doodle {
  animation-delay: -1.1s;
}

.scale-doodle,
.bowl-doodle {
  animation-delay: -2.2s;
}

.flowers {
  animation-delay: -3.1s;
}

.hero-art .heart.h2 {
  animation-delay: -1.7s;
}

.husky-hero {
  animation: heroDrift 6.6s ease-in-out infinite;
}

.hero-art::before {
  box-shadow:
    250px 12px 0 -2px #fffdf8,
    254px 12px 0 2px #111,
    52px 210px 0 -3px #fffdf8,
    56px 210px 0 1px #111;
}

.hero-art::after {
  box-shadow:
    -180px 220px 0 -3px #fffdf8,
    -176px 220px 0 1px #111,
    122px 170px 0 -3px #fffdf8,
    126px 170px 0 1px #111;
}

.hero-art .heart.h1::after,
.hero-art .heart.h2::after {
  position: absolute;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #111;
  content: "";
}

.hero-art .heart.h1::after {
  left: -42px;
  top: 86px;
  box-shadow: 18px 11px 0 #111;
  transform: rotate(28deg);
}

.hero-art .heart.h2::after {
  right: -68px;
  top: 118px;
  box-shadow: 20px -12px 0 #111;
  transform: rotate(-24deg);
}

.quick-card {
  grid-template-columns: 104px 1fr 28px;
}

.quick-card .card-icon {
  transform: scale(0.82);
  transform-origin: center;
}

.quick-card:nth-child(1) .card-icon {
  transform: scale(0.78);
}

.quick-card:nth-child(2) .card-icon {
  transform: scale(0.78);
}

.quick-card:nth-child(3) .card-icon {
  transform: scale(0.82);
}

.quick-card:nth-child(4) .card-icon {
  transform: scale(0.8);
}

@keyframes gentleDrift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(5px, -6px) rotate(1.2deg);
  }
}

@keyframes heroDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, -5px);
  }
}

/* Today-only record panel with uploaded transparent avatars. */
.records-panel .section-title h2 {
  font-size: 22px;
}

.today-record-row {
  grid-template-columns: 124px 150px 210px minmax(220px, 1fr) 132px 32px;
}

.today-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.avatar-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.today-record-row .mood-mini {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #fff8e8;
  font-size: 18px;
}

.today-empty {
  min-height: 92px;
}

.goal-card input:disabled {
  color: #6f6c67;
  background: #f8f3e9;
  cursor: not-allowed;
}

.goal-card:has(input:disabled) {
  opacity: 0.78;
}

.record-side {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1180px) {
  .today-record-row {
    grid-template-columns: 100px 130px 180px minmax(160px, 1fr);
  }
}

@media (max-width: 720px) {
  .today-record-row {
    grid-template-columns: 1fr;
  }
}

/* Uploaded transparent quick-card icons. */
.card-icon-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  justify-self: center;
  align-self: center;
}

.quick-card .card-icon-img {
  transition: 180ms ease;
}

.quick-card:hover .card-icon-img {
  transform: translateY(-2px) scale(1.03);
}

/* Uploaded identity icons and hero visual assets. */
.identity-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.identity-switch {
  gap: 14px;
}

.hero-art-assets {
  position: relative;
  min-height: 455px;
  overflow: visible;
}

.hero-art-assets::before,
.hero-art-assets::after {
  display: none;
}

.hero-asset {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero-sun {
  left: 7%;
  top: 16px;
  width: 150px;
  animation: assetFloat 4.8s ease-in-out infinite;
}

.hero-left {
  left: 0;
  bottom: 4px;
  width: 315px;
}

.hero-left-extra {
  left: 20%;
  top: 164px;
  width: 120px;
}

.hero-dog {
  left: 36%;
  bottom: 26px;
  width: 385px;
  animation: assetFloatDog 5.2s ease-in-out infinite;
}

.hero-top-right {
  right: 1%;
  top: 32px;
  width: 310px;
}

.hero-right {
  right: 2%;
  bottom: 0;
  width: 230px;
}

@keyframes assetFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes assetFloatDog {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (max-width: 1180px) {
  .hero-art-assets {
    min-height: 390px;
  }

  .hero-sun {
    width: 118px;
  }

  .hero-left {
    width: 250px;
  }

  .hero-dog {
    left: 34%;
    width: 315px;
  }

  .hero-top-right {
    width: 250px;
  }

  .hero-right {
    width: 185px;
  }
}

@media (max-width: 720px) {
  .identity-icon {
    width: 28px;
    height: 28px;
  }

  .hero-art-assets {
    min-height: 300px;
    transform: none;
  }

  .hero-sun {
    width: 92px;
  }

  .hero-left {
    width: 190px;
  }

  .hero-left-extra {
    width: 80px;
  }

  .hero-dog {
    left: 34%;
    width: 230px;
  }

  .hero-top-right {
    width: 178px;
  }

  .hero-right {
    width: 135px;
  }
}
