:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #fffefa;
  --surface-low: #f1eee7;
  --surface-high: #eae7df;
  --ink: #201e24;
  --muted: #716d76;
  --muted-light: #9b969e;
  --line: #e6e2da;
  --primary: #6750a4;
  --primary-dark: #4c3987;
  --primary-soft: #e9e1ff;
  --green: #006b5e;
  --serif: "Manrope", "DM Sans", sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --shadow-card: 0 5px 18px rgb(43 37 27 / 4%), 0 1px 2px rgb(43 37 27 / 3%);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a890ee;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 255px;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 20px;
  background: #f3f0e9;
  border-right: 1px solid #ebe7df;
}
.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.brand {
  padding: 0 10px 42px;
}
.brand-symbol {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 10px;
  background: var(--primary);
  transform: rotate(-7deg);
}
.brand-symbol i {
  display: block;
  width: 3px;
  border-radius: 5px;
  background: #f6efff;
  transform: rotate(7deg);
}
.brand-symbol i:nth-child(1) {
  height: 9px;
}
.brand-symbol i:nth-child(2) {
  height: 16px;
}
.brand-symbol i:nth-child(3) {
  height: 12px;
}
.sidebar-label,
.eyebrow {
  color: #807b82;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 1.35px;
  font-weight: 700;
}
.sidebar-label {
  padding: 0 13px 12px;
}
.side-nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border-radius: 16px;
  background: transparent;
  color: #625e67;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.nav-item:hover {
  background: #ebe7df;
  color: var(--ink);
}
.nav-item.active {
  color: var(--primary-dark);
  background: #e7e0f3;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.nav-icon svg,
.mobile-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-spacer {
  flex: 1;
}
.sidebar-quote {
  position: relative;
  margin: 0 5px 22px;
  padding: 22px 18px 18px;
  border-radius: 20px;
  overflow: hidden;
  background: #e8def5;
}
.sidebar-quote::after {
  content: "";
  position: absolute;
  width: 77px;
  height: 77px;
  right: -20px;
  top: 39px;
  border: 1px solid rgb(103 80 164 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgb(103 80 164 / 5%), 0 0 0 19px rgb(103 80 164 / 4%);
}
.quote-spark {
  color: var(--primary);
  font-size: 17px;
}
.sidebar-quote p {
  margin: 11px 0 16px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.5px;
}
.quote-caption {
  color: #817795;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 7px;
  border: 0;
  border-top: 1px solid #dedad2;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4b3c79;
  background: #dfd3f4;
  font-weight: 700;
}
.profile-button b,
.profile-button small {
  display: block;
}
.profile-button b {
  font-size: 12px;
  font-weight: 600;
}
.profile-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.profile-menu {
  margin-left: auto;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--muted);
}
.main-content {
  margin-left: 255px;
  min-height: 100vh;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(26px, 4.8vw, 72px);
  border-bottom: 1px solid rgb(224 220 212 / 68%);
}
.topbar-spacer {
  flex: 1;
}
.sync-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6a686b;
  font-size: 11px;
}
.sync-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b9d7e;
  box-shadow: 0 0 0 3px #dfede4;
}
.today-chip {
  padding: 8px 13px;
  border: 1px solid #e6e1d9;
  border-radius: 20px;
  background: #fbfaf6;
  color: #5d5962;
  font-size: 11px;
  font-weight: 600;
}
.install-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.install-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-brand {
  display: none;
}
.page-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 47px clamp(26px, 4.8vw, 72px) 34px;
}
.welcome-row,
.stats-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.welcome-row h1,
.stats-head h1 {
  margin: 11px 0 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -2.3px;
  font-weight: 700;
}
.welcome-row h1 span,
.stats-head h1 span {
  color: var(--primary);
}
.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.welcome-doodle {
  position: relative;
  width: 130px;
  height: 106px;
  margin-right: 25px;
  color: #9e8ac6;
}
.doodle-orbit {
  position: absolute;
  width: 92px;
  height: 52px;
  top: 29px;
  left: 20px;
  border: 1px solid #d3c6e7;
  border-radius: 50%;
  transform: rotate(-28deg);
}
.orbit-two {
  transform: rotate(34deg);
  border-color: #e3c6ae;
  width: 98px;
  left: 9px;
}
.doodle-spark {
  position: absolute;
  top: 16px;
  right: 11px;
  z-index: 1;
  font-size: 24px;
  color: var(--primary);
}
.doodle-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  left: 27px;
  top: 14px;
  border-radius: 50%;
  background: #edb88d;
}
.overview-strip {
  position: relative;
  overflow: hidden;
  min-height: 91px;
  margin: 34px 0 42px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 23px;
  background: #e9e2f2;
}
.overview-strip::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  top: -140px;
  right: 160px;
  border: 1px solid rgb(103 80 164 / 11%);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgb(103 80 164 / 4%), 0 0 0 43px rgb(103 80 164 / 3%);
  pointer-events: none;
}
.overview-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}
.strip-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: #f5effd;
}
.strip-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.overview-copy b,
.overview-copy small {
  display: block;
}
.overview-copy b {
  font-size: 13px;
}
.overview-copy small {
  margin-top: 4px;
  color: #77717e;
  font-size: 11px;
}
.week-total {
  z-index: 1;
  margin-left: auto;
  margin-right: 22px;
  text-align: right;
}
.week-total strong {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: -.7px;
}
.week-total span {
  display: block;
  margin-top: 3px;
  color: #7a7382;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}
.strip-sparkle {
  z-index: 1;
  color: #9a81c1;
  font-size: 25px;
}
.section-heading,
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading h2,
.panel-head h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -.7px;
  font-weight: 700;
}
.button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:disabled {
  opacity: .7;
  cursor: progress;
  transform: none;
}
.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 9px rgb(75 55 125 / 18%);
}
.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 5px 14px rgb(75 55 125 / 24%);
}
.button-primary span {
  font-size: 14px;
}
.button-tonal {
  color: var(--primary-dark);
  background: #e8e0f3;
}
.button-tonal:hover {
  background: #ded4ec;
}
.plus {
  font-size: 18px;
  font-weight: 400;
}
.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.group-card {
  --group-color: var(--primary);
  position: relative;
  min-height: 232px;
  padding: 20px 21px 16px;
  border: 1px solid #eae6df;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgb(43 37 27 / 7%);
}
.group-card.is-running {
  border-color: color-mix(in srgb, var(--group-color) 37%, white);
  background: linear-gradient(145deg, color-mix(in srgb, var(--group-color) 6%, white),
    var(--surface) 55%);
}
.group-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.group-glyph {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--group-color);
  background: color-mix(in srgb, var(--group-color) 13%, white);
  font-size: 18px;
}
.group-more {
  border: 0;
  padding: 2px 8px;
  background: transparent;
  color: #8a858d;
  font-size: 20px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 9px;
}
.group-more:hover {
  background: var(--surface-low);
}
.group-card h3 {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.timer-display {
  margin-top: 2px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 31px;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.card-week-row {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #53505a;
  font-size: 10px;
  font-weight: 700;
}
.card-week-row small {
  color: #928e96;
  font-weight: 500;
}
.card-week-row span:last-child {
  color: #938e97;
  font-size: 10px;
  font-weight: 500;
}
.progress-track {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 9px;
  background: #eeeae4;
}
.progress-track i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--group-color);
  transition: width .35s ease;
}
.group-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.running-label {
  color: #939099;
  font-size: 8px;
  letter-spacing: .85px;
  font-weight: 700;
}
.running-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #3c9a76;
  box-shadow: 0 0 0 3px #e2f1e8;
  animation: pulse 1.8s ease infinite;
  vertical-align: 1px;
}
.timer-button {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--group-color);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .16s ease;
}
.timer-button:hover {
  filter: brightness(.92);
  transform: translateY(-1px);
}
.timer-button svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timer-button.timer-stop {
  color: var(--group-color);
  background: color-mix(in srgb, var(--group-color) 13%, white);
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgb(60 154 118 / 10%);
  }
}
.empty-state {
  grid-column: 1 / -1;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border: 1px dashed #d9d2c8;
  border-radius: 22px;
  background: rgb(255 254 250 / 58%);
}
.empty-orbit {
  color: var(--primary);
  font-size: 24px;
}
.empty-state h3 {
  margin: 11px 0 5px;
  font-family: var(--serif);
  font-size: 18px;
}
.empty-state p {
  max-width: 360px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}
.bottom-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: #77727a;
  font-size: 11px;
}
.note-star {
  color: #9a81c1;
  font-size: 17px;
}
.text-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.text-button span {
  margin-left: 3px;
  font-size: 14px;
}
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 17px;
  border-top: 1px solid #e7e3dc;
  color: #9a969d;
  font-size: 10px;
}
.app-footer span:last-child {
  color: #a18fbe;
  font-size: 15px;
}
.stats-head {
  align-items: end;
  margin-bottom: 29px;
}
.period-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e8e3db;
  border-radius: 15px;
  background: #f0ede7;
}
.period-button {
  min-height: 33px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #77727b;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.period-button.active {
  color: var(--primary-dark);
  background: var(--surface);
  box-shadow: 0 1px 4px rgb(39 35 29 / 10%);
}
.stats-summary {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 13px;
  margin-bottom: 16px;
}
.summary-tile {
  position: relative;
  min-height: 143px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 19px 21px;
  border: 1px solid #e9e5dd;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.summary-total {
  border-color: #e2d9ef;
  background: #eee8f7;
}
.tile-label {
  color: #87818b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}
.summary-tile strong {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -1.2px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.summary-total strong {
  color: var(--primary-dark);
  font-size: 34px;
}
.summary-tile > span:last-of-type {
  margin-top: 7px;
  color: #8d8890;
  font-size: 10px;
}
.summary-total > span:last-of-type {
  color: #756d80;
}
.summary-sun {
  position: absolute;
  right: 20px;
  top: 42px;
  color: #a38bc7;
  font-size: 33px;
}
.tile-glyph {
  position: absolute;
  right: 19px;
  top: 18px;
  color: #c2b8cf;
  font-size: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
.panel {
  padding: 21px 22px;
  border: 1px solid #e9e5dd;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.panel-head {
  align-items: center;
}
.panel-head h2 {
  font-size: 17px;
}
.panel-badge {
  padding: 6px 8px;
  border-radius: 9px;
  background: #f4f1eb;
  color: #918c93;
  font-size: 8px;
  letter-spacing: .8px;
  font-weight: 700;
  white-space: nowrap;
}
.weekly-panel {
  min-height: 258px;
}
.weekly-chart {
  height: 166px;
  margin-top: 13px;
  position: relative;
  padding-left: 26px;
}
.chart-gridline {
  position: absolute;
  left: 25px;
  right: 2px;
  height: 1px;
  z-index: 0;
  background: #f0ede8;
}
.chart-gridline span {
  position: absolute;
  left: -25px;
  top: -6px;
  color: #a7a1a6;
  font-size: 8px;
}
.chart-columns {
  position: absolute;
  inset: 0 0 0 26px;
  display: flex;
  justify-content: space-around;
  gap: 7px;
}
.chart-col {
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chart-bar-area {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
}
.chart-bar {
  width: min(26px, 60%);
  display: block;
  min-height: 2px;
  border-radius: 8px 8px 4px 4px;
  background: var(--bar-color);
  transition: height .4s ease;
}
.chart-bar.today-bar {
  background: linear-gradient(180deg, #9278c5, var(--primary));
}
.chart-tooltip {
  position: absolute;
  top: 0;
  z-index: 2;
  display: none;
  padding: 5px 7px;
  border-radius: 7px;
  color: #fff;
  background: #38313e;
  font-size: 9px;
  white-space: nowrap;
}
.chart-col:hover .chart-tooltip {
  display: block;
}
.chart-day {
  margin-top: 10px;
  color: #99949a;
  font-size: 9px;
}
.edit-goals-button {
  margin-left: auto;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #756e7b;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover {
  background: #f0ede7;
}
.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.goals-panel {
  min-height: 258px;
}
.goal-list {
  display: grid;
  gap: 15px;
  margin-top: 19px;
}
.goal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.goal-color {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--group-color);
}
.goal-main {
  min-width: 0;
  flex: 1;
}
.goal-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.goal-row-top b {
  overflow: hidden;
  color: #514d56;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goal-row-top span {
  color: #5f5964;
  font-size: 9px;
  white-space: nowrap;
}
.goal-row-top span i {
  color: #98939b;
  font-style: normal;
}
.goal-progress {
  height: 4px;
  border-radius: 9px;
  background: #f0ede8;
  overflow: hidden;
}
.goal-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--group-color);
}
.goal-check {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-left: 3px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e3dc;
  border-radius: 50%;
  color: white;
  font-size: 10px;
}
.goal-check.done {
  border-color: #569278;
  background: #569278;
}
.mini-empty {
  padding: 25px 0;
  color: #99939b;
  text-align: center;
  font-size: 11px;
}
.breakdown-panel {
  margin-bottom: 4px;
}
.breakdown-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
  margin-top: 20px;
}
.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 15px;
  row-gap: 9px;
  align-items: center;
}
.breakdown-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breakdown-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--group-color);
}
.breakdown-name b {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breakdown-name > span:last-child {
  margin-left: auto;
  color: #a09aa1;
  font-size: 9px;
}
.breakdown-track {
  grid-column: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 9px;
  background: #f0ede8;
}
.breakdown-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--group-color);
}
.breakdown-row > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mobile-nav {
  display: none;
}
.app-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 26px;
  border: 1px solid #e8e2d9;
  border-radius: 25px;
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 20px 60px rgb(33 28 38 / 18%);
}
.app-dialog::backdrop {
  background: rgb(35 31 40 / 34%);
  backdrop-filter: blur(3px);
}
.app-dialog form {
  display: flex;
  flex-direction: column;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background: #eee8f8;
  font-size: 19px;
}
.dialog-close {
  font-size: 24px;
  font-weight: 300;
}
.app-dialog h2 {
  margin: 8px 0 7px;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -1px;
}
.app-dialog form > p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.app-dialog label,
#auth-form label {
  margin-bottom: 7px;
  color: #615d66;
  font-size: 11px;
  font-weight: 700;
}
.app-dialog input,
.app-dialog select,
#password {
  width: 100%;
  min-height: 44px;
  margin-bottom: 17px;
  padding: 0 13px;
  border: 1px solid #e5e1d9;
  border-radius: 13px;
  color: var(--ink);
  background: #fbfaf7;
  outline: none;
}
.app-dialog input:focus,
.app-dialog select:focus,
#password:focus {
  border-color: #9c88ca;
  box-shadow: 0 0 0 3px rgb(103 80 164 / 10%);
}
.label-aside {
  float: right;
  color: #a09aa2;
  font-size: 10px;
  font-weight: 500;
}
.goal-input {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 18px;
  padding: 0 13px;
  border: 1px solid #e5e1d9;
  border-radius: 13px;
  background: #fbfaf7;
}
.goal-input:focus-within {
  border-color: #9c88ca;
  box-shadow: 0 0 0 3px rgb(103 80 164 / 10%);
}
.goal-input input {
  width: 100%;
  min-height: unset;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}
.goal-input span {
  flex: 0 0 auto;
  color: #99939b;
  font-size: 10px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.button-text {
  color: #716c75;
  background: transparent;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-pair > div {
  min-width: 0;
}
.goal-input.compact {
  margin-bottom: 17px;
}
.goal-input.compact input {
  min-width: 0;
}
.goal-input.compact span {
  font-size: 9px;
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid #4e4559;
  border-radius: 14px;
  color: #fff;
  background: #322d38;
  box-shadow: 0 6px 22px rgb(34 28 41 / 25%);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: .22s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.auth-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 20px;
  background: radial-gradient(ellipse at 15% 12%, #efe7f5 0, transparent 29%),
    radial-gradient(ellipse at 90% 85%, #eee5db 0, transparent 29%), var(--bg);
}
.auth-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 27px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.7px;
}
.auth-mark .brand-symbol {
  width: 26px;
  height: 26px;
}
.auth-card {
  width: min(100%, 442px);
  padding: 37px 39px 27px;
  border: 1px solid rgb(228 222 230 / 82%);
  border-radius: 28px;
  background: rgb(255 254 250 / 86%);
  box-shadow: 0 12px 40px rgb(53 43 61 / 7%);
  backdrop-filter: blur(8px);
}
.auth-kicker {
  color: #9388a2;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.auth-card h1 {
  margin: 12px 0 9px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: -1.5px;
}
.auth-card > p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.password-wrap {
  position: relative;
}
.password-wrap #password {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 6px;
}
.password-toggle svg,
.auth-lock svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field-hint {
  margin: -9px 0 18px;
  color: #a09aa2;
  font-size: 10px;
}
.auth-submit {
  width: 100%;
  min-height: 47px;
  border-radius: 15px;
}
.form-error {
  min-height: 16px;
  margin: 9px 0 0;
  color: #b33b46;
  font-size: 11px;
}
.auth-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 17px;
  border-top: 1px solid #eeebe5;
  color: #938d96;
  font-size: 10px;
}
.auth-lock svg {
  width: 15px;
  height: 15px;
}
.auth-bottom {
  margin-top: 24px;
  color: #9e98a1;
  font-size: 10px;
}

@media (min-width: 1450px) {
  .page-wrap {
    padding-top: 55px;
  }
  .groups-grid {
    gap: 18px;
  }
  .group-card {
    min-height: 245px;
    padding: 23px 24px 18px;
  }
  .overview-strip {
    margin-top: 39px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 220px;
    padding-inline: 15px;
  }
  .main-content {
    margin-left: 220px;
  }
  .topbar {
    padding-inline: 30px;
  }
  .page-wrap {
    padding-inline: 30px;
  }
  .welcome-doodle {
    margin-right: 3px;
  }
  .group-card {
    padding-inline: 17px;
  }
  .stats-summary {
    gap: 9px;
  }
  .summary-tile {
    padding-inline: 16px;
  }
  .summary-tile strong {
    font-size: 26px;
  }
  .summary-total strong {
    font-size: 30px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 68px;
    align-items: center;
    padding: 23px 8px 14px;
  }
  .brand {
    padding: 0 0 40px;
  }
  .brand > span:last-child,
  .sidebar-label,
  .nav-item:not(.active),
  .nav-item {
    font-size: 0;
  }
  .nav-item {
    justify-content: center;
    gap: 0;
    padding: 12px;
  }
  .nav-icon {
    width: 22px;
    height: 22px;
  }
  .sidebar-quote,
  .profile-button > span:not(.avatar) {
    display: none;
  }
  .profile-button {
    width: 100%;
    justify-content: center;
    border-top: 0;
  }
  .main-content {
    margin-left: 68px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .goals-panel {
    min-height: unset;
  }
  .goal-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .stats-summary {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .summary-tile {
    min-height: 132px;
    padding: 15px 12px;
  }
  .summary-tile strong {
    font-size: 23px;
  }
  .summary-total strong {
    font-size: 27px;
  }
  .tile-label {
    font-size: 8px;
  }
  .summary-sun {
    right: 12px;
    top: 38px;
    font-size: 27px;
  }
}
@media (max-width: 600px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .topbar {
    height: 60px;
    padding-inline: 18px;
    gap: 12px;
  }
  .mobile-brand {
    display: flex;
    font-size: 15px;
  }
  .mobile-brand .brand-symbol {
    width: 24px;
    height: 24px;
    border-radius: 9px;
  }
  .topbar-spacer {
    flex: 1;
  }
  .sync-indicator {
    font-size: 0;
    gap: 0;
  }
  .sync-indicator i {
    width: 8px;
    height: 8px;
  }
  .today-chip {
    padding: 7px 9px;
    font-size: 10px;
  }
  .install-button {
    width: 33px;
    height: 33px;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
  }
  .install-button span {
    display: none;
  }
  .page-wrap {
    padding: 29px 18px 18px;
  }
  .welcome-row {
    align-items: flex-start;
  }
  .welcome-row h1,
  .stats-head h1 {
    font-size: 35px;
    letter-spacing: -1.7px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-subtitle {
    max-width: 295px;
    font-size: 12px;
  }
  .welcome-doodle {
    flex: 0 0 77px;
    width: 77px;
    height: 77px;
    margin: 4px -9px 0 0;
    transform: scale(.68);
    transform-origin: top left;
  }
  .overview-strip {
    min-height: 82px;
    margin: 25px 0 30px;
    padding: 14px;
    border-radius: 19px;
  }
  .overview-copy {
    gap: 9px;
  }
  .strip-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .overview-copy b {
    font-size: 11px;
  }
  .overview-copy small {
    max-width: 137px;
    font-size: 9px;
  }
  .week-total {
    margin-right: 0;
  }
  .week-total strong {
    font-size: 18px;
  }
  .week-total span {
    font-size: 7px;
  }
  .strip-sparkle {
    display: none;
  }
  .section-heading {
    align-items: center;
  }
  .section-heading h2 {
    max-width: 205px;
    font-size: 17px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .button {
    min-height: 39px;
    padding-inline: 12px;
    font-size: 10px;
    border-radius: 12px;
  }
  .groups-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .group-card {
    min-height: 215px;
    padding: 17px 18px 14px;
    border-radius: 20px;
  }
  .group-card h3 {
    margin-top: 10px;
  }
  .timer-display {
    font-size: 29px;
  }
  .group-card-bottom {
    margin-top: 12px;
  }
  .bottom-note {
    align-items: flex-start;
    font-size: 10px;
    line-height: 1.5;
  }
  .note-star {
    flex: 0 0 auto;
  }
  .text-button {
    white-space: nowrap;
  }
  .app-footer {
    margin-top: 29px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    height: calc(67px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px 16px env(safe-area-inset-bottom);
    border-top: 1px solid #e7e2d9;
    background: rgb(250 248 243 / 94%);
    backdrop-filter: blur(15px);
  }
  .mobile-nav-item {
    min-width: 67px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #827d85;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-nav-item.active {
    color: var(--primary);
  }
  .mobile-nav-item svg {
    width: 19px;
    height: 19px;
  }
  .mobile-add {
    width: 43px;
    height: 43px;
    margin-top: -22px;
    border: 5px solid var(--bg);
    border-radius: 16px;
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 10px rgb(65 46 108 / 23%);
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
  }
  .stats-head {
    display: block;
    margin-bottom: 20px;
  }
  .stats-head .period-switch {
    width: max-content;
    margin-top: 19px;
  }
  .stats-summary {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .summary-tile {
    min-height: 119px;
    padding: 15px;
    border-radius: 17px;
  }
  .summary-total {
    grid-column: 1 / -1;
    min-height: 126px;
  }
  .summary-tile strong {
    margin-top: 10px;
    font-size: 25px;
  }
  .summary-total strong {
    font-size: 31px;
  }
  .summary-tile > span:last-of-type {
    font-size: 9px;
  }
  .summary-sun {
    top: 34px;
    right: 21px;
    font-size: 31px;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 11px;
  }
  .panel {
    padding: 17px 15px;
    border-radius: 18px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .panel-badge {
    font-size: 7px;
  }
  .weekly-panel {
    min-height: 235px;
  }
  .weekly-chart {
    height: 152px;
  }
  .goal-list {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .goals-panel {
    min-height: unset;
  }
  .breakdown-list {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 18px;
  }
  .breakdown-row {
    column-gap: 12px;
  }
  .app-dialog {
    padding: 21px;
    border-radius: 22px;
  }
  .app-dialog h2 {
    font-size: 22px;
  }
  .auth-card {
    padding: 30px 25px 23px;
  }
  .auth-card h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
