/* MyMappi v729 — compact, private personalization settings. */

html body .account-menu .account-customize-button,
html body main.app-shell .account-menu .account-customize-button {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) 16px !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 58px !important;
  border-color: rgba(111, 226, 194, 0.18) !important;
  color: #effff9 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(87, 224, 182, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.065) !important;
}

html body .account-menu .account-customize-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

html body .account-menu .account-customize-copy strong,
html body .account-menu .account-customize-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .account-menu .account-customize-copy strong {
  color: #f6fffc;
  font-size: 0.78rem;
  font-weight: 840;
}

html body .account-menu .account-customize-copy small {
  color: rgba(211, 244, 235, 0.57);
  font-size: 0.66rem;
  font-weight: 650;
}

html body .account-menu .account-customize-arrow {
  color: rgba(215, 247, 238, 0.48);
}

html body .customize-mymappi-dialog {
  width: min(700px, calc(100vw - 28px));
  max-width: 700px;
  max-height: min(850px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(205, 237, 232, 0.88);
  border-radius: 30px;
  color: #073744;
  background: #f8fbf8;
  box-shadow:
    0 38px 96px rgba(1, 28, 46, 0.3),
    0 6px 22px rgba(8, 77, 91, 0.12);
}

html body .customize-mymappi-dialog::backdrop {
  background: rgba(1, 25, 43, 0.5);
  backdrop-filter: blur(10px) saturate(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
}

html body .customize-mymappi-panel,
html body .customize-mymappi-panel *,
html body .customize-mymappi-panel *::before,
html body .customize-mymappi-panel *::after {
  box-sizing: border-box;
}

html body .customize-mymappi-panel {
  display: grid;
  gap: 15px;
  max-height: min(850px, calc(100dvh - 28px));
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 92% 0%, rgba(52, 195, 190, 0.14), transparent 30%),
    radial-gradient(circle at 0% 44%, rgba(122, 221, 178, 0.1), transparent 34%),
    linear-gradient(148deg, rgba(255, 254, 250, 0.99), rgba(239, 248, 246, 0.99));
}

html body .customize-mymappi-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

html body .customize-mymappi-heading > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

html body .customize-mymappi-heading > div > span {
  color: #0b7d75;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html body .customize-mymappi-heading h2,
html body .customize-section-heading h3,
html body .customize-mymappi-heading p,
html body .customize-section-heading p,
html body .customize-cover-note,
html body .customize-mymappi-status {
  margin: 0;
}

html body .customize-mymappi-heading h2 {
  color: #052f3e;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

html body .customize-mymappi-heading p {
  max-width: 530px;
  color: #5c777d;
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.42;
}

html body .customize-mymappi-close {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(7, 67, 83, 0.14);
  border-radius: 50%;
  color: #083b4a;
  background: rgba(255, 255, 252, 0.88);
  box-shadow: 0 7px 18px rgba(4, 51, 63, 0.08);
}

html body .customize-mymappi-section {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(36, 119, 125, 0.12);
  border-radius: 23px;
  background: rgba(255, 255, 252, 0.72);
  box-shadow:
    0 12px 28px rgba(8, 64, 72, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html body .customize-section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

html body .customize-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(46, 172, 155, 0.17);
  border-radius: 14px;
  color: #087c76;
  background: linear-gradient(145deg, rgba(100, 228, 182, 0.17), rgba(63, 174, 204, 0.13));
}

html body .customize-section-icon svg {
  width: 20px;
  height: 20px;
}

html body .customize-section-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html body .customize-section-heading h3 {
  color: #073845;
  font-size: 1rem;
  font-weight: 880;
  line-height: 1.15;
}

html body .customize-section-heading p {
  color: #658087;
  font-size: 0.76rem;
  font-weight: 610;
  line-height: 1.38;
}

html body .customize-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

html body .customize-choice-group legend {
  margin: 0 0 8px;
  padding: 0;
  color: #42666d;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

html body .customize-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

html body .customize-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(13, 91, 100, 0.12);
  border-radius: 17px;
  color: #2c5962;
  background: rgba(246, 250, 247, 0.84);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html body .customize-choice-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.001;
  pointer-events: none;
}

html body .customize-choice-card > span:nth-of-type(1) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html body .customize-choice-card strong {
  color: #103f4a;
  font-size: 0.83rem;
  font-weight: 840;
}

html body .customize-choice-card strong em {
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #08786f;
  background: rgba(48, 196, 157, 0.13);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

html body .customize-choice-card small {
  color: #70898e;
  font-size: 0.68rem;
  font-weight: 610;
  line-height: 1.3;
}

html body .customize-choice-check {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(14, 96, 105, 0.17);
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, 0.82);
}

html body .customize-choice-check svg {
  width: 13px;
  height: 13px;
}

html body .customize-choice-card:has(input:checked) {
  border-color: rgba(20, 161, 138, 0.43);
  background: linear-gradient(145deg, rgba(219, 248, 237, 0.82), rgba(225, 246, 248, 0.75));
  box-shadow: 0 8px 18px rgba(15, 133, 125, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html body .customize-choice-card:has(input:checked) .customize-choice-check {
  border-color: rgba(17, 164, 137, 0.45);
  color: #ffffff;
  background: linear-gradient(145deg, #20a981, #168fa4);
}

html body .customize-choice-card:has(input:focus-visible),
html body .customize-color-field:has(input:focus-visible),
html body .customize-mymappi-close:focus-visible,
html body .customize-mymappi-actions button:focus-visible {
  outline: 3px solid rgba(27, 166, 177, 0.24);
  outline-offset: 2px;
}

html body .customize-category-palette {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(13, 91, 100, 0.09);
  border-radius: 17px;
  background: rgba(240, 248, 245, 0.68);
}

html body .customize-category-palette > div:first-child {
  display: grid;
  gap: 2px;
}

html body .customize-category-palette > div:first-child strong {
  color: #204d57;
  font-size: 0.76rem;
  font-weight: 820;
}

html body .customize-category-palette > div:first-child small {
  color: #72898e;
  font-size: 0.66rem;
  font-weight: 610;
  line-height: 1.35;
}

html body .customize-swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html body .customize-color-field {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 6px 9px;
  border: 1px solid rgba(13, 91, 100, 0.1);
  border-radius: 14px;
  color: #315e66;
  background: rgba(255, 255, 252, 0.78);
  cursor: pointer;
}

html body .customize-color-field input[type="color"] {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 2px;
  border: 1px solid rgba(7, 55, 68, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

html body .customize-color-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

html body .customize-color-field input[type="color"]::-webkit-color-swatch,
html body .customize-color-field input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 50%;
}

html body .customize-color-field > span {
  overflow: hidden;
  font-size: 0.71rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .customize-color-field > span > i {
  display: none;
}

html body .customize-cover-note {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 14px;
  color: #4f7076;
  background: rgba(226, 246, 239, 0.64);
  font-size: 0.7rem;
  font-weight: 690;
  line-height: 1.35;
}

html body .customize-cover-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #148f7d;
}

html body .customize-mymappi-status {
  min-height: 1.25em;
  color: #5c7a80;
  font-size: 0.74rem;
  font-weight: 680;
  text-align: center;
}

html body .customize-mymappi-status:empty {
  display: none;
}

html body .customize-mymappi-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.6fr);
  gap: 10px;
}

html body .customize-mymappi-actions button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 840;
}

html body .customize-mymappi-reset {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(7, 67, 83, 0.14);
  color: #486a70;
  background: rgba(255, 255, 252, 0.8);
}

html body .customize-mymappi-reset svg {
  width: 17px;
  height: 17px;
}

html body .customize-mymappi-save {
  border: 1px solid rgba(87, 220, 181, 0.35);
  color: #f8fffc;
  background: linear-gradient(112deg, #06324c 0%, #087085 48%, #119c7e 100%);
  box-shadow: 0 12px 25px rgba(4, 91, 104, 0.2);
}

@media (hover: hover) {
  html body .customize-choice-card:hover,
  html body .customize-color-field:hover,
  html body .customize-mymappi-close:hover,
  html body .customize-mymappi-actions button:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 620px) {
  html body .customize-mymappi-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 26px;
  }

  html body .customize-mymappi-panel {
    max-height: calc(100dvh - 18px);
    gap: 12px;
    padding: 18px 14px max(15px, env(safe-area-inset-bottom));
  }

  html body .customize-mymappi-section {
    gap: 11px;
    padding: 14px;
    border-radius: 20px;
  }

  html body .customize-choice-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  html body .customize-choice-card {
    min-height: 62px;
  }

  html body .customize-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  html body .customize-mymappi-heading p {
    font-size: 0.8rem;
  }

  html body .customize-section-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  html body .customize-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  html body .customize-mymappi-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  html body .customize-mymappi-reset {
    justify-content: center;
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .customize-mymappi-dialog,
  html body .customize-mymappi-dialog *,
  html body .customize-mymappi-dialog *::before,
  html body .customize-mymappi-dialog *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
