/* Member extras + Facebook-style messenger + profiles */
.m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.m-field {
  display: grid;
  gap: 6px;
}

.m-field.span-2 {
  grid-column: 1 / -1;
}

.m-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  line-height: 1.35;
}

.m-field label .m-muted {
  font-size: 10.5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.m-field input,
.m-field textarea,
.m-field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  align-self: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.m-field input:focus,
.m-field textarea:focus,
.m-field select:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--plum) 14%, transparent);
}

.m-field input:not([type="file"]),
.m-field select {
  min-height: 46px;
  max-height: 46px;
}

.m-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px !important;
}

.m-field input[type="file"]:not([data-cm-file]):not([hidden]):not([style*="display:none"]):not([style*="display: none"]) {
  min-height: 48px;
  padding: 8px 12px;
  background: var(--wash-page, #faf7f3);
  border: 1.5px dashed color-mix(in srgb, var(--plum) 28%, var(--line));
  border-radius: 10px;
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
}

.m-field input[type="file"]:not([data-cm-file]):not([hidden]):hover,
.m-field input[type="file"]:not([data-cm-file]):not([hidden]):focus {
  border-color: var(--plum);
  background: #fff;
  outline: none;
}

.m-field input[type="file"]:not([data-cm-file]):not([hidden])::file-selector-button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--plum) 30%, transparent);
  background: color-mix(in srgb, var(--plum) 10%, #fff);
  color: var(--plum);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  margin-right: 12px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.m-field input[type="file"]:not([data-cm-file]):not([hidden]):hover::file-selector-button {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}

.m-field input[type="file"][data-cm-file],
.m-field input[type="file"][hidden],
.cm-tool-btn input[type="file"],
.cm-tools input[type="file"],
input[data-cm-file] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Password visibility toggle */
.m-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.m-pass-wrap input {
  width: 100%;
  padding-right: 46px !important;
}

.m-pass-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted, #7a7168);
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.m-pass-toggle:hover {
  color: var(--plum, #8b3a2f);
  background: color-mix(in srgb, var(--plum, #8b3a2f) 10%, transparent);
}

.m-pass-toggle:focus-visible {
  outline: 2px solid var(--plum, #8b3a2f);
  outline-offset: 1px;
}

.m-pass-toggle .m-icon-eye-off {
  display: none;
}

.m-pass-toggle[aria-pressed="true"] .m-icon-eye {
  display: none;
}

.m-pass-toggle[aria-pressed="true"] .m-icon-eye-off {
  display: block;
  color: var(--plum, #8b3a2f);
}

/* Number stepper for handicap and glove size */
.m-stepper-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.m-stepper-wrap input {
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  padding: 11px 42px !important;
  width: 100%;
  border-radius: 10px;
}

.m-stepper-wrap input::-webkit-inner-spin-button,
.m-stepper-wrap input::-webkit-outer-spin-button {
  opacity: 0.6;
  height: 24px;
}

.m-stepper-wrap input:hover::-webkit-inner-spin-button {
  opacity: 1;
}

.m-stepper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--plum) 10%, #fff);
  color: var(--plum);
  border: 1px solid color-mix(in srgb, var(--plum) 22%, transparent);
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  margin: 0;
}

.m-stepper-btn:hover {
  background: var(--plum);
  color: #fff;
}

.m-stepper-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.m-stepper-btn--minus {
  left: 6px;
}

.m-stepper-btn--plus {
  right: 6px;
}

.m-btn,
a.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--plum) 88%, #fff), var(--plum-deep, #6f2e25));
  color: #fff !important;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.m-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 58, 47, 0.25);
}

.m-btn-ghost,
a.m-btn-ghost {
  background: #fff !important;
  color: var(--plum, #6f2e25) !important;
  border: 1.5px solid var(--plum, #6f2e25) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.m-btn-ghost:hover,
a.m-btn-ghost:hover {
  background: linear-gradient(180deg, var(--plum, #8b3a2f), var(--plum-deep, #6f2e25)) !important;
  color: #fff !important;
  border-color: var(--plum-deep, #6f2e25) !important;
  box-shadow: 0 4px 14px rgba(139, 58, 47, 0.28) !important;
  transform: translateY(-1px);
}

.m-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.m-card h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--plum);
}

.m-muted {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 680px) {
  .m-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .m-grid--2col-mobile {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 14px !important;
  }

  .m-grid--2col-mobile .m-field.span-2 {
    grid-column: 1 / -1 !important;
  }

  .m-field.span-2 {
    grid-column: auto;
  }

  .m-card {
    padding: 18px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .m-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .m-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .m-actions .m-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 12px;
  }

  .m-field label {
    font-size: 11px;
    line-height: 1.35;
  }

  .m-field input,
  .m-field textarea,
  .m-field select {
    font-size: 16px;
  }
}

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

.m-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf7f3;
}

.m-item strong {
  display: block;
  font-size: 15px;
}

.m-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #f4e5c0;
  color: #6a4a12;
}

.m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.m-title {
  display: none;
}

.m-auth {
  max-width: 440px;
  margin: 0 auto;
}

.m-flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 16px;
  font-size: 14px;
}

.m-flash-ok {
  background: #eaf5ef;
  color: #1f4a36;
  border: 1px solid #cfe3d7;
}

.m-flash-error {
  background: #f8ebe8;
  color: var(--plum);
  border: 1px solid #e8cfc8;
}

/* ============================================================
   Enhanced Member Auth & Login Portal
   ============================================================ */
.drs-auth-container {
  max-width: 460px;
  margin: 32px auto 60px;
  padding: 0 16px;
}

.drs-auth-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(215, 200, 185, 0.55);
  box-shadow: 0 16px 44px -8px rgba(80, 35, 25, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 38px 34px 32px;
  transition: box-shadow 0.25s ease;
}

.drs-auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.drs-auth-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(100, 30, 20, 0.1);
  border: 1px solid rgba(194, 155, 56, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drs-auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drs-auth-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold, #b88628);
  margin-bottom: 6px;
}

.drs-auth-title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 32px;
  font-weight: 600;
  color: #241f1c;
  margin: 0 0 8px;
  line-height: 1.2;
}

.drs-auth-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: #6e655f;
  margin: 0;
}

.drs-auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdf2f0;
  border: 1px solid #f5cfc9;
  color: #a32a20;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.4;
}

.drs-auth-alert svg {
  flex-shrink: 0;
  color: #a32a20;
}

.drs-form-group {
  margin-bottom: 18px;
}

.drs-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #4a423d;
  margin-bottom: 7px;
}

.drs-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.drs-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9c928b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.drs-auth-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border-radius: 12px;
  border: 1.5px solid #ded6cd;
  background: #faf8f5;
  font-size: 14.5px;
  color: #222;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.drs-auth-input:focus {
  background: #ffffff;
  border-color: var(--plum, #8b3a2f);
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 58, 47, 0.12);
}

.drs-pass-wrap .drs-auth-input {
  padding-left: 42px !important;
  padding-right: 48px !important;
}

.drs-pass-wrap .m-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8c827b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 3;
}

.drs-pass-wrap .m-pass-toggle:hover {
  color: var(--plum, #8b3a2f);
}

.drs-form-options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: -4px 0 22px 2px;
}

.drs-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a423d;
  transition: color 0.15s ease;
}

.drs-remember-label:hover {
  color: #1a1614;
}

.drs-remember-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.drs-remember-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #cbbeb3;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.18s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.drs-remember-label:hover .drs-remember-box {
  border-color: #8b3a2f;
}

.drs-remember-input:focus-visible + .drs-remember-box {
  outline: 2px solid #8b3a2f;
  outline-offset: 2px;
}

.drs-remember-input:checked + .drs-remember-box {
  background: #8b3a2f;
  border-color: #8b3a2f;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(139, 58, 47, 0.28);
}

.drs-remember-text {
  letter-spacing: 0.15px;
}

.drs-btn-primary {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b3a2f 0%, #6f2e25 100%);
  color: #ffffff !important;
  border: 1px solid rgba(194, 155, 56, 0.4);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(111, 46, 37, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}

.drs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 46, 37, 0.36);
  filter: brightness(1.06);
  color: #ffffff !important;
}

.drs-btn-primary:active {
  transform: translateY(0);
}

.drs-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 18px;
  color: #a49a92;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.drs-auth-divider::before,
.drs-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ebe5de;
}

.drs-auth-divider span {
  padding: 0 14px;
}

.drs-btn-secondary {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: #ffffff !important;
  color: var(--plum, #6f2e25) !important;
  border: 1.5px solid var(--plum, #6f2e25) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.22s ease;
  box-sizing: border-box;
}

.drs-btn-secondary:hover {
  background: linear-gradient(180deg, var(--plum, #8b3a2f), var(--plum-deep, #6f2e25)) !important;
  color: #ffffff !important;
  border-color: var(--plum-deep, #6f2e25) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 46, 37, 0.28) !important;
}

.drs-btn-secondary:active {
  transform: translateY(0);
}

.drs-auth-foot {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f2ece5;
  font-size: 12.5px;
  color: #887e77;
}

.drs-auth-foot p {
  margin: 0;
}

.drs-auth-foot a {
  color: var(--plum, #6f2e25);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .drs-auth-container {
    margin: 20px auto 40px;
    padding: 0 12px;
  }
  .drs-auth-card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  .drs-auth-title {
    font-size: 27px;
  }
}

/* Profile onboarding & mobile optimizations */
.m-profile-wrap {
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}

.m-onboarding-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fdfbf7;
  border: 1px solid rgba(199, 146, 45, 0.35);
  border-left: 4px solid var(--gold, #c7922d);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.m-onboarding-alert-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(199, 146, 45, 0.15);
  color: var(--gold, #c7922d);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.m-onboarding-alert-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a4239;
}

.m-onboarding-alert-text strong.m-onboarding-kicker {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal, #25272b);
  margin-bottom: 3px;
}

.m-onboarding-alert-text p {
  margin: 0;
}

.m-photo-uploader {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.m-photo-preview {
  width: 96px;
  height: 128px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #efe6da;
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  position: relative;
}

.m-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.m-photo-initials {
  font-family: var(--serif, Georgia, serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--plum, #8b3a2f);
  letter-spacing: 1px;
}

.m-photo-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-photo-meta p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.m-card--action {
  text-align: center;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.m-btn--submit {
  width: 100%;
  min-height: 52px;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  padding: 14px 24px !important;
  justify-content: center;
}

@media (max-width: 580px) {
  .m-onboarding-alert {
    flex-direction: column;
    gap: 10px;
    padding: 14px 15px;
  }

  .m-onboarding-alert-icon {
    margin-top: 0;
  }

  .m-photo-uploader {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .m-photo-preview {
    width: 108px;
    height: 144px;
  }

  .m-photo-meta {
    width: 100%;
    align-items: center;
  }

  .m-photo-meta p {
    text-align: center;
    font-size: 13px;
  }

  .m-card--action {
    padding: 18px 14px;
  }

  .m-btn--submit {
    min-height: 50px;
    font-size: 12.5px !important;
  }
}

.feed-list .feed-item {
  text-decoration: none;
  color: inherit;
}

.feed-list .feed-item:hover {
  border-color: color-mix(in srgb, var(--plum) 35%, var(--line));
  background: #fff;
}

.feed-meta a {
  color: var(--plum);
  font-weight: 600;
}

.feed-meta a:hover {
  color: var(--gold);
}

.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;
}

/* —— Compact messenger shell —— */
.portal-body--compact #footer {
  display: none;
}

.portal-body--compact .portal-main--compact {
  margin-top: 0;
  padding: 0;
  height: calc(100vh - 76px);
  max-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--wash-page);
}

.portal-body--compact.portal-body--account .portal-main--compact {
  height: 100%;
  max-height: none;
}

.portal-body--compact:has(.site-member-bar) .portal-main--compact {
  height: calc(100vh - 76px - 44px);
  max-height: calc(100vh - 76px - 44px);
}

.portal-body--compact .account-menu-btn {
  top: 88px;
}

@media (max-width: 900px) {

  .portal-body--compact .account-menu-btn,
  .account-menu-btn {
    display: none !important;
  }
}

/* —— DRS Messages (Facebook-style layout, site brand) —— */
.fb-msg {
  --msg-accent: var(--plum);
  --msg-accent-deep: var(--plum-deep, #6f2e25);
  --msg-soft: color-mix(in srgb, var(--plum) 10%, #fff);
  --msg-grey: color-mix(in srgb, var(--blush) 55%, #fff);
  --msg-panel: #ffffff;
  --msg-hover: color-mix(in srgb, var(--ivory) 70%, #fff);
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  height: 100%;
  width: 100%;
  background: var(--msg-panel);
  border-top: 1px solid var(--line);
}

.fb-msg-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0, 0, 0, .08);
  background: var(--msg-panel);
  min-height: 0;
}

.fb-msg-side-head {
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.fb-msg-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fb-msg-side-title h1 {
  margin: 0;
  font-family: var(--font-sans, var(--sans));
  font-size: 24px;
  font-weight: 700;
  color: #050505;
  letter-spacing: -0.02em;
}

.fb-msg-new {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--msg-grey);
  color: #050505;
  display: grid;
  place-items: center;
}

.fb-msg-new:hover {
  background: #d8dadf;
}

.fb-msg-search {
  display: block;
  margin-bottom: 8px;
}

.fb-msg-search input {
  width: 100%;
  border: none;
  background: var(--msg-hover);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.fb-msg-search input:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--msg-accent) 35%, transparent);
}

.fb-msg-tabs {
  display: flex;
  gap: 6px;
}

.fb-msg-tab {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #65676b;
  background: transparent;
}

.fb-msg-tab.is-active {
  background: color-mix(in srgb, var(--msg-accent) 12%, #fff);
  color: var(--msg-accent);
}

.fb-msg-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e41e3f;
  color: #fff;
  font-size: 11px;
  align-items: center;
  justify-content: center;
}

.fb-msg-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 6px;
}

.fb-msg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.fb-msg-row:hover {
  background: var(--msg-hover);
}

.fb-msg-row.is-active {
  background: color-mix(in srgb, var(--msg-accent) 12%, #fff);
}

.fb-msg-row.is-unread .fb-msg-name,
.fb-msg-row.is-unread .fb-msg-preview {
  font-weight: 700;
  color: #050505;
}

.fb-msg-row.is-muted {
  opacity: 0.85;
}

.fb-msg-row--request {
  align-items: flex-start;
}

.fb-msg-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--plum), #5a3127);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.fb-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-msg-avatar--sm {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.fb-msg-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-msg-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.fb-msg-name {
  font-size: 15px;
  font-weight: 600;
  color: #050505;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-msg-time {
  font-size: 12px;
  color: #65676b;
  flex-shrink: 0;
}

.fb-msg-preview {
  margin: 0;
  font-size: 13px;
  color: #65676b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-msg-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--msg-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.fb-msg-empty-side {
  padding: 28px 18px;
  text-align: center;
  color: #65676b;
}

.fb-msg-empty-side p {
  margin: 0 0 6px;
  font-weight: 700;
  color: #050505;
  font-size: 16px;
}

.fb-msg-empty-side span {
  font-size: 13px;
  line-height: 1.45;
}

.fb-msg-req-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.fb-msg-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.fb-msg-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
}

.fb-msg-back {
  display: none;
  font-size: 22px;
  color: var(--msg-accent);
  padding: 4px 8px;
}

.fb-msg-chat-who {
  flex: 1;
  min-width: 0;
}

.fb-msg-chat-who a {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #050505;
}

.fb-msg-chat-who a:hover {
  text-decoration: underline;
}

.fb-msg-chat-who span {
  display: block;
  font-size: 12px;
  color: #65676b;
}

.fb-msg-stream {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  min-height: 0;
}

.fb-msg-day {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: #65676b;
  margin: 8px 0;
}

.dm-bubble {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: min(78%, 520px);
}

.dm-bubble.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.dm-bubble.is-theirs {
  align-self: flex-start;
}

.dm-bubble-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--plum), #5a3127);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.dm-bubble-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-bubble-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dm-bubble.is-mine .dm-bubble-stack {
  align-items: flex-end;
}

.dm-bubble-body {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.dm-bubble.is-mine .dm-bubble-body {
  background: var(--msg-accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.dm-bubble.is-theirs .dm-bubble-body {
  background: var(--msg-grey);
  color: var(--charcoal, #25272B);
  border-bottom-left-radius: 6px;
}

.dm-bubble-meta {
  font-size: 11px;
  color: #65676b;
  padding: 0 6px;
  opacity: 0;
  transition: opacity .15s;
}

.dm-bubble:hover .dm-bubble-meta {
  opacity: 1;
}

.fb-msg-compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
}

.fb-msg-compose-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-msg-compose textarea {
  flex: 1;
  width: 100%;
  resize: none;
  border: none;
  background: var(--msg-hover);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.35;
  max-height: 120px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.cm-tools {
  position: relative;
  margin-top: 8px;
}

.cm-tools-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cm-tool-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  min-height: 34px;
  max-height: 34px;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}

.cm-tool-btn:hover {
  background: color-mix(in srgb, var(--gold, #c4a574) 14%, #fff);
}

.cm-gif-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--plum, #5c1a2e);
}

.cm-gif-panel {
  position: absolute;
  z-index: 22;
  left: 0;
  bottom: calc(100% + 6px);
  width: min(340px, 86vw);
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.cm-gif-panel[hidden] {
  display: none !important;
}

.cm-gif-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  background: color-mix(in srgb, var(--ivory, #f7f1e8) 70%, #fff);
}

.cm-gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: auto;
  max-height: 220px;
  padding-right: 2px;
}

.cm-gif-item {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  aspect-ratio: 1.35 / 1;
}

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

.cm-gif-item:hover {
  outline: 2px solid color-mix(in srgb, var(--gold, #c4a574) 70%, transparent);
  outline-offset: 1px;
}

.cm-gif-empty {
  grid-column: 1 / -1;
  margin: 12px 4px;
  font-size: 12px;
  color: var(--muted, #6b7280);
  text-align: center;
}

.cm-gif-credit {
  margin: 0;
  font-size: 10px;
  color: var(--muted, #6b7280);
  line-height: 1.35;
}

.cm-emoji-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 6px);
  width: min(280px, 70vw);
  max-height: 180px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.cm-emoji-panel[hidden] {
  display: none !important;
}

.cm-emoji {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px;
}

.cm-emoji:hover {
  background: color-mix(in srgb, var(--gold, #c4a574) 16%, #fff);
}

.cm-preview {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  max-width: 180px;
}

.cm-preview[hidden] {
  display: none !important;
}

.cm-preview img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
}

.cm-preview-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cm-attach {
  margin-top: 10px;
}

.cm-attach img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 360px;
  border-radius: 14px;
  object-fit: cover;
}

.cm-attach--comment img,
.cm-attach--chat img {
  max-width: min(100%, 260px);
  max-height: 220px;
  border-radius: 12px;
}

.dm-bubble-stack .cm-attach {
  margin-top: 6px;
}

.fb-msg-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--msg-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fb-msg-send:hover {
  background: color-mix(in srgb, var(--msg-accent) 12%, #fff);
}

.fb-msg-send:disabled {
  opacity: 0.45;
}

.fb-msg-blank {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: #fff;
}

.fb-msg-blank-card {
  text-align: center;
  max-width: 360px;
}

.fb-msg-blank-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #050505;
}

.fb-msg-blank-card p {
  margin: 0 0 18px;
  color: #65676b;
  font-size: 15px;
  line-height: 1.5;
}

.fb-btn,
a.fb-btn,
button.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--msg-grey);
  color: #050505;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.fb-btn:hover {
  filter: brightness(0.96);
  color: #050505;
}

.fb-btn-primary,
a.fb-btn-primary,
button.fb-btn-primary {
  background: var(--msg-accent);
  color: #fff !important;
}

.fb-btn-primary:hover {
  background: var(--msg-accent-deep);
  color: #fff !important;
}

/* New message modal */
.fb-modal[hidden] {
  display: none !important;
}

.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.fb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.fb-modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(85vh, 640px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fb-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.fb-modal-card header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.fb-modal-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--msg-grey);
  font-size: 22px;
  line-height: 1;
}

.fb-modal-card .fb-msg-search {
  padding: 10px 14px 0;
  margin: 0;
}

.fb-people-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  min-height: 220px;
}

.fb-people-loading {
  text-align: center;
  color: #65676b;
  padding: 24px;
  margin: 0;
}

.fb-people-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
}

.fb-people-row:hover {
  background: var(--msg-hover);
}

.fb-people-row .fb-msg-avatar {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.fb-people-row strong {
  display: block;
  font-size: 15px;
}

.fb-people-row em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #65676b;
}

.fb-start-who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.fb-profile-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* —— Site-aligned profile (no double cover) —— */
.drs-profile {
  margin-bottom: 40px;
}

.drs-profile-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  padding: 22px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.drs-profile-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--plum), #5a3127);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.drs-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drs-profile-intro {
  flex: 1;
  min-width: 220px;
}

.drs-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.drs-profile-dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.drs-profile-dl>div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  font-size: 14px;
}

.drs-profile-dl dt {
  color: var(--muted);
  margin: 0;
}

.drs-profile-dl dd {
  margin: 0;
  color: var(--charcoal);
}

/* —— Live feed wall (full app panel) —— */
.feed-shell {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f7f3ee;
  padding: 28px 40px 48px;
}

.feed-page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.feed-page--public {
  max-width: 820px;
  margin: 0 auto;
}

.feed-page-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.feed-page-intro .portal-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
}

.feed-page-intro .portal-muted {
  margin: 0;
}

.tournaments-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 8px;
}

.tournaments-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.feed-composer.portal-card {
  margin-bottom: 16px;
}

.feed-composer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-composer-prompt {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ivory) 70%, #fff);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.feed-composer-prompt:hover {
  color: var(--plum);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}

.feed-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--plum), #5a3127);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.feed-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-av--sm {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

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

.feed-card.portal-card {
  margin-bottom: 0;
  border-radius: 14px;
}

.feed-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feed-author {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 15px;
}

.feed-author:hover {
  color: var(--plum);
}

.feed-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.feed-card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif, var(--serif));
  font-size: 24px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.25;
}

.feed-card-title a {
  color: inherit;
}

.feed-card-title a:hover {
  color: var(--gold);
}

.feed-card-body {
  margin: 0 0 14px;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.55;
}

.feed-card-body--full {
  margin-bottom: 16px;
}

.feed-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--plum);
}

.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.feed-delete-btn {
  color: var(--plum) !important;
  border-color: color-mix(in srgb, var(--plum) 35%, transparent) !important;
}

.feed-delete-btn:hover {
  background: color-mix(in srgb, var(--plum) 10%, #fff) !important;
}

.feed-comment-form {
  margin-bottom: 18px;
}

.feed-comment-fields {
  flex: 1;
  display: grid;
  gap: 10px;
}

.feed-comment-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
  min-height: 64px;
  background: #fff;
}

.feed-comments {
  display: grid;
  gap: 12px;
}

.feed-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feed-comment-bubble {
  flex: 1;
  background: color-mix(in srgb, var(--ivory) 65%, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}

.feed-comment-bubble p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--charcoal);
}

.feed-comment-bubble .feed-meta {
  display: inline;
  margin-left: 8px;
}

/* —— Public Community hub (community.php) —— */
.community-page .tp-section.community-hub {
  padding-top: clamp(32px, 5vw, 52px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.community-main {
  min-width: 0;
}

.community-intro {
  margin-bottom: 20px;
}

.community-intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.community-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 3.6vw, 44px);
}

.community-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.community-count {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
}

.community-back {
  margin: 0 0 16px;
  font-size: 14px;
}

.community-back a {
  color: var(--plum);
  font-weight: 600;
}

.community-back a:hover {
  color: var(--gold);
}

.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.community-banner p {
  margin: 0;
}

.community-banner--info {
  background: color-mix(in srgb, var(--gold) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  color: var(--charcoal);
}

.community-banner--warn {
  background: color-mix(in srgb, var(--terracotta) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--terracotta) 28%, transparent);
}

.community-composer {
  margin-bottom: 18px;
}

.community-composer-label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--taupe);
}

.community-composer-top {
  align-items: flex-start;
}

.community-composer-fields {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.community-composer-title,
.community-composer-body {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ivory) 55%, #fff);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.community-composer-title {
  font-weight: 600;
  font-size: 15px;
}

.community-composer-body {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.community-composer-title:focus,
.community-composer-body:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}

.community-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.community-composer-hint {
  margin: 0;
  flex: 1;
  min-width: 180px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

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

.community-guest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.community-guest-card--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ivory) 70%, #fff);
  border: 1px solid var(--line);
}

.community-guest-title {
  margin: 0 0 6px;
  font-family: var(--font-serif, var(--serif));
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
}

.community-feed {
  margin-top: 4px;
}

.community-post-card {
  transition: border-color 0.2s, box-shadow 0.2s var(--ease-out, ease);
}

.community-post-card:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
  box-shadow: 0 10px 28px rgba(61, 36, 47, 0.07);
}

.community-post-head-copy {
  min-width: 0;
}

.community-post-foot .portal-btn {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 12px;
}

.community-post-stat {
  font-weight: 600;
  color: var(--plum);
}

.community-post-stat:hover {
  color: var(--gold);
}

.community-thread-title {
  font-size: clamp(26px, 3.2vw, 36px);
}

.community-comments {
  margin-top: 16px;
}

.community-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.community-comments-head h2 {
  margin: 0;
  font-family: var(--font-serif, var(--serif));
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
}

.community-comment-form textarea {
  min-height: 88px;
}

.community-no-comments {
  margin-top: 8px;
}

.community-empty {
  text-align: center;
  padding: clamp(36px, 6vw, 56px) 24px;
}

.community-empty-title {
  margin: 0 0 10px;
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  color: var(--plum);
}

.community-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.community-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.community-panel {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(37, 39, 43, 0.04);
}

.community-panel--muted {
  background: color-mix(in srgb, var(--ivory) 55%, #fff);
}

.community-panel--member {
  background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--blush, #efe3dd) 35%, #fff) 100%);
}

.community-panel-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--taupe);
}

.community-panel-title {
  margin: 0 0 8px;
  font-family: var(--font-serif, var(--serif));
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.2;
}

.community-panel-copy {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.community-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-member-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.community-member-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--plum), #5a3127);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

.community-member-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-member-name {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
}

.community-quick-links {
  display: grid;
  gap: 4px;
}

.community-quick-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.community-quick-link:hover {
  background: color-mix(in srgb, var(--gold) 12%, #fff);
  color: var(--plum);
}

.community-quick-link.is-active {
  background: color-mix(in srgb, var(--plum) 8%, #fff);
  color: var(--plum);
}

.community-quick-link--accent {
  color: var(--plum);
  background: color-mix(in srgb, var(--gold) 10%, #fff);
}

.community-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--charcoal);
}

.community-steps strong {
  color: var(--plum);
  font-weight: 700;
}

@media (max-width: 960px) {
  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-aside {
    position: static;
    order: -1;
  }

  .community-guest-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .feed-shell {
    padding: 14px 14px 84px !important;
    height: auto !important;
    overflow: visible !important;
  }

  .feed-composer.portal-card {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .feed-composer-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  .feed-composer-row .feed-av {
    width: 40px;
    height: 40px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .feed-composer-prompt {
    flex: 1 !important;
    width: auto !important;
    order: 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .feed-composer-row .portal-btn {
    display: none !important;
  }

  .feed-card.portal-card {
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  /* Messages on Mobile */
  .fb-msg {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
  }

  .fb-msg:not(.is-chat-open) {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .fb-msg:not(.is-chat-open) .fb-msg-pane {
    display: none !important;
  }

  .fb-msg:not(.is-chat-open) .fb-msg-sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
    border-right: none !important;
  }

  .fb-msg:not(.is-chat-open) .fb-msg-list {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .fb-msg.is-chat-open {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .fb-msg.is-chat-open .fb-msg-sidebar {
    display: none !important;
  }

  .fb-msg.is-chat-open .fb-msg-pane {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
  }

  .fb-msg-chat-head {
    padding: 8px 12px;
    min-height: 54px;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .fb-msg-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background: rgba(139, 58, 47, 0.08) !important;
    color: var(--plum, #8B3A2F) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: background 0.15s, transform 0.15s;
  }

  .fb-msg-back:active {
    background: rgba(139, 58, 47, 0.2) !important;
    transform: scale(0.92);
  }

  .fb-msg-avatar--sm {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .fb-msg-chat-who {
    flex: 1;
    min-width: 0;
  }

  .fb-msg-chat-who a {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .fb-msg-chat-who span {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .fb-msg-chat-head .fb-btn {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .fb-msg-stream {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 10px 8px !important;
  }

  .fb-msg-compose {
    flex-shrink: 0 !important;
    padding: 8px 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .fb-msg-compose .cm-tools {
    margin-top: 0;
    margin-bottom: 4px;
  }

  /* Public Profile on Mobile */
  .drs-profile {
    margin-bottom: 24px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .drs-profile-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    gap: 12px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .drs-profile-photo {
    width: 84px;
    height: 84px;
    font-size: 28px;
    margin: 0 auto 2px;
    flex-shrink: 0;
  }

  .drs-profile-intro {
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  .drs-profile-intro .tournaments-kicker {
    margin-bottom: 4px;
  }

  .drs-profile-intro .portal-title {
    font-size: 26px;
    margin-bottom: 4px;
    line-height: 1.15;
  }

  .drs-profile-intro .portal-muted {
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.4;
  }

  .drs-profile-intro .portal-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }

  .drs-profile-intro .portal-actions-row .portal-btn {
    min-width: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 6px !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

  .drs-profile-intro .portal-actions-row .portal-btn:first-child {
    grid-column: auto;
  }

  .drs-profile-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .drs-profile-grid .portal-card {
    padding: 16px 14px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .drs-profile-dl>div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
    min-width: 0;
  }

  .drs-profile-dl dt {
    font-weight: 500;
  }

  .drs-profile-dl dd {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .m-dir-header {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .m-dir-search-wrap {
    flex-direction: column;
  }

  .m-dir-search-wrap .portal-btn {
    width: 100%;
    justify-content: center;
  }

  .m-dir-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .m-dir-card {
    padding: 14px;
    border-radius: 14px;
  }
}

/* —— Member directory styles —— */
.m-dir {
  margin-bottom: 40px;
}

.m-dir-header {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.m-dir-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.m-dir-search-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
}

.m-dir-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.m-dir-search-input-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.m-dir-search-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--charcoal);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.m-dir-search-input-wrap input:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(139, 58, 47, 0.12);
}

.m-dir-search-clear {
  position: absolute;
  right: 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 6px;
  cursor: pointer;
}

.m-dir-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--charcoal);
  padding: 0 4px;
}

.m-dir-result-bar a {
  color: var(--plum);
  font-weight: 600;
  text-decoration: underline;
}

.m-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.m-dir-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m-dir-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 39, 43, 0.08);
}

.m-dir-card--me {
  border-color: rgba(199, 146, 45, 0.45);
  background: linear-gradient(180deg, #fff 0%, #faf6f0 100%);
}

.m-dir-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-dir-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--plum), #5a3127);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.m-dir-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-dir-card-info {
  flex: 1;
  min-width: 0;
}

.m-dir-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-dir-card-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-dir-chip--me {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--gold, #C7922D);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.m-dir-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-dir-card-prof {
  font-size: 12px;
  color: var(--charcoal);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-dir-card-hcp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f4eee6;
  border: 1px solid rgba(199, 146, 45, 0.25);
  flex-shrink: 0;
  text-align: center;
}

.m-dir-card-hcp small {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.m-dir-card-hcp strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--plum, #8B3A2F);
}

.m-dir-card-bio {
  font-size: 12px;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-dir-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.m-dir-card-actions:has(.m-dir-action-btn:only-child) {
  grid-template-columns: 1fr;
}

.m-dir-action-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 11px;
  padding: 8px 10px;
}

/* ==========================================================================
   Multi-Step Member Registration Wizard
   ========================================================================== */

.m-wizard-wrap {
  max-width: 780px;
  margin: 0 auto 40px;
}

.m-wizard-header {
  margin-bottom: 24px;
}

.m-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 14px;
}

.m-wizard-progress-track {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--line, #e5ded4);
  z-index: 1;
}

.m-wizard-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--plum) 100%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.m-wizard-step-btn {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  transition: color 0.25s;
}

.m-wizard-step-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.m-wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface, #fff);
  border: 2px solid var(--line, #e5ded4);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.m-wizard-step-btn.is-active .m-wizard-step-circle {
  border-color: var(--gold);
  background: linear-gradient(145deg, #F0D07E 0%, #D8A033 100%);
  color: #1A1308;
  box-shadow: 0 0 0 4px rgba(216, 160, 51, 0.2), 0 4px 12px rgba(216, 160, 51, 0.35);
}

.m-wizard-step-btn.is-complete .m-wizard-step-circle {
  border-color: #2e7d32;
  background: #2e7d32;
  color: #fff;
}

.m-wizard-step-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.m-wizard-step-btn.is-active .m-wizard-step-title {
  color: var(--plum);
  font-weight: 700;
}

.m-wizard-step-btn.is-complete .m-wizard-step-title {
  color: var(--charcoal);
}

.m-wizard-pane {
  display: none;
  animation: mWizardFade 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.m-wizard-pane.is-active {
  display: block;
}

@keyframes mWizardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Upload dropzone styling */
.m-dropzone {
  border: 2px dashed var(--line, #e5ded4);
  background: var(--surface-subtle, #fbf8f5);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  position: relative;
}

.m-dropzone:hover,
.m-dropzone:focus-within {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 4%, #fff);
}

.m-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.m-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(199, 146, 45, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.m-dropzone-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.m-dropzone-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.m-dropzone-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

/* Photo 3:4 preview */
.m-photo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-subtle, #fbf8f5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.m-photo-preview-img {
  width: 72px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 25%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

/* Review & Fee cards */
.m-review-box {
  background: var(--surface-subtle, #fbf8f5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.m-review-box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.m-review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 18px;
  font-size: 13px;
}

.m-review-item dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.m-review-item dd {
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  word-break: break-word;
}

.m-fee-card {
  background: linear-gradient(145deg, color-mix(in srgb, var(--plum) 95%, #000), var(--plum));
  color: #fff;
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 24px;
  box-shadow: 0 16px 36px rgba(139, 58, 47, 0.22);
}

.m-fee-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.m-fee-price {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--gold, #E5BA5A);
}

.m-fee-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.m-fee-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-fee-perks svg {
  color: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .m-wizard-step-title {
    display: none;
  }

  .m-wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .m-wizard-progress-track {
    top: 15px;
    left: 20px;
    right: 20px;
  }

  .m-fee-perks {
    grid-template-columns: 1fr;
  }

  .m-photo-preview-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}