:root {
  --page-bg: #fff;
  --text: #303030;
  --muted: #767676;
  --line: #dedede;
  --brand: #5b4294;
  --brand-dark: #463070;
  --card-bg: #fff;
  --soft: #f7f4ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--page-bg);
}

a {
  color: #303030;
  text-decoration-color: #c0c0c0;
  text-underline-offset: 3px;
}

a:hover,
a:active,
a:focus-visible {
  color: var(--brand);
}

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

button {
  cursor: pointer;
}

.copy-link-button,
.qr-link-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #303030;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 32px;
}

.copy-link-button:hover,
.copy-link-button:focus-visible,
.qr-link-button:hover,
.qr-link-button:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--brand);
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.copy-link-button:active,
.qr-link-button:active {
  box-shadow: 0 1px 3px rgba(48, 48, 48, 0.16), inset 0 1px 2px rgba(48, 48, 48, 0.08);
  transform: translateY(0);
}

.copy-link-button__icon {
  display: block;
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.qr-link-button__icon {
  display: block;
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.qr-dialog {
  align-items: center;
  background: rgba(0, 0, 0, 0.46);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 20px;
  position: fixed;
  z-index: 1100;
}

.qr-dialog__panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  max-width: min(420px, 100%);
  padding: 18px;
  position: relative;
}

.qr-dialog__image {
  background: #fff;
  display: block;
  height: auto;
  width: min(340px, 76vw);
}

.qr-dialog__close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #303030;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -10px;
  top: -10px;
  width: 32px;
}

.qr-dialog__close:hover,
.qr-dialog__close:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  color: var(--brand);
  outline: none;
}

.qr-dialog__close svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 16px;
}

body.is-qr-open {
  overflow: hidden;
}

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

.site-header {
  width: min(1180px, 100%);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: transparent;
  color: var(--text);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo,
.site-nav a,
.site-nav button,
.language-switcher button {
  color: var(--text);
  text-decoration: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--brand);
  font-size: 24px;
  font-weight: 400;
}

.site-logo__mark {
  width: auto;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  transform: translateY(-2px);
}

.site-logo__text {
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.site-nav__logout {
  margin: 0;
}

.site-nav button,
.language-switcher button {
  padding: 0;
  border: 0;
  background: transparent;
}

.site-nav__icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.site-nav__svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-profile-menu {
  color: var(--text);
  display: inline-flex;
  position: relative;
}

.site-profile-menu__summary {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

.site-profile-menu__summary:focus-visible,
.site-profile-menu.is-open .site-profile-menu__summary {
  background: rgba(91, 66, 148, 0.12);
  outline: none;
}

.site-profile-menu__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-profile-menu__panel {
  min-width: 176px;
  display: none;
  padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.site-profile-menu.is-open .site-profile-menu__panel {
  display: grid;
  gap: 2px;
}

.site-nav .site-profile-menu__link,
.site-nav .site-profile-menu__link:link,
.site-nav .site-profile-menu__link:visited,
.site-nav .site-profile-menu__button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .site-profile-menu__link:hover,
.site-nav .site-profile-menu__link:focus-visible,
.site-nav .site-profile-menu__button:hover,
.site-nav .site-profile-menu__button:focus-visible {
  background: rgba(91, 66, 148, 0.1);
  color: var(--text);
  outline: none;
  text-decoration: none;
}

.site-profile-menu__form {
  width: 100%;
  margin: 0;
}

.site-nav__icon:hover,
.language-switcher button:hover,
.language-switcher button[aria-current="true"] {
  background: rgba(91, 66, 148, 0.12);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(91, 66, 148, 0.25);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.home,
.auth-card,
.section {
  margin: 0 auto;
}

.home {
  display: grid;
  justify-items: center;
  gap: 0;
  padding-top: 0;
  text-align: center;
}

.home__brand-image {
  width: min(660px, 100%);
  height: auto;
  display: block;
}

.home__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
  transform: translateX(clamp(30px, 9vw, 60px));
}

.home__actions .button {
  padding: 20px;
  font-size: 19px;
  font-weight: 500;
}

.home-action-menu {
  position: relative;
  display: inline-block;
}

.home-action-menu__summary {
  cursor: pointer;
  list-style: none;
}

.home-action-menu__summary::-webkit-details-marker {
  display: none;
}

.home-action-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(48, 48, 48, 0.16);
  text-align: left;
  transform: translateX(-50%);
}

.home-action-menu__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
}

.home-action-menu__panel a:hover,
.home-action-menu__panel a:focus-visible {
  background: #f4f2f9;
  color: var(--brand);
}

h1 {
  margin: 0 0 24px;
  font-size: 42px;
  line-height: 1.1;
}

.section-title {
  margin: 32px 0 20px;
  font-size: 36px;
  line-height: 1.1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.button:hover {
  background: var(--brand-dark);
  color: #fff;
}

.button--small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 5px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.form-help,
.form-error,
.empty-text,
.auth-card__note,
.public-profile__about,
.profile-public-link span {
  color: var(--muted);
  font-size: 15px;
}

.form-help {
  margin: -8px 0 0;
  font-size: 14px;
  line-height: 1.3;
}

.form-error {
  margin: -6px 0 0;
  color: var(--brand);
}

.messages {
  margin: 0 auto 18px;
}

.message {
  margin: 0 0 8px;
  border-radius: 6px;
  background: #fff;
}

.message--error {
  color: var(--brand);
}

.message--success {
  color: var(--brand);
}

.wishlist-profile-share {
  margin: 0 0 24px;
}

.wishlist-profile-share {
  font-size: 17px;
}

.wish-create {
  margin: 0;
  padding-bottom: 44px;
}

.wish-create summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
}

.wish-create summary::-webkit-details-marker {
  display: none;
}

.wish-form {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2f9;
}

.wish-form label {
  font-weight: 400;
}

.wish-form__label-text {
  width: fit-content;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding-left: 5px;
  font-weight: 400;
}

.wish-form__required {
  color: #b20000;
}

.wish-form__field--price {
  max-width: 240px;
}

.wish-form__price-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
}

.form .wish-form__currency-select {
  width: 58px;
  min-width: 58px;
}

.form .wish-form__price-input {
  width: 150px;
  max-width: calc(100vw - 120px);
}

.wish-link-preview {
  display: grid;
  gap: 6px;
  max-width: min(620px, 100%);
}

.wish-link-preview__row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.form .wish-link-preview__row input {
  min-width: 0;
  flex: 1;
}

.wish-link-preview__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.wish-link-preview__button:hover,
.wish-link-preview__button:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  color: var(--brand-dark);
  outline: none;
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.wish-link-preview__button:disabled {
  color: var(--muted);
  cursor: wait;
}

.wish-link-preview__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wish-link-preview__result {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(91, 66, 148, 0.18);
  border-radius: 8px;
  background: #fff;
}

.wish-link-preview__result[hidden],
.wish-link-preview__media[hidden],
.wish-link-preview__apply[hidden] {
  display: none;
}

.wish-link-preview__result.is-error {
  color: var(--brand);
}

.wish-link-preview__media {
  overflow: hidden;
  width: 74px;
  min-width: 74px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #f4f2f9;
}

.wish-link-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-link-preview__content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.wish-link-preview__title,
.wish-link-preview__description,
.wish-link-preview__price {
  margin: 0;
}

.wish-link-preview__title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.wish-link-preview__description,
.wish-link-preview__price {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.wish-link-preview__apply {
  width: fit-content;
  margin-top: 3px;
  font-weight: 500;
}

.image-upload-zone {
  width: min(260px, 100%);
  cursor: pointer;
}

.image-upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.image-upload-zone__body {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  min-height: 58px;
  border: 1px dashed rgba(91, 66, 148, 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.1);
  color: var(--brand);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.image-upload-zone:hover .image-upload-zone__body,
.image-upload-zone:focus-within .image-upload-zone__body,
.image-upload-zone.is-drag-over .image-upload-zone__body {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 4px 10px rgba(91, 66, 148, 0.16);
}

.image-upload-zone.is-drag-over .image-upload-zone__body {
  transform: translateY(-1px);
}

.image-upload-zone__icon {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.image-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 120px));
  gap: 10px;
  margin-top: -4px;
}

.image-preview-list[hidden] {
  display: none;
}

.image-preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.12);
  cursor: grab;
}

.image-preview-item:active {
  cursor: grabbing;
}

.image-preview-item.is-dragging {
  opacity: 0.62;
}

.image-preview-item.is-drag-over {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(91, 66, 148, 0.18), 0 4px 9px rgba(48, 48, 48, 0.16);
}

.image-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item__controls {
  position: absolute;
  top: 5px;
  right: 5px;
  left: 5px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.image-preview-item__button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(214, 209, 224, 0.95);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.16);
  color: #303030;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.image-preview-item__button:hover,
.image-preview-item__button:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.18);
  color: var(--brand);
  outline: none;
  transform: translateY(-1px);
}

.image-preview-item__button:disabled {
  box-shadow: none;
  opacity: 0.42;
  transform: none;
}

.image-preview-item__button svg {
  display: block;
  fill: none;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.link-tool-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 22px;
}

.wish-card {
  position: relative;
  min-width: 0;
}

.wish-card__media {
  position: relative;
  overflow: visible;
}

.wish-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 5px 6px 10px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.wish-card__image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.wish-card__gallery-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(48, 48, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #303030;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 28px;
  z-index: 3;
}

.wish-card__gallery-arrow--prev {
  left: 8px;
}

.wish-card__gallery-arrow--next {
  right: 8px;
}

.wish-card__gallery-arrow:hover,
.wish-card__gallery-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(48, 48, 48, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--brand);
  outline: none;
  transform: translateY(calc(-50% - 1px));
}

.wish-card__gallery-arrow:active {
  box-shadow: 0 1px 4px rgba(48, 48, 48, 0.18), inset 0 1px 2px rgba(48, 48, 48, 0.08);
  transform: translateY(-50%);
}

.wish-card__gallery-arrow svg {
  display: block;
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 17px;
}

.wish-card__dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.wish-card__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.wish-card__dot.is-active {
  background: rgba(80, 80, 80, 0.55);
}

.wish-card__body {
  padding: 10px 10px 0;
}

.wish-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.16;
}

.wish-card__text-link {
  color: inherit;
  text-decoration: none;
}

.wish-card__text-link:hover,
.wish-card__text-link:focus-visible,
.wish-card__text-link:active {
  color: inherit;
  text-decoration: none;
}

.wish-card__description {
  font-size: 15px;
  line-height: 1.35;
}

.wish-card__price,
.wish-card__status {
  display: block;
  margin: 6px 0 0;
  font-size: 15px;
}

.wish-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 0;
  min-height: 26px;
}

.wish-card__external-link {
  align-items: center;
  color: #303030;
  display: inline-flex;
  flex: 0 0 auto;
  height: 26px;
  justify-content: center;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
  width: 26px;
}

.wish-card__external-link:hover,
.wish-card__external-link:focus-visible {
  color: var(--brand);
  outline: none;
  transform: translateY(-1px);
}

.wish-card__external-link-icon {
  display: block;
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 22px;
}

.wish-card__price {
  color: #303030;
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.wish-card__manage {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.wish-card__manage form {
  margin: 0;
}

.wish-card__manage-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #303030;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 32px;
}

.wish-card__manage-button:hover,
.wish-card__manage-button:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--brand);
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.wish-card__manage-button:active {
  box-shadow: 0 1px 3px rgba(48, 48, 48, 0.16), inset 0 1px 2px rgba(48, 48, 48, 0.08);
  transform: translateY(0);
}

.wish-card__manage-icon {
  display: block;
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.wish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.wish-actions form {
  margin: 0;
  max-width: 100%;
}

.wish-action-button {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  justify-content: center;
  line-height: 1.15;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #303030;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.wish-action-button.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.wish-action-button:hover,
.wish-action-button:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--brand);
  outline: none;
  transform: translateY(-1px);
}

.wish-action-button:active {
  box-shadow: 0 1px 3px rgba(48, 48, 48, 0.16), inset 0 1px 2px rgba(48, 48, 48, 0.08);
  transform: translateY(0);
}

.wish-action-button--icon {
  width: 36px;
  min-width: 36px;
  padding-inline: 0;
}

.wish-action-button__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wish-action-button__icon--organize {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.wish-action-button__label {
  overflow-wrap: anywhere;
}

.wish-action-button__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding-top: 1px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.wish-action-button:disabled {
  box-shadow: none;
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wish-action-auth-menu {
  position: relative;
  display: inline-block;
}

.wish-action-auth-menu summary {
  cursor: pointer;
  list-style: none;
}

.wish-action-auth-menu summary::-webkit-details-marker {
  display: none;
}

.wish-action-auth-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(48, 48, 48, 0.16);
  transform: translateX(-50%);
}

.wish-action-auth-menu__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
}

.wish-action-auth-menu__panel a:hover,
.wish-action-auth-menu__panel a:focus-visible {
  background: #f4f2f9;
  color: var(--brand);
}

.reserve-panel {
  position: absolute;
  z-index: 20;
  right: 8px;
  bottom: 52px;
  width: min(320px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.reserve-panel p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.35;
}

.reserve-panel__plans {
  display: grid;
  gap: 8px;
}

.fundraiser-page {
  max-width: 1120px;
}

.wish-detail-page {
  max-width: 1120px;
}

.wish-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.wish-detail-card .wish-card {
  width: 100%;
}

.wish-detail-fundraiser {
  display: grid;
  gap: 16px;
}

.wish-detail-fundraiser__groups {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 66, 148, 0.18);
  border-radius: 8px;
  background: #f3eeff;
}

.wish-detail-fundraiser__groups p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.wish-detail-fundraiser__organize {
  display: grid;
  gap: 14px;
}

.wish-detail-fundraiser__organize > summary {
  width: fit-content;
  list-style: none;
}

.wish-detail-fundraiser__organize > summary::-webkit-details-marker {
  display: none;
}

.wish-detail-fundraiser__toggle {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2f9;
}

.fundraiser-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.fundraiser-wish .wish-card {
  width: 100%;
}

.fundraiser-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2f9;
}

.fundraiser-organizer,
.fundraiser-auth-links {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.fundraiser-secret-link {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 15px;
  line-height: 1.35;
}

.fundraiser-secret-link > span {
  width: 100%;
}

.fundraiser-secret-link a {
  max-width: min(520px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fundraiser-progress {
  display: grid;
  gap: 12px;
}

.fundraiser-progress__bar {
  position: relative;
  display: block;
  overflow: hidden;
  height: 18px;
  border-radius: 999px;
  background: #d8d8d8;
  box-shadow: inset 0 1px 2px rgba(48, 48, 48, 0.12);
}

.fundraiser-progress__wanted,
.fundraiser-progress__collected {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.fundraiser-progress__wanted {
  z-index: 1;
  background: #777;
}

.fundraiser-progress__collected {
  z-index: 2;
  background: var(--brand);
}

.fundraiser-progress__stats {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.fundraiser-progress__stats div,
.fundraiser-contribution {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.fundraiser-progress__stats dt,
.fundraiser-progress__stats dd {
  margin: 0;
}

.fundraiser-progress__stats dt {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 7px;
  font-size: 14px;
}

.fundraiser-progress__stats dd {
  font-weight: 600;
}

.fundraiser-progress__legend {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.fundraiser-progress__legend--goal {
  background: #d8d8d8;
  box-shadow: inset 0 0 0 1px rgba(48, 48, 48, 0.08);
}

.fundraiser-progress__legend--wanted {
  background: #777;
}

.fundraiser-progress__legend--collected {
  background: var(--brand);
}

.fundraiser-goal-form,
.fundraiser-contribution-form {
  gap: 10px;
}

.fundraiser-goal-form input,
.fundraiser-contribution-form input {
  width: min(320px, 100%);
}

.fundraiser-contribution-form__amount {
  width: min(220px, 100%);
}

.fundraiser-contribution-form__currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.fundraiser-contributions {
  display: grid;
  gap: 8px;
}

.fundraiser-contribution {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.fundraiser-empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.fundraiser-contribution form {
  margin: 0;
}

.fundraiser-contribution.is-confirmed {
  border-color: rgba(91, 66, 148, 0.35);
}

.wish-burst {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: var(--wish-burst-width, 190px);
  height: var(--wish-burst-height, 132px);
}

.wish-burst__mist {
  position: absolute;
  inset: 6px 8px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0;
  transform: scale(0.25) rotate(-10deg);
}

.wish-burst__mist--back {
  background:
    radial-gradient(circle at 28% 54%, rgba(91, 66, 148, 0.82), transparent 58%),
    radial-gradient(circle at 70% 42%, rgba(181, 128, 255, 0.68), transparent 62%),
    radial-gradient(circle at 52% 68%, rgba(255, 255, 255, 0.34), transparent 42%);
  animation: wish-mist-back 1.05s ease-out both;
}

.wish-burst__mist--front {
  inset: 0 18px 20px;
  background:
    radial-gradient(circle at 36% 42%, rgba(210, 177, 255, 0.72), transparent 54%),
    radial-gradient(circle at 66% 58%, rgba(91, 66, 148, 0.72), transparent 58%);
  animation: wish-mist-front 0.95s ease-out 0.05s both;
}

.wish-burst__star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f6d36d;
  box-shadow: 0 0 10px rgba(246, 211, 109, 0.95), 0 0 20px rgba(246, 211, 109, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: wish-star 0.9s ease-out both;
}

.wish-burst__star::before,
.wish-burst__star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(255, 232, 155, 0.9);
  transform: translate(-50%, -50%);
}

.wish-burst__star::before {
  width: 16px;
  height: 1px;
}

.wish-burst__star::after {
  width: 1px;
  height: 16px;
}

@keyframes wish-mist-back {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.25) rotate(-14deg);
  }
  24% {
    opacity: 0.9;
  }
  72% {
    opacity: 0.72;
    transform: translateY(-36px) scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-62px) scale(1.55) rotate(18deg);
  }
}

@keyframes wish-mist-front {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.2) rotate(12deg);
  }
  26% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateY(-52px) scale(1.36) rotate(-18deg);
  }
}

@keyframes wish-star {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  26% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 28px)) scale(var(--s));
  }
}

.public-profile__header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.public-profile__avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  overflow: hidden;
}

.public-profile__avatar.has-image {
  background: transparent;
}

.public-profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-profile__header h1,
.public-profile__header p {
  margin: 0 0 6px;
}

.public-profile__identity {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.public-profile__bookmark {
  margin: 4px 0 0;
}

.public-profile__bookmark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #303030;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.public-profile__bookmark-button:hover,
.public-profile__bookmark-button:focus-visible,
.public-profile__bookmark-button.is-active {
  border-color: rgba(91, 66, 148, 0.45);
  color: var(--brand);
  outline: none;
}

.public-profile__bookmark-button:hover,
.public-profile__bookmark-button:focus-visible {
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.public-profile__bookmark-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.public-profile__bookmark-button.is-active .public-profile__bookmark-icon {
  fill: currentColor;
}

.wish-bookmarks-page {
  max-width: 1120px;
}

.wish-bookmark-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.wish-bookmark-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.1);
  color: #303030;
  font-size: 15px;
  line-height: 1.15;
  text-decoration: none;
}

.wish-bookmark-tabs__link:hover,
.wish-bookmark-tabs__link:focus-visible,
.wish-bookmark-tabs__link.is-active {
  border-color: rgba(91, 66, 148, 0.45);
  color: var(--brand);
  outline: none;
}

.wish-bookmark-tabs__link.is-active {
  background: #f4f2f9;
}

.wish-bookmark-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.wishlist-bookmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.wishlist-bookmark-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2f9;
}

.wishlist-bookmark-card__avatar {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.wishlist-bookmark-card__avatar.has-image {
  background: transparent;
}

.wishlist-bookmark-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-bookmark-card__title {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #303030;
  font-size: 17px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-bookmark-card__title:hover,
.wishlist-bookmark-card__title:focus-visible {
  color: var(--brand);
  outline: none;
}

.wishlist-bookmark-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.wish-bookmark-fundraisers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.wish-bookmark-fundraiser {
  min-width: 0;
}

.wish-bookmark-fundraiser__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.wish-bookmark-fundraiser__meta a {
  color: var(--brand);
  text-decoration: none;
}

.wish-bookmark-fundraiser__progress {
  position: relative;
  display: block;
  overflow: hidden;
  height: 12px;
  margin-top: 10px;
  border-radius: 999px;
  background: #d8d8d8;
  box-shadow: inset 0 1px 2px rgba(48, 48, 48, 0.12);
}

.wish-bookmark-fundraiser__wanted,
.wish-bookmark-fundraiser__collected {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.wish-bookmark-fundraiser__wanted {
  z-index: 1;
  background: #777;
}

.wish-bookmark-fundraiser__collected {
  z-index: 2;
  background: var(--brand);
}

.account-form {
  display: grid;
  gap: 10px;
}

.account-form label {
  font-weight: 600;
}

.profile-form,
.dashboard-contact-form--email {
  justify-items: start;
}

.profile-form > input,
.dashboard-contact-form--email input[type="email"] {
  width: min(360px, 100%);
}

.profile-form > textarea {
  width: min(520px, 100%);
}

.profile-form .button,
.dashboard-contact-form--email .button {
  width: fit-content;
  justify-self: start;
}

.profile-details-form {
  gap: 14px;
}

.profile-details-form__field {
  display: grid;
  gap: 6px;
  font-weight: 400;
  justify-items: start;
  margin: 0;
}

.profile-details-form__field--name {
  width: min(360px, 100%);
}

.profile-details-form__field--avatar {
  width: min(420px, 100%);
}

.profile-avatar-shell {
  position: relative;
  display: inline-flex;
}

.profile-avatar-control {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  max-width: fit-content;
}

.profile-avatar-preview {
  align-items: center;
  background: #000;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 34px;
  font-weight: 800;
  height: 80px;
  justify-content: center;
  overflow: hidden;
  width: 80px;
}

.profile-avatar-preview.has-image {
  background: transparent;
}

.profile-avatar-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-avatar-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar-control:hover .profile-avatar-preview,
.profile-avatar-control:focus-within .profile-avatar-preview {
  opacity: 0.92;
}

.profile-avatar-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(214, 209, 224, 0.95);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.18);
  color: #303030;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.profile-avatar-remove:hover,
.profile-avatar-remove:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.2);
  color: var(--brand);
  outline: none;
  transform: translateY(-1px);
}

.profile-avatar-remove[hidden] {
  display: none;
}

.profile-avatar-remove svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.profile-details-form__field--about {
  width: min(520px, 100%);
}

.profile-birth-date-input:not(.has-value) {
  color: transparent;
}

.profile-birth-date-input:not(.has-value)::-webkit-datetime-edit {
  color: transparent;
}

.profile-birth-date-input.has-value {
  color: var(--text);
}

.profile-details-form__field input,
.profile-details-form__field textarea {
  width: 100%;
}

.dashboard-addresses {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.dashboard-addresses p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 5px;
}

.dashboard-addresses p > span:first-child,
.dashboard-field-heading,
.dashboard-pretty-address h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.25;
}

.dashboard-addresses a {
  color: #303030;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dashboard-pretty-address {
  display: grid;
  gap: 2px;
  margin: 0 0 18px;
  padding-left: 5px;
}

.dashboard-pretty-address h3 {
  margin: 0;
}

.account-form label.dashboard-field-heading {
  font-weight: 350;
}

.dashboard-pretty-address__view,
.dashboard-pretty-address__editor {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.dashboard-pretty-address__view[hidden],
.dashboard-pretty-address__editor[hidden] {
  display: none;
}

.dashboard-pretty-address__editor {
  flex-wrap: nowrap;
  gap: 4px;
  width: min(460px, 100%);
}

.dashboard-pretty-address__view a,
.dashboard-pretty-address__prefix {
  color: #303030;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dashboard-pretty-address__prefix,
.dashboard-pretty-address__prefix:link,
.dashboard-pretty-address__prefix:visited,
.dashboard-pretty-address__prefix:hover,
.dashboard-pretty-address__prefix:focus-visible {
  color: #303030;
}

.dashboard-pretty-address__prefix {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dashboard-pretty-address__editor input[data-username-input] {
  flex: 1 1 auto;
  max-width: none;
  min-width: 72px;
  width: auto;
}

.dashboard-pretty-address__edit {
  align-items: center;
  background: transparent;
  border: 0;
  color: #303030;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.dashboard-pretty-address__edit svg {
  display: block;
  height: 18px;
  width: 18px;
}

.dashboard-pretty-address__edit:hover,
.dashboard-pretty-address__edit:focus-visible {
  color: var(--brand);
  outline: none;
}

.dashboard-username__status {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  min-height: 24px;
  text-align: center;
}

.dashboard-username__status.is-free {
  color: #2d7d46;
}

.dashboard-username__status.is-taken {
  color: #b20000;
}

.dashboard-access-form {
  margin: 0;
}

.dashboard-access-switch {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  margin: 0;
  width: fit-content;
  cursor: pointer;
  font-weight: 400;
}

.dashboard-access-switch__input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.dashboard-access-switch__track {
  background: #b9b9b9;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  line-height: 1;
  position: relative;
  transition: background 0.18s ease;
  width: 76px;
}

.dashboard-access-switch__track::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  content: "";
  height: 24px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.18s ease;
  width: 24px;
  z-index: 2;
}

.dashboard-access-switch__state {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.18s ease;
  z-index: 1;
}

.dashboard-access-switch__state--off {
  opacity: 1;
  right: 9px;
}

.dashboard-access-switch__state--on {
  left: 11px;
  opacity: 0;
}

.dashboard-access-switch__input:checked + .dashboard-access-switch__track {
  background: #2d7d46;
}

.dashboard-access-switch__input:checked + .dashboard-access-switch__track::after {
  transform: translateX(46px);
}

.dashboard-access-switch__input:checked + .dashboard-access-switch__track .dashboard-access-switch__state--off {
  opacity: 0;
}

.dashboard-access-switch__input:checked + .dashboard-access-switch__track .dashboard-access-switch__state--on {
  opacity: 1;
}

.dashboard-access-switch__input:focus-visible + .dashboard-access-switch__track {
  outline: 2px solid rgba(91, 66, 148, 0.45);
  outline-offset: 3px;
}

.dashboard-access-switch__label {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.dashboard-secret-link {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding-left: 5px;
}

.dashboard-secret-link > span {
  color: var(--text);
  flex: 0 0 100%;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.25;
}

.dashboard-secret-link a {
  color: #303030;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dashboard-secret-link form {
  margin: 0;
}

.dashboard-secret-link button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(48, 48, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #303030;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.dashboard-secret-link .copy-link-button,
.dashboard-secret-link .qr-link-button {
  padding: 0;
}

.dashboard-secret-link button:hover,
.dashboard-secret-link button:focus-visible {
  border-color: rgba(91, 66, 148, 0.45);
  box-shadow: 0 4px 9px rgba(48, 48, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--brand);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-secret-link button:active {
  box-shadow: 0 1px 3px rgba(48, 48, 48, 0.16), inset 0 1px 2px rgba(48, 48, 48, 0.08);
  transform: translateY(0);
}

.dashboard-secret-link .dashboard-secret-link__regenerate {
  height: 32px;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.dashboard-secret-link .dashboard-secret-link__regenerate svg {
  display: block;
  height: 21px;
  width: 21px;
}

.dashboard-contact-panel {
  display: grid;
  gap: 8px;
  padding-bottom: 24px;
  padding-top: 24px;
}

.dashboard-contact-panel > h2 {
  margin: 0;
  padding-left: 5px;
}

.dashboard-contact-panel .account-form {
  gap: 8px;
  margin: 0;
}

.dashboard-contact-panel .account-form label {
  font-size: 14px;
  line-height: 1.25;
  margin: 0;
}

.dashboard-contact-panel .account-form input {
  min-height: auto;
  padding: 5px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.dashboard-contact-panel .button {
  border-radius: 8px;
  font-size: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 18px;
}

.dashboard-contact-form {
  align-items: start;
}

.dashboard-contact-form--email {
  gap: 14px;
  margin-top: 4px;
}

.account-delete-form {
  margin: 12px 0 0;
}

.account-delete-link {
  display: inline;
  padding: 0 0 0 5px;
  border: 0;
  background: transparent;
  color: #303030;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: #c0c0c0;
  text-underline-offset: 3px;
}

.account-delete-link:hover,
.account-delete-link:focus-visible {
  color: var(--brand);
  outline: none;
}

.profile-page {
  display: grid;
  gap: 18px;
}

.profile-page > h1 {
  margin-bottom: 6px;
}

.profile-block {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2f9;
}

.profile-block--addresses {
  background: #f3eeff;
}

.profile-block > h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.profile-block .dashboard-addresses,
.profile-block .dashboard-pretty-address {
  margin: 0;
}

.profile-block.dashboard-contact-panel {
  padding: 16px;
}

@media (max-width: 900px) {
  .fundraiser-layout,
  .wish-detail-layout {
    grid-template-columns: 1fr;
  }

  .wish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 12px;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .site-header {
    min-height: 58px;
    padding: 0 15px;
    gap: 12px;
  }

  .site-logo {
    font-size: 24px;
    gap: 0;
  }

  .site-logo__mark {
    height: 26px;
  }

  .site-header__tools {
    gap: 8px;
  }

  .site-nav {
    gap: 4px;
    font-size: 14px;
  }

  .site-nav__icon {
    width: 30px;
    height: 30px;
  }

  .site-profile-menu__summary {
    width: 30px;
    height: 30px;
  }

  .language-switcher button {
    min-width: 30px;
  }

  .page {
    padding: 28px 15px 56px;
  }

  h1 {
    font-size: 34px;
  }

  .section-title {
    font-size: 30px;
  }

  .home {
    padding-top: 0;
  }

  .home__brand-image {
    width: min(84vw, 330px);
    transform: translateX(-9%);
  }

  .home__actions {
    transform: none;
  }

  .wish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .wish-card__body {
    padding: 8px 5px 0;
  }

  .wish-card h3 {
    font-size: 15px;
  }

  .wish-card__description,
  .wish-card__external-link,
  .wish-card__price,
  .wish-card__status {
    font-size: 12px;
  }

  .wish-card__meta {
    min-height: 22px;
  }

  .wish-card__external-link {
    height: 22px;
    width: 22px;
  }

  .wish-card__external-link-icon {
    height: 19px;
    width: 19px;
  }

  .wish-card__gallery-arrow {
    display: none;
  }

  .wish-action-button {
    padding: 4px 7px;
    font-size: 11px;
  }

  .public-profile__header {
    align-items: flex-start;
  }

  .public-profile__avatar {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

}
