:root {
  --ink: #27251f;
  --muted: #746f65;
  --paper: #f7f4ed;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(45, 42, 34, 0.1);
  --yellow: #ffcc58;
  --yellow-soft: #fff1bf;
  --coral: #ff8e73;
  --lilac: #c9b8ff;
  --mint: #a8d7bd;
  --green: #49835f;
  --companion-glow: rgba(122, 91, 224, 0.24);
  --shadow: 0 18px 50px rgba(75, 62, 35, 0.09);
  --radius-lg: 30px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
}

.ambient--one {
  top: -210px;
  right: 6%;
  background: #ffe294;
}

.ambient--two {
  left: 22%;
  bottom: -300px;
  background: #dcd2ff;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 220px;
  flex-direction: column;
  padding: 34px 24px 25px;
  border-right: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.84);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 5px;
  height: 7px;
  border-radius: 4px;
  background: #fff8df;
}

.brand__mark::before {
  left: 9px;
}

.brand__mark::after {
  right: 9px;
}

.brand__mark span:first-child {
  position: absolute;
  top: -5px;
  left: 16px;
  width: 2px;
  height: 8px;
  border-radius: 3px;
  background: var(--ink);
}

.brand__mark span:last-child {
  position: absolute;
  top: -8px;
  left: 13px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.brand__name {
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-list {
  display: grid;
  gap: 7px;
  margin-top: 66px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  color: #777167;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 180ms ease;
}

.nav-item svg,
.icon-button svg,
.quiet-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.nav-item.is-active {
  box-shadow: 0 8px 24px rgba(62, 55, 41, 0.06);
}

.sidebar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

.icon-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.icon-button--small {
  width: 35px;
  height: 35px;
  border: 0;
  background: #f3f0e9;
}

.icon-button--small svg {
  width: 17px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.sync-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b4aea3;
}

.sync-status.is-live .sync-status__dot {
  background: #62a578;
  box-shadow: 0 0 0 4px rgba(98, 165, 120, 0.14);
}

.sync-status.is-saving .sync-status__dot {
  background: var(--yellow);
  animation: pulse-dot 1s infinite;
}

.main {
  width: min(1440px, calc(100% - 220px));
  margin-left: 220px;
  padding: 34px clamp(28px, 4vw, 68px) 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 2.4vw, 35px);
  font-weight: 650;
  letter-spacing: -1.2px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiet-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.quiet-button[aria-pressed="true"] {
  border-color: rgba(73, 131, 95, 0.35);
  color: var(--green);
  background: rgba(168, 215, 189, 0.2);
}

.avatar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #5b4824;
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(114, 78, 8, 0.1);
}

.companion-card {
  position: relative;
  display: grid;
  min-height: 354px;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid rgba(72, 56, 25, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 255, 255, 0.75), transparent 28%),
    linear-gradient(122deg, #ffe9a5 0%, #ffd071 44%, #f7bd62 100%);
  box-shadow: 0 26px 70px rgba(128, 89, 24, 0.14);
}

.companion-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -110px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.08), 0 0 0 120px rgba(255, 255, 255, 0.06);
}

.companion-card__copy {
  position: relative;
  z-index: 3;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(76, 53, 10, 0.11);
  border-radius: 999px;
  background: rgba(255, 248, 223, 0.52);
  color: #695329;
  font-size: 11px;
  font-weight: 700;
}

.status-pill > span:first-child {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #62a578;
  box-shadow: 0 0 0 4px rgba(98, 165, 120, 0.14);
}

#presence-label {
  white-space: nowrap;
}

.companion-card h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(35px, 4.2vw, 58px);
  font-weight: 750;
  letter-spacing: -2.6px;
  line-height: 1.02;
}

.companion-card__copy > p {
  max-width: 390px;
  margin: 18px 0 26px;
  color: rgba(56, 44, 21, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 17px;
  border: 0;
  border-radius: 14px;
  color: #fffbed;
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(48, 39, 22, 0.15);
  transition: 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(48, 39, 22, 0.2);
}

.primary-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button--wide {
  width: 100%;
  margin-top: 8px;
}

.pixo-scene {
  position: relative;
  align-self: stretch;
  min-height: 240px;
}

.pixo-scene::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: 6px;
  width: 285px;
  height: 285px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 205, 0.72), rgba(193, 164, 255, 0.18) 46%, transparent 70%);
  animation: pixo-aura 5.2s ease-in-out infinite;
}

.pixo {
  position: absolute;
  z-index: 2;
  right: 22%;
  bottom: 28px;
  width: 148px;
  height: 194px;
}

.pixo--art {
  right: 15%;
  bottom: 10px;
  width: 242px;
  height: 262px;
  object-fit: contain;
  cursor: pointer;
  outline: none;
  transform-origin: 50% 88%;
  will-change: transform, filter;
  filter: drop-shadow(0 22px 18px rgba(78, 48, 23, 0.2));
  animation:
    pixo-arrive 760ms cubic-bezier(.16, 1.15, .3, 1) both,
    pixo-float 4.6s 760ms ease-in-out infinite;
}

.pixo--art:hover,
.pixo--art:focus-visible,
.pixo--art.is-celebrating {
  filter: drop-shadow(0 24px 21px rgba(78, 48, 23, 0.24)) drop-shadow(0 0 14px var(--companion-glow));
  animation: pixo-celebrate 760ms cubic-bezier(.2, .75, .25, 1) both;
}

.pixo--art:focus-visible {
  border-radius: 46%;
  outline: 4px solid rgba(92, 69, 167, 0.32);
  outline-offset: 5px;
}

.pixo__head {
  position: absolute;
  z-index: 3;
  top: 23px;
  left: 9px;
  width: 130px;
  height: 112px;
  border: 4px solid rgba(50, 39, 19, 0.15);
  border-radius: 44px 44px 39px 39px;
  background: linear-gradient(145deg, #5f5b50 0%, #302f2b 50%, #1f1f1c 100%);
  box-shadow: inset 10px 10px 18px rgba(255, 255, 255, 0.15), inset -6px -8px 12px rgba(0, 0, 0, 0.2), 0 18px 28px rgba(92, 60, 10, 0.25);
}

.pixo__shine {
  position: absolute;
  top: 13px;
  left: 18px;
  width: 42px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-18deg);
  filter: blur(2px);
}

.pixo__face {
  position: absolute;
  inset: 28px 20px 18px;
  border-radius: 27px;
  background: linear-gradient(145deg, #f9d861, #ffc44c);
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.35), inset 0 -3px 8px rgba(152, 95, 3, 0.12);
}

.pixo__eye {
  position: absolute;
  top: 21px;
  width: 9px;
  height: 14px;
  border-radius: 50%;
  background: #363129;
  animation: blink 5.2s infinite;
}

.pixo__eye--left {
  left: 22px;
}

.pixo__eye--right {
  right: 22px;
}

.pixo__eye::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
}

.pixo__mouth {
  position: absolute;
  bottom: 16px;
  left: calc(50% - 9px);
  width: 18px;
  height: 9px;
  border-bottom: 3px solid #42392b;
  border-radius: 0 0 20px 20px;
}

.pixo[data-mood="low"] .pixo__mouth {
  bottom: 10px;
  border-top: 3px solid #42392b;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.pixo[data-mood="great"] .pixo__mouth {
  height: 12px;
  border: 3px solid #42392b;
  border-top: 0;
  background: rgba(255, 142, 115, 0.55);
}

.pixo__body {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 34px;
  width: 80px;
  height: 78px;
  border: 4px solid rgba(50, 39, 19, 0.13);
  border-radius: 26px 26px 30px 30px;
  background: linear-gradient(145deg, #555149, #262521);
  box-shadow: inset 7px 5px 10px rgba(255, 255, 255, 0.12);
}

.pixo__heart {
  position: absolute;
  top: 23px;
  left: 29px;
  color: var(--coral);
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 142, 115, 0.5));
  animation: heart-beat 1.8s infinite;
}

.pixo__antenna {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 72px;
  width: 4px;
  height: 28px;
  border-radius: 4px;
  background: #35332e;
}

.pixo__antenna span {
  position: absolute;
  top: -8px;
  left: -5px;
  width: 14px;
  height: 14px;
  border: 3px solid #35332e;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 142, 115, 0.55);
}

.pixo__ear {
  position: absolute;
  z-index: 2;
  top: 58px;
  width: 17px;
  height: 39px;
  border-radius: 12px;
  background: #302f2b;
}

.pixo__ear--left { left: 0; }
.pixo__ear--right { right: 0; }

.pixo__arm {
  position: absolute;
  z-index: 1;
  bottom: 45px;
  width: 22px;
  height: 62px;
  border-radius: 16px;
  background: #33312c;
}

.pixo__arm--left {
  left: 23px;
  transform: rotate(18deg);
}

.pixo__arm--right {
  right: 20px;
  transform-origin: top center;
  transform: rotate(-42deg);
  animation: wave 3.6s ease-in-out infinite;
}

.pixo__foot {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  width: 43px;
  height: 20px;
  border-radius: 50% 50% 40% 40%;
  background: #282722;
}

.pixo__foot--left { left: 24px; }
.pixo__foot--right { right: 23px; }

.scene-shadow {
  position: absolute;
  right: 16%;
  bottom: 22px;
  width: 200px;
  height: 24px;
  border-radius: 50%;
  background: rgba(96, 58, 8, 0.17);
  filter: blur(8px);
  animation: pixo-shadow 4.6s 760ms ease-in-out infinite;
}

.speech-bubble {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 0;
  padding: 10px 14px;
  border: 1px solid rgba(59, 43, 14, 0.09);
  border-radius: 14px 14px 14px 3px;
  background: rgba(255, 251, 236, 0.87);
  color: #64502d;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(92, 60, 10, 0.1);
  animation: bubble-float 3.8s ease-in-out infinite;
}

.plant {
  position: absolute;
  right: 3%;
  bottom: 34px;
  width: 64px;
  height: 96px;
  opacity: 0.78;
}

.plant__pot {
  position: absolute;
  bottom: 0;
  left: 14px;
  width: 40px;
  height: 36px;
  border-radius: 4px 4px 15px 15px;
  background: #d9805e;
}

.plant__leaf {
  position: absolute;
  bottom: 31px;
  left: 30px;
  width: 20px;
  height: 48px;
  border-radius: 100% 0 100% 0;
  background: #659267;
  transform-origin: bottom;
}

.plant__leaf--one { transform: rotate(-32deg); }
.plant__leaf--two { height: 57px; transform: rotate(2deg); }
.plant__leaf--three { transform: rotate(38deg); }

.spark {
  position: absolute;
  color: rgba(255, 255, 255, 0.74);
  font-size: 22px;
  animation: twinkle 2.8s infinite;
}

.spark--one { top: 37%; left: 16%; }
.spark--two { top: 16%; right: 29%; animation-delay: 1s; font-size: 14px; }

.level-chip {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(255, 250, 231, 0.72);
  color: #5c492a;
  backdrop-filter: blur(8px);
}

.level-chip__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
}

.level-chip strong,
.level-chip small {
  display: block;
}

.level-chip strong { font-size: 11px; }
.level-chip small { margin-top: 1px; font-size: 9px; opacity: 0.68; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.panel h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.focus-panel,
.tasks-panel {
  min-height: 410px;
  padding: 27px 28px;
}

.focus-panel {
  background: linear-gradient(155deg, rgba(255,255,255,.88), rgba(245,240,228,.82));
}

.timer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  padding: 30px 4px 26px;
}

.timer-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  width: 186px;
  height: 186px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) var(--progress), #ede8df var(--progress));
}

.timer-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fffdf9;
}

.timer-ring__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timer-mode,
.timer-note {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.timer-ring strong {
  display: block;
  margin: 3px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: 39px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.timer-note {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.timer-button {
  display: grid;
  min-width: 112px;
  min-height: 98px;
  padding: 16px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(45, 42, 34, 0.07);
}

.timer-button svg {
  width: 30px;
  margin-bottom: 5px;
  fill: var(--ink);
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 2;
}

.timer-button .pause-icon { display: none; fill: none; }
.timer-button.is-running .play-icon { display: none; }
.timer-button.is-running .pause-icon { display: block; }

.timer-button span {
  font-size: 11px;
  font-weight: 700;
}

.focus-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.focus-stats div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.focus-stats div + div {
  border-left: 1px solid var(--line);
}

.focus-stats strong {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

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

.task-count,
.growth-badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: #76612d;
  background: var(--yellow-soft);
  font-size: 10px;
  font-weight: 700;
}

.task-list {
  display: grid;
  gap: 7px;
  min-height: 218px;
  margin: 24px 0 16px;
  padding: 0;
  list-style: none;
}

.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(247, 244, 237, 0.66);
  transition: 180ms ease;
}

.task:hover {
  border-color: var(--line);
  background: #fff;
}

.task label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.task input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-check {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid #c6c0b5;
  border-radius: 7px;
  background: #fff;
}

.custom-check svg {
  width: 14px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  opacity: 0;
}

.task input:checked + .custom-check {
  border-color: var(--green);
  background: var(--green);
}

.task input:checked + .custom-check svg { opacity: 1; }

.task:has(input:checked) .task__text {
  color: #9c978e;
  text-decoration: line-through;
}

.task__text {
  font-size: 13px;
  line-height: 1.4;
}

.task__delete {
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border: 0;
  border-radius: 9px;
  color: #aaa49a;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
}

.task:hover .task__delete,
.task__delete:focus-visible {
  opacity: 1;
}

.task__delete:hover {
  color: #a55140;
  background: #fff0eb;
}

.task-form {
  display: flex;
  gap: 8px;
}

.task-form input,
.note-form textarea,
.profile-dialog input,
.profile-dialog select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.task-form input {
  min-width: 0;
  padding: 12px 14px;
  font-size: 12px;
}

.task-form input:focus,
.note-form textarea:focus,
.profile-dialog input:focus,
.profile-dialog select:focus {
  border-color: rgba(73, 131, 95, 0.5);
  box-shadow: 0 0 0 4px rgba(73, 131, 95, 0.08);
}

.task-form button {
  width: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 23px;
  cursor: pointer;
}

.checkin-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-column: 1 / -1;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(120deg, rgba(218, 208, 255, 0.5), rgba(255, 255, 255, 0.72));
}

.checkin-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.mood-picker button {
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.mood-picker button span { font-size: 20px; }

.mood-picker button:hover,
.mood-picker button.is-selected {
  border-color: rgba(111, 90, 179, 0.2);
  color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

.note-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.note-form textarea {
  min-height: 58px;
  padding: 12px 14px;
  resize: vertical;
  font-size: 12px;
}

.note-form button {
  align-self: stretch;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #68578e;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.growth-panel {
  grid-column: 1 / -1;
  padding: 28px;
}

.reminder-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr .9fr auto;
  grid-column: 1 / -1;
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(120deg, rgba(255, 239, 196, 0.62), rgba(255, 255, 255, 0.76));
}

.reminder-panel__intro p {
  max-width: 440px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.reminder-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(68, 56, 35, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.reminder-row__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  font-size: 18px;
}

.reminder-row strong,
.reminder-row small {
  display: block;
}

.next-care {
  margin: 4px 2px 0;
  color: #68578e;
  font-size: 10px;
  font-weight: 700;
}

.hydration-tracker {
  display: grid;
  gap: 10px;
  min-width: 170px;
  padding: 14px;
  border: 1px solid rgba(103, 79, 174, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.hydration-tracker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

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

.hydration-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(104, 87, 142, 0.12);
}

.hydration-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79bde8, #7865b5);
  transition: width 320ms ease;
}

.water-button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #68578e;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.water-button:hover {
  background: #594777;
}

.reminder-row strong {
  font-size: 12px;
}

.reminder-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.reminder-actions {
  display: grid;
  gap: 8px;
}

.secondary-button {
  min-width: 130px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button--warm {
  border-color: rgba(103, 79, 174, 0.16);
  color: #5b477e;
  background: rgba(211, 199, 255, 0.45);
}

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

.screen-reminder {
  position: fixed;
  right: 30px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  width: min(510px, calc(100vw - 30px));
  grid-template-columns: 190px 1fr;
  align-items: end;
  pointer-events: none;
  filter: drop-shadow(0 28px 40px rgba(44, 32, 23, 0.24));
  animation: reminder-in 420ms cubic-bezier(.2, .8, .2, 1);
}

.screen-reminder[hidden] {
  display: none;
}

.screen-reminder > img {
  position: relative;
  z-index: 2;
  width: 205px;
  max-height: 235px;
  object-fit: contain;
  object-position: bottom;
  pointer-events: auto;
  transform-origin: 50% 90%;
  animation: reminder-pixo 3.6s ease-in-out infinite;
}

.screen-reminder__bubble {
  position: relative;
  align-self: center;
  margin-left: -14px;
  padding: 22px 20px 20px 27px;
  border: 1px solid rgba(50, 38, 24, 0.1);
  border-radius: 22px 22px 22px 5px;
  background: rgba(255, 253, 247, 0.96);
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.screen-reminder__bubble h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.screen-reminder__bubble p {
  margin: 7px 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.screen-reminder__bubble > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-reminder__bubble .primary-button {
  padding: 10px 13px;
}

.screen-reminder__close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: #f2eee5;
  font-size: 17px;
  cursor: pointer;
}

@keyframes reminder-in {
  from { opacity: 0; transform: translateY(35px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.growth-badge {
  color: #526d5c;
  background: rgba(168, 215, 189, 0.3);
}

.week-chart {
  display: grid;
  height: 155px;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 28px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.chart-day {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 24px;
  gap: 6px;
  align-items: end;
  justify-items: center;
}

.chart-day span {
  width: min(32px, 55%);
  height: var(--height);
  min-height: 8px;
  align-self: end;
  border-radius: 9px 9px 3px 3px;
  background: #e7e1d6;
  transition: height 500ms ease;
}

.chart-day.is-today span {
  background: linear-gradient(#f6c45a, #e9ac3e);
  box-shadow: 0 5px 16px rgba(233, 172, 62, 0.25);
}

.chart-day small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.memory-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
  padding: 14px 16px;
  border-radius: 15px;
  background: rgba(255, 241, 191, 0.34);
}

.memory-strip__icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 12px;
  color: #9b6a24;
  background: var(--yellow-soft);
  font-size: 19px;
}

.memory-strip small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-strip p {
  margin: 3px 0 0;
  font-size: 12px;
}

.memory-log-wrap {
  margin-top: 12px;
  text-align: center;
}

.text-button {
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(116, 111, 101, 0.35);
  text-underline-offset: 4px;
  cursor: pointer;
}

.memory-log {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

.memory-log[hidden] { display: none; }

.memory {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.6);
}

.memory time { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.memory p { margin: 4px 0 0; font-size: 12px; }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 4px 0;
  color: var(--muted);
  font-size: 10px;
}

.footer p { margin: 0; }

.profile-dialog {
  width: min(430px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(45, 42, 34, 0.12);
  border-radius: 24px;
  color: var(--ink);
  background: #fcfaf5;
  box-shadow: 0 30px 90px rgba(38, 31, 20, 0.24);
}

.profile-dialog::backdrop {
  background: rgba(39, 37, 31, 0.32);
  backdrop-filter: blur(6px);
}

.profile-dialog form {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dialog__header h2 { margin: 0; font-family: "Manrope", sans-serif; }

.dialog__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: #f0ece3;
  font-size: 20px;
  cursor: pointer;
}

.profile-dialog label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-dialog input,
.profile-dialog select {
  padding: 12px 13px;
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: 330px;
  padding: 12px 16px;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  box-shadow: 0 16px 40px rgba(39, 37, 31, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

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

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

:focus-visible {
  outline: 3px solid rgba(73, 131, 95, 0.35);
  outline-offset: 3px;
}

@keyframes pixo-arrive {
  0% { opacity: 0; transform: translateY(32px) scale(.78) rotate(-7deg); }
  70% { opacity: 1; transform: translateY(-7px) scale(1.035) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-1deg); }
}

@keyframes pixo-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.4deg) scale(1); }
  28% { transform: translate3d(0, -7px, 0) rotate(.6deg) scale(1.01); }
  52% { transform: translate3d(0, -11px, 0) rotate(1.2deg) scale(1.018); }
  76% { transform: translate3d(0, -5px, 0) rotate(-.5deg) scale(1.008); }
}

@keyframes pixo-celebrate {
  0% { transform: translateY(0) rotate(-1deg) scale(1); }
  22% { transform: translateY(-18px) rotate(-6deg) scale(1.035); }
  45% { transform: translateY(-7px) rotate(6deg) scale(1.04); }
  68% { transform: translateY(-13px) rotate(-3deg) scale(1.025); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes pixo-aura {
  0%, 100% { opacity: .62; transform: scale(.94); }
  50% { opacity: .95; transform: scale(1.06); }
}

@keyframes pixo-shadow {
  0%, 100% { opacity: .9; transform: scaleX(1); }
  50% { opacity: .56; transform: scaleX(.84); }
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(.6deg); }
}

@keyframes reminder-pixo {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes blink {
  0%, 45%, 49%, 100% { transform: scaleY(1); }
  47% { transform: scaleY(0.08); }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
}

@keyframes wave {
  0%, 100% { transform: rotate(-42deg); }
  12% { transform: rotate(-58deg); }
  24% { transform: rotate(-38deg); }
  36% { transform: rotate(-53deg); }
  48% { transform: rotate(-42deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 1080px) {
  .sidebar { width: 82px; padding-inline: 18px; }
  .brand__name, .nav-item span, .sync-status span:last-child { display: none; }
  .brand { justify-content: center; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .sidebar__footer { flex-direction: column; gap: 16px; }
  .main { width: calc(100% - 82px); margin-left: 82px; padding-inline: 28px; }
  .companion-card { grid-template-columns: 1.05fr .95fr; padding: 42px; }
  .pixo--art { right: 18%; }
  .speech-bubble { right: -10px; }
  .reminder-panel { grid-template-columns: 1fr 1fr; }
  .reminder-panel__intro { grid-column: 1 / -1; }
  .reminder-list { grid-row: 2 / 4; }
  .hydration-tracker { grid-column: 2; }
  .reminder-actions { grid-column: 2; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .main { padding: 24px 20px 98px; }
  .companion-card { min-height: 500px; grid-template-columns: 1fr; align-items: start; }
  .companion-card__copy { max-width: 520px; }
  .pixo-scene { position: absolute; right: 0; bottom: 0; width: 52%; height: 57%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .focus-panel, .tasks-panel, .checkin-panel, .growth-panel { grid-column: 1; }
  .reminder-panel { grid-template-columns: 1fr 1fr; grid-column: 1; }
  .checkin-panel { grid-template-columns: 1fr; }
  .mood-picker, .note-form { grid-column: 1; }
}

@media (max-width: 620px) {
  .sidebar {
    inset: auto 12px 12px;
    z-index: 30;
    width: auto;
    height: 66px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(251, 249, 244, 0.92);
    box-shadow: 0 16px 45px rgba(45, 42, 34, 0.15);
  }
  .brand, .sidebar__footer { display: none; }
  .nav-list { display: flex; width: 100%; justify-content: space-around; margin: 0; }
  .nav-item { width: 48px; height: 48px; }
  .main { width: 100%; margin-left: 0; padding: 20px 14px 100px; }
  .topbar { align-items: flex-start; }
  .quiet-button span { display: none; }
  .quiet-button { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .companion-card { min-height: 550px; padding: 30px 25px; border-radius: 24px; }
  .companion-card h2 { font-size: 38px; letter-spacing: -1.7px; }
  .pixo-scene { width: 88%; height: 48%; }
  .pixo--art { right: 20%; width: 218px; height: 236px; }
  .speech-bubble { right: 4%; }
  .plant { right: 0; }
  .level-chip { right: 15px; bottom: 15px; }
  .focus-panel, .tasks-panel, .checkin-panel, .reminder-panel, .growth-panel { padding: 23px 20px; }
  .reminder-panel { grid-template-columns: 1fr; }
  .reminder-panel__intro { grid-column: 1; }
  .reminder-list { grid-row: auto; }
  .hydration-tracker, .reminder-actions { grid-column: 1; }
  .reminder-actions { grid-template-columns: 1fr 1fr; }
  .secondary-button { min-width: 0; }
  .timer-wrap { flex-direction: column; }
  .timer-button { grid-template-columns: auto auto; gap: 7px; min-width: 160px; min-height: 48px; padding: 9px 16px; }
  .timer-button svg { width: 21px; margin: 0; }
  .task-list { min-height: 0; }
  .mood-picker { grid-template-columns: repeat(2, 1fr); }
  .note-form { grid-template-columns: 1fr; }
  .note-form button { min-height: 44px; }
  .week-chart { gap: 5px; padding-inline: 5px; }
  .chart-day span { width: 22px; }
  .footer { display: grid; gap: 10px; justify-content: center; text-align: center; }
  .screen-reminder { right: 8px; bottom: 76px; width: calc(100vw - 16px); grid-template-columns: 115px 1fr; }
  .screen-reminder > img { width: 130px; max-height: 170px; }
  .screen-reminder__bubble { margin-left: -7px; padding: 18px 14px 16px 20px; }
  .screen-reminder__bubble h2 { font-size: 16px; }
  .screen-reminder__bubble > div { align-items: flex-start; flex-direction: column; }
}

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