/* TreckerRadar account area */

:root {
  --tr-ink: #121713;
  --tr-muted: #647067;
  --tr-soft: #f4f7f2;
  --tr-card: #ffffff;
  --tr-line: #dde6dd;
  --tr-green: #16813b;
  --tr-green-dark: #0f5d2b;
  --tr-lime: #d9f99d;
  --tr-wheat: #f3d58a;
  --tr-sky: #d9eef8;
  --tr-danger: #b42318;
  --tr-shadow: 0 18px 48px rgba(22, 54, 30, .10);
  --tr-radius: 18px;
  --tr-radius-sm: 14px;
}

.account-page {
  width: min(100%, 1240px);
  margin-inline: auto;
  color: var(--tr-ink);
  box-sizing: border-box;
}

.account-page *,
.account-page *::before,
.account-page *::after {
  box-sizing: border-box;
}

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

.account-page a {
  color: var(--tr-green);
  text-decoration: none;
}

.account-page a:hover {
  color: var(--tr-green-dark);
}

.tr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--tr-muted);
  font-size: 14px;
}

.account-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 700;
}

.account-breadcrumbs a {
  color: var(--tr-muted);
}

.account-breadcrumbs a:hover {
  color: var(--tr-green-dark);
}

.account-breadcrumbs strong {
  color: var(--tr-ink);
}

.account-breadcrumbs span {
  color: #a1aaa3;
}

.tr-breadcrumb a,
.account-switch a,
.community-card-head a,
.vehicle-profile-actions a {
  font-weight: 700;
}

.account-card,
.community-card,
.vehicle-card,
.profile-preview-card {
  background: var(--tr-card);
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  box-shadow: var(--tr-shadow);
}

.account-card {
  padding: 28px;
}

.account-card-header {
  margin-bottom: 22px;
}

.account-card-header h1,
.account-page-head h1,
.community-user-main h1 {
  margin: 8px 0 8px;
  color: var(--tr-ink);
  line-height: 1.05;
  letter-spacing: 0;
}

.account-card-header h1,
.account-page-head h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.account-card-header p,
.account-page-head p,
.account-switch,
.album-note,
.empty-state p,
.vehicle-content p,
.vehicle-profile-info p {
  color: var(--tr-muted);
}

.account-kicker {
  display: none;
}

.account-form,
.account-register-fields,
.account-register-uploads,
.account-register-submit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.account-register-layout {
  display: grid;
  grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.account-register-preview {
  grid-row: 1 / span 3;
}

.account-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #243027;
  font-weight: 700;
}

.account-label-optional {
  color: var(--tr-muted);
  font-weight: 600;
}

.account-input {
  width: 100%;
  border: 1px solid #cfd9d0;
  border-radius: var(--tr-radius-sm);
  background: #fff;
  color: var(--tr-ink);
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  outline: 0;
  padding: 13px 14px;
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

.account-input:focus {
  border-color: var(--tr-green);
  box-shadow: 0 0 0 4px rgba(22, 129, 59, .14);
}

.account-date-input {
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

textarea.account-input {
  min-height: 112px;
  resize: vertical;
  font-family: inherit;
  font-weight: 400;
}

.account-two-cols,
.account-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-location-grid {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 14px;
}

.account-location-picker {
  position: relative;
}

.account-location-picker-status {
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.account-location-picker-options {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid #dce8dd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(22, 54, 30, .08);
}

.account-location-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 1px solid #e3ebe3;
  border-radius: 14px;
  background: #f8fbf7;
  color: var(--tr-ink);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border .16s ease, background .16s ease, transform .16s ease;
}

.account-location-option:hover,
.account-location-option:focus {
  border-color: #b9e6c5;
  background: #ecfff0;
  transform: translateY(-1px);
}

.account-location-option strong {
  font-size: 15px;
  font-weight: 800;
}

.account-location-option span {
  color: var(--tr-muted);
  font-size: 12px;
  font-weight: 700;
}

.upload-box {
  min-height: 104px;
  justify-content: center;
  border: 1px dashed #9bcaa8;
  border-radius: var(--tr-radius);
  background: #f6fbf4;
  padding: 18px;
  cursor: pointer;
  overflow: hidden;
  transition: border .18s ease, background .18s ease, transform .18s ease;
}

.upload-box:hover {
  background: #eff9ed;
  border-color: var(--tr-green);
  transform: translateY(-1px);
}

.upload-box small {
  color: var(--tr-muted);
  font-weight: 600;
}

.field-help-text {
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.upload-box input[type="file"] {
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
}

.media-edit-box {
  display: grid;
  gap: 10px;
}

.media-delete-check {
  min-height: auto;
  border: 1px solid #ffd0c9;
  border-radius: var(--tr-radius-sm);
  background: #fff7f5;
  color: var(--tr-danger);
  padding: 12px 14px;
}

.account-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 700 !important;
}

.account-check input {
  width: auto;
  margin-top: 4px;
}

.account-check a {
  display: inline;
  text-decoration: underline;
}

.account-primary-btn,
.account-small-btn,
.profile-edit-link,
.community-action,
.vehicle-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--tr-radius-sm);
  background: var(--tr-green);
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.account-small-btn.secondary {
  background: #fff;
  border: 1px solid var(--tr-line);
  color: var(--tr-ink) !important;
  box-shadow: none;
}

.account-small-btn.secondary:hover {
  background: #fff;
  color: var(--tr-ink) !important;
  border-color: var(--tr-line);
  box-shadow: 0 12px 24px rgba(22, 54, 30, .10);
}

.profile-friend-form {
  margin: 0;
}

.profile-friend-form .community-action {
  border: 0;
  min-height: 42px;
}

.account-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.account-primary-btn {
  width: 100%;
  padding: 15px 18px;
  font-size: 16px;
  box-shadow: 0 14px 26px rgba(22, 129, 59, .20);
}

.account-small-btn,
.profile-edit-link,
.community-action,
.vehicle-actions a {
  min-height: 42px;
  padding: 10px 14px;
}

.account-primary-btn:hover,
.account-small-btn:hover,
.profile-edit-link:hover,
.community-action:hover,
.vehicle-actions a:hover {
  background: var(--tr-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(22, 129, 59, .18);
}

.community-action.secondary,
.profile-edit-link.secondary {
  background: #fff;
  border: 1px solid var(--tr-line);
  color: var(--tr-ink) !important;
  box-shadow: none;
}

.community-action.secondary:hover,
.profile-edit-link.secondary:hover {
  background: var(--tr-soft);
}

.account-switch {
  margin: 8px 0 0;
  text-align: center;
}

.account-alert {
  width: 100%;
  margin: 0 0 20px;
  padding: 15px 18px;
  border-radius: var(--tr-radius-sm);
  font-weight: 700;
}

.account-alert.error {
  background: #fff4f2;
  border: 1px solid #ffd0c9;
  color: var(--tr-danger);
}

.account-alert.success {
  background: #ecfff0;
  border: 1px solid #b9e6c5;
  color: var(--tr-green-dark);
}

.account-toast {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  z-index: 10020;
  width: min(520px, calc(100vw - 24px));
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 16px 42px rgba(22, 54, 30, .18);
  transition: opacity .18s ease, transform .18s ease;
}

.account-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, -8px);
}

.field-error-text {
  color: var(--tr-danger);
  font-size: 13px;
  font-weight: 700;
}

.account-auth-layout,
.account-edit-layout {
  width: 100%;
  margin: 0 auto;
}

.account-auth-layout-narrow {
  width: min(100%, 840px);
}

.account-auth-card {
  position: relative;
  overflow: hidden;
}

.account-auth-card::before {
  content: "";
  display: block;
  height: 10px;
  margin: -28px -28px 24px;
  background: linear-gradient(90deg, var(--tr-green), var(--tr-wheat), var(--tr-sky));
}

.account-login-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: center;
}

.account-auth-note {
  margin: 4px 0 0;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.account-code-form {
  gap: 18px;
}

.account-code-intro {
  text-align: center;
}

.account-code-intro strong {
  display: block;
  margin-bottom: 6px;
  color: var(--tr-ink);
  font-size: 18px;
}

.account-code-intro p {
  margin: 0;
  color: var(--tr-muted);
  line-height: 1.5;
}

.account-code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.account-code-input {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  border: 1px solid #cfd9d0;
  border-radius: 16px;
  background: #fff;
  color: var(--tr-ink);
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  caret-color: var(--tr-green);
  padding: 0;
  outline: 0;
  transition: border .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}

.account-code-input:focus {
  border-color: var(--tr-green);
  box-shadow: 0 0 0 4px rgba(22, 129, 59, .14);
  transform: translateY(-1px);
}

.account-code-form.has-code-error .account-code-input,
.account-code-input.is-error {
  border-color: #e28a82;
  background: #fff7f5;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .08);
}

.account-code-error {
  text-align: center;
  margin-top: -6px;
}

.account-code-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.username-preview {
  margin-top: -3px;
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 700;
}

.username-preview.available {
  color: var(--tr-green);
}

.username-preview.unavailable {
  color: var(--tr-danger);
}

.profile-preview-handle {
  margin: 4px 0 10px;
  color: var(--tr-muted);
  font-size: 15px;
  font-weight: 700;
}

.account-form .account-input:invalid,
.account-form input:invalid,
.account-form select:invalid,
.account-form textarea:invalid {
  border-color: #cfd9d0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.account-form label:has(.field-error-text) .account-input {
  border-color: #e28a82 !important;
  background: #fff8f7 !important;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .08) !important;
}

/* Register preview */

.profile-preview-card {
  position: sticky;
  top: 110px;
  overflow: hidden;
}

.profile-preview-heading {
  margin: 0 0 10px;
  color: var(--tr-green);
  font-size: 20px;
  font-weight: 700;
}

.profile-cover-preview {
  height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  color: rgba(255, 255, 255, .85);
  background:
    linear-gradient(135deg, rgba(18, 23, 19, .20), rgba(22, 129, 59, .40)),
    linear-gradient(120deg, #23452a, #6d8c3d 55%, #c9a452);
  background-position: center;
  background-size: cover;
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -66px;
}

.profile-avatar-preview {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 999px;
  background: #ecfff0;
  color: var(--tr-green);
  font-size: 42px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(17, 24, 39, .18);
  overflow: hidden;
}

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

.profile-avatar-placeholder {
  position: relative;
  width: 78px;
  height: 78px;
  display: block;
}

.profile-avatar-placeholder::before,
.profile-avatar-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #1f1f1f;
  transform: translateX(-50%);
}

.profile-avatar-placeholder::before {
  top: 3px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.profile-avatar-placeholder::after {
  bottom: 4px;
  width: 68px;
  height: 38px;
  border-radius: 34px 34px 20px 20px;
}

.profile-preview-content {
  padding: 16px 22px 24px;
  text-align: center;
}

.profile-preview-content h1 {
  margin: 6px 0 4px;
  font-size: 28px;
  text-align: center;
}

.profile-preview-content p {
  color: var(--tr-muted);
}

.profile-preview-meta-line {
  margin: 0;
  color: var(--tr-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-preview-meta-line + .profile-preview-meta-line {
  margin-top: 4px;
}

.profile-preview-meta-line:last-of-type {
  margin-bottom: 18px;
}

.profile-preview-stats,
.community-stats-grid,
.mini-stats {
  display: grid;
  gap: 12px;
}

.profile-preview-stats {
  grid-template-columns: repeat(3, 1fr);
}

.profile-preview-stats div,
.mini-stats div {
  border: 1px solid #e7eee7;
  border-radius: var(--tr-radius-sm);
  background: #f7faf6;
  padding: 12px 8px;
  text-align: center;
}

.profile-preview-stats strong,
.mini-stats strong {
  display: block;
  color: var(--tr-green);
  font-size: 24px;
}

.profile-preview-stats span,
.mini-stats span {
  color: var(--tr-muted);
  font-size: 12px;
  font-weight: 700;
}

/* Community profile */

.community-profile {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.community-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--tr-radius);
  background: #1d2c20;
  box-shadow: var(--tr-shadow);
}

.community-cover {
  position: relative;
  min-height: 390px;
  background:
    linear-gradient(180deg, rgba(14, 20, 15, .10), rgba(14, 20, 15, .70)),
    linear-gradient(120deg, #23452a, #6d8c3d 55%, #c9a452);
  background-position: center;
  background-size: cover;
}

.community-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(8, 14, 10, .46) 0%,
    rgba(8, 14, 10, .24) 34%,
    rgba(8, 14, 10, .06) 64%,
    rgba(8, 14, 10, 0) 100%
  );
}

.community-hero-panel {
  position: absolute;
  inset-inline: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
}

.community-avatar {
  width: 150px;
  height: 150px;
  border: 6px solid #fff;
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .26);
}

.community-user-main {
  min-width: 0;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

.community-user-main h1 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.community-user-main > p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
  font-weight: 700;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.community-profile-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
  margin: 18px 0 20px;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(22, 54, 30, .06);
  overflow-x: auto;
  scrollbar-width: thin;
}

.profile-section-nav {
  justify-content: flex-start;
}

.profile-section-nav a {
  flex: 1 1 145px;
  justify-content: center;
}

#profile-posts,
#profile-vehicles,
#profile-friends,
#pinnwand,
#profile-album,
#profile-spots {
  scroll-margin-top: 110px;
}

html.native-app #profile-posts,
html.native-app #profile-vehicles,
html.native-app #profile-friends,
html.native-app #pinnwand,
html.native-app #profile-album,
html.native-app #profile-spots,
body.native-app #profile-posts,
body.native-app #profile-vehicles,
body.native-app #profile-friends,
body.native-app #pinnwand,
body.native-app #profile-album,
body.native-app #profile-spots {
  scroll-margin-top: 72px;
}

.profile-nav-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0 12px;
  border-right: 1px solid #edf3ed;
}

.profile-nav-group-account {
  margin-left: auto;
  border-right: 0;
}

.profile-nav-label {
  align-self: center;
  padding: 0 6px 0 0;
  color: var(--tr-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.community-profile-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--tr-radius-sm);
  background: transparent;
  color: var(--tr-ink);
  padding: 9px 11px;
  font-weight: 700;
  white-space: nowrap;
}

.community-profile-nav a:hover {
  border-color: #dce8dc;
  background: #f6faf5;
  color: var(--tr-green-dark);
}

.community-profile-nav a.is-active {
  border-color: #b9e6c5;
  background: #ecfff0;
  color: var(--tr-green-dark);
}

.community-info-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin: 20px 0;
}

.community-meta,
.community-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.community-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #344239 !important;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

.account-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
  color: var(--tr-green-dark);
}

.account-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  line-height: 1;
}

.account-logo-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.community-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid #dfe9df;
  border-radius: var(--tr-radius-sm);
  background: #fff;
  padding: 7px 11px;
  color: var(--tr-green-dark) !important;
  font-size: 14px;
  font-weight: 700;
}

.community-socials a:hover {
  border-color: #b9e6c5;
  background: #f6fbf4;
}

.community-bio {
  max-width: 760px;
  margin: 12px 0 0;
  color: #3f4b42;
  font-size: 16px;
  line-height: 1.55;
}

.community-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 20px;
}

.community-stat-card {
  position: relative;
  border-radius: var(--tr-radius);
  border: 1px solid var(--tr-line);
  background: #fff;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(22, 54, 30, .07);
}

.community-stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.community-stat-card-link:hover,
.community-stat-card-link:focus-visible {
  border-color: #b9d8bd;
  background: #fbfefb;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(22, 54, 30, .1);
}

.stat-info-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cfe2d1;
  border-radius: 999px;
  background: #f7fbf6;
  color: var(--tr-green-dark);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.stat-tooltip {
  position: absolute;
  top: 42px;
  right: 10px;
  z-index: 5;
  display: none;
  width: min(260px, calc(100vw - 44px));
  border: 1px solid #cfe2d1;
  border-radius: var(--tr-radius-sm);
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 54, 30, .14);
  color: #243027;
  padding: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.stat-info-button:hover + strong + span + .stat-tooltip,
.stat-info-button:focus + strong + span + .stat-tooltip,
.stat-info-button:focus-visible + strong + span + .stat-tooltip {
  display: block;
}

.community-stat-card strong {
  display: block;
  color: var(--tr-green);
  font-size: 34px;
  line-height: 1;
}

.community-stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 700;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
}

.community-card {
  padding: 22px;
  margin-bottom: 18px;
}

.community-card-head,
.account-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.community-card-head h2 {
  margin: 0;
  font-size: 22px;
}

.empty-state {
  border: 1px dashed #bdd1c0;
  border-radius: var(--tr-radius);
  background: #f8fbf7;
  padding: 22px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--tr-ink);
  font-size: 16px;
}

.mini-stats {
  grid-template-columns: repeat(3, 1fr);
}

.album-placeholder {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.album-placeholder div {
  aspect-ratio: 1 / 1;
  border: 1px solid #e2ece2;
  border-radius: var(--tr-radius-sm);
  background:
    linear-gradient(135deg, rgba(22, 129, 59, .14), rgba(243, 213, 138, .28)),
    #f6faf5;
}

.profile-spot-album {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.profile-spot-album-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #e2ece2;
  border-radius: var(--tr-radius-sm);
  background-color: #f6faf5;
  background-position: center;
  background-size: cover;
  text-decoration: none;
}

.profile-spot-album-item span {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 8px 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68));
  opacity: 0;
  transition: opacity .16s ease;
}

.profile-spot-album-item:hover span,
.profile-spot-album-item:focus-visible span {
  opacity: 1;
}

.album-note {
  margin: 12px 0 0;
  text-align: center;
}

.profile-spot-list {
  display: grid;
  gap: 12px;
}

.profile-list-item[hidden],
.profile-spot-item[hidden],
.profile-spot-album-item[hidden],
.wall-post[hidden],
.live-session-history article[hidden] {
  display: none !important;
}

.profile-list-item {
  display: block;
}

.account-load-more {
  justify-self: center;
  margin: 14px auto 0;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #cfe1d1;
  border-radius: 999px;
  background: #f6fbf7;
  color: var(--tr-green-dark);
  font-weight: 800;
  cursor: pointer;
}

.account-load-more:hover {
  border-color: var(--tr-green);
  background: #edf8ef;
}

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

.profile-spot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.profile-spot-filters button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d8e6da;
  border-radius: 999px;
  background: #fff;
  color: #334436;
  font-weight: 800;
  cursor: pointer;
}

.profile-spot-filters button.is-active,
.profile-spot-filters button:hover {
  border-color: var(--tr-green);
  background: #e9f7ec;
  color: var(--tr-green-dark);
}

.profile-spot-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2ece2;
  border-radius: var(--tr-radius-sm);
  background: #fff;
}

.profile-spot-image {
  position: relative;
  display: block;
  width: 86px;
  aspect-ratio: 1 / 1;
  border-radius: var(--tr-radius-sm);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.profile-spot-image span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.profile-spot-item strong,
.profile-spot-item p,
.profile-spot-item span {
  display: block;
}

.profile-spot-item p {
  margin: 4px 0;
  color: var(--tr-muted);
  font-size: .92rem;
}

.profile-spot-item > div > span {
  color: var(--tr-muted);
  font-size: .86rem;
}

/* Vehicles */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.profile-vehicle-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-vehicle-card .vehicle-image {
  min-height: 190px;
}

.account-vehicle-layout {
  width: 100%;
}

.account-vehicle-head {
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(22, 54, 30, .07);
}

.account-vehicle-head h1 {
  margin-bottom: 6px;
}

.account-vehicle-head p {
  margin: 0;
}

.account-vehicle-shell {
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  background: #fbfdf9;
  padding: 18px;
  box-shadow: 0 14px 38px rgba(22, 54, 30, .06);
}

.account-vehicle-shell .vehicle-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.account-vehicle-shell .vehicle-card {
  min-width: 0;
}

.account-vehicle-shell .account-switch {
  margin-top: 18px;
  text-align: left;
}

.vehicle-card {
  overflow: hidden;
}

.vehicle-image,
.vehicle-edit-preview,
.profile-edit-cover-preview {
  background:
    linear-gradient(135deg, rgba(22, 129, 59, .18), rgba(243, 213, 138, .25)),
    #f4f7f2;
  background-position: center;
  background-size: cover;
}

.vehicle-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
}

.vehicle-image span {
  font-size: 44px;
}

.vehicle-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--tr-green-dark);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.vehicle-content {
  padding: 18px;
}

.vehicle-content h2 {
  margin: 0;
  font-size: 22px;
}

.vehicle-actions {
  margin-top: 14px;
}

.vehicle-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.vehicle-reactions form {
  margin: 0;
}

.vehicle-reactions button,
.vehicle-reactions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tr-ink);
  cursor: pointer;
  padding: 6px 10px;
  font-weight: 600;
  text-decoration: none;
}

.vehicle-reactions strong {
  font-weight: 500;
}

.vehicle-reactions button.is-active {
  border-color: #b9e6c5;
  background: #ecfff0;
  color: var(--tr-green-dark);
}

.vehicle-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.vehicle-gallery-strip button {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-sm);
  background-color: var(--tr-soft);
  background-position: center;
  background-size: cover;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
}

.vehicle-gallery-strip span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.vehicle-list {
  display: grid;
  gap: 12px;
}

.vehicle-profile-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #e5eee5;
  border-radius: var(--tr-radius-sm);
  background: #fff;
  padding: 12px;
  box-shadow: none;
}

.vehicle-profile-image {
  display: grid;
  place-items: center;
  width: 96px;
  height: 72px;
  border-radius: var(--tr-radius-sm);
  background: var(--tr-soft);
  color: var(--tr-green);
  overflow: hidden;
}

.vehicle-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-profile-info strong {
  display: block;
  color: var(--tr-ink);
  font-size: 16px;
}

.vehicle-profile-info p {
  margin: 5px 0 0;
  font-size: 14px;
}

.vehicle-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
}

.vehicle-profile-actions a.danger {
  color: var(--tr-danger);
}

.vehicle-edit-preview {
  height: 260px;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  margin-bottom: 18px;
}

.vehicle-gallery-edit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.vehicle-gallery-edit-item {
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-sm);
  background: #fff;
  overflow: hidden;
}

.vehicle-gallery-edit-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.vehicle-gallery-edit-item form {
  padding: 10px;
}

/* Edit profile */

.profile-edit-preview-wrap {
  position: relative;
  margin: 22px 0 66px;
}

.profile-edit-cover-preview {
  height: 230px;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
}

.profile-edit-avatar-preview {
  position: absolute;
  left: 26px;
  bottom: -48px;
  width: 124px;
  height: 124px;
  border: 6px solid #fff;
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.account-danger-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8eee8;
}

.account-danger-btn {
  width: 100%;
  border: 1px solid #ffd0c9;
  border-radius: var(--tr-radius-sm);
  background: #fff4f2;
  color: var(--tr-danger);
  cursor: pointer;
  font-weight: 700;
  padding: 14px 18px;
}

.account-danger-btn:hover {
  background: #ffe7e2;
}

/* Settings */

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

.settings-list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5eee5;
  border-radius: var(--tr-radius-sm);
  background: #f8fbf7;
  color: var(--tr-ink) !important;
  padding: 16px 18px;
  font-weight: 700;
  transition: background .16s ease, border .16s ease, transform .16s ease;
}

.settings-list a:hover {
  border-color: #b9e6c5;
  background: #ecfff0;
  transform: translateY(-1px);
}

.settings-list a.danger {
  border-color: #ffd0c9;
  background: #fff7f5;
  color: var(--tr-danger) !important;
}

.settings-list a strong {
  color: #94a09a;
  font-size: 24px;
}

.settings-privacy-form {
  display: grid;
  gap: 16px;
}

.settings-privacy-note {
  margin: -4px 0 0;
  color: #56705d;
  font-size: 14px;
  line-height: 1.55;
}

/* Community modules */

.status-card {
  margin-bottom: 18px;
}

.profile-composer-card {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-target-compose-label,
.community-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #dce8dd;
  border-radius: 999px;
  background: #f6fbf7;
  color: #244129;
  font-size: 14px;
  font-weight: 700;
}

.community-status-inline {
  margin: 8px 0 0;
}

.profile-composer-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-composer-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tr-ink);
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.profile-composer-tabs button.is-active {
  background: #ecfff0;
  border-color: #b9e6c5;
  color: var(--tr-green-dark);
}

.profile-composer-tabs button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-composer-panels {
  display: grid;
}

.profile-composer-panel {
  display: none;
}

.profile-composer-panel.is-active {
  display: block;
}

.profile-composer-note {
  margin: 10px 2px 0;
  color: #5b6b61;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .profile-composer-tabs {
    gap: 8px;
  }

  .profile-composer-tabs button {
    padding: 10px 12px;
    font-size: 14px;
    gap: 6px;
  }
}

.feed-composer-actions-simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

.community-profile .live-session-card > .live-session-form {
  display: none;
}

.status-current {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid #b9e6c5;
  border-radius: var(--tr-radius-sm);
  background: #ecfff0;
  padding: 14px;
  margin-bottom: 14px;
}

.status-current form {
  margin: 0;
}

.status-current span {
  display: block;
  margin-top: 4px;
  color: var(--tr-muted);
  font-size: 13px;
}

.status-current button,
.wall-post button {
  border: 0;
  background: transparent;
  color: var(--tr-green-dark);
  cursor: pointer;
  font-weight: 700;
}

.status-form,
.wall-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.wall-editor {
  display: grid;
  gap: 8px;
}

.wall-toolbar {
  display: flex;
  gap: 8px;
}

.wall-toolbar button {
  width: 38px;
  height: 34px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tr-ink);
  cursor: pointer;
  font-weight: 700;
}

.wall-toolbar button:nth-child(2) {
  font-style: italic;
}

.wall-toolbar button:nth-child(3) {
  text-decoration: underline;
}

.wall-toolbar button:hover {
  border-color: var(--tr-green);
  transform: translateY(-1px);
}

.wall-form textarea {
  min-height: 86px;
}

.wall-list,
.friend-list {
  display: grid;
  gap: 10px;
}

.wall-form + .empty-state,
.wall-form + .wall-list {
  margin-top: 16px;
}

.wall-post,
.friend-item {
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-sm);
  background: #fff;
  padding: 14px;
}

.wall-post {
  display: grid;
  gap: 8px;
}

.wall-post > div > strong,
.friend-item strong {
  display: block;
}

.wall-post > div > span,
.friend-item span {
  color: var(--tr-muted);
  font-size: 13px;
}

.wall-post a {
  color: inherit;
  text-decoration: none;
}

.wall-post a:hover {
  color: var(--tr-green-dark);
}

.wall-post p {
  margin: 0;
  color: #2f3a33;
  line-height: 1.5;
}

/* Community feed */

.community-feed-page {
  width: 100%;
  margin: 0 auto;
}

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

.community-feed-main,
.community-feed-side,
.feed-list,
.community-side-list {
  display: grid;
  gap: 14px;
}

.feed-composer-card {
  padding: 18px;
}

.feed-composer {
  display: grid;
  gap: 14px;
}

.feed-composer-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.feed-composer-top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-composer textarea.account-input {
  min-height: 106px;
  border-radius: 22px;
  background: #f6faf7;
  resize: vertical;
}

.feed-composer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--tr-line);
}

.feed-action-pill,
.feed-post-btn {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 700;
}

.feed-action-pill,
.account-form label.feed-action-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 1px solid var(--tr-line);
  background: #fff;
  color: var(--tr-ink);
  cursor: pointer;
  padding: 0 16px;
}

.feed-action-pill span,
.feed-action-pill strong {
  display: inline-block;
}

.feed-action-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feed-action-pill strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-action-pill:hover {
  border-color: var(--tr-green);
  transform: translateY(-1px);
}

.feed-action-pill:disabled {
  cursor: wait;
  opacity: .7;
}

.feed-media-preview {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--tr-line);
  border-radius: 12px;
  background: #f8fbf7;
}

.feed-media-preview[hidden] {
  display: none;
}

.feed-media-preview img {
  width: 78px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #e8efe7;
}

.feed-media-preview span {
  min-width: 0;
  overflow: hidden;
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-media-preview button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tr-green-dark);
  cursor: pointer;
  font-weight: 700;
}

.feed-post-btn {
  border: 0;
  background: var(--tr-green);
  color: #fff;
  cursor: pointer;
  padding: 0 24px;
  box-shadow: var(--tr-shadow-green);
}

.feed-post-btn:hover {
  transform: translateY(-1px);
}

.feed-post-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.feed-item-card {
  position: relative;
  display: grid;
  gap: 14px;
}

.feed-item-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.feed-item-head img {
  width: 52px;
  height: 52px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--tr-shadow-soft);
}

.feed-item-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--tr-ink);
  line-height: 1.35;
}

.feed-item-icon {
  flex: 0 0 auto;
}

.feed-item-tools {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.feed-item-tools form {
  margin: 0;
}

.feed-item-tools button,
.feed-inline-delete button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tr-green-dark);
  cursor: pointer;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}

.feed-item-tools button:hover,
.feed-inline-delete button:hover {
  border-color: var(--tr-green);
  transform: translateY(-1px);
}

.feed-friend-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d9e5d8;
  border-radius: 999px;
  background: #f6f8f6;
  color: #6c7b6d;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.feed-delete-icon {
  display: inline;
  font-size: 18px;
  line-height: 1;
}

.feed-item-card .feed-inline-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.feed-item-card .feed-inline-delete button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-color: #dfe9df;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(22, 54, 30, .12);
}

.feed-item-card .feed-inline-delete .feed-delete-label {
  display: none;
}

.feed-item-head {
  padding-right: 42px;
}

.feed-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--tr-muted);
  font-size: 13px;
}

.feed-item-meta a,
.community-side-list a {
  color: inherit;
  text-decoration: none;
}

.feed-item-meta a:hover,
.community-side-list a:hover strong {
  color: var(--tr-green-dark);
}

.feed-item-body {
  margin: 0;
  color: #26332b;
  line-height: 1.55;
  white-space: pre-wrap;
}

.live-session-card {
  border-color: rgba(46, 125, 50, .18);
}

.live-session-active {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--tr-radius);
  background: #edf7ed;
  border: 1px solid #cde8ce;
}

.live-session-active span,
.live-session-note,
.live-session-history span {
  display: block;
  margin-top: 4px;
  color: #5d725f;
  font-size: 14px;
}

.live-session-active form {
  margin: 0;
}

.live-session-active button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #c62828;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.live-session-form {
  display: grid;
  gap: 14px;
}

.live-session-start-btn {
  font-size: 17px;
  font-weight: 900;
}

.live-session-start-btn.is-loading {
  opacity: .92;
  filter: saturate(.92);
}

.live-session-form .account-input:invalid,
.live-session-form select:invalid,
.live-session-form textarea:invalid {
  border-color: #cfd9d0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.live-session-upload {
  min-height: 92px;
}

.live-session-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.live-session-photo-actions label {
  cursor: pointer;
}

.live-session-photo-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.live-session-photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe8dc;
}

.live-session-photo-preview[hidden] {
  display: none !important;
}

.live-session-photo-preview img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.live-session-photo-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334436;
  font-weight: 700;
}

.live-session-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.live-session-summary span {
  padding: 12px;
  border-radius: var(--tr-radius);
  background: #f3f8f4;
  color: #405a44;
}

.live-session-summary strong {
  display: block;
  color: #1a321f;
  font-size: 20px;
}

.live-session-history {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.live-session-history h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #1a321f;
}

.live-session-history article {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e1ece2;
  border-radius: 12px;
  background: #fff;
}

.live-session-history-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.live-session-history-text {
  min-width: 0;
}

.live-session-history-main.has-photo .live-session-history-text {
  padding-right: 96px;
}

.live-session-history-media {
  display: grid;
  gap: 12px;
}

.live-session-history-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 84px;
  height: 64px;
  border: 1px solid #dbe8dc;
  border-radius: 10px;
  background-color: #f4f7f2;
  background-position: center;
  background-size: cover;
  cursor: default;
  overflow: hidden;
}

.live-session-history-photo[data-lightbox-url] {
  cursor: zoom-in;
}

.live-session-history-photo span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.live-session-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 7px 0 0;
}

.live-session-history-stats div {
  min-width: 120px;
}

.live-session-history-stats dt {
  margin: 0;
  color: #6f8172;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-session-history-stats dd {
  margin: 1px 0 0;
  color: #26372a;
  font-size: 13px;
  font-weight: 700;
}

.live-session-history-stats a {
  color: var(--tr-green);
}

.live-session-history-map {
  width: 100%;
  height: 150px;
  border: 1px solid #dbe8dc;
  border-radius: 12px;
  overflow: hidden;
  background: #eef5ec;
}

@media (max-width: 560px) {
  .live-session-history-main.has-photo .live-session-history-text {
    padding-right: 92px;
  }

  .live-session-history-map {
    height: 150px;
  }
}

.live-session-history-map .leaflet-control-attribution {
  font-size: 10px;
}

.feed-spot-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cfe7d3;
  border-radius: var(--tr-radius-sm);
  background: #f3fbf4;
}

.feed-spot-link a {
  color: var(--tr-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.feed-spot-link a:hover {
  text-decoration: underline;
}

.feed-spot-link span {
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 700;
}

.feed-item-media {
  position: relative;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--tr-radius);
  background-color: #eef5ef;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.feed-item-video {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: var(--tr-radius);
  background: #101510;
}

.feed-live-route {
  margin-top: 14px;
}

.feed-item-media span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.feed-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--tr-line);
}

.feed-reactions form {
  margin: 0;
}

.feed-reactions button,
.feed-reactions a,
.feed-comment-jump {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tr-ink);
  cursor: pointer;
  font-weight: 600;
  padding: 0 13px;
}

.feed-reactions strong,
.feed-comment-jump strong,
.feed-comment-actions strong {
  font-weight: 500;
}

.feed-reactions button:hover,
.feed-reactions button.is-active,
.feed-reactions a:hover,
.feed-comment-jump:hover {
  border-color: #b7efc8;
  background: #eaffef;
  color: var(--tr-green-dark);
}

.feed-comments {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.feed-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.feed-comment.is-hidden {
  display: none;
}

.feed-comment img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-comment-bubble {
  display: inline-grid;
  gap: 3px;
  max-width: 100%;
  border-radius: 18px;
  background: #f3f7f4;
  padding: 9px 12px;
}

.feed-comment-bubble a {
  color: var(--tr-ink);
  font-weight: 700;
  text-decoration: none;
}

.feed-comment-bubble a:hover {
  color: var(--tr-green-dark);
}

.feed-comment-bubble p {
  margin: 0;
  color: #2f3a33;
  line-height: 1.4;
}

.feed-comment-bubble span {
  color: var(--tr-muted);
  font-size: 12px;
}

.feed-comment-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 0 8px;
}

.feed-comment-actions form,
.feed-comment-like-form {
  margin: 0;
}

.feed-comment-like-form button,
.feed-comments-more,
.feed-comment-form button,
.feed-comment-actions form:not(.feed-comment-like-form) button {
  border: 0;
  background: transparent;
  color: var(--tr-muted);
  cursor: pointer;
  font-weight: 700;
}

.feed-comment-like-form button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 13px;
}

.feed-comment-like-form button.is-active,
.feed-comment-like-form button:hover,
.feed-comments-more:hover,
.feed-comment-actions form:not(.feed-comment-like-form) button:hover {
  color: var(--tr-green-dark);
}

.feed-comments-more {
  justify-self: start;
  padding: 0;
}

.feed-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.feed-comment-form .account-input {
  min-height: 42px;
  border-radius: 999px;
  padding-block: 10px;
}

.feed-comment-form button {
  display: grid;
  place-items: center;
  border: 1px solid var(--tr-line);
  border-radius: 50%;
  background: #fff;
}

.feed-comment-form button:hover {
  border-color: var(--tr-green);
  background: #eaffef;
}

.community-side-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-sm);
  background: #fff;
}

.community-side-list strong {
  color: var(--tr-ink);
}

.community-side-list span {
  color: var(--tr-muted);
  font-size: 13px;
  line-height: 1.35;
}

.community-side-entry {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px !important;
  align-items: center;
}

.community-side-entry img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f7f4;
  box-shadow: var(--tr-shadow-soft);
}

.community-side-entry.vehicle img {
  border-radius: 12px;
}

.community-side-entry-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.community-side-entry-text strong,
.community-side-entry-text span {
  display: block;
}

.notification-settings-form {
  gap: 20px;
}

.settings-group {
  display: grid;
  gap: 12px;
}

.settings-group h3 {
  margin: 0;
  font-size: 18px;
}

.settings-group-copy {
  margin: -2px 0 2px;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.5;
}

.notification-grid {
  display: grid;
  gap: 12px;
}

.notification-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--tr-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 49, 24, .05);
}

.notification-switch-copy {
  display: grid;
  gap: 4px;
}

.notification-switch-copy strong,
.notification-switch-copy small {
  display: block;
}

.notification-switch-copy strong {
  color: var(--tr-ink);
  font-size: 18px;
  line-height: 1.3;
}

.notification-switch-copy small {
  color: var(--tr-muted);
  font-size: 13px;
  line-height: 1.45;
}

.notification-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 58px;
  height: 34px;
}

.notification-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.notification-switch-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d8e2d9;
  transition: background .2s ease;
}

.notification-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}

.notification-switch input:checked + .notification-switch-slider {
  background: var(--tr-green);
}

.notification-switch input:checked + .notification-switch-slider::after {
  transform: translateX(24px);
}

.notification-switch input:focus-visible + .notification-switch-slider {
  box-shadow: 0 0 0 3px rgba(31, 140, 67, .18);
}

@media (max-width: 640px) {
  .notification-switch-card {
    padding: 14px 14px;
    border-radius: 18px;
  }

  .notification-switch-copy strong {
    font-size: 16px;
  }
}

.notification-feed-card {
  margin-bottom: 18px;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--tr-line);
}

.notification-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.notification-item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef4ec;
}

.notification-item strong,
.notification-item p,
.notification-item span {
  display: block;
}

.notification-item strong {
  margin-bottom: 4px;
}

.notification-item p {
  margin: 0 0 4px;
  color: var(--tr-ink-soft);
}

.notification-item span {
  font-size: 13px;
  color: var(--tr-muted);
}

.empty-state.compact {
  padding: 14px;
}

/* User directory */

.user-search-card {
  margin-bottom: 16px;
}

.user-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.user-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.user-directory-card {
  display: grid;
  gap: 14px;
}

.user-directory-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.user-directory-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: var(--tr-ink) !important;
  text-decoration: none !important;
}

.user-directory-main img {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--tr-shadow-soft);
}

.user-directory-main strong {
  display: block;
  color: var(--tr-ink);
  font-size: 18px;
}

.user-directory-meta {
  color: var(--tr-muted);
}

.user-directory-main:hover strong {
  color: var(--tr-green-dark);
}

.user-directory-meta {
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.user-directory-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-directory-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #f8fbf7;
  color: var(--tr-ink);
  font-size: 13px;
  font-weight: 700;
}

.profile-feed-section {
  grid-column: 1 / -1;
}

.profile-feed-list {
  display: grid;
  gap: 14px;
}

.feed-inline-delete {
  margin: 0;
}

.friend-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.friend-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--tr-ink) !important;
}

.friend-profile-link:hover {
  color: var(--tr-green-dark) !important;
}

.friend-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 10px 22px rgba(22, 54, 30, .12);
  object-fit: cover;
  background: #f5f7f4;
}

.friend-profile-link span {
  min-width: 0;
}

.friend-profile-link small {
  display: block;
  margin-top: 3px;
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 600;
}

.friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.friend-actions button {
  min-height: 38px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: var(--tr-green-dark);
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.friend-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(22, 54, 30, .12);
}

.friend-action-accept {
  border-color: var(--tr-green) !important;
  background: var(--tr-green) !important;
  color: #fff !important;
}

.friend-action-accept:hover {
  background: var(--tr-green-dark) !important;
}

.friend-action-decline {
  border-color: #dfe9df !important;
  color: var(--tr-ink) !important;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e5eee5;
  border-radius: 999px;
  background: #f8fbf7;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
}

.badge-list b {
  font-weight: 700;
}

.community-overview {
  display: grid;
  gap: 18px;
}

.community-overview-head {
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(22, 54, 30, .07);
}

.community-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.community-user-card-grid,
.community-vehicle-card-grid {
  display: grid;
  gap: 12px;
}

.community-user-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.community-vehicle-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.community-member-card,
.community-vehicle-mini-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-sm);
  background: #fff;
  color: var(--tr-ink) !important;
  text-decoration: none;
  padding: 12px;
  transition: border .16s ease, transform .16s ease, box-shadow .16s ease;
}

.community-member-card:hover,
.community-vehicle-mini-card:hover {
  border-color: #b9e6c5;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(22, 54, 30, .08);
}

.community-member-card img {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
}

.community-member-card strong,
.community-vehicle-mini-card strong {
  display: block;
  color: var(--tr-ink);
}

.community-member-card span,
.community-vehicle-mini-card span {
  display: block;
  color: var(--tr-muted);
  font-size: 13px;
  margin-top: 2px;
}

.community-member-card p,
.community-vehicle-mini-card p {
  margin: 6px 0 0;
  color: #3f4b42;
  font-size: 13px;
}

.community-vehicle-mini-image {
  display: grid;
  place-items: center;
  width: 86px;
  height: 66px;
  border-radius: var(--tr-radius-sm);
  background:
    linear-gradient(135deg, rgba(22, 129, 59, .14), rgba(243, 213, 138, .24)),
    var(--tr-soft);
  background-position: center;
  background-size: cover;
  color: var(--tr-green-dark);
}

/* Lightbox */

.vehicle-image[data-lightbox-url],
.vehicle-profile-image[data-lightbox-url],
.community-cover[data-lightbox-url],
.community-avatar[data-lightbox-url],
.profile-edit-cover-preview[data-lightbox-url],
.profile-edit-avatar-preview[data-lightbox-url],
.profile-spot-album-item[data-lightbox-url] {
  cursor: zoom-in;
}

.user-directory-name {
  min-width: 0;
}

.user-directory-name span {
  display: block;
  margin-top: 3px;
  color: var(--tr-muted);
  font-size: 13px;
  font-weight: 600;
}

.user-directory-connect {
  justify-self: end;
  min-width: 0;
}

.user-directory-connect form {
  margin: 0;
}

.user-friend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  max-width: 132px;
  border: 1px solid var(--tr-green);
  border-radius: 999px;
  background: var(--tr-green);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  padding: 0 12px;
  box-shadow: var(--tr-shadow-green);
  white-space: nowrap;
}

.user-friend-btn strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-friend-btn:hover {
  background: var(--tr-green-dark);
  border-color: var(--tr-green-dark);
}

.user-friend-btn:disabled,
.user-friend-btn.is-disabled {
  border-color: var(--tr-line);
  background: #f6f8f6;
  color: var(--tr-muted);
  cursor: default;
  box-shadow: none;
}

.profile-connect-btn {
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding: 0 18px;
}

.account-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 15, 11, .78);
  backdrop-filter: blur(8px);
}

.account-lightbox.is-open {
  display: flex;
}

.account-lightbox-open {
  overflow: hidden;
}

.account-lightbox-frame {
  width: min(100%, 1100px);
  margin: 0;
  text-align: center;
}

.account-lightbox-image {
  max-width: 100%;
  max-height: min(78vh, 760px);
  border-radius: var(--tr-radius);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
  object-fit: contain;
}

.account-lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-weight: 700;
}

.account-lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--tr-ink);
  cursor: pointer;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

.account-lightbox-close:hover {
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  body > footer,
  body > .footer,
  body > #footer,
  body > .site-footer,
  body > .main-footer {
    display: block !important;
    visibility: visible !important;
  }

  .account-page {
    width: calc(100% - 40px);
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0;
    overflow-x: hidden;
  }

  .account-card {
    padding: 20px;
  }

  .account-auth-card::before {
    margin: -20px -20px 20px;
  }

  .account-register-layout,
  .community-grid,
  .community-info-strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .account-register-fields,
  .account-register-uploads,
  .account-register-preview,
  .account-register-submit {
    width: 100%;
  }

  .account-register-fields {
    order: 1;
  }

  .account-register-uploads {
    order: 2;
  }

  .account-register-preview {
    order: 3;
  }

  .account-register-submit {
    order: 4;
  }

  .profile-preview-card {
    position: static;
  }

  .account-two-cols,
  .account-upload-grid,
  .account-location-grid,
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .account-code-grid {
    gap: 8px;
  }

  .account-code-input {
    min-height: 58px;
    font-size: 24px;
  }

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

  .community-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .community-stat-card {
    min-height: 82px;
    padding: 14px 8px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(22, 54, 30, .06);
  }

  .community-stat-card strong {
    font-size: 27px;
  }

  .community-stat-card span {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .stat-info-button {
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .community-hero {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    background: #fff;
    box-shadow: 0 16px 42px rgba(22, 54, 30, .08);
  }

  .community-cover {
    min-height: 300px;
    border-radius: var(--tr-radius) var(--tr-radius) 0 0;
  }

  .community-hero-panel {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 0 18px 20px;
    text-align: center;
  }

  .community-avatar {
    width: 118px;
    height: 118px;
    margin-top: -59px;
    border-width: 5px;
  }

  .community-user-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: var(--tr-ink);
    text-shadow: none;
    text-align: center !important;
  }

  .community-user-main h1 {
    width: 100%;
    color: var(--tr-ink);
    text-align: center !important;
  }

  .community-user-main > p {
    width: 100%;
    color: var(--tr-muted);
    text-align: center !important;
  }

  .community-actions {
    width: 100%;
    margin-top: 8px;
  }

  .community-actions,
  .community-meta,
  .community-socials,
  .community-profile-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    overflow-x: visible;
  }

  .community-meta,
  .community-socials {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .community-meta > span {
    flex: 0 1 auto;
  }

  .community-socials {
    gap: 8px;
  }

  .community-socials a {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 8px 9px;
    font-size: 13px;
  }

  .community-profile-nav,
  .community-meta,
  .community-socials,
  .community-actions,
  .vehicle-grid,
  .profile-vehicle-grid {
    max-width: 100%;
    min-width: 0;
  }

  .profile-nav-group,
  .profile-nav-group-account {
    width: 100%;
    margin-left: 0;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid #edf3ed;
    flex-wrap: wrap;
    min-width: 0;
  }

  .profile-nav-group:last-child {
    border-bottom: 0;
  }

  .profile-nav-label {
    flex: 0 0 100%;
    padding: 2px 6px 0;
  }

  .community-profile-nav a {
    flex: 1 1 150px;
    justify-content: center;
  }

  .profile-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .profile-section-nav a {
    flex: none;
    min-height: 46px;
    justify-content: flex-start;
    border-color: #edf3ed;
    background: #f8fbf7;
    padding: 10px 12px;
    font-size: 14px;
  }

  .community-stat-card:nth-child(odd) .stat-tooltip {
    left: 0;
    right: auto;
  }

  .community-stat-card:nth-child(even) .stat-tooltip {
    left: auto;
    right: 0;
  }

  .stat-tooltip {
    width: min(250px, calc(100vw - 58px));
    z-index: 40;
  }

  .community-action,
  .profile-edit-link {
    width: 100%;
  }

  .community-card-head,
  .account-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .account-page-head .account-small-btn {
    width: 100%;
  }

  .account-vehicle-head,
  .account-vehicle-shell {
    padding: 16px;
  }

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

  .account-vehicle-shell .account-switch {
    text-align: center;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .status-form,
  .wall-form {
    grid-template-columns: 1fr;
  }

  .status-form .account-small-btn,
  .wall-form .account-small-btn {
    width: 100%;
  }

  .friend-item,
  .status-current {
    align-items: stretch;
    flex-direction: column;
  }

  .friend-profile-link {
    width: 100%;
  }

  .friend-actions {
    width: 100%;
    justify-content: stretch;
  }

  .friend-actions button {
    flex: 1 1 120px;
  }

  .community-overview-grid {
    grid-template-columns: 1fr;
  }

  .user-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-feed-page {
    width: min(100%, calc(100% - 32px));
  }

  .community-feed-layout {
    grid-template-columns: 1fr;
  }

  .feed-composer-card {
    position: static;
  }

  .feed-composer-row {
    grid-template-columns: 1fr;
  }

  .feed-composer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .feed-post-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .community-feed-side {
    order: 2;
  }

  .album-placeholder {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .account-page {
    width: calc(100% - 32px);
    padding-inline: 0;
  }

  .community-cover {
    min-height: 255px;
  }

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

  .community-user-main h1 {
    font-size: 32px;
  }

  .vehicle-profile-card {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
  }

  .vehicle-profile-image {
    width: 82px;
    height: 64px;
  }

  .user-search-form,
  .user-directory-grid {
    grid-template-columns: 1fr;
  }

  .user-directory-card {
    padding-top: 16px;
  }

  .user-directory-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-directory-connect {
    justify-self: start;
    width: 100%;
  }

  .user-friend-btn {
    max-width: 100%;
  }

  .feed-media-preview {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .feed-media-preview img {
    width: 68px;
    height: 54px;
  }

  .feed-item-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .feed-item-tools {
    grid-column: 2;
    justify-content: flex-start;
  }

  .feed-item-head img {
    width: 44px;
    height: 44px;
  }

  .feed-composer-top {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .feed-composer-top img {
    width: 44px;
    height: 44px;
  }

  .feed-item-media {
    min-height: 230px;
  }

  .profile-feed-list {
    grid-template-columns: 1fr;
  }

  .album-placeholder,
  .profile-spot-album {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .account-page,
  .community-feed-page {
    width: min(100%, calc(100% - 20px));
  }

  .album-placeholder,
  .profile-spot-album {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-edit-layout {
    width: 100%;
  }

  .account-card,
  .community-card {
    padding: 16px;
    border-radius: 16px;
  }

  .community-card-head h2 {
    font-size: 20px;
  }

  .feed-list,
  .profile-feed-list,
  .community-feed-main {
    gap: 12px;
  }

  .feed-item-card {
    gap: 12px;
  }

  .feed-item-card .feed-inline-delete {
    top: 10px;
    right: 10px;
  }

  .feed-item-head {
    padding-right: 42px;
  }

  .feed-item-title {
    gap: 6px;
  }

  .feed-item-title strong {
    font-size: 18px;
    line-height: 1.25;
  }

  .feed-item-meta {
    gap: 5px;
    font-size: 13px;
  }

  .feed-item-body {
    font-size: 16px;
  }

  .feed-reactions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .feed-reactions form {
    min-width: 0;
  }

  .feed-reactions button,
  .feed-reactions a,
  .feed-comment-jump {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    gap: 4px;
    padding: 0 6px;
    font-size: 14px;
  }

  .feed-comment {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .feed-comment img {
    width: 32px;
    height: 32px;
  }

  .feed-comment-bubble {
    border-radius: 16px;
    padding: 8px 10px;
  }

  .feed-comment-bubble a {
    font-size: 15px;
  }

  .feed-comment-bubble p,
  .feed-comment-bubble span,
  .feed-comment-actions {
    font-size: 13px;
  }

  .feed-comment-form {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
}

@media (max-width: 560px) {
  .account-page,
  .community-feed-page {
    width: min(100%, calc(100% - 14px));
  }

  .account-code-grid {
    gap: 6px;
  }

  .account-code-input {
    min-height: 52px;
    border-radius: 14px;
    font-size: 22px;
  }

  .account-card,
  .community-card {
    padding: 14px;
    box-shadow: 0 10px 28px rgba(22, 54, 30, .07);
  }

  .community-card {
    margin-bottom: 12px;
  }

  .account-card-header h1,
  .account-page-head h1 {
    font-size: 32px;
  }

  .community-card-head h2 {
    font-size: 19px;
  }

  .community-card-head,
  .account-page-head {
    gap: 10px;
  }

  .feed-item-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .feed-item-head img,
  .feed-composer-top img {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }

  .feed-item-title strong {
    font-size: 17px;
  }

  .feed-item-icon {
    font-size: 18px;
  }

  .feed-item-tools {
    grid-column: 2;
    gap: 6px;
  }

  .feed-item-tools button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 13px;
  }

  .feed-item-body {
    font-size: 15px;
    line-height: 1.45;
  }

  .feed-reactions {
    gap: 6px;
  }

  .feed-reactions button,
  .feed-reactions a,
  .feed-comment-jump {
    min-height: 36px;
    border-radius: 14px;
    font-size: 13px;
    padding: 0 4px;
  }

  .feed-reactions span,
  .feed-comment-jump span {
    font-size: 17px;
  }

  .feed-reactions strong,
  .feed-comment-jump strong {
    font-size: 13px;
  }

  .feed-comment {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
  }

  .feed-comment img {
    width: 30px;
    height: 30px;
  }

  .feed-comment-bubble {
    max-width: 100%;
    padding: 8px 10px;
  }

  .feed-comment-actions {
    margin-left: 4px;
  }

  .feed-comment-form .account-input {
    min-height: 40px;
    font-size: 15px;
  }

  .feed-comment-form button {
    width: 40px;
    height: 40px;
  }

  .feed-composer-card {
    padding: 14px;
  }

  .feed-composer-top {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .feed-composer textarea.account-input {
    min-height: 86px;
    border-radius: 18px;
    font-size: 15px;
  }

  .feed-composer-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .feed-action-pill,
  .account-form label.feed-action-pill,
  .feed-post-btn {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .feed-post-btn {
    grid-column: 1 / -1;
  }

  .feed-item-media {
    min-height: 205px;
  }

  .community-profile > .community-grid {
    gap: 12px;
  }

  .community-profile .profile-feed-section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .community-profile .profile-feed-section > .community-card-head {
    padding: 0 2px;
  }

  .community-profile .profile-feed-section > .empty-state {
    margin: 0;
  }

  .community-feed-page > .account-page-head {
    padding: 0 4px;
  }
}

@media (max-width: 380px) {
  .account-page,
  .community-feed-page {
    width: min(100%, calc(100% - 10px));
  }

  .account-card,
  .community-card {
    padding: 12px;
  }

  .feed-reactions button,
  .feed-reactions a,
  .feed-comment-jump {
    min-height: 34px;
    gap: 3px;
    font-size: 12px;
  }

  .feed-reactions span,
  .feed-comment-jump span {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .account-page,
  .community-feed-page {
    width: 100%;
  }

  .account-page {
    padding-inline: 6px;
  }

  .community-feed-page {
    padding-inline: 0;
  }

  .community-feed-page > .account-page-head,
  .community-feed-page > .account-alert,
  .community-profile > .account-alert {
    margin-inline: 4px;
  }

  .community-feed-layout,
  .community-feed-main,
  .feed-list,
  .profile-feed-list {
    width: 100%;
  }

  .community-feed-side {
    padding-inline: 0;
  }

  .community-profile .profile-feed-section > .community-card-head {
    padding-inline: 4px;
  }

  .community-profile .profile-feed-section .feed-item-card,
  .community-feed-page .feed-item-card,
  .community-feed-page .feed-composer-card {
    border-radius: 14px;
  }

  .community-feed-page > .account-page-head {
    display: block;
    padding: 12px 10px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .community-feed-page > .account-page-head h1 {
    font-size: 30px;
    margin: 6px 0;
  }

  .community-feed-page > .account-page-head p {
    max-width: 32ch;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .community-feed-page > .account-page-head .account-kicker {
    font-size: 12px;
    padding: 5px 10px;
  }

  .community-feed-page > .account-page-head .account-page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .community-feed-page > .account-page-head .account-small-btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
  }

  .community-feed-page .feed-composer-card {
    margin-top: 8px;
    padding: 12px;
  }

  .community-feed-page .feed-composer {
    gap: 10px;
  }

  .community-feed-page .feed-composer-top {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .community-feed-page .feed-composer-top img {
    width: 34px;
    height: 34px;
  }

  .community-feed-page .feed-composer textarea.account-input {
    min-height: 72px;
    padding: 12px;
  }

  .community-feed-page .feed-composer-actions {
    padding-top: 10px;
  }

  .community-feed-page .feed-action-pill,
  .community-feed-page .account-form label.feed-action-pill {
    min-height: 40px;
  }
}

@media (max-width: 900px) {
  .account-page,
  .community-feed-page {
    width: calc(100% - 6px) !important;
    max-width: none !important;
    padding-inline: 3px !important;
  }

  .account-page .community-card,
  .account-page .account-card,
  .community-feed-page .community-card,
  .community-feed-page .account-card {
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .account-page,
  .community-feed-page {
    width: 100% !important;
    padding-inline: 2px !important;
  }

  .community-profile .community-grid,
  .community-feed-layout,
  .community-feed-main,
  .profile-feed-list,
  .feed-list {
    width: 100% !important;
  }
}
