.account-stage {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 7vw, 5.5rem) 0;
}

.profile-view-page {
  --page-background-image: url("../img/bg-goose-props-travel.svg");
}

.account-page [hidden] {
  display: none !important;
}

.account-shell {
  display: flex;
  justify-content: center;
}

.account-card {
  width: min(100%, 35rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1.25rem 3.5rem rgba(33, 37, 41, 0.14);
}

.account-card-heading,
.account-profile-heading {
  margin-bottom: 1.75rem;
}

.account-kicker {
  margin-bottom: 0.35rem;
  color: #876321;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-card h1 {
  margin-bottom: 0.6rem;
  color: #17222d;
  font-size: clamp(2rem, 6vw, 3rem);
}

.account-card-heading > p:last-child,
.account-profile-heading > div > p:last-child {
  margin-bottom: 0;
  color: #5d6872;
  line-height: 1.65;
}

.account-google-button {
  width: 100%;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid #b5bdc5;
  border-radius: 0.65rem;
  background: #fff;
  color: #17222d;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease,
    transform 150ms ease;
}

.account-google-button:hover:not(:disabled) {
  border-color: #4285f4;
  box-shadow: 0 0.45rem 1.1rem rgba(66, 133, 244, 0.16);
  transform: translateY(-1px);
}

.account-google-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.account-google-mark {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from -45deg,
    #4285f4 0 25%,
    #34a853 0 50%,
    #fbbc05 0 75%,
    #ea4335 0
  );
  color: #fff;
  font-weight: 700;
}

.account-privacy-note {
  margin: 0.85rem 0 0;
  color: #68737d;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.account-signed-in {
  padding: 1.25rem;
  border-radius: 0.8rem;
  background: #eef8f1;
  color: #185b2e;
  text-align: center;
}

.account-success-mark {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #278145;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.account-signed-in p {
  margin: 0;
}

.account-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: #59636c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.account-status[data-state="error"] {
  color: #a1262d;
}

.account-status[data-state="success"] {
  color: #216e39;
}

.account-back-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #3f5f78;
  font-weight: 700;
}

.account-profile-card {
  width: min(100%, 72rem);
}

.account-profile-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.account-avatar {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9e8ed;
  color: #23485a;
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
}

.account-avatar-large {
  width: 6rem;
  height: 6rem;
}

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

.account-details {
  margin: 0 0 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-details > div {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  background: #f3f5f6;
}

.account-details .account-display-name {
  grid-column: 1 / -1;
}

.account-details dt {
  color: #68737d;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-details dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  color: #25313b;
  font-weight: 700;
}

.account-form label {
  color: #25313b;
  font-weight: 700;
}

.account-form .form-control {
  min-height: 3rem;
  border-radius: 0.55rem;
}

.account-form .form-control:focus {
  border-color: #3f7894;
  box-shadow: 0 0 0 0.2rem rgba(63, 120, 148, 0.2);
}

.account-field-error {
  min-height: 1.25rem;
  margin: 0.3rem 0 0;
  color: #a1262d;
  font-size: 0.8rem;
}

.profile-readonly-intro {
  margin: 0 0 1rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid #d3a64c;
  border-radius: 0 0.7rem 0.7rem 0;
  background: #fff8e9;
}

.profile-readonly-bio {
  margin: 0;
  color: #4d4538;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

.profile-travel-details > div:nth-child(6),
.profile-travel-details > div:nth-child(7) {
  grid-column: 1 / -1;
}

.profile-social-links a,
.profile-travel-details a {
  color: #2d617a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.profile-readonly-visibility {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d6dde2;
  border-radius: 0.75rem;
  background: #f7f9fa;
}

.profile-readonly-visibility h2,
.profile-account-title {
  margin-bottom: 0.35rem;
  color: #17222d;
  font-size: 1.1rem;
}

.profile-readonly-visibility p {
  margin: 0;
  color: #5d6872;
  font-size: 0.86rem;
  line-height: 1.5;
}

.profile-public-link {
  display: inline-block;
  margin-top: 0.45rem;
  color: #2d617a;
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-visibility-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e4e8eb;
  color: #53616b;
  font-size: 0.76rem;
  font-weight: 700;
}

.profile-visibility-badge[data-state="public"] {
  background: #dff2e4;
  color: #216e39;
}

.profile-account-title {
  margin-top: 0;
}

.profile-private-details {
  margin-bottom: 0.65rem;
}

.profile-private-note {
  margin: 0 0 1.4rem;
  color: #68737d;
  font-size: 0.8rem;
  line-height: 1.55;
}

.public-traveller-card {
  width: min(100%, 48rem);
}

.public-traveller-card > [data-public-profile-panel] >
  .profile-readonly-bio {
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid #d3a64c;
  border-radius: 0 0.7rem 0.7rem 0;
  background: #fff8e9;
}

.public-visited-map {
  margin: 0.4rem 0 1.5rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(126, 98, 55, 0.2);
  border-radius: 0.9rem;
  background: #fffaf0;
}

.public-visited-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.public-visited-map-heading h2,
.public-visited-map-heading p {
  margin: 0;
}

.public-visited-map-heading > p {
  color: #82511c;
  font-size: 0.78rem;
  font-weight: 700;
}

.public-visited-map figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 98, 55, 0.18);
  border-radius: 0.7rem;
  background: #f7f2e7;
}

.public-visited-map figure[hidden] {
  display: none;
}

.public-visited-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: contain;
}

.public-visited-map figcaption {
  position: absolute;
  right: 0.45rem;
  bottom: 0.4rem;
  max-width: calc(100% - 0.9rem);
  padding: 0.22rem 0.4rem;
  border: 1px solid rgba(126, 98, 55, 0.18);
  border-radius: 0.35rem;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 2px 7px rgba(52, 43, 31, 0.12);
  color: #5d655f;
  font-size: 0.61rem;
  line-height: 1.3;
  pointer-events: none;
  text-align: right;
}

.public-visited-country-details {
  margin-top: 0.75rem;
  color: #4d5a54;
}

.public-visited-country-details summary {
  width: fit-content;
  color: #82511c;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.public-visited-country-details ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.8rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.public-visited-country-details li {
  padding-left: 0.8rem;
  color: #5f6863;
  font-size: 0.76rem;
}

.public-visited-country-details li::before {
  margin-left: -0.8rem;
  color: #d99a32;
  content: "•";
}

.public-profile-journals {
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(126, 98, 55, 0.2);
}

.public-profile-journals .profile-journals-heading {
  margin-bottom: 0.6rem;
}

.public-profile-journals .profile-journal-list {
  margin-top: 0.8rem;
}

.public-profile-journals .profile-journal-tags {
  margin-top: 0.75rem;
}

.public-profile-journals .profile-journal-card h3 a {
  color: inherit;
  text-decoration: none;
}

.public-profile-journals .profile-journal-card h3 a:hover,
.public-profile-journals .profile-journal-card h3 a:focus-visible {
  color: #8f3d2c;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.public-traveller-details > div {
  grid-column: auto !important;
}

.public-profile-unavailable {
  text-align: center;
}

.public-profile-unavailable h1 {
  font-size: clamp(1.9rem, 5vw, 2.65rem);
}

.public-profile-unavailable > p:not(.account-kicker) {
  margin-bottom: 1.25rem;
  color: #5d6872;
}

.profile-editor-section {
  margin-bottom: 1.4rem;
  padding: 1.25rem;
  border: 1px solid #dce2e6;
  border-radius: 0.85rem;
  background: rgba(248, 250, 251, 0.82);
}

.profile-editor-section-heading {
  margin-bottom: 1rem;
}

.profile-editor-section-heading h2 {
  margin-bottom: 0.3rem;
  color: #17222d;
  font-size: 1.35rem;
}

.profile-editor-section-heading > p:last-child {
  margin: 0;
  color: #5d6872;
  font-size: 0.86rem;
  line-height: 1.55;
}

.profile-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.profile-editor-wide {
  grid-column: 1 / -1;
}

.profile-photo-editor {
  margin-bottom: 1.35rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
}

.profile-photo-button {
  margin: 0 0.35rem 0.25rem 0;
  border-radius: 999px;
  font-weight: 700;
}

.profile-photo-remove {
  margin-bottom: 0.25rem;
  color: #8d2931;
  font-size: 0.85rem;
}

.profile-field-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-character-count {
  flex: 0 0 auto;
  color: #7a858e;
  font-size: 0.75rem;
}

.profile-visibility-master {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #cad5db;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}

.profile-visibility-master > span:first-child {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.profile-visibility-master strong {
  color: #25313b;
}

.profile-visibility-master small {
  color: #68737d;
  font-size: 0.8rem;
}

.profile-privacy-options {
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0;
  border: 0;
  transition: opacity 150ms ease;
}

.profile-privacy-options:disabled {
  opacity: 0.48;
}

.profile-privacy-options label {
  margin: 0;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: #edf3f5;
  color: #40515d;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
}

.profile-privacy-options input {
  margin-top: 0.18rem;
  flex: 0 0 auto;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-actions .btn {
  min-height: 2.75rem;
  border-radius: 999px;
  padding-right: 1.15rem;
  padding-left: 1.15rem;
  font-weight: 700;
}

.public-profile-setting {
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid #d6dde2;
  border-radius: 0.7rem;
  background: #f7f9fa;
}

.public-profile-setting h2 {
  margin-bottom: 0.3rem;
  color: #17222d;
  font-size: 1.1rem;
}

.public-profile-setting p {
  max-width: 45rem;
  margin: 0;
  color: #5d6872;
  font-size: 0.84rem;
  line-height: 1.5;
}

.public-profile-switch {
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.public-profile-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.public-profile-switch-track {
  width: 3.25rem;
  height: 1.8rem;
  display: block;
  padding: 0.2rem;
  border-radius: 999px;
  background: #9aa5ad;
  transition: background-color 150ms ease;
}

.public-profile-switch-track::after {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1rem 0.25rem rgba(23, 34, 45, 0.3);
  content: "";
  transition: transform 150ms ease;
}

.public-profile-switch input:checked + .public-profile-switch-track {
  background: #278145;
}

.public-profile-switch input:checked + .public-profile-switch-track::after {
  transform: translateX(1.45rem);
}

.public-profile-switch input:focus-visible + .public-profile-switch-track {
  outline: 3px solid rgba(63, 120, 148, 0.35);
  outline-offset: 3px;
}

.public-profile-switch input:disabled + .public-profile-switch-track {
  cursor: default;
  opacity: 0.55;
}

.public-profile-status {
  margin: 0.45rem 0 1rem;
}

.account-loading {
  min-height: 10rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  color: #5d6872;
}

.account-loading-mark {
  width: 2rem;
  height: 2rem;
  border: 3px solid #d2d9de;
  border-top-color: #3f7894;
  border-radius: 50%;
  animation: account-spin 800ms linear infinite;
}

.account-loading p {
  margin: 0;
}

.account-tabs {
  margin: 0 0 1.75rem;
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid #d6dde2;
}

.account-tab {
  margin-bottom: -1px;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #5d6872;
  font-weight: 700;
  cursor: pointer;
}

.account-tab:hover,
.account-tab:focus-visible {
  color: #23485a;
}

.account-tab:focus-visible {
  border-radius: 0.35rem 0.35rem 0 0;
  outline: 3px solid rgba(63, 120, 148, 0.25);
  outline-offset: 2px;
}

.account-tab[aria-selected="true"] {
  border-bottom-color: #3f7894;
  color: #17222d;
}

.account-tab-count {
  min-width: 1.4rem;
  margin-left: 0.25rem;
  display: inline-grid;
  place-items: center;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: #d9e8ed;
  color: #23485a;
  font-size: 0.75rem;
}

.profile-journals-heading {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.profile-journals-heading h2 {
  margin: 0 0 0.35rem;
  color: #17222d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.profile-journals-heading p:last-child {
  max-width: 42rem;
  margin: 0;
  color: #5d6872;
  line-height: 1.55;
}

.profile-journal-create {
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 700;
}

.profile-journal-empty {
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  border: 1px dashed #c6b28c;
  border-radius: 1rem;
  background: #fffaf0;
  text-align: center;
}

.profile-journal-empty > span {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2dfbd;
  color: #8c432f;
  font-size: 1.8rem;
}

.profile-journal-empty h3 {
  margin-bottom: 0.5rem;
  color: #3d2c22;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-journal-empty p {
  max-width: 37rem;
  margin: 0 auto 1.2rem;
  color: #6a5b4e;
  line-height: 1.65;
}

.profile-journal-list {
  display: grid;
  gap: 1rem;
}

.profile-journal-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr);
  border: 1px solid #e0d2bd;
  border-radius: 1rem;
  background: #fffaf1;
  box-shadow: 0 0.7rem 1.8rem rgba(72, 49, 31, 0.08);
}

.profile-journal-cover {
  --profile-journal-header-color: #9d342b;

  min-height: 13rem;
  display: grid;
  place-items: center;
  background-color: var(--profile-journal-header-color);
  background-image:
    linear-gradient(rgba(255, 250, 241, 0.18), rgba(34, 25, 20, 0.28)),
    url("../img/bg-goose-props-travel.svg");
  background-position: center;
  background-size: cover;
  color: #fffaf1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(35, 23, 17, 0.42);
}

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

.profile-journal-card-body {
  min-width: 0;
  padding: 1.2rem;
}

.profile-journal-card h3 {
  margin: 0.3rem 0 0.45rem;
  color: #3d2c22;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.profile-journal-meta,
.profile-journal-updated {
  margin: 0;
  color: #95513d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-journal-summary {
  margin: 0;
  color: #66594e;
  line-height: 1.55;
}

.profile-journal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-journal-tags span {
  padding: 0.25rem 0.52rem;
  border-radius: 999px;
  background: rgba(87, 112, 94, 0.11);
  color: #47604f;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-journal-updated {
  margin-top: 0.75rem;
  color: #7a6c61;
  letter-spacing: 0;
  text-transform: none;
}

.profile-journal-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-journal-actions .btn {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.visited-countries-panel h2,
.visited-countries-panel h3 {
  color: #17222d;
}

.visited-countries-heading {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.visited-countries-heading h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.visited-countries-heading p:last-child {
  margin: 0;
  color: #5d6872;
}

.visited-privacy-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid #8bb5c7;
  background: #eff6f8;
  color: #53616b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.visited-countries-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.visited-countries-map-column {
  min-width: 0;
}

.visited-countries-map {
  min-height: 25rem;
  border: 1px solid #cbd5db;
  border-radius: 0.85rem;
  background: #eaf2f5;
  overflow: hidden;
}

.visited-countries-map:focus-visible {
  outline: 3px solid rgba(63, 120, 148, 0.35);
  outline-offset: 2px;
}

.visited-countries-map .leaflet-control-attribution {
  font-size: 0.65rem;
}

.visited-map-status {
  min-height: 1.25rem;
  margin: 0.45rem 0 0;
  color: #66737d;
  font-size: 0.78rem;
}

.visited-map-status[data-state="error"] {
  color: #a1262d;
}

.visited-country-location {
  padding: 1.25rem;
  border: 1px solid #d6dde2;
  border-radius: 0.85rem;
  background: #f7f9fa;
}

.visited-country-location h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.visited-country-location > p:not(.account-kicker):not(.account-status) {
  color: #5d6872;
  font-size: 0.9rem;
  line-height: 1.55;
}

.visited-country-location .btn {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 999px;
  font-weight: 700;
}

.visited-country-location .btn:disabled {
  cursor: default;
}

.visited-country-list-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d6dde2;
}

.visited-country-list-section h3 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.visited-country-empty {
  margin: 0;
  color: #68737d;
}

.visited-country-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.visited-country-list li {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.65rem;
  background: #fff6e5;
  color: #62400e;
}

.visited-country-list li span:first-child {
  font-weight: 700;
}

.visited-country-list li span:last-child {
  flex: 0 0 auto;
  color: #7a6647;
  font-size: 0.72rem;
}

.leaderboard-heading h2 {
  margin-bottom: 0.35rem;
  color: #17222d;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.leaderboard-heading > p:last-child {
  margin-bottom: 0;
  color: #5d6872;
}

.leaderboard-status,
.leaderboard-empty {
  margin: 1rem 0;
  color: #68737d;
  font-size: 0.9rem;
}

.leaderboard-status[data-state="error"] {
  color: #a1262d;
}

.leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e0e5e8;
}

.leaderboard-list li:first-child {
  border-radius: 0.7rem 0.7rem 0 0;
}

.leaderboard-list li:last-child {
  border-bottom: 0;
  border-radius: 0 0 0.7rem 0.7rem;
}

.leaderboard-list li:nth-child(odd) {
  background: #f7f9fa;
}

.leaderboard-list li[data-current-user="true"] {
  background: #eef6f8;
}

.leaderboard-rank {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9e8ed;
  color: #23485a;
  font-size: 0.82rem;
  font-weight: 700;
}

.leaderboard-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.leaderboard-avatar {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8edef;
  color: #345b70;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  object-fit: cover;
}

.leaderboard-identity strong {
  overflow: hidden;
  color: #25313b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-identity strong a {
  color: inherit;
  text-decoration: none;
}

.leaderboard-identity strong a:hover,
.leaderboard-identity strong a:focus-visible {
  color: #2d617a;
  text-decoration: underline;
}

.leaderboard-current-user {
  flex: 0 0 auto;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #3f7894;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.leaderboard-count {
  color: #6f511c;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}

.travel-timeline,
.profile-correction-list,
.map-collection-list {
  margin: 1rem 0 0;
  padding: 0;
}

.travel-timeline {
  position: relative;
  list-style: none;
}

.travel-timeline::before {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7.6rem;
  width: 1px;
  background: #d8e0e2;
  content: "";
}

.travel-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 2.2rem;
  padding: 0.75rem 0;
}

.travel-timeline li::before {
  position: absolute;
  top: 1.15rem;
  left: 7.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b87927;
  box-shadow: 0 0 0 1px #b87927;
  content: "";
}

.travel-timeline time,
.travel-timeline span,
.profile-correction-card small,
.map-collection-card > div > p:first-child {
  color: #758087;
  font-size: 0.78rem;
}

.travel-timeline h3,
.travel-timeline p {
  margin: 0.15rem 0;
}

.travel-timeline h3 {
  font-size: 1rem;
}

.profile-correction-list,
.map-collection-list {
  display: grid;
  gap: 0.75rem;
}

.profile-correction-card,
.map-collection-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dfe5e6;
  border-radius: 0.75rem;
  background: #fbfcfa;
}

.profile-correction-card h3,
.profile-correction-card p,
.map-collection-card h3,
.map-collection-card p {
  margin: 0.2rem 0;
}

.profile-correction-status {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #fff1c9;
  color: #72541c;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.map-collection-card .profile-journal-actions {
  flex: 0 0 auto;
  align-self: center;
}

.offline-guide-library {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dfe5e6;
}

.offline-guide-library h3,
.offline-guide-library p {
  margin: 0.2rem 0;
}

.offline-guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.offline-guide-list li {
  display: grid;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: #edf4f2;
}

.offline-guide-list small {
  color: #6f7b7d;
}

.map-collection-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 5rem rgb(25 43 49 / 28%);
}

.map-collection-dialog::backdrop {
  background: rgb(20 35 40 / 48%);
  backdrop-filter: blur(3px);
}

.map-collection-editor {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.map-collection-editor header,
.map-collection-editor footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-collection-editor header h2,
.map-collection-editor header p {
  margin: 0;
}

.map-collection-editor header > button {
  border: 0;
  background: transparent;
  font-size: 1.75rem;
}

.map-collection-editor label {
  display: grid;
  gap: 0.35rem;
}

.map-collection-editor input,
.map-collection-editor textarea,
.map-collection-editor select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd4d6;
  border-radius: 0.5rem;
}

.map-collection-editor fieldset {
  padding: 1rem;
  border: 1px solid #dfe5e6;
  border-radius: 0.7rem;
}

.map-collection-place-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.map-collection-editor-places {
  max-height: 14rem;
  margin: 0.75rem 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.map-collection-editor-places li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #e2e7e8;
}

.map-collection-editor-places li div,
.map-collection-editor-places li small {
  display: grid;
}

.map-collection-editor-places button {
  border: 0;
  background: transparent;
  color: #a1262d;
}

@media (prefers-reduced-motion: reduce) {
  .account-loading-mark {
    animation-duration: 1.8s;
  }
}

@media (min-width: 768px) {
  .visited-countries-layout {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 0.85fr);
    align-items: start;
  }
}

@media (max-width: 575.98px) {
  .account-stage {
    align-items: flex-start;
    padding: 1.25rem 0;
  }

  .account-card {
    padding: 1.35rem;
    border-radius: 0.9rem;
  }

  .account-profile-heading {
    grid-template-columns: 1fr;
  }

  .account-avatar {
    width: 3.7rem;
    height: 3.7rem;
    font-size: 1.6rem;
  }

  .account-avatar-large {
    width: 4.7rem;
    height: 4.7rem;
  }

  .account-details {
    grid-template-columns: 1fr;
  }

  .account-actions {
    display: grid;
  }

  .public-profile-setting {
    align-items: flex-start;
  }

  .public-visited-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .public-visited-country-details ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-editor-grid,
  .profile-privacy-options {
    grid-template-columns: 1fr;
  }

  .profile-photo-editor {
    grid-template-columns: 1fr;
  }

  .profile-readonly-visibility,
  .profile-visibility-master {
    align-items: flex-start;
  }

  .account-tabs {
    overflow-x: auto;
  }

  .account-tab {
    white-space: nowrap;
  }

  .visited-countries-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-journals-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-journal-create {
    align-self: flex-start;
  }

  .profile-journal-card {
    grid-template-columns: 1fr;
  }

  .profile-journal-cover {
    min-height: 11rem;
  }

  .visited-country-list {
    grid-template-columns: 1fr;
  }

  .visited-countries-map {
    min-height: 19rem;
  }

  .visited-country-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .leaderboard-list li {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .leaderboard-count {
    grid-column: 2;
  }

  .travel-timeline::before,
  .travel-timeline li::before {
    display: none;
  }

  .travel-timeline li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .profile-correction-card,
  .map-collection-card {
    align-items: stretch;
    flex-direction: column;
  }

  .map-collection-place-fields {
    grid-template-columns: 1fr;
  }
}
