:root {
  color-scheme: dark;
  --bg: #05080f;
  --bg-2: #080c15;
  --panel: #121a28;
  --panel-2: #101a2c;
  --panel-3: #18233a;
  --line: rgba(120, 160, 210, .13);
  --line-blue: rgba(77, 166, 255, .3);
  --text: #e9f1ff;
  --soft: #c2d2ea;
  --muted: #93a7c6;
  --dim: #5c708c;
  --blue: #2f6fd6;
  --blue-2: #4da6ff;
  --blue-soft: #8fcbff;
  --danger: #d0836f;
  --success: #4da6ff;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% -10%, #0e1a30 0%, #05080f 65%);
  color: var(--text);
  font-family: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.device {
  position: relative;
  width: min(402px, 100vw);
  height: min(874px, calc(100vh - 56px));
  min-height: 720px;
  overflow: hidden;
  border-radius: 42px;
  background: radial-gradient(125% 80% at 50% -5%, #13233f 0%, #080c15 58%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.screen {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 62px 22px 116px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.brand-mark {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: radial-gradient(120% 120% at 50% 12%, #15294a 0%, #070b14 70%);
  border: 1px solid rgba(77, 166, 255, .22);
  box-shadow: 0 0 28px rgba(77, 166, 255, .55);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 74px;
  height: 74px;
  display: block;
}

.brand-lockup {
  width: min(100%, 300px);
  height: auto;
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 24px rgba(77, 166, 255, .28));
}

.onboarding {
  min-height: calc(100% - 54px);
  display: flex;
  flex-direction: column;
  padding: 0 6px;
}

.onboarding.center {
  justify-content: center;
}

.push-bottom {
  margin-top: auto;
  padding-bottom: 8px;
}

.kicker {
  color: var(--blue-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.date-label,
.section-label,
.meta {
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
}

.title-xl {
  margin: 28px 0 0;
  color: var(--text);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}

.title-lg {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.16;
  font-weight: 800;
}

.title-md {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}

.copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.copy.big {
  color: var(--soft);
  font-size: 21px;
  font-weight: 600;
}

.primary,
.secondary,
.text-button,
.chip,
.action-button {
  cursor: pointer;
  user-select: none;
}

.primary {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  background: var(--blue);
  color: #f2f8ff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(77, 166, 255, .4);
  border: 1px solid rgba(130, 195, 255, .5);
}

.primary:disabled {
  background: #1c2740;
  color: var(--dim);
  box-shadow: none;
  border-color: transparent;
}

.secondary {
  min-height: 54px;
  border-radius: 16px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.text-button {
  width: 100%;
  min-height: 50px;
  background: transparent;
  color: #7286a4;
  font-size: 15px;
  font-weight: 700;
}

.field,
.textarea,
.select {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(90, 150, 230, .18);
  border-radius: 16px;
  outline: none;
  background: var(--panel-2);
  color: var(--text);
  padding: 17px;
  font-size: 16px;
}

.textarea {
  resize: none;
  min-height: 104px;
}

.field::placeholder,
.textarea::placeholder {
  color: #52688a;
}

.suggestions,
.chip-row,
.reschedule-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tutorial-visual {
  width: 100%;
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(77, 166, 255, .11), rgba(18, 26, 40, .62));
  border: 1px solid rgba(77, 166, 255, .22);
  box-shadow: 0 0 38px rgba(77, 166, 255, .13);
}

.mini-card,
.mini-task,
.mini-notification,
.layer-row {
  border-radius: 18px;
  background: rgba(18, 26, 40, .94);
  border: 1px solid rgba(120, 160, 210, .12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.mini-card {
  padding: 16px;
}

.mini-card.strong {
  border-color: rgba(77, 166, 255, .32);
  background: rgba(47, 111, 214, .18);
}

.mini-card span,
.mini-task span,
.mini-notification small,
.layer-row small {
  display: block;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
}

.mini-card b,
.mini-task strong,
.mini-notification b,
.layer-row strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.mini-card b {
  margin-top: 3px;
  font-size: 22px;
}

.mini-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.mini-task i {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(120, 160, 210, .42);
}

.layers {
  gap: 10px;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
}

.layer-row > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--blue);
  color: #f2f8ff;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(77, 166, 255, .38);
}

.mini-notification {
  padding: 15px 16px;
  border-color: rgba(77, 166, 255, .35);
  box-shadow: 0 0 28px rgba(77, 166, 255, .2), 0 10px 30px rgba(0, 0, 0, .32);
}

.mini-notification span {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.mini-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-actions span {
  min-width: 0;
  padding: 11px 6px;
  border-radius: 14px;
  background: var(--panel-3);
  color: var(--muted);
  border: 1px solid rgba(90, 150, 230, .12);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.tutorial-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2a3a52;
}

.tutorial-dots span.active {
  width: 24px;
  background: var(--blue-2);
  box-shadow: 0 0 12px rgba(77, 166, 255, .55);
}

.suggestions {
  margin-top: 14px;
}

.chip {
  flex: 1;
  min-width: max-content;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--muted);
  border: 1px solid rgba(90, 150, 230, .12);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.chip.active {
  background: var(--blue);
  color: #f2f8ff;
  border-color: rgba(130, 195, 255, .5);
  box-shadow: 0 0 18px rgba(77, 166, 255, .35);
}

.period-card {
  flex: 1;
  min-height: 82px;
  border-radius: 16px;
  padding: 18px 10px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(90, 150, 230, .12);
  text-align: center;
}

.period-card.active {
  background: var(--blue);
  border-color: rgba(130, 195, 255, .5);
  box-shadow: 0 0 20px rgba(77, 166, 255, .35);
}

.period-card strong {
  display: block;
  font-size: 16px;
}

.period-card span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: .72;
}

.header-row,
.progress-row,
.task-row,
.setting-row,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-row {
  margin-top: 22px;
}

.progress-track {
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #13203a;
  border: 1px solid rgba(90, 150, 230, .1);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue-2);
  box-shadow: 0 0 10px rgba(77, 166, 255, .7);
  transition: width .35s ease;
}

.reset-card,
.empty-card,
.panel {
  margin-top: 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(77, 166, 255, .18);
  box-shadow: 0 0 22px rgba(77, 166, 255, .09);
}

.reset-card,
.empty-card {
  padding: 16px 18px;
}

.reset-card h3,
.empty-card h3 {
  margin: 0;
  font-size: 16px;
}

.reset-card p,
.empty-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.soft-link {
  display: inline-block;
  margin-top: 12px;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(77, 166, 255, .14);
  color: var(--blue-soft);
  border: 1px solid var(--line-blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.task-group {
  margin-top: 26px;
}

.task-group + .task-group {
  margin-top: 18px;
}

.section-label {
  margin-bottom: 10px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

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

.task-row {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: rgba(18, 26, 40, .92);
  border: 1px solid rgba(120, 160, 210, .1);
  color: inherit;
  text-align: left;
}

.check {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  border: 2px solid rgba(120, 160, 210, .42);
  display: grid;
  place-items: center;
  color: #f2f8ff;
}

.task-row.done .check {
  border-color: transparent;
  background: var(--blue-2);
  box-shadow: 0 0 14px rgba(77, 166, 255, .55);
}

.task-row.skipped .check {
  border-color: transparent;
  background: #1c2740;
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.task-row.done .task-title {
  color: var(--dim);
  text-decoration: line-through;
}

.task-row.skipped .task-title {
  color: var(--dim);
}

.task-meta {
  margin-top: 4px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.streak {
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.done-card {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  border-radius: 22px;
  background: rgba(77, 166, 255, .1);
  border: 1px solid rgba(77, 166, 255, .22);
}

.points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(77, 166, 255, .13);
  color: var(--blue-soft);
  font-weight: 800;
  border: 1px solid var(--line-blue);
}

.week-chart {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  padding: 18px 16px 10px;
}

.bar-wrap {
  height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.bar {
  width: 100%;
  min-height: 4px;
  border-radius: 6px;
  background: rgba(77, 166, 255, .32);
}

.bar.today {
  background: var(--blue-2);
  box-shadow: 0 0 12px rgba(77, 166, 255, .6);
}

.bar-label {
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
}

.history-row,
.setting-row {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(120, 160, 210, .1);
}

.history-row:last-child,
.setting-row:last-child {
  border-bottom: 0;
}

.history-row strong,
.setting-row strong {
  color: var(--text);
  font-size: 15px;
}

.history-row span,
.setting-row span {
  display: block;
  color: var(--dim);
  font-size: 13px;
  margin-top: 2px;
}

.toggle {
  width: 48px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px;
  background: #20304a;
  cursor: pointer;
}

.toggle.on {
  background: var(--blue-2);
  box-shadow: 0 0 14px rgba(77, 166, 255, .45);
}

.toggle i {
  display: block;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform .2s;
}

.toggle.on i {
  transform: translateX(19px);
}

.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(8, 12, 21, .86);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(120, 160, 210, .11);
  z-index: 40;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: #54657f;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: var(--blue-2);
}

.tab svg {
  width: 21px;
  height: 21px;
}

.fab {
  position: absolute;
  right: 22px;
  bottom: 100px;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #f2f8ff;
  box-shadow: 0 0 28px rgba(77, 166, 255, .48), 0 14px 30px rgba(0, 0, 0, .32);
  border: 1px solid rgba(130, 195, 255, .48);
  cursor: pointer;
  z-index: 45;
}

.fab svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .34);
  z-index: 55;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  overflow-y: auto;
  z-index: 70;
  border-radius: 28px 28px 0 0;
  background: #0c1320;
  border-top: 1px solid rgba(77, 166, 255, .22);
  box-shadow: 0 -10px 50px rgba(0, 0, 0, .6), 0 0 60px rgba(77, 166, 255, .08);
  animation: sheet .3s cubic-bezier(.2, .9, .3, 1);
  scrollbar-width: none;
}

.sheet::-webkit-scrollbar {
  display: none;
}

.sheet-inner {
  padding: 24px 26px 44px;
}

.grabber {
  width: 38px;
  height: 5px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: #2a3a52;
}

.detail-icon,
.restart-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(77, 166, 255, .12);
  border: 1px solid rgba(77, 166, 255, .3);
  box-shadow: 0 0 30px rgba(77, 166, 255, .22);
}

.step-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.step-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 14px;
  background: rgba(18, 26, 40, .72);
  color: var(--text);
  border: 1px solid rgba(120, 160, 210, .09);
  cursor: pointer;
}

.step-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid rgba(120, 160, 210, .42);
}

.step-row.checked {
  color: var(--dim);
  text-decoration: line-through;
}

.step-row.checked .step-box {
  border-color: transparent;
  background: var(--blue-2);
  box-shadow: 0 0 12px rgba(77, 166, 255, .5);
}

.notification {
  position: absolute;
  top: 58px;
  left: 12px;
  right: 12px;
  z-index: 80;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(14, 22, 38, .9);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(77, 166, 255, .35);
  box-shadow: 0 0 28px rgba(77, 166, 255, .22), 0 10px 30px rgba(0, 0, 0, .5);
  animation: notif .35s cubic-bezier(.2, .9, .3, 1);
  cursor: pointer;
}

.notif-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.notif-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #080c15 url("assets/onward-icon.svg") center / 18px 18px no-repeat;
  box-shadow: 0 0 12px rgba(77, 166, 255, .8);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 104px;
  z-index: 90;
  transform: translateX(-50%);
  max-width: calc(100% - 44px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  padding: 12px 20px;
  background: #13213a;
  color: var(--text);
  border: 1px solid rgba(77, 166, 255, .35);
  box-shadow: 0 0 24px rgba(77, 166, 255, .3), 0 8px 24px rgba(0, 0, 0, .4);
  font-size: 14px;
  font-weight: 800;
  animation: toast .25s;
}

.hidden {
  display: none !important;
}

@keyframes sheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes notif {
  from { transform: translateY(-130%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toast {
  from { transform: translate(-50%, 16px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (max-width: 520px) {
  .stage {
    padding: 0;
  }

  .device {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
}
