:root {
  --background: #e9eaee;
  --surface: #121317;
  --surface-hover: #18191e;
  --text: #17181b;
  --text-on-dark: #ffffff;
  --muted: #7c7f88;
  --muted-dark: #92959f;
  --border: #d9dbe1;
  --border-dark: #2a2c33;
  --accent: #6c63ff;
  --accent-light: #aaa6ff;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, #fafbfc 0%, #edeef2 48%, #cfd2da 100%),
    var(--background);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  box-shadow:
    inset 0 0 100px rgba(17, 19, 27, 0.06),
    inset 0 0 260px rgba(17, 19, 27, 0.16);
  content: "";
  pointer-events: none;
}

button,
textarea {
  color: inherit;
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-line p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.meta-line p:first-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.13);
}

.hero__title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 96px 0 42px;
}

h1 {
  margin: 0;
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  font-size: clamp(64px, 11vw, 126px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.88;
}

.hero__title > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.wishlist {
  display: grid;
  gap: 13px;
}

.wish-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 178px;
  padding: 27px 28px;
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  color: var(--text-on-dark);
  background: rgba(18, 19, 23, 0.97);
  box-shadow: 0 12px 34px rgba(16, 18, 24, 0.12);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.wish-card:hover {
  border-color: #3a3d46;
  background: rgba(24, 25, 30, 0.98);
  box-shadow: 0 20px 50px rgba(16, 18, 24, 0.2);
  transform: translateY(-3px);
}

.wish-card__number {
  align-self: start;
  padding-top: 1px;
  color: var(--muted-dark);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.wish-card__label {
  margin: 0 0 10px;
  color: var(--accent-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wish-card h2 {
  margin: 0;
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  transition: color 180ms ease;
}

.note-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  max-width: 650px;
  margin-top: 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  transition: border-color 180ms ease;
}

.note-field:focus-within {
  border-color: var(--accent);
}

.note-field label {
  padding-bottom: 2px;
  color: var(--muted-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.note-field textarea {
  width: 100%;
  min-height: 20px;
  max-height: 96px;
  padding: 0;
  overflow-y: auto;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font: 600 13px/1.5 "Montserrat", "Manrope", system-ui, sans-serif;
  resize: none;
}

.note-field textarea::placeholder {
  color: #6f727c;
}

.note-status {
  min-width: 54px;
  padding-bottom: 2px;
  color: var(--accent-light);
  font-size: 8px;
  font-weight: 600;
  text-align: right;
}

.roadmap {
  max-width: 650px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
}

.roadmap__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.roadmap__toggle-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap__progress-track {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.roadmap__progress-track span {
  display: block;
  width: var(--roadmap-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

.roadmap__count {
  min-width: 30px;
  color: var(--muted-dark);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.roadmap__chevron {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.roadmap.is-open .roadmap__chevron {
  transform: rotate(180deg);
}

.roadmap__panel {
  padding: 0 13px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap__step {
  display: grid;
  grid-template-columns: 24px 28px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.roadmap__step-check {
  display: grid;
  width: 19px;
  height: 19px;
  padding: 0;
  place-items: center;
  border: 1px solid #4c4e58;
  border-radius: 6px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.roadmap__step-check svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  opacity: 0;
}

.roadmap__step.is-done .roadmap__step-check {
  border-color: var(--accent);
  background: var(--accent);
}

.roadmap__step.is-done .roadmap__step-check svg {
  opacity: 1;
}

.roadmap__index {
  color: #62656f;
  font-size: 9px;
  font-weight: 800;
}

.roadmap__step-text {
  padding: 9px 0;
  color: #d9dae0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.roadmap__step.is-done .roadmap__step-text {
  color: #666973;
  text-decoration: line-through;
}

.roadmap__delete {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #666973;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease;
}

.roadmap__delete:hover {
  color: #ff8c8c;
  background: rgba(255, 90, 90, 0.08);
}

.roadmap__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  margin-top: 12px;
}

.roadmap__input {
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #34363e;
  border-radius: 10px;
  outline: 0;
  color: #ffffff;
  background: #191a1f;
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.roadmap__input::placeholder {
  color: #656872;
}

.roadmap__input:focus {
  border-color: var(--accent);
}

.roadmap__add {
  width: 34px;
  height: 36px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  cursor: pointer;
  font-size: 20px;
  transition: filter 180ms ease, transform 180ms ease;
}

.roadmap__add:hover {
  filter: brightness(1.12);
  transform: scale(1.04);
}

.wish-card__check {
  align-self: start;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid #444650;
  border-radius: 14px;
  color: #ffffff;
  background: #191a1f;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.wish-card__check:hover {
  border-color: var(--accent);
  background: #292741;
  transform: scale(1.05);
}

.wish-card__check:focus-visible,
.original-button:focus-visible,
.dialog-close:focus-visible,
.note-field textarea:focus-visible {
  outline: 3px solid rgba(108, 99, 255, 0.28);
  outline-offset: 3px;
}

.note-field textarea:focus-visible {
  outline: none;
}

.wish-card__check svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.wish-card.is-complete {
  background: rgba(12, 13, 16, 0.95);
}

.wish-card.is-complete h2 {
  color: #777a84;
  text-decoration: line-through;
  text-decoration-color: #656873;
  text-decoration-thickness: 1px;
}

.wish-card.is-complete .wish-card__check {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.wish-card.is-complete .wish-card__check svg {
  opacity: 1;
  transform: scale(1);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px 0;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.counter strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.counter span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.original-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.original-button span:last-child {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.original-button:hover span:last-child {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px, -2px);
}

.original-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 8px;
  overflow: visible;
  border: 1px solid var(--border-dark);
  border-radius: 22px;
  background: #18191d;
  box-shadow: 0 28px 90px rgba(16, 18, 24, 0.4);
}

.original-dialog::backdrop {
  background: rgba(17, 18, 23, 0.68);
  backdrop-filter: blur(7px);
}

.original-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 64px);
  object-fit: contain;
  border-radius: 15px;
}

.dialog-close {
  position: absolute;
  top: -13px;
  right: -13px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  place-items: center;
  border: 1px solid #3a3c44;
  border-radius: 11px;
  color: #ffffff;
  background: #191a1f;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(16, 18, 24, 0.25);
  font-size: 21px;
}

@media (max-width: 680px) {
  .page-shell {
    width: calc(100% - 28px);
    padding-top: 20px;
  }

  .meta-line p:last-child {
    display: none;
  }

  .hero__title {
    display: block;
    padding: 68px 4px 32px;
  }

  h1 {
    font-size: clamp(56px, 17vw, 88px);
  }

  .hero__title > p {
    margin-top: 18px;
  }

  .wish-card {
    grid-template-columns: 54px minmax(0, 1fr) 42px;
    min-height: 158px;
    padding: 22px 16px;
    border-radius: 19px;
  }

  .wish-card h2 {
    font-size: clamp(27px, 8vw, 40px);
  }

  .wish-card__check {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .note-field {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 16px;
  }

  .note-field label {
    display: none;
  }

  .roadmap__toggle {
    grid-template-columns: auto minmax(35px, 1fr) auto auto;
    padding-inline: 10px;
  }

  .roadmap__panel {
    padding-inline: 10px;
  }

  .roadmap__step {
    grid-template-columns: 22px 23px minmax(0, 1fr) 24px;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
