@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  font-family: "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #35292e;
  background: #fff7f6;
  --display: "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #35292e;
  --muted: #806f75;
  --line: rgba(214, 176, 186, 0.34);
  --card: rgba(255, 255, 255, 0.78);
  --rose: #d86f90;
  --rose-dark: #8f3f5d;
  --rose-soft: #ffe7ee;
  --cream: #fffaf2;
  --mint: #dff3e7;
  --lavender: #eee5ff;
  --sky: #dff1ff;
  --button-gradient: linear-gradient(135deg, #d86f90 0%, #c75e83 54%, #b77ca4 100%);
  --paper-shadow: 0 18px 46px rgba(116, 75, 88, 0.11);
  --lift-shadow: 0 12px 28px rgba(150, 59, 92, 0.12);
  --shadow: 0 24px 58px rgba(150, 59, 92, 0.12);
  --work: #6b8fd6;
  --social: #58ad84;
  --deadline: #a678cc;
  --gym: #e9896f;
  --cleaning: #d4a94e;
  --meal: #7d6fbd;
  --food: #4e9f9b;
  --self: #d86f90;
  --study: #6f72d8;
  --appointment: #4ca7c5;
  --recovery: #9c9aa6;
  --custom: #a36f59;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff7f6;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, #ffe1eb 0 24%, transparent 25%),
    linear-gradient(160deg, #fff7f6 0%, #f6f0ff 48%, #effaf3 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(214, 176, 186, 0.42);
  border-radius: 22px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-sizing: border-box;
  outline-color: var(--rose);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.mobile-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 22px) 20px calc(env(safe-area-inset-bottom) + 30px);
}

.flow-screen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
}

.flow-top,
.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(216, 111, 144, 0.12);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d86f90, #d4a1b6, #9fc5aa);
}

.ghost-icon {
  display: grid;
  place-items: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose-dark);
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(45, 37, 40, 0.07);
  backdrop-filter: blur(14px);
  cursor: pointer;
  position: relative;
  z-index: 5;
  touch-action: manipulation;
}

.ghost-icon.filled {
  background: var(--button-gradient);
  color: white;
}

.back-button {
  width: auto;
  min-width: 64px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.install-button {
  pointer-events: auto;
}

.flow-content {
  display: grid;
  align-items: stretch;
}

.storage-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
}

.flow-footer {
  display: grid;
  gap: 10px;
}

.home-action {
  min-height: 44px;
  border-radius: 20px;
  background: rgba(255, 231, 238, 0.82);
  color: var(--rose-dark);
  font-weight: 800;
}

.welcome-card,
.step-card,
.today-card,
.task-section {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.welcome-card {
  display: flex;
  min-height: calc(100svh - 118px);
  flex-direction: column;
  justify-content: center;
  padding: 40px 28px;
}

.welcome-card h1,
.step-card h1,
.dashboard-top h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.35rem, 10.5vw, 3.55rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.welcome-card p:not(.pill),
.step-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.68;
}

.welcome-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.welcome-actions .secondary-action {
  min-height: 52px;
  border-radius: 22px;
  font-weight: 800;
}

.pill,
.eyebrow {
  margin: 0 0 12px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 231, 238, 0.76);
  color: var(--rose-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.pill {
  padding: 8px 13px;
}

.eyebrow {
  padding: 7px 12px;
}

.step-card {
  min-height: calc(100svh - 118px);
  padding: 30px 24px;
}

.choice-stack,
.rule-stack,
.category-grid,
.mini-list,
.routine-level-stack,
.flexible-stack {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.choice,
.category-card,
.check-card,
.unfinished-row,
.routine-level-card,
.flex-card {
  width: 100%;
  min-height: 78px;
  border: 1px solid rgba(214, 176, 186, 0.32);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(116, 75, 88, 0.055);
}

.choice,
.category-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-card {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.category-card strong,
.category-card span:not(.category-dot),
.category-card small {
  grid-column: 2;
}

.category-card small {
  color: var(--muted);
  line-height: 1.35;
}

.category-dot {
  grid-row: 1 / span 3;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
}

.routine-level-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

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

.routine-level-card small {
  margin-top: 3px;
  color: var(--muted);
}

.routine-level-card.selected,
.activity-card.selected {
  border-color: var(--rose);
  background: linear-gradient(135deg, #fff, var(--rose-soft));
}

.select-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.routine-level-card.selected .select-box {
  border-color: var(--rose);
  background: var(--rose);
  box-shadow: inset 0 0 0 5px #fff;
}

.choice strong,
.category-card strong,
.task-card strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

.choice span,
.category-card span,
.dashboard-top span,
.task-card span,
.task-card p,
.unfinished-row small {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.5;
}

.choice.selected {
  border-color: rgba(216, 111, 144, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 231, 238, 0.78));
  box-shadow: var(--lift-shadow);
}

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

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.activity-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.activity-card strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(234, 215, 217, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose-dark);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
}

.selection-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.bottom-action,
.form-card button,
.today-card button,
.task-card button,
.schedule-row button {
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  border-radius: 24px;
  background: var(--button-gradient);
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(189, 82, 119, 0.24);
}

.secondary-action {
  background: #fff;
  color: var(--rose-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}

.month-picker {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 26px;
  padding: 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 176, 186, 0.28);
  box-shadow: 0 10px 26px rgba(116, 75, 88, 0.055);
}

.month-picker strong {
  text-align: center;
  font-size: 1.42rem;
}

.month-picker button {
  min-height: 54px;
  border-radius: 18px;
  background: rgba(255, 231, 238, 0.78);
  color: var(--rose-dark);
  font-size: 1.8rem;
}

.form-card {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(214, 176, 186, 0.28);
  box-shadow: 0 10px 26px rgba(116, 75, 88, 0.055);
  overflow: hidden;
}

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

.form-card.solo {
  display: grid;
  color: var(--muted);
  font-weight: 800;
}

.sleep-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 0;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 16px;
}

.sleep-card label {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sleep-card input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

.sleep-fix-marker {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.install-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(53, 41, 46, 0.24);
  backdrop-filter: blur(10px);
}

.install-modal {
  width: min(100%, 390px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 24px;
}

.install-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.18;
}

.install-modal ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.modal-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

label {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  box-sizing: border-box;
}

.switch-row,
.check-card {
  display: flex;
  align-items: center;
}

.switch-row input,
.check-card input {
  width: 22px;
  min-height: 22px;
  margin: 0 10px 0 0;
  accent-color: var(--rose);
}

.calendar-card {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  padding: 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 176, 186, 0.28);
  box-shadow: 0 10px 26px rgba(116, 75, 88, 0.055);
}

.calendar-card button,
.calendar-card span {
  aspect-ratio: 1;
  border-radius: 17px;
}

.calendar-card button {
  background: rgba(255, 250, 242, 0.9);
  color: var(--ink);
  font-weight: 700;
}

.calendar-card button.selected {
  background: var(--button-gradient);
  color: #fff;
}

.time-banner {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(214, 176, 186, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose-dark);
  font-size: 1.18rem;
  font-weight: 700;
  text-align: center;
}

.loading-screen {
  display: grid;
  min-height: calc(100svh - 40px);
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, var(--rose-soft));
  color: var(--rose-dark);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.loading-screen h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.08;
}

.loading-screen p {
  margin: 0;
  color: var(--muted);
}

.flex-card {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.flex-card.selected {
  border-color: rgba(216, 111, 144, 0.32);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--lift-shadow);
}

.flex-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.flex-main strong,
.flex-main small {
  display: block;
}

.flex-main small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.48;
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #ead7d9;
}

.toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(45, 37, 40, 0.16);
}

.toggle.on {
  background: var(--button-gradient);
}

.toggle.on span {
  left: 24px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.option-pill {
  min-height: 40px;
  border: 1px solid rgba(214, 176, 186, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.option-pill.selected {
  border-color: rgba(216, 111, 144, 0.35);
  background: rgba(255, 231, 238, 0.82);
  color: var(--rose-dark);
}

.weekday {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.summary-strip span,
.mini-list span {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  padding: 10px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.check-card {
  min-height: 56px;
  padding: 12px 14px;
  font-weight: 800;
}

.dashboard {
  padding-bottom: calc(env(safe-area-inset-bottom) + 104px);
}

.dashboard-top {
  margin-bottom: 22px;
  align-items: flex-start;
}

.dashboard-top > div {
  flex: 1;
  min-width: 0;
}

.dashboard-top h1 {
  margin-bottom: 8px;
  font-size: 2.85rem;
  line-height: 1.04;
}

.dashboard-top .pill {
  margin-bottom: 10px;
}

.dashboard-back {
  margin-top: 8px;
}

.today-card,
.task-section {
  padding: 22px;
  margin-bottom: 18px;
}

.day-nav {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(214, 176, 186, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--paper-shadow);
}

.day-nav strong {
  display: block;
  text-align: center;
  color: var(--ink);
}

.day-nav span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.day-nav button {
  min-height: 44px;
  border-radius: 18px;
  background: rgba(255, 231, 238, 0.78);
  color: var(--rose-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.today-jump {
  width: 100%;
  min-height: 46px;
  margin: -4px 0 18px;
  border-radius: 20px;
  background: rgba(255, 231, 238, 0.82);
  color: var(--rose-dark);
  font-weight: 800;
}

.calendar-month-switcher {
  margin-top: 0;
}

.today-card h2,
.task-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: 0;
}

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

.section-title span {
  color: var(--muted);
  white-space: nowrap;
  font-weight: 700;
}

.task-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.task-card.done {
  opacity: 0.62;
}

.task-card button {
  grid-column: 1 / -1;
  margin-top: 4px;
  min-height: 48px;
}

.task-card strong,
.task-time,
.task-category {
  display: block;
}

.schedule-row {
  display: grid;
  grid-template-columns: 56px auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(214, 176, 186, 0.28);
}

.schedule-row:first-of-type {
  border-top: 0;
}

.schedule-row.done {
  opacity: 0.62;
}

.schedule-row .dot {
  margin-top: 5px;
}

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

.schedule-row span,
.schedule-row small {
  color: var(--muted);
}

.schedule-row button {
  grid-column: 1 / -1;
  min-height: 46px;
  margin-top: 0;
}

.schedule-time {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.month-overview {
  padding: 12px;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(214, 176, 186, 0.28);
  border-radius: 28px;
  background: rgba(214, 176, 186, 0.22);
}

.month-calendar-grid > .weekday {
  aspect-ratio: auto;
  min-height: 34px;
  background: rgba(255, 255, 255, 0.72);
}

.month-day {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 88px;
  padding: 6px 5px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.month-day.today {
  background: rgba(255, 231, 238, 0.86);
}

.month-day.blank {
  min-height: 88px;
  background: rgba(255, 255, 255, 0.38);
}

.month-day-number {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.month-day-items {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.month-task-chip,
.month-more {
  overflow: hidden;
  border-radius: 5px;
  padding: 2px 4px;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-more {
  background: rgba(128, 111, 117, 0.76);
}

.task-time {
  margin-top: 4px;
}

.task-category {
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
}

.empty-state {
  padding: 20px;
  border: 1px dashed rgba(214, 176, 186, 0.42);
  border-radius: 28px;
  color: var(--muted);
  text-align: center;
}

.unfinished-row {
  display: grid;
  gap: 4px;
  min-height: 64px;
  margin-top: 10px;
  padding: 13px 15px;
}

.planner-note-list {
  display: grid;
  gap: 10px;
}

.planner-note-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  line-height: 1.4;
}

.bottom-nav {
  position: fixed;
  right: max(14px, calc((100vw - 480px) / 2 + 14px));
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  left: max(14px, calc((100vw - 480px) / 2 + 14px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(234, 215, 217, 0.62);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(116, 75, 88, 0.12);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  min-height: 48px;
  border-radius: 21px;
  background: transparent;
  color: var(--muted);
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.bottom-nav .active {
  background: var(--rose-soft);
  color: var(--rose-dark);
}

.loading {
  display: grid;
  place-items: center;
  text-align: center;
}

.work,
.dot.work {
  background: var(--work);
}

.social,
.dot.social {
  background: var(--social);
}

.deadline,
.dot.deadline {
  background: var(--deadline);
}

.gym,
.dot.gym {
  background: var(--gym);
}

.cleaning,
.dot.cleaning {
  background: var(--cleaning);
}

.meal-prep,
.dot.meal-prep {
  background: var(--meal);
}

.food-shop,
.dot.food-shop {
  background: var(--food);
}

.self-care,
.dot.self-care {
  background: var(--self);
}

.study,
.dot.study {
  background: var(--study);
}

.appointment,
.dot.appointment {
  background: var(--appointment);
}

.recovery,
.dot.recovery {
  background: var(--recovery);
}

.custom,
.dot.custom {
  background: var(--custom);
}

@media (min-width: 520px) {
  .mobile-shell {
    padding-inline: 22px;
  }

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

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

  .sleep-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .step-card {
    padding-inline: 18px;
  }

  .form-card {
    padding: 16px;
    overflow: hidden;
  }

  .form-card label,
  .form-card input,
  .form-card select,
  .form-card textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .form-card input[type="time"],
  .form-card input[type="date"],
  .form-card select {
    -webkit-appearance: none;
    appearance: none;
  }

  .form-card input[type="time"] {
    padding-inline: 8px;
    text-align: center;
  }

  .sleep-card,
  .form-card.two.sleep-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
  }

  .sleep-card label,
  .sleep-card input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .sleep-card input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 50px;
    padding: 0 6px;
    border-radius: 19px;
    font-size: 0.92rem;
    line-height: 50px;
    text-align: center;
  }

  .sleep-card input[type="time"]::-webkit-date-and-time-value {
    text-align: center;
  }
}
