/* Youmongus Replicator v3 — intentionally minimal and theme-neutral. */
.yoe-rep-header,
.yoe-rep-value {
  display: inline;
}

.yoe-rep-header-content {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4em;
}

.yoe-rep-label,
.yoe-rep-name,
.yoe-rep-phone,
.yoe-rep-sep {
  line-height: inherit;
}

.yoe-rep-phone {
  color: inherit;
  text-decoration: none;
}

.yoe-rep-phone:hover,
.yoe-rep-phone:focus {
  text-decoration: underline;
}

.yoe-rep-sep {
  opacity: .55;
}

.yoe-rep-debug {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 520px) {
  .yoe-rep-header-content {
    gap: .3em;
  }
}

/* Rep profile identity output */
.yoe-rep-social,
.yoe-social-icons {
  display: inline-flex;
  align-items: center;
  gap: .5em;
}

.yoe-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--yoe-social-size, 20px) + 12px);
  height: calc(var(--yoe-social-size, 20px) + 12px);
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  opacity: .86;
  transition: opacity .15s ease, transform .15s ease;
}

.yoe-social-icon:hover,
.yoe-social-icon:focus {
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}

.yoe-social-icon svg {
  width: var(--yoe-social-size, 20px);
  height: var(--yoe-social-size, 20px);
  display: block;
}

.yoe-rep-photo {
  display: inline-block;
  width: var(--yoe-photo-size, 120px);
  height: var(--yoe-photo-size, 120px);
  overflow: hidden;
  vertical-align: middle;
  background: rgba(0,0,0,.05);
}

.yoe-rep-photo-circle { border-radius: 50%; }
.yoe-rep-photo-rounded { border-radius: 14px; }
.yoe-rep-photo-square { border-radius: 0; }

.yoe-rep-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.yoe-rep-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  color: #1d2327;
  max-width: 760px;
}

.yoe-rep-profile-card-body { min-width: 0; }
.yoe-rep-profile-card-name { font-size: 1.25em; font-weight: 700; }
.yoe-rep-profile-card-phone,
.yoe-rep-profile-card-email { margin-top: 4px; }
.yoe-rep-profile-card-bio { margin-top: 12px; line-height: 1.55; white-space: pre-line; }
.yoe-rep-profile-card-social { margin-top: 14px; }

/* Lightweight front-end rep portal */
.yoe-portal {
  --yoe-border: rgba(0,0,0,.12);
  --yoe-muted: #646970;
  --yoe-bg-soft: #f6f7f7;
  --yoe-action: #2271b1;
  --yoe-action-hover: #135e96;
  width: min(100%, 860px);
  margin: 24px auto;
  color: #1d2327;
}

.yoe-login-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--yoe-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.yoe-portal h2,
.yoe-portal h3 { margin-top: 0; }
.yoe-portal h2 { margin-bottom: 8px; }
.yoe-portal h3 { margin-bottom: 16px; font-size: 1.12rem; }

.yoe-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.yoe-dashboard-head p { margin: 0; color: var(--yoe-muted); }
.yoe-link-muted { color: var(--yoe-muted); }

.yoe-portal-notice {
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1px solid var(--yoe-border);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
}

.yoe-portal-notice-success { border-left-color: #00a32a; }
.yoe-portal-notice-warning { border-left-color: #dba617; }
.yoe-portal-notice-error { border-left-color: #d63638; }

.yoe-rep-link-panel,
.yoe-form-section {
  padding: 20px;
  margin: 0 0 18px;
  border: 1px solid var(--yoe-border);
  border-radius: 12px;
  background: #fff;
}

.yoe-rep-link-panel > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.yoe-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.yoe-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.yoe-form-field { min-width: 0; }
.yoe-form-field label,
.yoe-login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.yoe-form-field input,
.yoe-form-field textarea,
.yoe-copy-row input,
.yoe-login-card input[type="text"],
.yoe-login-card input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #8c8f94;
  border-radius: 7px;
  background: #fff;
  color: #1d2327;
  font: inherit;
}

.yoe-form-field textarea { min-height: 120px; resize: vertical; }
.yoe-help { margin: 7px 0 0; color: var(--yoe-muted); font-size: .92em; }

.yoe-check-row,
.yoe-remove-photo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.yoe-photo-editor {
  display: flex;
  align-items: center;
  gap: 20px;
}

.yoe-photo-preview {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--yoe-border);
  background: var(--yoe-bg-soft);
  font-size: 44px;
}

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

.yoe-file-button,
.yoe-button,
.yoe-login-card input[type="submit"] {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--yoe-action);
  border-radius: 7px;
  background: var(--yoe-action);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.yoe-file-button:hover,
.yoe-file-button:focus,
.yoe-button:hover,
.yoe-button:focus,
.yoe-login-card input[type="submit"]:hover,
.yoe-login-card input[type="submit"]:focus {
  background: var(--yoe-action-hover);
  border-color: var(--yoe-action-hover);
  color: #fff;
  text-decoration: none;
}

.yoe-button-secondary {
  background: #fff;
  border-color: #8c8f94;
  color: #1d2327;
}

.yoe-button-secondary:hover,
.yoe-button-secondary:focus {
  background: var(--yoe-bg-soft);
  border-color: #646970;
  color: #1d2327;
}

#rep_photo_upload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.yoe-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yoe-login-card .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
}

.yoe-login-links { margin-bottom: 0; }

@media (max-width: 680px) {
  .yoe-form-grid { grid-template-columns: 1fr; }
  .yoe-copy-row { grid-template-columns: 1fr; }
  .yoe-dashboard-head { flex-direction: column; }
  .yoe-photo-editor { align-items: flex-start; }
  .yoe-rep-profile-card { flex-direction: column; }
}

/* v3.2 native rep account + profile photo cropper */
.yoe-inline-form {
  display: inline;
  margin: 0;
}

.yoe-link-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yoe-muted, #646970);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.yoe-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.yoe-photo-actions .yoe-help {
  flex-basis: 100%;
}

.yoe-cropper[hidden] {
  display: none !important;
}

.yoe-cropper {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(220px, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--yoe-border, rgba(0,0,0,.12));
}

.yoe-crop-stage {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #8c8f94;
  border-radius: 12px;
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  touch-action: none;
}

.yoe-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.yoe-crop-stage canvas:active {
  cursor: grabbing;
}

.yoe-crop-controls label {
  display: block;
  font-weight: 600;
}

.yoe-crop-controls input[type="range"] {
  display: block;
  width: 100%;
  margin: 10px 0 18px;
}

.yoe-crop-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yoe-native-login .yoe-form-field + .yoe-form-field,
.yoe-login-card form .yoe-form-field + .yoe-form-field {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .yoe-cropper {
    grid-template-columns: 1fr;
  }
  .yoe-crop-stage {
    width: min(100%, 420px);
  }
}
