/* Manos Cerca — sistema visual compartido (Paso 25).
   Capa exclusivamente de presentación: no altera estados, datos ni navegación. */
:root {
  --mc-ink: #1b2640;
  --mc-ink-soft: #34415a;
  --mc-muted: #69778c;
  --mc-faint: #8c98aa;
  --mc-canvas: #f7f8fc;
  --mc-surface: #ffffff;
  --mc-line: #e6eaf1;
  --mc-line-strong: #d9deea;
  --mc-violet: #6752dc;
  --mc-violet-strong: #523bc4;
  --mc-violet-soft: #f1efff;
  --mc-green: #18795f;
  --mc-green-strong: #10694f;
  --mc-green-soft: #edf8f3;
  --mc-blue: #286b9b;
  --mc-blue-soft: #edf6fc;
  --mc-warning: #ae7012;
  --mc-warning-soft: #fff7e7;
  --mc-danger: #b94656;
  --mc-danger-soft: #fff1f3;
  --mc-shadow-sm: 0 4px 14px rgba(30, 43, 70, .06);
  --mc-shadow: 0 14px 34px rgba(30, 43, 70, .09);
  --mc-shadow-lg: 0 24px 60px rgba(27, 38, 64, .16);
  --mc-radius-sm: 10px;
  --mc-radius: 16px;
  --mc-radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--mc-canvas);
  color: var(--mc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(103, 82, 220, .24);
  outline-offset: 2px;
}
img { max-width: 100%; }
input, textarea {
  border: 1px solid var(--mc-line-strong) !important;
  border-radius: var(--mc-radius-sm) !important;
  color: var(--mc-ink) !important;
  background: #fff !important;
  box-shadow: 0 1px 1px rgba(31, 43, 67, .02);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input::placeholder, textarea::placeholder { color: #98a3b3; }
input:focus, textarea:focus {
  border-color: #998cf0 !important;
  box-shadow: 0 0 0 4px rgba(103, 82, 220, .10) !important;
  outline: 0;
}

/* Shared control hierarchy */
.btn, .client-btn, .provider-action, .admin-action, .moderator-action,
.mc-quote-actions button, .mc-quote-provider-actions button, .mc-schedule-actions button,
.mc-provider-schedule-actions button, .mc-reschedule-actions button, .inquiry-workflow-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -.08px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover, .client-btn:hover, .provider-action:hover, .admin-action:hover, .moderator-action:hover,
.mc-quote-actions button:hover, .mc-quote-provider-actions button:hover, .mc-schedule-actions button:hover,
.mc-provider-schedule-actions button:hover, .mc-reschedule-actions button:hover, .inquiry-workflow-actions button:hover {
  transform: translateY(-1px);
}
.btn.primary, .client-btn.primary, .client-btn:not(.secondary):not(.ghost):not(.danger),
.admin-action.primary, .mc-quote-actions .primary, .mc-schedule-actions .primary {
  background: var(--mc-violet) !important;
  color: #fff !important;
  box-shadow: 0 7px 15px rgba(103, 82, 220, .18);
}
.btn.primary:hover, .client-btn.primary:hover, .client-btn:not(.secondary):not(.ghost):not(.danger):hover,
.admin-action.primary:hover, .mc-quote-actions .primary:hover, .mc-schedule-actions .primary:hover {
  background: var(--mc-violet-strong) !important;
}
.provider-action, .provider-form-actions .provider-action, .inquiry-workflow-actions .provider-action,
.mc-provider-schedule-actions .provider-action, .mc-quote-provider-actions .provider-action {
  background: var(--mc-green) !important;
  color: #fff !important;
  box-shadow: 0 7px 15px rgba(24, 121, 95, .16);
}
.provider-action:hover, .provider-form-actions .provider-action:hover, .inquiry-workflow-actions .provider-action:hover,
.mc-provider-schedule-actions .provider-action:hover, .mc-quote-provider-actions .provider-action:hover {
  background: var(--mc-green-strong) !important;
}
.btn.ghost, .client-btn.secondary, .client-btn.ghost, .provider-action.secondary,
.provider-action.ghost, .admin-action.secondary, .moderator-action.secondary,
.mc-quote-actions .secondary, .mc-schedule-actions .secondary, .mc-reschedule-actions .secondary {
  color: var(--mc-ink-soft) !important;
  background: #fff !important;
  border: 1px solid var(--mc-line-strong) !important;
  box-shadow: none !important;
}
.btn.ghost:hover, .client-btn.secondary:hover, .client-btn.ghost:hover, .provider-action.secondary:hover,
.provider-action.ghost:hover, .admin-action.secondary:hover, .moderator-action.secondary:hover,
.mc-quote-actions .secondary:hover, .mc-schedule-actions .secondary:hover, .mc-reschedule-actions .secondary:hover {
  background: #f8f9fc !important;
  border-color: #c8d0df !important;
}
.danger, .btn.danger, .client-btn.danger, .provider-action.danger, .admin-action.danger, .moderator-action.danger,
.mc-cancel-action, .mc-quote-actions .danger, .mc-reschedule-actions .danger {
  color: var(--mc-danger) !important;
  background: var(--mc-danger-soft) !important;
  border: 1px solid #f2cbd1 !important;
  box-shadow: none !important;
}
.danger:hover, .btn.danger:hover, .client-btn.danger:hover, .provider-action.danger:hover, .admin-action.danger:hover,
.moderator-action.danger:hover, .mc-cancel-action:hover, .mc-quote-actions .danger:hover, .mc-reschedule-actions .danger:hover {
  background: #ffe6e9 !important;
}

/* Public home */
#site { background: var(--mc-surface); }
.top { background: #211b43; }
.top .wrap { color: #e4e0f8; }
.nav {
  min-height: 78px;
  gap: 22px;
}
.brand { color: var(--mc-ink); }
.brand i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(87, 62, 205, .23);
}
.navlinks { gap: 12px; }
.navlinks > a {
  color: #4e5a70;
  padding: 9px 8px;
  border-radius: 8px;
  font-weight: 620;
}
.navlinks > a:hover { color: var(--mc-violet); background: var(--mc-violet-soft); }
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  background: radial-gradient(circle at 78% 18%, #e7e2ff 0, transparent 25%), linear-gradient(115deg, #fbfaff, #f3f5ff);
}
.hero:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(103, 82, 220, .09);
  border-radius: 50%;
  right: -175px;
  bottom: -245px;
  pointer-events: none;
}
.hero-grid { gap: 58px; }
.eyebrow {
  background: var(--mc-violet-soft);
  color: #5a47bd;
  border: 1px solid #e4e0ff;
  letter-spacing: .05px;
}
.hero h1 { max-width: 670px; color: #201945; }
.hero p { color: #5e6b81; }
.searchbox {
  align-items: center;
  gap: 5px;
  border-radius: 18px;
  padding: 8px;
  border-color: #e6e5f0;
  box-shadow: 0 18px 42px rgba(60, 45, 126, .12);
}
.searchbox input { border: 0 !important; box-shadow: none !important; min-height: 44px; }
.searchbox input:focus { box-shadow: none !important; }
.searchbox button { min-height: 44px; border-radius: 12px; }
.searchbox .zone-search { background: transparent !important; }
.quick { gap: 9px; }
.chip {
  background: #fff;
  border: 1px solid var(--mc-line);
  color: #5d6980;
  font-weight: 600;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.chip:hover { color: var(--mc-violet); border-color: #cfc7ff; background: #faf9ff; transform: translateY(-1px); }
.hero-card { border-radius: 26px; padding: 17px; box-shadow: 0 28px 60px rgba(65, 45, 141, .16); }
.service-photo { border-radius: 17px; line-height: 1.15; }
.mini-person { padding: 16px 5px 5px; }
.avatar, .mini-person .avatar { flex: 0 0 40px; overflow: hidden; }
.section { padding: 80px 0; }
.section.tint { background: #f8f9fc; }
.title-row { gap: 20px; margin-bottom: 30px; }
.title-row h2 { font-size: clamp(26px, 3vw, 34px); color: var(--mc-ink); }
.title-row p { color: var(--mc-muted); }
.link { color: var(--mc-violet); padding: 8px 0; white-space: nowrap; }
.categories { gap: 16px; }
.category {
  min-height: 132px;
  padding: 19px;
  border-radius: var(--mc-radius);
  box-shadow: 0 2px 6px rgba(33, 42, 67, .02);
}
.category:hover { border-color: #b6aaff; box-shadow: var(--mc-shadow-sm); }
.category b { color: var(--mc-ink); }
.category span { color: var(--mc-muted); }
.cards { gap: 22px; }
.card { border-radius: var(--mc-radius); box-shadow: 0 2px 8px rgba(29, 42, 70, .025); }
.card:hover { box-shadow: var(--mc-shadow); }
.picture { height: 158px; }
.card-body { padding: 19px; }
.badge { border-radius: 99px; padding: 5px 9px; }
.card h3 { color: var(--mc-ink); }
.by { color: var(--mc-muted); }
.meta { color: var(--mc-muted); }
.how { gap: 18px; }
.step { padding: 22px; border-radius: var(--mc-radius); background: #fff; border: 1px solid var(--mc-line); }
.step:hover { box-shadow: var(--mc-shadow-sm); }
.step-no { font-size: 30px; }

/* Home: jerarquía visual exclusiva para “Así de simple”. */
#como-funciona {
  padding-block: 82px;
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
}
#como-funciona .title-row {
  margin-bottom: 32px;
}
#como-funciona .title-row h2 {
  color: #201a3f;
  font-size: clamp(30px, 3vw, 36px);
  letter-spacing: -1.3px;
}
#como-funciona .title-row p {
  max-width: 610px;
  margin-top: 3px;
  color: #5d687d;
  font-size: 15px;
  line-height: 1.55;
}
#como-funciona .how {
  gap: 20px;
}
#como-funciona .step {
  position: relative;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #faf8ff 0%, #f5f1ff 100%);
  border: 1px solid #e3dcfb;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(75, 55, 150, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#como-funciona .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 40px;
  padding: 6px 10px;
  color: #5b3fe4;
  background: #ebe5ff;
  border: 1px solid #dcd2ff;
  border-radius: 11px;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -1px;
}
#como-funciona .step h3 {
  margin: 20px 0 9px;
  color: #242039;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.25px;
}
#como-funciona .step p {
  margin: 0;
  color: #59667c;
  font-size: 14px;
  line-height: 1.65;
}
@media (hover: hover) and (pointer: fine) {
  #como-funciona .step:hover {
    transform: translateY(-4px);
    border-color: #cfc3f7;
    box-shadow: 0 16px 34px rgba(75, 55, 150, .12);
  }
}
@media (max-width: 800px) {
  #como-funciona {
    padding-block: 62px;
  }
  #como-funciona .title-row {
    margin-bottom: 26px;
  }
  #como-funciona .how {
    gap: 14px;
  }
  #como-funciona .step {
    padding: 24px;
  }
}
@media (max-width: 460px) {
  #como-funciona {
    padding-block: 52px;
  }
  #como-funciona .title-row h2 {
    font-size: 29px;
  }
  #como-funciona .step {
    padding: 21px;
    border-radius: 16px;
  }
  #como-funciona .step-no {
    min-width: 48px;
    min-height: 38px;
    font-size: 22px;
  }
  #como-funciona .step h3 {
    margin-top: 17px;
  }
}

/* Home: tratamiento visual exclusivo para “Explorá por categoría”. */
#categorias {
  padding-block: 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(105, 76, 224, .075), transparent 27%),
    linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  border-block: 1px solid #f1eef9;
}
#categorias .title-row {
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(107, 83, 199, .12);
}
#categorias .title-row h2 {
  margin-bottom: 9px;
  color: #201a3f;
  font-size: clamp(31px, 3vw, 38px);
  letter-spacing: -1.45px;
  line-height: 1.08;
}
#categorias .title-row p {
  color: #626b80;
  font-size: 15px;
  line-height: 1.55;
}
#categorias .category-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  color: #5639cf;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #dcd3f7;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(73, 50, 161, .07);
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#categorias .categories {
  gap: 18px;
  grid-auto-rows: 1fr;
}
#categorias .category {
  display: flex;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 168px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(155deg, #fff 44%, #fdfcff 100%);
  border: 1px solid #e2dcef;
  border-radius: 21px;
  box-shadow: 0 9px 24px rgba(49, 37, 100, .055);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
#categorias .category::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -52px;
  right: -48px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 83, 225, .09), rgba(114, 83, 225, 0) 69%);
  pointer-events: none;
}
#categorias .category.has-services {
  background: linear-gradient(150deg, #fff 28%, #f8f5ff 100%);
  border-color: #d5caf5;
  box-shadow: 0 10px 26px rgba(78, 54, 172, .075);
}
#categorias .category .icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  overflow: hidden;
  color: #5d43d8;
  background: linear-gradient(145deg, #f5f2ff, #ece6ff);
  border: 1px solid #ded4ff;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 6px 14px rgba(81, 57, 169, .09);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 24px;
  font-style: normal;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}
#categorias .category b {
  display: flex;
  min-height: 2.6em;
  align-items: flex-start;
  margin-top: 19px;
  color: #27213c;
  font-size: 15px;
  font-weight: 790;
  line-height: 1.3;
  letter-spacing: -.15px;
  text-wrap: balance;
}
#categorias .category span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-top: auto;
  padding: 5px 9px;
  color: #697184;
  background: #f5f4f8;
  border: 1px solid #ece9f1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 730;
  line-height: 1;
}
#categorias .category.has-services span {
  color: #5638c8;
  background: #eee9ff;
  border-color: #ded4ff;
}
@media (hover: hover) and (pointer: fine) {
  #categorias .category:hover {
    transform: translateY(-5px);
    border-color: #c4b5f1;
    box-shadow: 0 18px 34px rgba(63, 43, 145, .12);
  }
  #categorias .category:hover .icon {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 9px 18px rgba(81, 57, 169, .14);
  }
  #categorias .category-all-link:hover {
    color: #4d32c4;
    background: #f0ebff;
    border-color: #d2c7f8;
    box-shadow: 0 8px 18px rgba(79, 55, 163, .09);
    transform: translateY(-1px);
    text-decoration: none;
  }
}
@media (max-width: 800px) {
  #categorias {
    padding-block: 64px;
  }
  #categorias .title-row {
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 21px;
  }
  #categorias .category {
    min-height: 158px;
    padding: 19px;
  }
}
@media (max-width: 460px) {
  #categorias {
    padding-block: 54px;
  }
  #categorias .title-row {
    gap: 16px;
    padding-bottom: 20px;
  }
  #categorias .title-row h2 {
    font-size: 29px;
  }
  #categorias .category-all-link {
    width: 100%;
    min-height: 40px;
    padding-inline: 13px;
  }
  #categorias .categories {
    gap: 12px;
  }
  #categorias .category {
    min-height: 154px;
    padding: 16px;
    border-radius: 18px;
  }
  #categorias .category .icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
    font-size: 22px;
  }
  #categorias .category b {
    margin-top: 16px;
    font-size: 13.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #categorias .category,
  #categorias .category .icon,
  #categorias .category-all-link {
    transition: none;
  }
}
.cta { border-radius: var(--mc-radius-lg); box-shadow: var(--mc-shadow); }
.footer { border-top: 1px solid var(--mc-line); background: #fff; }

/* Public profile 2.0 */
.public-profile, .profile-public, .mc-public-profile {
  color: var(--mc-ink);
}
.profile-banner, .public-profile-banner, .profile-cover {
  min-height: 178px;
  border-radius: var(--mc-radius-lg) var(--mc-radius-lg) 0 0;
  background: linear-gradient(118deg, #30255f, #5c49bd 57%, #8071dc) !important;
  position: relative;
  overflow: hidden;
}
.profile-banner:after, .public-profile-banner:after, .profile-cover:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  right: -75px;
  top: -125px;
}
.profile-card, .public-profile-card, .profile-header-card {
  background: #fff;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-lg);
  box-shadow: var(--mc-shadow);
  overflow: hidden;
}
.profile-avatar, .public-profile-avatar, .client-provider-avatar, .provider-profile-avatar {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  object-fit: cover !important;
  border: 4px solid #fff;
  box-shadow: 0 5px 16px rgba(26, 37, 62, .16);
}
.profile-avatar img, .public-profile-avatar img, .client-provider-avatar img, .provider-profile-avatar img,
.client-account img, .client-person img, .provider-avatar img, .provider-photo-preview img,
.mc-avatar img, .admin-avatar img, .moderator-avatar img, .avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
  object-fit: cover !important;
}
.profile-identity-actions, .public-profile-actions, .profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.profile-identity-actions .btn, .public-profile-actions .btn, .profile-actions .btn { min-height: 40px; }
.report-action, .report-button, .public-report-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px !important;
  border: 1px solid #e4e7ef !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #69758a !important;
  font-size: 12px !important;
  font-weight: 680 !important;
  line-height: 1;
  box-shadow: none !important;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.report-action:hover, .report-button:hover, .public-report-action:hover {
  color: var(--mc-danger) !important;
  background: #fff8f8 !important;
  border-color: #f0cfd3 !important;
}
.public-services-section, .public-reviews-section, .client-provider-data, .profile-coverage,
.mc-public-availability {
  border-radius: var(--mc-radius);
}
.public-service-card, .public-review-card {
  border: 1px solid var(--mc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 43, 67, .025);
}
.public-service-card:hover { border-color: #cfc7ff; box-shadow: var(--mc-shadow-sm); }
.public-review-card { border-left: 3px solid #7d69df; }
.public-section-kicker { color: var(--mc-violet); font-weight: 760; letter-spacing: .05em; text-transform: uppercase; font-size: 11px; }
.public-section-title { color: var(--mc-ink); letter-spacing: -.45px; }

/* Modals shared by auth, requests, chat, quotes, schedule, reports and history */
.modal, .client-modal, .mc-schedule-modal, .mc-quote-modal, .mc-quote-feedback-modal,
.mc-cancellation-modal, .mc-reschedule-modal, .provider-conversation-modal, .mc-notifications-modal,
.report-modal, .admin-modal, .moderator-modal {
  background: rgba(22, 29, 48, .56) !important;
  backdrop-filter: blur(4px);
}
.dialog, .client-modal > div, .mc-schedule-modal > div, .mc-quote-modal > div,
.mc-quote-feedback-modal > div, .mc-cancellation-modal > div, .mc-reschedule-modal > div,
.report-modal > div, .admin-modal > div, .moderator-modal > div {
  border: 1px solid rgba(223, 227, 237, .9);
  border-radius: 18px !important;
  box-shadow: var(--mc-shadow-lg) !important;
}
.close, .client-x, .provider-conversation-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f5f9;
  color: #647086;
}
.close:hover, .client-x:hover, .provider-conversation-close:hover { background: #eceef5; color: var(--mc-ink); }
.tabs { border: 1px solid var(--mc-line); background: #f7f7fb; }

/* Client experience */
#clientPanel, .client-panel { background: var(--mc-canvas); }
.client-head {
  background: #fff !important;
  border-bottom: 1px solid var(--mc-line);
  box-shadow: 0 2px 12px rgba(30, 43, 70, .035);
}
.client-head-inner { min-height: 74px; gap: 18px; }
.client-head .brand { font-size: 20px; }
.client-account, .client-nav-account {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--mc-ink-soft);
  font-weight: 680;
}
.client-account > span, .client-nav-account > span {
  display: block;
  width: auto !important;
  max-width: 190px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-account img, .client-nav-account img, .client-person img {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  object-fit: cover !important;
  border: 2px solid #f1efff;
}
.client-layout { gap: 26px; padding-top: 28px; padding-bottom: 42px; }
.client-side {
  padding: 12px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: #fff;
  box-shadow: var(--mc-shadow-sm);
}
.client-side button {
  min-height: 43px;
  margin: 2px 0;
  border-radius: 10px;
  font-weight: 650;
  color: #59677c;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.client-side button:hover { color: var(--mc-violet); background: #f7f5ff; }
.client-side button.active { color: var(--mc-violet) !important; background: var(--mc-violet-soft) !important; }
.client-main { min-width: 0; }
.client-home-welcome, .client-main > h1, .client-main > h2 { color: var(--mc-ink); letter-spacing: -.65px; }
.client-summary, .client-stats, .client-stat-grid { gap: 14px; }
.client-summary > *, .client-stat, .client-card, .client-profile-card, .client-contact-card {
  border: 1px solid var(--mc-line) !important;
  border-radius: var(--mc-radius) !important;
  background: #fff !important;
  box-shadow: var(--mc-shadow-sm);
}
.client-card, .client-profile-card, .client-contact-card { padding: 20px !important; }
.client-card:hover, .client-contact-card:hover { box-shadow: var(--mc-shadow); }
.client-row { gap: 15px; align-items: flex-start; }
.client-row > * { min-width: 0; }
.client-service { color: var(--mc-ink); font-weight: 760; }
.client-status, .provider-pill, .status, .mc-status-badge, .request-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: .02em;
  background: #eef2ff;
  color: #5364a3;
  border: 1px solid #dce3ff;
}
.client-status.aceptada, .provider-pill.aceptada, .status.active, .status.activa, .mc-status-badge.accepted {
  background: var(--mc-green-soft); color: var(--mc-green); border-color: #ccebdc;
}
.client-status.en-curso, .provider-pill.en-curso, .client-status.en_curso, .provider-pill.en_curso,
.mc-status-badge.in-progress { background: var(--mc-blue-soft); color: var(--mc-blue); border-color: #cde5f6; }
.client-status.pendiente, .provider-pill.pendiente, .mc-status-badge.pending { background: var(--mc-warning-soft); color: var(--mc-warning); border-color: #f3dfaa; }
.client-status.completada, .provider-pill.completada, .mc-status-badge.completed { background: #e8f6ee; color: #17724f; border-color: #c5e7d3; }
.client-status.rechazada, .provider-pill.rechazada, .client-status.cancelada, .provider-pill.cancelada,
.mc-status-badge.rejected, .mc-status-badge.cancelled { background: var(--mc-danger-soft); color: var(--mc-danger); border-color: #f2cbd1; }
.client-request-action, .inquiry-secondary-actions, .mc-quote-actions, .mc-quote-provider-actions,
.mc-schedule-actions, .mc-provider-schedule-actions, .mc-reschedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.client-request-action { padding-top: 15px; margin-top: 15px; border-top: 1px solid #edf0f5; }
.client-profile-card { display: grid; gap: 13px; }
.client-provider-data { background: #fafaff; border: 1px solid #ecebfa; padding: 14px; }

/* Quotes, appointments, cancellations and request timeline */
.mc-quote-card, .mc-schedule-card, .mc-reschedule-card, .mc-cancellation-card, .mc-request-history {
  background: #fbfcff !important;
  border: 1px solid var(--mc-line) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
}
.mc-quote-card { border-left: 4px solid #7964e2 !important; }
.mc-quote-card.accepted { border-left-color: var(--mc-green) !important; background: #f5fcf8 !important; }
.mc-quote-card.rejected, .mc-quote-card.expired { border-left-color: var(--mc-danger) !important; background: #fff9f9 !important; }
.mc-quote-card.revision_requested { border-left-color: var(--mc-warning) !important; background: #fffcf5 !important; }
.mc-quote-head { align-items: baseline; gap: 12px; }
.mc-quote-head strong, .mc-quote-amount { font-size: 21px; color: var(--mc-ink); letter-spacing: -.4px; }
.mc-quote-card.accepted .mc-quote-amount { color: var(--mc-green); }
.mc-quote-history { border-top: 1px solid #e8edf3; }
.mc-schedule-card.confirmed { background: #f5fcf8 !important; border-color: #ccebdc !important; }
.mc-schedule-provider, .mc-reschedule-current, .mc-reschedule-pending { border-radius: 10px; }
.mc-reschedule-current { background: #f2f5fb !important; }
.mc-reschedule-pending { background: var(--mc-warning-soft) !important; border: 1px solid #f0ddae !important; }
.mc-cancellation-card { background: #fff9f9 !important; border-left: 4px solid var(--mc-danger) !important; }
.mc-request-history { padding: 16px !important; }
.mc-request-history ul, .mc-request-history ol { margin: 12px 0 0; }
.mc-request-history li {
  position: relative;
  padding: 0 0 18px 35px;
  color: var(--mc-ink-soft);
}
.mc-request-history li:last-child { padding-bottom: 2px; font-weight: 680; color: var(--mc-ink); }
.mc-request-history li:before {
  content: "";
  position: absolute;
  left: 11px;
  top: 27px;
  bottom: -2px;
  width: 1px;
  background: #dfe5ef;
}
.mc-request-history li:last-child:before { display: none; }
.mc-history-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mc-violet-soft);
  font-size: 12px;
}

/* Chat and notifications */
.client-conversation, .provider-conversation {
  border: 1px solid var(--mc-line) !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--mc-shadow-lg);
}
.client-conversation-head, .provider-conversation-head {
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--mc-line) !important;
  background: #fafbfe !important;
}
.client-message-list, .provider-message-list {
  background: #f7f8fc !important;
  padding: 18px !important;
  gap: 10px;
}
.client-message, .provider-message {
  max-width: min(76%, 520px);
  padding: 10px 12px !important;
  border: 1px solid #e0e5ee;
  border-radius: 14px 14px 14px 5px !important;
  background: #fff !important;
  color: var(--mc-ink) !important;
  box-shadow: 0 2px 5px rgba(36, 48, 77, .04);
}
.client-message.own, .provider-message.own {
  border-color: transparent !important;
  border-radius: 14px 14px 5px 14px !important;
  background: var(--mc-violet) !important;
  color: #fff !important;
}
.provider-message.own { background: var(--mc-green) !important; }
.client-message small, .provider-message small, .client-message time, .provider-message time {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  opacity: .72;
}
.client-message-form, .provider-message-form {
  display: flex;
  gap: 9px;
  padding: 13px !important;
  border-top: 1px solid var(--mc-line);
  background: #fff;
}
.client-message-form input, .provider-message-form input, .client-message-form textarea, .provider-message-form textarea {
  min-width: 0;
  flex: 1;
}
.client-message-form button, .provider-message-form button { min-height: 38px; }
.mc-notification-bell {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 39px;
  height: 39px;
  border: 1px solid var(--mc-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #56637a !important;
}
.mc-notification-bell:hover { background: var(--mc-violet-soft) !important; border-color: #d8d0ff !important; color: var(--mc-violet) !important; }
.mc-notification-dot, .mc-notification-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mc-danger) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 760;
  border: 2px solid #fff;
}
.mc-notifications-panel {
  width: min(390px, calc(100vw - 28px)) !important;
  max-height: min(610px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--mc-line) !important;
  border-radius: 17px !important;
  box-shadow: var(--mc-shadow-lg) !important;
  background: #fff !important;
}
.mc-notification-item { padding: 13px 15px !important; border-bottom: 1px solid #edf0f5; }
.mc-notification-item.unread { background: #f5f3ff !important; }
.mc-notification-item:hover { background: #f9fafc !important; }

/* Provider workspace */
#providerWorkspace, .provider-shell { background: #f5f9f7; }
.provider-sidebar {
  background: #173f36 !important;
  box-shadow: 12px 0 32px rgba(18, 62, 52, .08);
}
.provider-logo, .provider-sidebar .brand { color: #fff !important; }
.provider-logo i { background: rgba(255, 255, 255, .14) !important; box-shadow: none !important; }
#providerNav button, .provider-sidebar button {
  color: #d6eee5 !important;
  border-radius: 10px !important;
  font-weight: 650;
}
#providerNav button:hover, .provider-sidebar button:hover { color: #fff !important; background: rgba(255,255,255,.09) !important; }
#providerNav button.active, .provider-sidebar button.active { color: #fff !important; background: rgba(102, 208, 163, .22) !important; }
.provider-main { background: #f5f9f7 !important; }
.provider-top { min-height: 76px; background: #fff !important; border-bottom: 1px solid #dfeae5; }
.provider-kicker { color: var(--mc-green) !important; }
.provider-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  object-fit: cover !important;
  border: 2px solid #ddf1e9;
}
.provider-content { padding-bottom: 42px !important; }
.provider-welcome h1, .provider-content h1, .provider-content h2 { color: var(--mc-ink); letter-spacing: -.65px; }
.provider-card, .provider-form-card, .inquiry, .provider-service, .provider-rating {
  border: 1px solid #dfeae5 !important;
  border-radius: var(--mc-radius) !important;
  background: #fff !important;
  box-shadow: var(--mc-shadow-sm);
}
.provider-card:hover, .inquiry:hover, .provider-service:hover { box-shadow: var(--mc-shadow); }
.provider-stats { gap: 14px; }
.provider-stats > *, .provider-grid > * { min-width: 0; }
.provider-toolbar { gap: 12px; }
.provider-service-grid { gap: 18px; }
.provider-service { overflow: hidden; }
.provider-service-photo { min-height: 142px; }
.provider-service-body { padding: 18px !important; }
.provider-pill { background: #edf8f3; color: var(--mc-green); border-color: #cde9dc; }
.inquiry { padding: 19px !important; }
.inquiry-layout { gap: 18px !important; align-items: stretch !important; }
.inquiry-main { min-width: 0; }
.inquiry-head { gap: 10px; }
.inquiry-workflow {
  border-left: 1px solid #e4eee9;
  padding-left: 17px;
  min-width: 215px;
}
.inquiry-workflow-actions { display: grid; grid-template-columns: 1fr; margin-top: 11px; }
.inquiry-secondary-actions { padding-top: 14px; margin-top: 14px; border-top: 1px solid #e9f0ed; }
.inquiry-workflow:has(.mc-schedule-provider-actions:empty):not(:has(.inquiry-workflow-actions)) {
  min-width: auto;
  width: auto;
  padding-left: 0;
  border-left: 0;
  align-self: flex-start;
}
.inquiry-layout:has(.inquiry-workflow > .mc-schedule-provider-actions:empty):not(:has(.inquiry-workflow-actions)) {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
.inquiry-workflow > .mc-schedule-provider-actions:empty { display: none; }
.provider-client-tag {
  background: #edf8f3 !important;
  color: #22755f !important;
  border: 1px solid #d3ebdf !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 720;
}
.provider-tag-add { border-radius: 999px !important; }
.provider-form-grid { gap: 16px; }
.provider-photo-preview, .provider-photo-preview img {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  object-fit: cover !important;
}

/* Administration and moderation share the same information-dense language. */
#dashboard, #moderationDashboard { background: var(--mc-canvas); color: var(--mc-ink); }
#dashboard .nav, #moderationDashboard .nav { background: #fff; }
#dashboard .dash-header { background: linear-gradient(115deg, #f2efff, #f7f8fc) !important; }
#dashboard .side, #moderationDashboard aside, .admin-sidebar, .moderation-sidebar {
  border: 1px solid var(--mc-line) !important;
  border-radius: var(--mc-radius) !important;
  background: #fff !important;
  box-shadow: var(--mc-shadow-sm);
}
#dashboard .side button, #moderationDashboard aside button, .admin-sidebar button, .moderation-sidebar button {
  min-height: 40px;
  margin: 2px 0;
  border-radius: 9px !important;
  color: #57657a !important;
  font-weight: 650;
}
#dashboard .side button:hover, .admin-sidebar button:hover { color: var(--mc-violet) !important; background: var(--mc-violet-soft) !important; }
#dashboard .side button.active, .admin-sidebar button.active { background: var(--mc-violet-soft) !important; color: var(--mc-violet) !important; }
#moderationDashboard aside button:hover, .moderation-sidebar button:hover { color: var(--mc-blue) !important; background: var(--mc-blue-soft) !important; }
#moderationDashboard aside button.active, .moderation-sidebar button.active { color: var(--mc-blue) !important; background: var(--mc-blue-soft) !important; }
#dashboard .panel, #moderationDashboard .panel, .admin-content, .moderation-content {
  border: 1px solid var(--mc-line) !important;
  border-radius: var(--mc-radius) !important;
  background: #fff !important;
  box-shadow: var(--mc-shadow-sm);
}
#dashboard .stat, #moderationDashboard .stat, .admin-stat, .moderation-stat {
  border: 1px solid var(--mc-line) !important;
  border-radius: 13px !important;
  background: #fbfcff !important;
}
#dashboard .stat b, #moderationDashboard .stat b, .admin-stat strong, .moderation-stat strong { color: var(--mc-ink) !important; }
#dashboard .list-row, #moderationDashboard .list-row, .admin-row, .moderation-row {
  gap: 14px;
  padding: 15px 0 !important;
  border-color: #edf0f5 !important;
}
#dashboard table, #moderationDashboard table { width: 100%; border-collapse: separate; border-spacing: 0; }
#dashboard th, #moderationDashboard th { background: #f7f8fb; color: #68758a; text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
#dashboard th, #dashboard td, #moderationDashboard th, #moderationDashboard td { padding: 12px 13px; border-bottom: 1px solid #edf0f5; }
#dashboard tr:last-child td, #moderationDashboard tr:last-child td { border-bottom: 0; }
#dashboard .status, #moderationDashboard .status { white-space: nowrap; }

/* Robust avatar containment for every panel and form preview. */
.client-account, .client-person, .provider-avatar, .provider-photo-preview, .admin-avatar, .moderator-avatar,
.mc-avatar, .profile-avatar, .public-profile-avatar, .client-provider-avatar, .provider-profile-avatar {
  overflow: hidden;
}

/* Comfortable layouts at narrower widths. */
@media (max-width: 1100px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inquiry-layout { grid-template-columns: minmax(0, 1fr) 225px !important; }
}
@media (max-width: 820px) {
  .hero { padding: 58px 0; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: clamp(38px, 9vw, 48px); }
  .section { padding: 56px 0; }
  .client-layout { grid-template-columns: 1fr !important; }
  .client-side { display: flex; gap: 7px; overflow-x: auto; padding: 9px; }
  .client-side button { white-space: nowrap; flex: 0 0 auto; padding: 10px 12px; }
  .inquiry-layout { grid-template-columns: 1fr !important; }
  .inquiry-workflow { border-left: 0; border-top: 1px solid #e4eee9; padding: 15px 0 0; min-width: 0; }
  .provider-stats, .client-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #dashboard .dash-grid, #moderationDashboard .dash-grid { grid-template-columns: 1fr !important; }
  #dashboard .side, #moderationDashboard aside, .admin-sidebar, .moderation-sidebar { display: flex; overflow-x: auto; gap: 6px; padding: 9px; }
  #dashboard .side button, #moderationDashboard aside button, .admin-sidebar button, .moderation-sidebar button { white-space: nowrap; flex: 0 0 auto; padding: 9px 11px; }
}
@media (max-width: 620px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { display: none; }
  .nav { min-height: 68px; }
  .brand { font-size: 18px; }
  .brand i { width: 32px; height: 32px; }
  .navlinks { display: flex !important; gap: 4px; margin-left: auto; }
  .navlinks > a { display: none; }
  .navlinks .btn { padding: 9px 10px; font-size: 12px; }
  .hero { padding: 45px 0 48px; }
  .hero p { font-size: 16px; }
  .searchbox { display: grid; grid-template-columns: 1fr; padding: 8px; }
  .searchbox .zone-search { width: 100%; border-left: 0 !important; border-top: 1px solid #ececf4 !important; }
  .searchbox button { width: 100%; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .category { min-height: 118px; padding: 15px; }
  .cards { grid-template-columns: 1fr; }
  .title-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .cta { padding: 29px 24px; }
  .cta h2 { font-size: 25px; }
  .client-head-inner { min-height: 67px; gap: 9px; }
  .client-head .brand { font-size: 16px; }
  .client-account { max-width: 126px; font-size: 12px; }
  .client-account > :not(img) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .client-layout { padding-top: 17px; gap: 17px; }
  .client-card, .client-profile-card, .client-contact-card { padding: 16px !important; }
  .client-row { flex-direction: column; gap: 10px; }
  .client-request-action, .inquiry-secondary-actions, .mc-quote-actions, .mc-quote-provider-actions, .mc-schedule-actions, .mc-provider-schedule-actions, .mc-reschedule-actions { align-items: stretch; }
  .client-request-action > *, .inquiry-secondary-actions > *, .mc-quote-actions > *, .mc-quote-provider-actions > *, .mc-schedule-actions > *, .mc-provider-schedule-actions > *, .mc-reschedule-actions > * { flex: 1 1 145px; }
  .client-message, .provider-message { max-width: 88%; }
  .client-message-list, .provider-message-list { padding: 12px !important; }
  .client-message-form, .provider-message-form { padding: 10px !important; }
  .provider-top { padding: 0 15px !important; }
  .provider-top { min-height: auto !important; padding-top: 16px !important; padding-bottom: 14px !important; align-items: flex-start !important; flex-wrap: wrap; }
  .provider-top > :first-child { width: 100%; }
  .provider-top-actions { width: 100%; display: grid !important; grid-template-columns: 39px minmax(0, 1fr) 39px; align-items: center; gap: 9px; }
  .provider-top-actions .provider-action { width: 100%; white-space: nowrap; }
  .provider-top-actions .provider-avatar { justify-self: end; }
  .provider-sidebar .provider-logout { display: inline-flex !important; width: auto !important; margin: 0 0 0 4px !important; white-space: nowrap; }
  .provider-content { padding-left: 15px !important; padding-right: 15px !important; }
  .provider-stats, .client-summary { grid-template-columns: 1fr !important; }
  .provider-toolbar, .provider-top-actions { flex-wrap: wrap; }
  .provider-form-grid { grid-template-columns: 1fr !important; }
  .profile-avatar, .public-profile-avatar, .client-provider-avatar, .provider-profile-avatar { width: 78px !important; height: 78px !important; min-width: 78px !important; }
  .profile-identity-actions, .public-profile-actions, .profile-actions { align-items: stretch; }
  .profile-identity-actions .btn, .public-profile-actions .btn, .profile-actions .btn { flex: 1 1 145px; }
  #dashboard .panel, #moderationDashboard .panel { padding: 16px !important; overflow-x: auto; }
  #dashboard .stat-grid, #moderationDashboard .stat-grid { grid-template-columns: 1fr !important; }
  #dashboard th, #dashboard td, #moderationDashboard th, #moderationDashboard td { white-space: nowrap; }
  .dialog { padding: 22px 18px; }
}
/* Paso 25.1: densidad, jerarquía y acciones progresivas. */
.auth-registration-progress{margin:0 0 14px;color:#6953dc;font-size:12px;font-weight:800;letter-spacing:.02em}
.auth-step-two{display:none}
.client-account,.provider-top-actions{position:relative!important;overflow:visible!important;isolation:isolate}
.client-account .mc-notification-bell,.provider-top-actions .mc-notification-bell{z-index:8!important;overflow:visible!important}
.mc-notification-bell em{z-index:2!important;white-space:nowrap}
.client-settings-card{display:grid;gap:0;padding:0!important;overflow:hidden}
.client-settings-card section{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;padding:17px 18px;border-top:1px solid #eceef4}
.client-settings-card section:first-child{border-top:0}.client-settings-card b{font-size:14px;color:#2d3650}.client-settings-card small{grid-column:1;color:#738095;font-size:12px}.client-settings-card .client-btn{grid-column:2;grid-row:1 / span 2;align-self:center;margin:0}
.client-request-summary,.provider-request-summary{display:flex;flex-wrap:wrap;gap:6px 9px;margin:10px 0 2px}
.client-request-summary span,.provider-request-summary span{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:8px;background:#f6f7fb;color:#5f6f84;font-size:11px;font-weight:700;line-height:1.25}
.provider-request-summary span{background:#f2faf7;color:#3c665d}
.client-row:not(.show-details) .mc-client-quote,.client-row:not(.show-details) .mc-schedule-client,.client-row:not(.show-details) .mc-client-reschedule,.client-row:not(.show-details) .mc-request-history{display:none!important}
.inquiry:not(.show-details) .mc-provider-quote,.inquiry:not(.show-details) .mc-schedule-provider,.inquiry:not(.show-details) .mc-provider-reschedule,.inquiry:not(.show-details) .mc-request-history,.inquiry:not(.show-details) .mc-quote-provider-actions,.inquiry:not(.show-details) .mc-schedule-provider-actions{display:none!important}
.client-details-toggle,.provider-details-toggle{box-shadow:none!important}.provider-details-toggle{background:#edf6f3!important;color:#286b5c!important}
.provider-stat-link{cursor:pointer!important}.provider-stat-link:hover{border-color:#bedfd5!important;box-shadow:0 12px 24px rgba(22,105,85,.1)!important}.provider-stat-info{cursor:default!important}.provider-stat-info:hover{transform:none!important;box-shadow:0 9px 24px rgba(23,66,59,.045)!important}
.provider-welcome{margin-bottom:14px}.provider-stats{margin-bottom:18px}.provider-grid{align-items:start}.provider-card{min-height:0}
.public-service-request{margin-top:10px!important}.public-service-card{align-items:start}
.admin-logout{margin:8px 0 0;padding:11px 12px;border:1px solid #4b456c;border-radius:9px;background:transparent;color:#ddd8ef;text-align:left;font-size:13px;font-weight:750;cursor:pointer}.admin-logout:hover{border-color:#9a8ce9;background:#32285e;color:#fff}.admin-stat-operational{border-color:#ddd8fa;box-shadow:0 8px 18px rgba(78,61,173,.06)}
.moderation-stat-link{cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s}.moderation-stat-link:hover{transform:translateY(-2px);border-color:#bdd8e8;box-shadow:0 12px 25px rgba(22,77,113,.1)}.moderation-category-create{display:flex;justify-content:flex-end;margin:0 0 12px}.moderation-measure-applied{margin:12px 0 0;padding:9px 11px;border-radius:8px;background:#e9f7ef;color:#176f52;font-size:12px;font-weight:800}.moderation-account-actions{display:flex;gap:7px;flex-wrap:wrap;margin-left:auto}
@media (max-width:780px){.client-settings-card section{grid-template-columns:1fr;padding:15px}.client-settings-card .client-btn{grid-column:1;grid-row:auto;justify-self:start;margin-top:4px}.client-request-summary,.provider-request-summary{gap:6px}.client-request-summary span,.provider-request-summary span{max-width:100%;overflow-wrap:anywhere}.moderation-account{align-items:flex-start;flex-wrap:wrap}.moderation-account-actions{width:100%;margin-left:0}.admin-logout{display:none}}

@media (max-width: 390px) {
  .nav { gap: 7px; }
  .navlinks .btn.ghost { display: inline-flex !important; }
  .navlinks .btn { padding: 8px 8px; font-size: 11px; }
  .client-account { max-width: 105px; }
  .client-account img { width: 34px !important; height: 34px !important; min-width: 34px !important; }
  .mc-notifications-panel { width: calc(100vw - 18px) !important; }
}

/* --------------------------------------------------------------------------
   Manos Cerca 3.1 — capa de jerarquía y densidad.
   Solo presentación: reutiliza el marcado y las acciones existentes.        */
:root {
  --mc-ink: #242536;
  --mc-ink-soft: #42455b;
  --mc-muted: #74778a;
  --mc-faint: #9699a8;
  --mc-canvas: #f8f8fc;
  --mc-surface: #fff;
  --mc-line: #e7e8f0;
  --mc-line-strong: #d9dbe7;
  --mc-violet: #6d52e7;
  --mc-violet-strong: #5b42ce;
  --mc-violet-soft: #f1eeff;
  --mc-green: #218665;
  --mc-green-strong: #176f52;
  --mc-green-soft: #ebf7f1;
  --mc-blue: #2f80b8;
  --mc-blue-soft: #edf6fb;
  --mc-danger: #bd5260;
  --mc-danger-soft: #fff1f3;
  --mc-radius-sm: 12px;
  --mc-radius: 16px;
  --mc-radius-lg: 20px;
  --mc-shadow-sm: 0 5px 18px rgba(36, 37, 54, .055);
  --mc-shadow: 0 16px 38px rgba(36, 37, 54, .09);
  --mc-shadow-lg: 0 28px 66px rgba(29, 31, 50, .16);
}

body { letter-spacing: -.01em; }
h1, h2, h3, h4, b, strong { letter-spacing: -.025em; }
button, input, textarea { border-radius: var(--mc-radius-sm); }
button { font-weight: 700; }
.btn, .client-btn, .provider-action, .admin-action, .moderation-action, .moderator-action {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 13px;
}
.btn.ghost, .client-btn.subtle, .client-btn.ghost, .provider-action.secondary,
.provider-action.ghost, .admin-action.secondary, .moderation-action:not(.primary):not(.danger):not(.success),
.moderator-action.secondary {
  background: #fff !important;
  border: 1px solid var(--mc-line) !important;
  color: var(--mc-ink-soft) !important;
  box-shadow: none !important;
}
.btn.ghost:hover, .client-btn.subtle:hover, .client-btn.ghost:hover, .provider-action.secondary:hover,
.provider-action.ghost:hover, .admin-action.secondary:hover, .moderation-action:not(.primary):not(.danger):not(.success):hover,
.moderator-action.secondary:hover { background: #f8f8fc !important; border-color: #cdd0dd !important; }

/* Public navigation remains reachable below the desktop breakpoint. */
.mc-mobile-nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #dedbea;
  border-radius: 11px;
  background: #fff;
  color: var(--mc-violet);
  box-shadow: 0 5px 14px rgba(54, 40, 136, .08);
}
.mc-mobile-nav-toggle svg { width: 21px; height: 21px; }
.mc-mobile-nav-toggle:hover,
.mc-mobile-nav-toggle.active { background: var(--mc-violet-soft); border-color: #c9bef7; }
.mc-mobile-nav-toggle:focus-visible { outline: 3px solid rgba(108, 77, 246, .22); outline-offset: 2px; }
@media (max-width: 800px) {
  #site > .nav { position: relative; z-index: 9; overflow: visible; }
  .mc-mobile-nav-toggle { display: grid; margin-left: auto; }
  #mainNavLinks:not(.mc-mobile-nav-open) { display: none !important; }
  #mainNavLinks.mc-mobile-nav-open {
    position: absolute;
    top: calc(100% - 3px);
    right: 16px;
    left: 16px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100vh - 82px);
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #e1deed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(35, 27, 78, .17);
  }
  #mainNavLinks.mc-mobile-nav-open > a,
  #mainNavLinks.mc-mobile-nav-open > button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 10px 12px;
    border-radius: 9px;
    text-align: left;
  }
  #mainNavLinks.mc-mobile-nav-open > a:focus-visible,
  #mainNavLinks.mc-mobile-nav-open > button:focus-visible { outline: 3px solid rgba(108, 77, 246, .2); outline-offset: 1px; }
}

/* Public site: preserve the hero, reduce visual noise around it. */
.top { background: #29204f; }
.nav { min-height: 76px; }
.navlinks { gap: 18px; }
.hero { padding: 76px 0 66px; }
.hero-grid { gap: 46px; }
.hero h1 { letter-spacing: -2.25px; }
.searchbox { border-radius: 18px; padding: 7px; }
.searchbox input { font-size: 15px; }
.searchbox button { min-height: 46px; padding-inline: 20px; }
.section { padding: 68px 0; }
.category { min-height: 124px; padding: 18px; }
.category .icon { font-size: 24px; }
.card, .category, .step { border-color: var(--mc-line); }
.card-body { padding: 18px; }
.step { padding: 20px; }
.footer { padding: 28px 0; }

/* Profile public: compact professional sheet inspired by the supplied reference.
   It deliberately uses only actual profile data and actions already present. */
.public-profile { background: radial-gradient(circle at 6% 26%, #efedff 0, transparent 21%), var(--mc-canvas); }
.profile-top { max-width: 1200px; height: 74px; }
.profile-hero { padding: 24px 0 0; background: transparent; overflow: visible; }
.profile-hero::before, .profile-hero::after { display: none; }
.profile-hero .wrap, .profile-section.wrap { max-width: 1200px; }
.profile-card {
  max-width: none;
  min-height: 392px;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 30px 42px;
  padding: 136px 30px 30px;
  background: #fff;
  border: 1px solid var(--mc-line);
  border-radius: 24px;
  box-shadow: var(--mc-shadow);
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 126px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.27) 0, transparent 30%),
    radial-gradient(circle at 76% -30%, rgba(255,255,255,.2) 0, transparent 42%),
    linear-gradient(120deg, #5140a9 0%, #6d52e7 55%, #876ef2 100%);
}
.profile-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 50%;
  right: -66px;
  top: -158px;
}
.profile-identity, .profile-info {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.profile-identity { grid-template-columns: 108px minmax(0, 1fr); gap: 19px; align-items: start; }
.profile-avatar {
  width: 108px !important;
  height: 108px !important;
  min-width: 108px !important;
  margin-top: -77px;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(30, 28, 68, .18);
}
.profile-kicker { margin-bottom: 5px; color: var(--mc-violet); }
.profile-card h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -1.35px; }
.profile-username { margin: 4px 0 10px; }
.profile-meta { gap: 6px 12px; }
.profile-reputation { margin-top: 12px; }
.profile-identity-actions { margin-top: 16px; gap: 8px; }
.profile-info { padding-top: 2px; }
.profile-info h2 { font-size: 18px; }
.profile-info p { font-size: 14px; line-height: 1.62; }
.profile-coverage, .mc-public-availability {
  margin-top: 14px !important;
  padding: 12px 13px !important;
  border: 1px solid var(--mc-line) !important;
  border-radius: 13px !important;
  background: #fbfbfe !important;
}
.profile-coverage b { color: var(--mc-ink) !important; }
.profile-coverage em { background: var(--mc-violet-soft) !important; color: #5642c5 !important; }
.profile-url-row {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--mc-line);
}
.profile-url { background: #f6f5fb; color: #5a4ab5; }
.profile-card > .report-action { align-self: end; grid-column: 1 / -1; margin: -10px 0 0 !important; }
.profile-section { padding: 24px 0 48px; }
.profile-section > * { border-radius: var(--mc-radius); }
.public-services-section, .public-reviews-section { padding: 21px !important; }
.public-service-card { padding: 16px !important; }
.public-service-card .public-service-name { font-size: 15px; }
.public-service-card .public-service-meta { color: var(--mc-muted); }
.public-service-request { min-width: 184px; }
.report-action, .report-button, .public-report-action { min-height: 32px; padding: 7px 10px !important; }

/* Cliente: information first, details and secondary controls second. */
.client-layout { max-width: 1240px; gap: 22px; padding-top: 22px; }
.client-side { width: 228px; padding: 10px; }
.client-person { padding: 9px 8px 13px; border-bottom: 1px solid var(--mc-line); margin-bottom: 5px; }
.client-main > h1 { margin: 0 0 5px; font-size: 27px; }
.client-intro { margin: 0 0 18px; }
.client-home-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #e3ddff;
  border-radius: var(--mc-radius);
  background: linear-gradient(110deg, #faf9ff, #f1efff);
}
.client-home-welcome h1 { margin: 0; font-size: 27px; }
.client-home-welcome p { margin: 5px 0 0; color: var(--mc-muted); }
.client-summary { margin-top: 14px; }
.client-summary > * { min-height: 112px; padding: 18px !important; }
.client-summary b { font-size: 25px; }
.client-card { padding: 8px !important; }
.client-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  padding: 17px 15px !important;
  border-top: 1px solid var(--mc-line);
}
.client-row:first-child { border-top: 0; }
.client-row > div { min-width: 0; }
.client-row b { display: block; font-size: 15px; color: var(--mc-ink); }
.client-row small { display: block; margin-top: 3px; color: var(--mc-muted); }
.client-row > div > p { margin: 12px 0 0; color: #596176; font-size: 13px; line-height: 1.5; }
.client-request-summary { margin: 11px 0 0; gap: 6px; }
.client-request-summary span { background: #f7f7fc; border: 1px solid #ececf4; color: #59667a; }
.client-status { align-self: start; white-space: nowrap; }
.client-request-action { padding-top: 12px; margin-top: 13px; gap: 7px; border-top-color: #edf0f5; }
.client-request-action .client-btn { min-height: 36px; }
.client-details-toggle { order: 8; }
.client-profile-card { grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 15px; max-width: 620px; padding: 19px !important; }
.client-profile-card > img, .client-profile-card > :first-child:not(div) { width: 64px !important; height: 64px !important; min-width: 64px !important; border-radius: 50%; object-fit: cover; }
.client-settings-card { max-width: 720px; }
.client-settings-card section { padding: 15px 17px; }

/* Provider: operational focus and an intentionally quiet action hierarchy. */
.provider-content { max-width: 1280px; padding-top: 26px !important; }
.provider-welcome { padding: 0 1px; margin-bottom: 16px; }
.provider-stats { grid-template-columns: 1.1fr 1.1fr .9fr .9fr; gap: 12px; margin-bottom: 16px; }
.provider-stats > div { min-height: 98px; padding: 16px !important; }
.provider-grid { gap: 15px; }
.provider-card, .provider-form-card { padding: 18px !important; }
.provider-service-grid { gap: 14px; }
.provider-service-body { padding: 16px !important; }
.provider-toolbar { margin-bottom: 14px; box-shadow: none; }
.inquiry { margin: 9px 0; border-radius: 15px !important; }
.inquiry-layout { gap: 20px !important; padding: 17px 18px !important; }
.inquiry-head b { font-size: 15px; color: var(--mc-ink); }
.inquiry-head small { color: var(--mc-muted); }
.inquiry-main > p { color: #58665f; }
.provider-request-summary { margin-top: 12px; }
.provider-request-summary span { background: #f5faf8; border: 1px solid #e2efe9; color: #497267; }
.inquiry-workflow { min-width: 176px; gap: 10px; }
.inquiry-workflow-actions { gap: 7px; }
.inquiry-workflow-actions .provider-action.primary { min-height: 40px; }
.inquiry-secondary-actions { gap: 7px; padding: 11px 18px; background: #fcfefd; }
.inquiry-secondary-actions .provider-action { min-height: 34px; padding: 7px 10px; }
.provider-details-toggle { margin-left: auto; }
.provider-client-tag { background: #edf8f3 !important; }
.provider-rating { padding: 20px !important; }

/* Chats, notifications, filters, forms and modals use the same compact shell. */
.client-conversation, .provider-conversation { border-radius: 18px !important; }
.client-conversation-head, .provider-conversation-head { padding: 17px 19px !important; }
.client-message-list, .provider-message-list { min-height: 280px; padding: 18px !important; }
.client-message-form, .provider-message-form { padding: 12px 14px !important; }
.client-message-form textarea, .provider-message-form textarea { min-height: 42px !important; }
.mc-notifications-panel { border-radius: 17px !important; }
.mc-notification-item { padding: 14px 15px !important; }
.client-conversation-filters, .provider-conversation-filters, .moderation-filters { padding: 4px; border: 1px solid var(--mc-line); border-radius: 11px; background: #f6f7fb; }
.client-conversation-filters button, .provider-conversation-filters button { border-radius: 8px; }
.dialog, .admin-dialog, .moderation-dialog, .provider-tag-dialog { max-height: min(720px, calc(100vh - 30px)); }
.dialog, .admin-dialog, .moderation-dialog { padding: 24px !important; }
.admin-dialog form, .moderation-dialog form, .dialog form { display: grid; gap: 2px; }

/* Administration and moderation: make operational work obvious without new controls. */
.admin-content, .moderation-content { max-width: 1320px; }
.admin-welcome, .moderation-intro { margin-bottom: 17px; }
.admin-stats, .moderation-stats { gap: 12px; margin-bottom: 16px; }
.admin-stat, .moderation-stat { min-height: 96px; padding: 16px; }
.admin-stat b, .moderation-stat b { font-size: 25px; }
.admin-card, .moderation-card { padding: 18px; }
.admin-grid, .moderation-grid { gap: 15px; }
.admin-table, .moderation-table { border: 1px solid var(--mc-line); border-radius: 14px; }
.admin-table th, .moderation-table th { background: #f8f8fc !important; }
.admin-table tr:hover td, .moderation-table tr:hover td { background: #fbfcff; }
.admin-action, .moderation-action { min-height: 34px; padding: 7px 10px; }
.admin-badge, .moderation-badge { min-height: 25px; border: 1px solid transparent; }
.admin-sidebar, .moderation-sidebar { box-shadow: none !important; }
.admin-sidebar { background: #28234a !important; }
.moderation-sidebar { background: #173b5c !important; }
.admin-topbar, .moderation-topbar, .provider-top, .client-head { box-shadow: none; }

/* Responsive shell: visible labeled navigation instead of icon-only strips. */
@media (max-width: 820px) {
  .client-layout { gap: 15px; }
  .client-side {
    width: auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible !important;
    padding: 9px;
  }
  .client-person, .client-signout { grid-column: 1 / -1; }
  .client-person { display: flex; align-items: center; gap: 9px; padding: 7px 8px 11px; margin: 0 0 2px; }
  .client-person small { margin-left: auto; }
  .client-side button { width: 100%; white-space: normal; text-align: left; }
  .client-side button span { display: inline !important; }

  .provider-sidebar, .admin-sidebar, .moderation-sidebar { padding: 14px 16px !important; }
  .provider-sidebar nav, #adminNav, .moderation-sidebar nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px !important;
    overflow: visible !important;
  }
  .provider-sidebar nav button, #adminNav button, .moderation-sidebar nav button {
    width: 100% !important;
    min-height: 40px;
    white-space: normal !important;
    text-align: left !important;
  }
  .provider-sidebar nav button span, #adminNav button span, .moderation-sidebar nav button span { display: inline !important; }
  #adminNav p { display: none !important; }
  .provider-logo, .admin-logo, .moderation-logo { padding-bottom: 13px !important; }
  .provider-logout, .admin-exit, .moderation-exit, .admin-logout {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 11px !important;
    min-height: 40px;
    border-radius: 10px;
  }
  .admin-exit, .moderation-exit { background: rgba(255,255,255,.09) !important; color: #fff !important; }
  .admin-logout { width: 100%; text-align: center; }

  .client-home-welcome { align-items: flex-start; flex-direction: column; padding: 19px; }
  .client-home-welcome .client-btn { width: 100%; }
  .provider-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .profile-card { grid-template-columns: 1fr; gap: 18px; min-height: 0; }
  .profile-info { padding-top: 0; }
  .profile-card > .report-action { grid-column: auto; justify-self: start; }
}

@media (max-width: 620px) {
  .client-head-inner { min-height: 64px; }
  .client-head .brand { font-size: 16px; white-space: nowrap; }
  .client-account { margin-left: auto; max-width: none !important; gap: 7px; }
  .client-account > span { display: none !important; }
  .client-account > button:not(.mc-notification-bell) { min-height: 34px; padding: 7px 9px; font-size: 11px; white-space: nowrap; }
  .mc-notification-bell { flex: 0 0 38px; }
  .client-layout { padding-top: 14px; padding-bottom: 28px; }
  .client-main > h1 { font-size: 24px; }
  .client-row { grid-template-columns: 1fr; gap: 9px; padding: 15px 13px !important; }
  .client-status { justify-self: start; grid-row: 1; }
  .client-row > div { grid-row: 2; }
  .client-request-action > * { flex: 1 1 130px; }
  .client-profile-card { grid-template-columns: 60px minmax(0, 1fr); }
  .client-profile-card > img, .client-profile-card > :first-child:not(div) { width: 58px !important; height: 58px !important; min-width: 58px !important; }

  .provider-top { padding: 14px 16px !important; }
  .provider-top h1 { font-size: 22px; }
  .provider-top-actions { grid-template-columns: minmax(0, 1fr) 40px !important; }
  .provider-content { padding: 18px 15px 30px !important; }
  .provider-stats > div { min-height: 90px; padding: 14px !important; }
  .inquiry-layout { padding: 15px !important; }
  .inquiry-workflow { width: 100%; }
  .provider-details-toggle { margin-left: 0; }
  .inquiry-secondary-actions .provider-action { flex: 1 1 135px; }

  .profile-top { height: 66px; padding-inline: 16px; }
  .profile-top .brand { font-size: 17px; }
  .profile-copy { display: none; }
  .profile-hero { padding-top: 10px; }
  .profile-card { padding: 109px 18px 20px; border-radius: 18px; gap: 15px; }
  .profile-card::before { height: 102px; }
  .profile-identity { grid-template-columns: 82px minmax(0, 1fr); gap: 13px; }
  .profile-avatar { width: 82px !important; height: 82px !important; min-width: 82px !important; margin-top: -57px; }
  .profile-card h1 { font-size: 27px; }
  .profile-identity-actions .btn, .profile-identity-actions .client-btn { flex: 1 1 140px; }
  .profile-section { padding: 18px 16px 34px; }
  .public-services-section, .public-reviews-section { padding: 16px !important; }
  .public-service-request { width: 100%; }

  .admin-content, .moderation-content { padding: 18px 15px !important; }
  .admin-topbar, .moderation-topbar { padding: 16px 15px !important; }
  .admin-user span, .moderation-user span { display: none; }
  .admin-stats, .moderation-stats { grid-template-columns: 1fr !important; }
  .admin-table, .moderation-table { margin: 0 -1px; }
  .dialog, .admin-dialog, .moderation-dialog { padding: 20px !important; }
}

@media (max-width: 420px) {
  .provider-sidebar nav, #adminNav, .moderation-sidebar nav { grid-template-columns: 1fr !important; }
  .client-side { grid-template-columns: 1fr !important; }
  .client-person, .client-signout { grid-column: auto; }
  .provider-stats { grid-template-columns: 1fr !important; }
  .profile-meta { font-size: 12px; }
  .profile-url-row { align-items: flex-start; flex-direction: column; }
}

/* Perfil público del proveedor: ficha profesional compacta.
   Las piezas muestran únicamente datos y acciones que ya existen en el MVP. */
.public-profile {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 38%, rgba(116, 88, 237, .10) 0, transparent 18%),
    radial-gradient(circle at 100% 23%, rgba(116, 88, 237, .08) 0, transparent 19%),
    #f8f8fd;
}
.public-profile .profile-top {
  max-width: 1240px;
  height: 80px;
  padding-inline: 12px;
}
.public-profile .profile-top-actions { gap: 10px; }
.public-profile .profile-top .profile-copy,
.public-profile .profile-back {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 2px 7px rgba(34, 40, 80, .04);
}
.public-profile .profile-back { background: #f3f1ff; color: #553dd0; }
.public-profile .profile-hero { padding: 12px 0 0; }
.public-profile .profile-hero .wrap,
.public-profile .profile-section.wrap { max-width: 1240px; }
.public-profile .profile-card {
  display: grid;
  grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr);
  grid-template-areas:
    "identity about"
    "details details"
    "report report";
  gap: 31px 48px;
  min-height: 0;
  padding: 157px 34px 27px;
  border: 1px solid #e5e6ef;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(50, 44, 100, .09);
  overflow: hidden;
}
.public-profile .profile-card::before {
  height: 145px;
  background:
    radial-gradient(ellipse at 17% -20%, rgba(255,255,255,.42), transparent 51%),
    radial-gradient(ellipse at 72% 30%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(116deg, #cfc0ff 0%, #9175f4 43%, #6842e8 100%);
}
.public-profile .profile-card::after {
  width: 310px;
  height: 220px;
  right: -57px;
  top: -116px;
  border-width: 2px;
  border-color: rgba(255,255,255,.22);
  box-shadow: -54px 76px 0 -4px rgba(255,255,255,.07);
}
.public-profile .profile-identity {
  grid-area: identity;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.public-profile .profile-avatar {
  width: 138px !important;
  height: 138px !important;
  min-width: 138px !important;
  min-height: 138px !important;
  max-width: 138px !important;
  max-height: 138px !important;
  margin-top: -93px;
  border: 5px solid #fff;
  box-shadow: 0 11px 27px rgba(26, 27, 57, .19);
  font-size: 35px;
}
.public-profile .profile-identity > div:last-child { min-width: 0; }
.public-profile .profile-card h1 {
  margin-top: 1px;
  color: #152044;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -1.65px;
}
.public-profile .profile-username {
  margin: 6px 0 15px;
  color: #596884;
  font-size: 14px;
  font-weight: 750;
}
.public-profile .profile-meta { gap: 8px 14px; color: #596984; font-size: 14px; }
.public-profile .profile-meta span { min-width: 0; }
.public-profile .profile-reputation {
  gap: 8px;
  margin-top: 17px;
  color: #1c2947;
  font-size: 15px;
  font-weight: 820;
}
.public-profile .profile-reputation .stars { color: #ee9b18; font-size: 20px; line-height: .8; }
.public-profile .profile-info { display: contents; }
.public-profile .profile-about {
  grid-area: about;
  align-self: start;
  min-width: 0;
  padding: 7px 0 0;
}
.public-profile .profile-about-label {
  margin: 0 0 8px !important;
  color: #7257e1 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .1em;
  line-height: 1.2 !important;
}
.public-profile .profile-about [data-profile-bio] {
  max-width: 610px;
  margin: 0 !important;
  color: #455371 !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
}
.public-profile .profile-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.public-profile .profile-identity-actions .profile-primary-action,
.public-profile .profile-identity-actions .client-btn:not(.subtle) {
  min-height: 48px;
  padding: 11px 18px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #5c40df, #7d55ef) !important;
  box-shadow: 0 8px 17px rgba(91, 62, 214, .22) !important;
  font-size: 14px;
  font-weight: 800;
}
.public-profile .profile-identity-actions .profile-secondary-action,
.public-profile .profile-inline-copy,
.public-profile .profile-identity-actions .client-btn.subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px !important;
  border: 1px solid #dedfec !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #44516c !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 780;
}
.public-profile .profile-identity-actions .profile-secondary-action:hover,
.public-profile .profile-inline-copy:hover,
.public-profile .profile-identity-actions .client-btn.subtle:hover {
  border-color: #bdb1f5 !important;
  background: #f8f6ff !important;
  color: #533bd0 !important;
}
.public-profile .profile-detail-grid {
  grid-area: details;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.14fr) minmax(0, .96fr);
  gap: 17px;
}
.public-profile .profile-detail-card {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 18px 19px;
  border: 1px solid #e3e5ef;
  border-radius: 17px;
  background: #fff;
}
.public-profile .profile-detail-card .profile-coverage,
.public-profile .profile-detail-card .mc-public-availability {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.public-profile .profile-coverage b,
.public-profile .mc-public-availability b,
.public-profile .profile-url-row b {
  margin-bottom: 9px;
  color: #1f2b48;
  font-size: 13px;
  font-weight: 820;
}
.public-profile .profile-coverage span { gap: 6px; }
.public-profile .profile-coverage em {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0edff !important;
  color: #553bd1 !important;
  font-size: 11px;
  font-weight: 780;
}
.public-profile .mc-public-availability { gap: 5px; }
.public-profile .mc-public-availability > span {
  color: #34415d;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}
.public-profile .mc-public-availability small {
  color: #748096;
  font-size: 11px;
  line-height: 1.4;
}
.public-profile .mc-public-availability details { margin-top: 2px; }
.public-profile .mc-public-availability summary {
  color: #5c42d2;
  font-size: 11px;
  font-weight: 780;
  cursor: pointer;
}
.public-profile .mc-public-availability ul { margin: 7px 0 0; padding-left: 16px; }
.public-profile .profile-url-card { position: relative; }
.public-profile .profile-url-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 9px;
}
.public-profile .profile-url-row > div { min-width: 0; flex: 1; }
.public-profile .profile-url-row b { display: block; }
.public-profile .profile-url {
  display: block;
  overflow: hidden;
  padding: 8px 9px;
  border: 1px solid #e6e7ee;
  border-radius: 9px;
  background: #fafaff;
  color: #61708d;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-profile .profile-url-copy {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border: 1px solid #dfdaf9;
  border-radius: 9px;
  background: #f4f1ff;
  color: #5d43d2;
  font-size: 17px;
  font-weight: 820;
  cursor: pointer;
}
.public-profile .profile-url-copy:hover { background: #ece7ff; }
.public-profile [data-profile-copy-status] {
  position: absolute;
  right: 16px;
  bottom: 5px;
  color: #17734f;
  font-size: 10px;
  font-weight: 750;
}
.public-profile .profile-card > .report-action {
  grid-area: report;
  grid-column: auto;
  justify-self: end;
  margin: -4px 0 0 !important;
}
.public-profile .profile-section { padding: 20px 0 54px; }
.public-profile .client-provider-data {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 18px;
}
.public-profile .client-provider-data > section {
  min-width: 0;
  padding: 22px !important;
  border: 1px solid #e3e5ee !important;
  border-top: 3px solid #eeeaff !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(44, 49, 80, .04) !important;
}
.public-profile .client-provider-data > .public-reviews-section { border-top-color: #e8e3ff !important; }
.public-profile .public-section-kicker { display: none; }
.public-profile .public-section-title {
  margin-bottom: 15px !important;
  color: #1a2744 !important;
  font-size: 20px !important;
  font-weight: 830;
}
.public-profile .client-provider-data .client-service {
  padding: 14px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid #edf0f4 !important;
  box-shadow: none !important;
}
.public-profile .client-provider-data .client-service:first-of-type { border-top: 0 !important; }
.public-profile .public-service-card { gap: 6px; }
.public-profile .public-service-name { padding-right: 0; color: #26344f; font-size: 15px; }
.public-profile .public-service-meta { color: #67748a; }
.public-profile .public-service-category { margin-top: 3px; }
.public-profile .public-service-card > p { margin-top: 5px !important; }
.public-profile .public-service-request { align-self: start; min-height: 38px; margin-top: 6px; }
.public-profile .public-review-card { padding-top: 13px !important; }
.public-profile .public-review-stars { margin-bottom: 4px; }
.public-profile .public-review-card .client-completed-mark {
  background: #e7f7ee !important;
  color: #197552 !important;
}
.public-profile .report-action {
  min-height: 32px;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  color: #778296 !important;
}
.public-profile .report-action:hover { color: #a54550 !important; }

@media (max-width: 920px) {
  .public-profile .profile-card {
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 28px 31px;
    padding-inline: 27px;
  }
  .public-profile .profile-identity { grid-template-columns: 116px minmax(0, 1fr); gap: 18px; }
  .public-profile .profile-avatar {
    width: 116px !important; height: 116px !important;
    min-width: 116px !important; min-height: 116px !important;
    max-width: 116px !important; max-height: 116px !important;
    margin-top: -82px;
  }
  .public-profile .profile-detail-grid { gap: 12px; }
  .public-profile .profile-detail-card { min-height: 120px; padding: 15px; }
}
@media (max-width: 760px) {
  .public-profile .profile-card {
    grid-template-columns: 1fr;
    grid-template-areas: "identity" "about" "details" "report";
    gap: 21px;
    padding: 135px 22px 22px;
  }
  .public-profile .profile-card::before { height: 124px; }
  .public-profile .profile-identity { grid-template-columns: 104px minmax(0, 1fr); gap: 17px; }
  .public-profile .profile-avatar {
    width: 104px !important; height: 104px !important;
    min-width: 104px !important; min-height: 104px !important;
    max-width: 104px !important; max-height: 104px !important;
    margin-top: -70px;
  }
  .public-profile .profile-detail-grid { grid-template-columns: 1fr; gap: 11px; }
  .public-profile .profile-detail-card { min-height: 0; }
  .public-profile .client-provider-data { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 520px) {
  .public-profile .profile-top { height: 68px; padding-inline: 15px; }
  .public-profile .profile-top .brand { font-size: 17px; }
  .public-profile .profile-top .profile-copy { display: none; }
  .public-profile .profile-back { min-height: 37px; padding-inline: 11px; }
  .public-profile .profile-hero { padding-top: 6px; }
  .public-profile .profile-card { padding: 118px 16px 18px; border-radius: 18px; }
  .public-profile .profile-card::before { height: 108px; }
  .public-profile .profile-identity { grid-template-columns: 84px minmax(0, 1fr); gap: 13px; }
  .public-profile .profile-avatar {
    width: 84px !important; height: 84px !important;
    min-width: 84px !important; min-height: 84px !important;
    max-width: 84px !important; max-height: 84px !important;
    margin-top: -57px;
    border-width: 4px;
  }
  .public-profile .profile-card h1 { font-size: 28px; }
  .public-profile .profile-meta { font-size: 12px; }
  .public-profile .profile-about [data-profile-bio] { font-size: 14px !important; }
  .public-profile .profile-identity-actions { gap: 8px; }
  .public-profile .profile-identity-actions .profile-primary-action,
  .public-profile .profile-identity-actions .client-btn:not(.subtle),
  .public-profile .profile-identity-actions .profile-secondary-action,
  .public-profile .profile-inline-copy,
  .public-profile .profile-identity-actions .client-btn.subtle {
    flex: 1 1 145px;
    min-height: 44px;
    padding-inline: 12px !important;
    font-size: 13px;
  }
  .public-profile .profile-inline-copy { display: inline-flex !important; }
  .public-profile .profile-detail-card { padding: 15px; }
  .public-profile .profile-section { padding: 15px 0 34px; }
  .public-profile .client-provider-data > section { padding: 17px !important; }
  .public-profile .public-section-title { font-size: 18px !important; }
}

/* MFA privilegiado: reutiliza el shell visual existente sin exponer secretos
   fuera del modal de enrolamiento. */
.mfa-card { max-height: min(720px, calc(100vh - 32px)); overflow: auto; }
.mfa-body { display: grid; gap: 14px; }
.mfa-form { display: grid; gap: 12px; }
.mfa-form .field { display: grid; gap: 7px; margin: 0; }
.mfa-form input { width: 100%; box-sizing: border-box; }
.mfa-qr { display: block; width: min(240px, 100%); height: auto; margin: 0 auto; }
.mfa-manual-label { margin: 0 !important; text-align: center; font-weight: 700; color: #344054 !important; }
.mfa-manual-secret { display: block; overflow-wrap: anywhere; text-align: center; padding: 10px; border-radius: 8px; background: #f4f2ff; }
.mfa-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin: 0; padding: 14px 14px 14px 34px; border-radius: 10px; background: #f6f7fa; font-family: monospace; }
.mfa-alternative { justify-self: center; border: 0; background: transparent; color: #5740c9; font-weight: 700; text-decoration: underline; cursor: pointer; }
.mfa-status { margin: 0 !important; color: #526174 !important; }
@media (max-width: 430px) {
  .mfa-recovery-codes { grid-template-columns: 1fr; }
}

/* Perfil público: muestra acotada y modal con las mismas tarjetas de reseña. */
#publicProfile.public-profile .public-reviews-open-all {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 7px 1px;
  border: 0;
  background: transparent;
  color: #5d43cf;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
#publicProfile.public-profile .public-reviews-open-all:hover,
#publicProfile.public-profile .public-reviews-open-all:focus-visible { color: #452db8; outline: 0; text-decoration: underline; }
#publicProfile.public-profile .public-reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(22, 24, 42, .58);
}
#publicProfile.public-profile .public-reviews-dialog {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid #e4e3ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(22, 24, 46, .28);
}
#publicProfile.public-profile .public-reviews-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid #ecebf2;
  background: #fff;
}
#publicProfile.public-profile .public-reviews-dialog h2 { margin: 0; color: #26314a; font-size: 21px; }
#publicProfile.public-profile .public-reviews-dialog header p { display: flex; gap: 9px; align-items: center; margin: 6px 0 0; color: #758095; font-size: 12px; }
#publicProfile.public-profile .public-reviews-dialog header strong { color: #5c43cb; font-size: 14px; }
#publicProfile.public-profile .public-reviews-modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1eff9;
  color: #59647a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
#publicProfile.public-profile .public-reviews-modal-close:hover,
#publicProfile.public-profile .public-reviews-modal-close:focus-visible { background: #e8e3ff; color: #4e36bd; outline: 2px solid #d8cffd; }
#publicProfile.public-profile .public-reviews-modal-list { overflow-y: auto; min-height: 0; margin: 0 !important; padding: 18px 20px 22px !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; scroll-padding: 18px; }
#publicProfile.public-profile .public-reviews-modal-list .public-review-card { flex: 0 0 auto; }
#publicProfile.public-profile .public-review-modal-target { animation: publicReviewModalPulse 2.2s ease-out; }
@keyframes publicReviewModalPulse {
  0% { border-color: #8e77ec; box-shadow: 0 0 0 4px rgba(117, 88, 232, .2), 0 8px 24px rgba(72, 54, 164, .12); }
  70% { border-color: #b8aaf2; box-shadow: 0 0 0 7px rgba(117, 88, 232, .07), 0 5px 18px rgba(72, 54, 164, .07); }
  100% { border-color: #e8e8f0; box-shadow: 0 4px 13px rgba(40, 45, 70, .035); }
}
@media (max-width: 520px) {
  #publicProfile.public-profile .public-reviews-modal { padding: 0; place-items: stretch; }
  #publicProfile.public-profile .public-reviews-dialog { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  #publicProfile.public-profile .public-reviews-dialog > header { padding: 17px 16px 14px; }
  #publicProfile.public-profile .public-reviews-modal-list { padding: 14px 13px 20px !important; }
}

/* Home: profesionales recomendados */
#servicios .cards {
  align-items: stretch;
}

#servicios .recommended-professional-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e3ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(38, 31, 77, .045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#servicios .recommended-professional-card.profile-link {
  cursor: pointer;
}

#servicios .recommended-professional-card.profile-link:hover {
  transform: translateY(-4px);
  border-color: #c9c0f2;
  box-shadow: 0 15px 31px rgba(45, 34, 97, .10);
}

#servicios .recommended-professional-card:focus-visible {
  outline: 3px solid rgba(108, 77, 246, .22);
  outline-offset: 3px;
  border-color: #8d78ed;
}

#servicios .recommended-professional-cover {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 126px;
  min-height: 126px;
  overflow: hidden;
  color: #654ed1;
}

#servicios .recommended-professional-cover.p1 { background: linear-gradient(145deg, #eee9ff, #ddd3ff); }
#servicios .recommended-professional-cover.p2 { background: linear-gradient(145deg, #edf9f5, #d8efe7); color: #26806b; }
#servicios .recommended-professional-cover.p3 { background: linear-gradient(145deg, #fff4e9, #ffe3c9); color: #a96b2e; }

#servicios .recommended-cover-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 8px 22px rgba(66, 48, 135, .08);
}

#servicios .recommended-cover-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#servicios .recommended-cover-image {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#servicios .recommended-professional-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px 19px 17px;
}

#servicios .recommended-professional-card .badge {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1eeff;
  color: #5d46cb;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .02em;
}

#servicios .recommended-professional-card h3 {
  margin: 11px 0 15px;
  color: #202942;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.3px;
}

#servicios .recommended-provider {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

#servicios .recommended-provider-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #ded8fa;
  border-radius: 50%;
  background: #eeeaff;
  color: #5c45c9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}

#servicios .recommended-provider-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#servicios .recommended-provider-copy {
  min-width: 0;
}

#servicios .recommended-provider-copy b,
#servicios .recommended-provider-copy .by {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#servicios .recommended-provider-copy b {
  color: #2a334b;
  font-size: 13px;
  line-height: 1.35;
}

#servicios .recommended-provider-copy .by {
  margin-top: 2px;
  color: #778297;
  font-size: 12px;
}

#servicios .recommended-professional-card .meta {
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eeedf3;
}

#servicios .recommended-professional-card .meta strong {
  min-width: 0;
  color: #2c3550;
  font-size: 13px;
}

#servicios .recommended-rating {
  flex: 0 0 auto;
  color: #9b6918;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

#servicios .title-row .link {
  padding: 7px 9px;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}

#servicios .title-row .link:hover,
#servicios .title-row .link:focus-visible {
  background: #eeebff;
  color: #4e36c1;
  outline: none;
}

@media (max-width: 900px) and (min-width: 601px) {
  #servicios .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  #servicios .title-row {
    align-items: flex-start;
    gap: 14px;
  }
  #servicios .cards { grid-template-columns: minmax(0, 1fr); }
  #servicios .recommended-professional-cover {
    height: 118px;
    min-height: 118px;
  }
  #servicios .recommended-professional-card .card-body { padding: 17px; }
}

/* Más profesionales: una vista centrada en personas, no en publicaciones. */
.mc-professionals-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8f8fc;
  color: #242d45;
}

.mc-professionals-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 0 30px;
  border-bottom: 1px solid #e4e0f5;
  background: linear-gradient(118deg, #f8f6ff 0%, #f0ecff 62%, #f8f8fc 100%);
}

.mc-professionals-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: max(-70px, calc((100vw - 1120px) / 2));
  bottom: -188px;
  border-radius: 50%;
  background: rgba(119, 91, 230, .10);
  pointer-events: none;
}

.mc-professionals-hero .wrap { position: relative; z-index: 1; }

.mc-professionals-back {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #6453b7;
  font-size: 12px;
  font-weight: 780;
}

.mc-professionals-back:hover,
.mc-professionals-back:focus-visible { color: #4934b6; text-decoration: underline; outline: 0; }

.mc-professionals-heading { margin-top: 15px; }
.mc-professionals-heading p {
  margin: 0 0 6px;
  color: #6a51d7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
}
.mc-professionals-heading h1 {
  margin: 0;
  color: #211b3e;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -1.7px;
}
.mc-professionals-heading > span {
  display: block;
  margin-top: 8px;
  color: #626d83;
  font-size: 14px;
}
.mc-professionals-heading > strong {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 9px;
  border: 1px solid #ddd5ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #5945bd;
  font-size: 11px;
  font-weight: 800;
}

.mc-professionals-content { padding-top: 22px; padding-bottom: 54px; }
.mc-professionals-search {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(190px, .7fr) auto;
  gap: 9px;
  width: min(820px, 100%);
  padding: 9px;
  border: 1px solid #e3e1ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(42, 34, 82, .055);
}
.mc-professionals-search label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e3e3ec;
  border-radius: 10px;
  background: #fbfbfd;
}
.mc-professionals-search label:focus-within {
  border-color: #8873e8;
  box-shadow: 0 0 0 3px rgba(108, 77, 246, .11);
}
.mc-professionals-search svg,
.mc-professional-zone svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-professionals-search label > span { display: grid; place-items: center; color: #7463c4; }
.mc-professionals-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2b344d;
  font-size: 13px;
}
.mc-professionals-search input::placeholder { color: #8a93a5; opacity: 1; }
.mc-professionals-search > button {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #674bdd;
  color: #fff;
  font-size: 12px;
  font-weight: 820;
  box-shadow: 0 6px 14px rgba(103, 75, 221, .18);
}
.mc-professionals-search > button:hover { background: #5639ce; }
.mc-professionals-search > button:focus-visible { outline: 3px solid rgba(103, 75, 221, .22); outline-offset: 2px; }

.mc-professionals-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 15px 0 25px;
  padding: 1px 1px 6px;
  scrollbar-width: thin;
  scrollbar-color: #d2cbea transparent;
}
.mc-professionals-chips button {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #e0deea;
  border-radius: 999px;
  background: #fff;
  color: #626b7e;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.mc-professionals-chips button:hover { border-color: #c8bff1; color: #5742be; }
.mc-professionals-chips button.active {
  border-color: #745be0;
  background: #eeeaff;
  color: #5038bb;
}
.mc-professionals-chips button:focus-visible { outline: 2px solid rgba(103, 75, 221, .24); outline-offset: 2px; }

.mc-professionals-results { display: grid; gap: 22px; }
.mc-professionals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 18px;
  align-items: stretch;
  justify-content: start;
}
.mc-professional-card {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e3eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(43, 37, 75, .05);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mc-professional-card:hover {
  transform: translateY(-3px);
  border-color: #c9c1ee;
  box-shadow: 0 15px 32px rgba(55, 42, 116, .10);
}
.mc-professional-card:focus-visible { outline: 3px solid rgba(103, 75, 221, .22); outline-offset: 3px; }
.mc-professional-halo {
  position: relative;
  height: 91px;
  flex: 0 0 91px;
  background: radial-gradient(circle at 52% 115%, rgba(136, 111, 237, .24), transparent 52%), linear-gradient(135deg, #f4f1ff, #ebe6ff 62%, #f7f5ff);
}
.mc-professional-halo::before,
.mc-professional-halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
}
.mc-professional-halo::before { width: 62px; height: 62px; left: -18px; top: -21px; }
.mc-professional-halo::after { width: 34px; height: 34px; right: 21px; top: 13px; }
.mc-professional-avatar {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: -35px;
  display: grid;
  width: 78px;
  height: 78px;
  overflow: hidden;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #6c51db;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: .02em;
  box-shadow: 0 7px 17px rgba(62, 44, 139, .18);
}
.mc-professional-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-professional-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 47px 21px 19px;
}
.mc-professional-specialty {
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0edff;
  color: #5942c5;
  font-size: 10px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-professional-card h2 {
  margin: 11px 0 6px;
  overflow-wrap: anywhere;
  color: #232c45;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -.5px;
}
.mc-professional-zone {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  overflow: hidden;
  color: #737e91;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-professional-zone svg { width: 14px; height: 14px; flex: 0 0 14px; color: #7760d7; }
.mc-professional-rating {
  margin: 14px 0 0;
  color: #9b6712;
  font-size: 12px;
  font-weight: 800;
}
.mc-professional-rating.is-new { color: #6252ad; }
.mc-professional-bio {
  display: -webkit-box;
  min-height: 59px;
  margin: 11px 0 0;
  overflow: hidden;
  color: #5f6c81;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.mc-professional-facts {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eeedf3;
}
.mc-professional-facts > strong { color: #4b566d; font-size: 11px; font-weight: 780; }
.mc-professional-zones { display: flex; gap: 5px; min-width: 0; overflow: hidden; }
.mc-professional-zones span {
  max-width: calc(50% - 3px);
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f6f4fc;
  color: #6d6682;
  font-size: 9px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-professional-open {
  align-self: flex-start;
  margin-top: 13px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #5c43ca;
  font-size: 12px;
  font-weight: 820;
  pointer-events: none;
}
.mc-professional-open span { display: inline-block; margin-left: 3px; transition: transform .18s ease; }
.mc-professional-card:hover .mc-professional-open span { transform: translateX(3px); }
.mc-professionals-empty {
  grid-column: 1 / -1;
  max-width: 620px;
  padding: 29px;
  border: 1px dashed #d7d2eb;
  border-radius: 17px;
  background: #fff;
}
.mc-professionals-empty b { color: #313b55; font-size: 15px; }
.mc-professionals-empty p { margin: 7px 0 0; color: #758095; font-size: 13px; }
.mc-professionals-help {
  width: min(610px, 100%);
  padding: 17px 19px;
  border: 1px solid #e3dff3;
  border-radius: 15px;
  background: linear-gradient(120deg, #f5f2ff, #faf9ff);
}
.mc-professionals-help span { color: #343d57; font-size: 13px; font-weight: 820; }
.mc-professionals-help p { margin: 5px 0 0; color: #737d91; font-size: 12px; }
.mc-professionals-help button {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d43ca;
  font-size: 11px;
  font-weight: 800;
}
.mc-professionals-help button:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .mc-professionals-grid { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .mc-professionals-content,
  .mc-professionals-hero .wrap { padding-inline: 20px; }
}

@media (max-width: 680px) {
  .mc-professionals-search { grid-template-columns: 1fr; }
  .mc-professionals-search > button { width: 100%; }
}

@media (max-width: 560px) {
  .mc-professionals-hero { padding: 17px 0 24px; }
  .mc-professionals-heading { margin-top: 11px; }
  .mc-professionals-heading h1 { font-size: 30px; letter-spacing: -1.2px; }
  .mc-professionals-heading > span { font-size: 13px; }
  .mc-professionals-content { padding-top: 16px; padding-bottom: 38px; }
  .mc-professionals-search { gap: 7px; padding: 8px; border-radius: 14px; }
  .mc-professionals-chips { margin-bottom: 19px; }
  .mc-professionals-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mc-professional-card { min-height: 410px; }
  .mc-professional-card-body { padding-inline: 18px; }
  .mc-professionals-empty { padding: 23px 19px; }
}

/* Paso 27.1: una única acción para copiar el perfil y una transición más compacta. */
.public-profile .profile-card {
  row-gap: 20px;
  padding-bottom: 17px;
}
.public-profile .profile-section { padding-top: 10px; }
.public-profile .profile-card > .report-action { margin-top: 0 !important; }
@media (max-width: 760px) {
  .public-profile .profile-card { row-gap: 17px; }
  .public-profile .profile-section { padding-top: 9px; }
}

/* Avatares reales en reseñas públicas: se resuelven por username al renderizar. */
.public-profile .public-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.public-profile .public-review-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #e4e2f4;
  border-radius: 50%;
  background: #f0edff;
  color: #5c45ce;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  object-fit: cover;
}
.public-profile img.public-review-avatar { display: block; object-fit: cover; }
.public-profile .public-review-person { min-width: 0; }
.public-profile .public-review-person .public-review-author { margin: 0; }
.public-profile .public-review-person .public-review-stars { margin: 0 0 3px; }
@media (max-width: 520px) {
  .public-profile .public-review-avatar { flex-basis: 40px; width: 40px; height: 40px; }
}

/* Perfil público: resumen y listado de reseñas basado en datos reales. */
#publicProfile.public-profile .public-reviews-section {
  padding: 24px !important;
  border-top-color: #ddd5fb !important;
}
#publicProfile.public-profile .public-reviews-section .public-section-title {
  margin-bottom: 18px !important;
  font-size: 21px !important;
}
#publicProfile.public-profile .public-review-summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 19px;
  padding: 0 0 20px;
  border-bottom: 1px solid #eceaf3;
}
#publicProfile.public-profile .public-review-score {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
#publicProfile.public-profile .public-review-score strong {
  color: #242b42;
  font-size: 42px;
  font-weight: 780;
  line-height: .95;
  letter-spacing: -2px;
}
#publicProfile.public-profile .public-review-summary-stars {
  margin-top: 9px;
  color: #e7a126;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 1px;
}
#publicProfile.public-profile .public-review-score small {
  margin-top: 7px;
  color: #717d91;
  font-size: 11px;
  font-weight: 700;
}
#publicProfile.public-profile .public-review-distribution {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#publicProfile.public-profile .public-review-distribution-row {
  display: grid;
  grid-template-columns: 26px minmax(72px, 1fr) 20px;
  gap: 7px;
  align-items: center;
  color: #717d91;
  font-size: 10px;
  font-weight: 700;
}
#publicProfile.public-profile .public-review-distribution-row > i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #eceaf3;
  border-radius: 999px;
}
#publicProfile.public-profile .public-review-distribution-row > i > em {
  display: block;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, #7156e7, #9885ee);
  border-radius: inherit;
}
#publicProfile.public-profile .public-review-distribution-row > b {
  color: #5f6b80;
  font-size: 10px;
  text-align: right;
}
#publicProfile.public-profile .public-review-list {
  display: grid;
  gap: 11px;
}
#publicProfile.public-profile .public-review-list .public-review-card {
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #e8e8f0 !important;
  border-left: 1px solid #e8e8f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 13px rgba(40, 45, 70, .035) !important;
}
#publicProfile.public-profile .public-review-head {
  align-items: flex-start;
  gap: 11px;
}
#publicProfile.public-profile .public-review-avatar {
  border-color: #ddd8f5;
  background: #f0edff;
  box-shadow: 0 0 0 3px #faf9ff;
}
#publicProfile.public-profile .public-review-person {
  flex: 1 1 auto;
}
#publicProfile.public-profile .public-review-person .public-review-author {
  color: #2b344c !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
#publicProfile.public-profile .public-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
#publicProfile.public-profile .public-review-meta .public-review-stars {
  margin: 0;
  color: #e49a1e;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .7px;
}
#publicProfile.public-profile .public-review-date {
  color: #8791a2;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}
#publicProfile.public-profile .public-review-card > p {
  margin: 12px 0 0 !important;
  color: #4f5c70 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
#publicProfile.public-profile .public-review-card .client-completed-mark {
  display: inline-flex;
  margin-top: 11px !important;
  padding: 5px 8px !important;
  border: 1px solid #cfe9dc;
  background: #e9f7ef !important;
  color: #177251 !important;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 820 !important;
}
#publicProfile.public-profile .public-reviews-section .report-action {
  min-height: 26px !important;
  margin-top: 9px !important;
  padding: 4px 7px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: #8992a1 !important;
  font-size: 10px !important;
  box-shadow: none !important;
}
#publicProfile.public-profile .public-reviews-section .report-action:hover,
#publicProfile.public-profile .public-reviews-section .report-action:focus-visible {
  border-color: #efd9dd !important;
  background: #fff7f8 !important;
  color: #a44a55 !important;
}
#publicProfile.public-profile .public-review-empty {
  margin: 0;
  color: #707c90;
  font-size: 13px;
}
@media (max-width: 520px) {
  #publicProfile.public-profile .public-reviews-section {
    padding: 17px !important;
  }
  #publicProfile.public-profile .public-review-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #publicProfile.public-profile .public-review-score {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 13px;
    align-items: center;
  }
  #publicProfile.public-profile .public-review-score strong {
    grid-row: 1 / span 2;
    font-size: 38px;
  }
  #publicProfile.public-profile .public-review-summary-stars {
    margin-top: 0;
  }
  #publicProfile.public-profile .public-review-score small {
    margin-top: 0;
  }
  #publicProfile.public-profile .public-review-list .public-review-card {
    padding: 14px !important;
  }
}

/* Paso 27.2: exploración completa y filtros públicos de categorías. */
.category-all-link {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.category-all-link:hover { text-decoration: underline; }
.public-all-categories-content { padding-top: 32px; padding-bottom: 54px; }
.public-all-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.public-all-category-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 112px;
  padding: 17px;
  border: 1px solid #e7e6ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(48, 52, 89, .045);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.public-all-category-card:hover {
  border-color: #cfc7f6;
  box-shadow: 0 13px 30px rgba(72, 54, 162, .10);
  transform: translateY(-2px);
}
.public-all-category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f1efff;
  font-size: 22px;
}
.public-all-category-card h2 { margin: 0 0 5px; color: var(--mc-ink); font-size: 16px; line-height: 1.22; }
.public-all-category-card p { margin: 0; color: var(--mc-muted); font-size: 12px; }
.public-all-category-open { color: var(--mc-violet); font-size: 12px; font-weight: 800; white-space: nowrap; }
.public-all-category-open i { margin-left: 3px; font-size: 17px; font-style: normal; vertical-align: -1px; }
.public-category-filter-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 21px;
  padding: 13px;
  border: 1px solid #e5e3f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 17px rgba(52, 42, 100, .04);
}
.public-category-filter-bar label {
  display: grid;
  gap: 6px;
  flex: 1 1 220px;
  color: #4e5571;
  font-size: 12px;
  font-weight: 780;
}
.public-category-filter-bar select,
.public-category-filter-bar input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #dfe2ea;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #28324a;
  font: inherit;
}
.public-category-filter-bar select:focus,
.public-category-filter-bar input:focus {
  border-color: #6b50df;
  box-shadow: 0 0 0 3px #6b50df17;
}
.public-category-filter-bar button {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: #6348d4;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.public-category-filter-bar .clear-category-filters {
  border: 1px solid #ddd9ef;
  background: #f8f7fc;
  color: #594e7a;
}
@media (max-width: 820px) {
  .public-all-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .public-all-categories-content { padding-top: 22px; padding-bottom: 38px; }
  .public-all-categories-grid { grid-template-columns: 1fr; gap: 10px; }
  .public-all-category-card { min-height: 92px; padding: 14px; }
  .public-category-filter-bar { align-items: stretch; padding: 12px; }
  .public-category-filter-bar label { flex-basis: 100%; }
  .public-category-filter-bar button { flex: 1 1 135px; }
}

/* Selects nativos: mismos controles, con una presentación contextual y accesible. */
body :is(#site, #clientPanel, #providerDashboard, #dashboard, #moderationDashboard,
#publicProfile, #publicCategoryView, .client-modal, .provider-conversation-modal,
.mc-quote-modal, .mc-quote-feedback-modal, .mc-schedule-modal, .mc-reschedule-modal,
.mc-cancellation-modal, .admin-modal, .admin-dialog, .moderator-modal,
.moderation-dialog, .provider-tag-dialog, .report-modal, .auth-modal) select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 10px 40px 10px 13px;
  border: 1px solid #d9ddea;
  border-radius: 11px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #687287 50%), linear-gradient(135deg, #687287 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #303a52;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 43, 67, .025);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
body :is(#site, #clientPanel, #providerDashboard, #dashboard, #moderationDashboard,
#publicProfile, #publicCategoryView, .client-modal, .provider-conversation-modal,
.mc-quote-modal, .mc-quote-feedback-modal, .mc-schedule-modal, .mc-reschedule-modal,
.mc-cancellation-modal, .admin-modal, .admin-dialog, .moderator-modal,
.moderation-dialog, .provider-tag-dialog, .report-modal, .auth-modal) select:hover {
  border-color: #bdb5e9;
  background-color: #fcfbff;
}
body :is(#site, #clientPanel, #providerDashboard, #dashboard, #moderationDashboard,
#publicProfile, #publicCategoryView, .client-modal, .provider-conversation-modal,
.mc-quote-modal, .mc-quote-feedback-modal, .mc-schedule-modal, .mc-reschedule-modal,
.mc-cancellation-modal, .admin-modal, .admin-dialog, .moderator-modal,
.moderation-dialog, .provider-tag-dialog, .report-modal, .auth-modal) select:focus,
body :is(#site, #clientPanel, #providerDashboard, #dashboard, #moderationDashboard,
#publicProfile, #publicCategoryView, .client-modal, .provider-conversation-modal,
.mc-quote-modal, .mc-quote-feedback-modal, .mc-schedule-modal, .mc-reschedule-modal,
.mc-cancellation-modal, .admin-modal, .admin-dialog, .moderator-modal,
.moderation-dialog, .provider-tag-dialog, .report-modal, .auth-modal) select:focus-visible {
  outline: 0;
  border-color: #6b50df;
  box-shadow: 0 0 0 3px rgba(107, 80, 223, .14);
}
body :is(#site, #clientPanel, #providerDashboard, #dashboard, #moderationDashboard,
#publicProfile, #publicCategoryView, .client-modal, .provider-conversation-modal,
.mc-quote-modal, .mc-quote-feedback-modal, .mc-schedule-modal, .mc-reschedule-modal,
.mc-cancellation-modal, .admin-modal, .admin-dialog, .moderator-modal,
.moderation-dialog, .provider-tag-dialog, .report-modal, .auth-modal) select:disabled {
  cursor: not-allowed;
  opacity: .62;
  background-color: #f4f5f8;
}

body :is(#providerDashboard, .provider-conversation-modal, .provider-tag-dialog) select {
  border-color: #d2e5dd;
  background-image: linear-gradient(45deg, transparent 50%, #4b7e70 50%), linear-gradient(135deg, #4b7e70 50%, transparent 50%);
  color: #315e52;
}
body :is(#providerDashboard, .provider-conversation-modal, .provider-tag-dialog) select:hover { border-color: #a9d3c4; background-color: #fbfefd; }
body :is(#providerDashboard, .provider-conversation-modal, .provider-tag-dialog) select:focus,
body :is(#providerDashboard, .provider-conversation-modal, .provider-tag-dialog) select:focus-visible {
  border-color: #258467;
  box-shadow: 0 0 0 3px rgba(37, 132, 103, .14);
}

body :is(#dashboard, .admin-modal, .admin-dialog) select {
  border-color: #ddd9ec;
  background-image: linear-gradient(45deg, transparent 50%, #66599d 50%), linear-gradient(135deg, #66599d 50%, transparent 50%);
}
body :is(#moderationDashboard, .moderator-modal, .moderation-dialog) select {
  border-color: #d2e0e9;
  background-image: linear-gradient(45deg, transparent 50%, #427493 50%), linear-gradient(135deg, #427493 50%, transparent 50%);
  color: #315970;
}
body :is(#moderationDashboard, .moderator-modal, .moderation-dialog) select:hover { border-color: #aac9da; background-color: #fbfdff; }
body :is(#moderationDashboard, .moderator-modal, .moderation-dialog) select:focus,
body :is(#moderationDashboard, .moderator-modal, .moderation-dialog) select:focus-visible {
  border-color: #34708f;
  box-shadow: 0 0 0 3px rgba(52, 112, 143, .14);
}
@media (max-width: 560px) {
  body :is(#site, #clientPanel, #providerDashboard, #dashboard, #moderationDashboard,
  #publicProfile, #publicCategoryView, .client-modal, .provider-conversation-modal,
  .mc-quote-modal, .mc-quote-feedback-modal, .mc-schedule-modal, .mc-reschedule-modal,
  .mc-cancellation-modal, .admin-modal, .admin-dialog, .moderator-modal,
  .moderation-dialog, .provider-tag-dialog, .report-modal, .auth-modal) select {
    min-height: 44px;
    font-size: 16px;
  }
}

/* Dropdown común para selects nativos: el elemento original conserva datos y eventos. */
.mc-native-select {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  min-height: 1px !important;
  min-width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.mc-custom-select {
  --mc-select-accent: #6348d4;
  --mc-select-accent-soft: #f0edff;
  --mc-select-accent-ring: rgba(99, 72, 212, .14);
  --mc-select-border: #d9ddea;
  --mc-select-ink: #303a52;
  position: relative;
  width: 100%;
}
.mc-custom-select-provider {
  --mc-select-accent: #258467;
  --mc-select-accent-soft: #eaf7f1;
  --mc-select-accent-ring: rgba(37, 132, 103, .14);
  --mc-select-border: #d2e5dd;
  --mc-select-ink: #315e52;
}
.mc-custom-select-moderator {
  --mc-select-accent: #34708f;
  --mc-select-accent-soft: #edf7fb;
  --mc-select-accent-ring: rgba(52, 112, 143, .14);
  --mc-select-border: #d2e0e9;
  --mc-select-ink: #315970;
}
.mc-custom-select-admin {
  --mc-select-accent: #66599d;
  --mc-select-accent-soft: #f1effb;
  --mc-select-accent-ring: rgba(102, 89, 157, .14);
  --mc-select-border: #ddd9ec;
  --mc-select-ink: #3e3858;
}
.mc-custom-select > .mc-custom-select-trigger {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0;
  min-height: 42px;
  padding: 10px 42px 10px 13px !important;
  border: 1px solid var(--mc-select-border) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--mc-select-ink) !important;
  font: inherit;
  font-weight: 650 !important;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1 !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 43, 67, .025);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.mc-custom-select > .mc-custom-select-trigger::after {
  content: '' !important;
  position: absolute;
  top: 50%;
  right: 15px;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 2px solid var(--mc-select-accent) !important;
  border-bottom: 2px solid var(--mc-select-accent) !important;
  opacity: 1 !important;
  transform: translateY(-65%) rotate(45deg) !important;
  transform-origin: 65% 65%;
  transition: transform .16s ease, border-color .16s ease;
  pointer-events: none;
}
.mc-custom-select > .mc-custom-select-trigger:hover {
  border-color: var(--mc-select-accent) !important;
  background: #fcfbff !important;
  color: var(--mc-select-ink) !important;
}
.mc-custom-select > .mc-custom-select-trigger:focus-visible {
  outline: 0;
  border-color: var(--mc-select-accent) !important;
  box-shadow: 0 0 0 3px var(--mc-select-accent-ring) !important;
}
.mc-custom-select.is-open > .mc-custom-select-trigger {
  border-color: var(--mc-select-accent) !important;
  background: #fff !important;
  color: var(--mc-select-ink) !important;
  box-shadow: 0 0 0 3px var(--mc-select-accent-ring) !important;
}
.mc-custom-select.is-open > .mc-custom-select-trigger::after {
  transform: translateY(-35%) rotate(225deg) !important;
}
.mc-custom-select.is-disabled > .mc-custom-select-trigger {
  cursor: not-allowed;
  opacity: .62 !important;
  background: #f4f5f8 !important;
}
.mc-custom-select-options {
  position: absolute;
  z-index: 110;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-height: min(280px, 45vh);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--mc-select-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(47, 37, 100, .11);
  animation: mc-custom-select-in .14s ease-out;
  scrollbar-width: thin;
  scrollbar-color: #c9c3dd transparent;
}
.mc-custom-select-options[hidden] { display: none; }
.mc-custom-select-options::-webkit-scrollbar { width: 7px; }
.mc-custom-select-options::-webkit-scrollbar-track { background: transparent; }
.mc-custom-select-options::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c9c3dd;
}
.mc-custom-select .mc-custom-select-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #343c50 !important;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .14s ease, color .14s ease;
}
.mc-custom-select .mc-custom-select-option:hover,
.mc-custom-select .mc-custom-select-option:focus-visible {
  background: #f3f0ff !important;
  color: #5038b7 !important;
  outline: 0;
}
.mc-custom-select .mc-custom-select-option.is-selected {
  background: #ebe7ff !important;
  color: #543cc1 !important;
  font-weight: 700;
}
.mc-custom-select .mc-custom-select-option.is-selected:hover,
.mc-custom-select .mc-custom-select-option.is-selected:focus-visible { background: #e6e0ff !important; }
.mc-custom-select .mc-custom-select-option.is-selected::after { content: '✓'; margin-left: auto; color: #5a40cb; font-weight: 850; }
.mc-custom-select .mc-custom-select-option:disabled { cursor: not-allowed; opacity: .55; }
@keyframes mc-custom-select-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  .mc-custom-select-trigger { min-height: 44px; font-size: 16px; }
  .mc-custom-select-options { max-height: min(300px, 48vh); }
}
.client-conversation-filters button,
.provider-conversation-filters button {
  background: #eef1f3 !important;
  color: #68768a !important;
  box-shadow: none !important;
}
.client-conversation-filters button.active {
  background: #6348d4 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(99,72,212,.18) !important;
}
.provider-conversation-filters button.active {
  background: #208b73 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(31,130,107,.18) !important;
}
.provider-channel-note { margin: 0 0 16px; padding: 12px 13px; border: 1px solid #dcece7; border-radius: 10px; background: #f8fcfa; }
.provider-channel-note b { color: #23574c; font-size: 13px; }
.provider-channel-note p { margin: 5px 0 0 !important; color: #657a74 !important; line-height: 1.5; }

/* Espacio profesional: navegación compacta y consistente, sin cambiar sus acciones. */
.provider-sidebar {
  padding: 22px 14px 18px !important;
  background: #173f36 !important;
}
.provider-logo {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 4px 10px 27px !important;
}
.provider-logo > i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 10px !important;
  font-size: 17px;
}
.provider-logo > span {
  min-width: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.provider-logo > small {
  position: static !important;
  margin: 0 !important;
  color: #94c5b9 !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.25;
}
#providerNav {
  display: grid;
  gap: 4px;
}
#providerNav button,
.provider-sidebar .provider-logout {
  position: relative;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #c9e3dc !important;
  font-size: 13px;
  font-weight: 720 !important;
  line-height: 1.25;
  text-align: left;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}
#providerNav button .provider-nav-icon,
.provider-sidebar .provider-logout .provider-nav-icon {
  display: block;
  box-sizing: border-box;
  width: 19px;
  height: 19px;
  margin: 0 auto;
  color: #91c8ba;
  overflow: visible;
  vector-effect: non-scaling-stroke;
  transition: color .16s ease;
}
#providerNav button span,
.provider-sidebar .provider-logout span {
  min-width: 0;
  margin: 0 !important;
}
#providerNav button:hover,
.provider-sidebar .provider-logout:hover {
  border-color: rgba(172, 232, 212, .12) !important;
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
}
#providerNav button:hover .provider-nav-icon,
.provider-sidebar .provider-logout:hover .provider-nav-icon {
  color: #d6fff1;
}
#providerNav button.active {
  border-color: rgba(124, 222, 185, .18) !important;
  background: rgba(83, 184, 146, .18) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #65caae !important;
}
#providerNav button.active .provider-nav-icon { color: #bff5e1; }
#providerNav em {
  display: inline-grid !important;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  padding: 2px 6px !important;
  border: 1px solid rgba(255, 230, 151, .35);
  border-radius: 999px;
  background: #f7c95b !important;
  color: #3d3010 !important;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}
.provider-sidebar .provider-logout {
  grid-template-columns: 22px minmax(0, 1fr);
  margin-top: auto !important;
  padding-top: 17px !important;
  border-top-color: rgba(195, 235, 220, .13) !important;
  border-radius: 0 !important;
  color: #b7d8cf !important;
}
.provider-sidebar .provider-logout:hover {
  border-radius: 10px !important;
  border-top-color: rgba(172, 232, 212, .12) !important;
  transform: translateX(1px);
}
.mc-nav-mode.admin {
  background: #eeeaff !important;
  color: #4d3fb4 !important;
}
@media (max-width: 820px) {
  .provider-sidebar { padding: 16px !important; }
  .provider-logo { padding: 2px 6px 17px !important; }
  #providerNav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #providerNav button { min-height: 41px; }
  .provider-sidebar .provider-logout {
    width: auto !important;
    margin-top: 14px !important;
    padding: 12px 10px !important;
    border-top: 0 !important;
  }
}
@media (max-width: 420px) {
  #providerNav { grid-template-columns: 1fr; }
}

/* Isotipo vectorial: solo manos, con transparencia real y color adaptado al contexto. */
.brand > i,
.provider-logo > i,
.admin-logo > i,
.moderation-logo > i {
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0 !important;
  background: var(--mc-logo-symbol-color, #173b73) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-mask: url("assets/logo-symbol.svg") center / contain no-repeat;
  mask: url("assets/logo-symbol.svg") center / contain no-repeat;
}
.brand > i { --mc-logo-symbol-color: #173b73; }
.provider-logo > i { --mc-logo-symbol-color: #bfeadd; }
.admin-logo > i { --mc-logo-symbol-color: #ddd7ff; }
.moderation-logo > i { --mc-logo-symbol-color: #d5edfa; }

/* Perfil público profesional: ficha compacta y coherente con Manos Cerca. */
#publicProfile.public-profile {
  background: #f8f8fc;
  color: #17223e;
}
#publicProfile.public-profile .profile-top {
  max-width: 1240px;
  height: 70px;
}
#publicProfile.public-profile .profile-hero {
  padding: 10px 0 0;
  background: transparent;
}
#publicProfile.public-profile .profile-card {
  grid-template-columns: minmax(315px, .9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "identity about"
    "details details"
    "utility utility";
  gap: 23px 38px;
  padding: 134px 28px 20px;
  border: 1px solid #e7e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(45, 39, 90, .08);
}
#publicProfile.public-profile .profile-card::before {
  height: 124px;
  background:
    radial-gradient(ellipse at 14% -25%, rgba(255, 255, 255, .45), transparent 48%),
    radial-gradient(ellipse at 70% 10%, rgba(255, 255, 255, .16), transparent 34%),
    linear-gradient(118deg, #cfc1ff 0%, #9679f3 45%, #6945e8 100%);
}
#publicProfile.public-profile .profile-card::after {
  width: 280px;
  height: 190px;
  right: -48px;
  top: -99px;
  border-color: rgba(255, 255, 255, .2);
  box-shadow:
    -52px 67px 0 -4px rgba(255, 255, 255, .065),
    -138px 7px 0 -26px rgba(255, 255, 255, .055);
}
#publicProfile.public-profile .profile-identity {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 19px;
  align-items: start;
}
#publicProfile.public-profile .profile-avatar {
  width: 116px !important;
  height: 116px !important;
  min-width: 116px !important;
  min-height: 116px !important;
  max-width: 116px !important;
  max-height: 116px !important;
  margin-top: -75px;
  border: 5px solid #fff;
  box-shadow: 0 10px 25px rgba(30, 28, 64, .18);
  font-size: 30px;
}
#publicProfile.public-profile .profile-card h1 {
  margin-top: 0;
  color: #15203d;
  font-size: clamp(29px, 2.7vw, 37px);
  line-height: 1.06;
  letter-spacing: -1.35px;
}
#publicProfile.public-profile .profile-username {
  margin: 5px 0 12px;
  color: #68748b;
  font-size: 13px;
}
#publicProfile.public-profile .profile-meta {
  gap: 6px 12px;
  color: #56647d;
  font-size: 13px;
}
#publicProfile.public-profile .profile-reputation {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
  color: #24314d;
  font-size: 14px;
}
#publicProfile.public-profile .profile-reputation .stars {
  font-size: 18px;
}
#publicProfile.public-profile .profile-review-count {
  margin-left: 3px;
  padding-left: 9px;
  border-left: 1px solid #dfe2ea;
  color: #6f7a8d;
  font-size: 12px;
  font-weight: 700;
}
#publicProfile.public-profile .profile-about {
  align-self: center;
  padding: 0;
}
#publicProfile.public-profile .profile-about-label {
  margin-bottom: 9px !important;
  color: #6c52d7 !important;
  font-size: 10px !important;
  letter-spacing: .11em;
}
#publicProfile.public-profile .profile-about [data-profile-bio] {
  max-width: 620px;
  color: #46546d !important;
  font-size: 15px !important;
  line-height: 1.58 !important;
}
#publicProfile.public-profile .profile-identity-actions {
  gap: 9px;
  margin-top: 18px;
}
#publicProfile.public-profile .profile-identity-actions .profile-primary-action,
#publicProfile.public-profile .profile-identity-actions .client-btn:not(.subtle),
#publicProfile.public-profile .profile-identity-actions .profile-secondary-action,
#publicProfile.public-profile .profile-identity-actions .client-btn.subtle {
  min-height: 43px;
  padding: 10px 15px !important;
  border-radius: 11px !important;
  font-size: 13px;
}
#publicProfile.public-profile .profile-detail-grid {
  grid-area: details;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: visible;
  padding: 14px 0;
  border: 1px solid #e7e8f0;
  border-radius: 16px;
  background: #fbfbfe;
}
#publicProfile.public-profile .profile-detail-grid:has(.profile-detail-card:empty) {
  grid-template-columns: 1fr;
}
#publicProfile.public-profile .profile-detail-card {
  min-height: 74px;
  padding: 5px 21px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#publicProfile.public-profile .profile-detail-card:empty {
  display: none;
}
#publicProfile.public-profile .profile-detail-card + .profile-detail-card:not(:empty) {
  border-left: 1px solid #e3e4ec;
}
#publicProfile.public-profile .profile-detail-grid:has(.profile-detail-card:empty) .profile-detail-card {
  border-left: 0;
}
#publicProfile.public-profile .profile-coverage b,
#publicProfile.public-profile .mc-public-availability b {
  margin-bottom: 7px;
  color: #202c48;
  font-size: 12px;
}
#publicProfile.public-profile .profile-coverage em {
  padding: 5px 8px;
  background: #eeeaff !important;
}
#publicProfile.public-profile .mc-public-availability > span {
  font-size: 12px;
  line-height: 1.4;
}
#publicProfile.public-profile .mc-public-availability small {
  margin-top: 2px;
  font-size: 10px;
}
#publicProfile.public-profile .profile-utility-actions {
  grid-area: utility;
  align-self: center;
  justify-self: start;
}
#publicProfile.public-profile .profile-utility-actions [data-profile-copy-action] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #747f92;
  font: inherit;
  font-size: 11px;
  font-weight: 740;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
#publicProfile.public-profile .profile-utility-actions [data-profile-copy-action]::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 3px 3px 0 -1px #f8f8fc, 3px 3px 0 0 currentColor;
}
#publicProfile.public-profile .profile-utility-actions [data-profile-copy-action]:hover,
#publicProfile.public-profile .profile-utility-actions [data-profile-copy-action]:focus-visible {
  background: #f3f1ff;
  color: #5941ca;
  outline: 0;
}
#publicProfile.public-profile .profile-card > .report-action {
  grid-area: utility;
  align-self: center;
  justify-self: end;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: #858e9d !important;
  font-size: 10px !important;
  box-shadow: none !important;
}
#publicProfile.public-profile .profile-section:empty {
  display: none;
}

@media (max-width: 920px) {
  #publicProfile.public-profile .profile-card {
    grid-template-columns: minmax(275px, .9fr) minmax(0, 1.1fr);
    gap: 22px 28px;
    padding-inline: 23px;
  }
  #publicProfile.public-profile .profile-identity {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 16px;
  }
  #publicProfile.public-profile .profile-avatar {
    width: 102px !important;
    height: 102px !important;
    min-width: 102px !important;
    min-height: 102px !important;
    max-width: 102px !important;
    max-height: 102px !important;
    margin-top: -66px;
  }
}

@media (max-width: 760px) {
  #publicProfile.public-profile .profile-card {
    grid-template-columns: 1fr;
    grid-template-areas: "identity" "about" "details" "utility";
    gap: 18px;
    padding: 123px 20px 18px;
  }
  #publicProfile.public-profile .profile-card::before { height: 112px; }
  #publicProfile.public-profile .profile-identity {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 15px;
  }
  #publicProfile.public-profile .profile-avatar {
    width: 94px !important;
    height: 94px !important;
    min-width: 94px !important;
    min-height: 94px !important;
    max-width: 94px !important;
    max-height: 94px !important;
    margin-top: -61px;
  }
  #publicProfile.public-profile .profile-about { align-self: start; }
  #publicProfile.public-profile .profile-detail-grid {
    grid-template-columns: 1fr;
    padding: 5px 0;
  }
  #publicProfile.public-profile .profile-detail-card {
    min-height: 0;
    padding: 13px 17px;
  }
  #publicProfile.public-profile .profile-detail-card + .profile-detail-card:not(:empty) {
    border-top: 1px solid #e3e4ec;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  #publicProfile.public-profile .profile-top {
    height: 62px;
    padding-inline: 14px;
  }
  #publicProfile.public-profile .profile-card {
    gap: 16px;
    padding: 108px 15px 15px;
    border-radius: 18px;
  }
  #publicProfile.public-profile .profile-card::before { height: 98px; }
  #publicProfile.public-profile .profile-identity {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }
  #publicProfile.public-profile .profile-avatar {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
    max-width: 78px !important;
    max-height: 78px !important;
    margin-top: -50px;
    border-width: 4px;
  }
  #publicProfile.public-profile .profile-card h1 {
    font-size: 25px;
    letter-spacing: -1px;
  }
  #publicProfile.public-profile .profile-username { margin-bottom: 9px; }
  #publicProfile.public-profile .profile-meta { font-size: 11px; }
  #publicProfile.public-profile .profile-reputation { font-size: 12px; }
  #publicProfile.public-profile .profile-review-count {
    margin-left: 0;
    padding-left: 7px;
  }
  #publicProfile.public-profile .profile-identity-actions .profile-primary-action,
  #publicProfile.public-profile .profile-identity-actions .client-btn:not(.subtle),
  #publicProfile.public-profile .profile-identity-actions .profile-secondary-action,
  #publicProfile.public-profile .profile-identity-actions .client-btn.subtle {
    flex: 1 1 140px;
    min-height: 42px;
  }
  #publicProfile.public-profile .profile-utility-actions [data-profile-copy-action] {
    font-size: 10px;
  }
}

/* Provider requests: compact management layout and filter state clarity. */
#providerPanel:has(#inquiryList) {
  padding-top: 20px !important;
}

#providerPanel:has(#inquiryList) > .provider-toolbar {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 11px;
}

#providerPanel:has(#inquiryList) > .provider-toolbar > p {
  flex: 1 1 260px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

#providerPanel:has(#inquiryList) .provider-conversation-filters {
  display: flex;
  flex: 1 1 590px;
  justify-content: flex-end;
  gap: 5px;
  width: auto;
  margin: 0;
  padding: 3px;
  border-radius: 10px;
}

#providerPanel:has(#inquiryList) .provider-conversation-filters > .provider-action {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent !important;
  color: #687871 !important;
  box-shadow: none !important;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#providerPanel:has(#inquiryList) .provider-conversation-filters > .provider-action:not(.primary):hover {
  border-color: #d5e4df;
  background: #e7efec !important;
  color: #2f6257 !important;
}

#providerPanel:has(#inquiryList) .provider-conversation-filters > .provider-action.primary {
  border-color: #208b73;
  background: #208b73 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(31, 130, 107, .18) !important;
}

#providerPanel:has(#inquiryList) .provider-conversation-filters > .mc-custom-select {
  flex: 1 1 160px;
  width: auto;
  min-width: 145px;
}

#providerPanel:has(#inquiryList) .provider-conversation-filters .mc-custom-select-trigger {
  min-height: 34px;
  padding-block: 7px !important;
  font-size: 12px;
}

#providerPanel:has(#inquiryList) > .provider-inquiry-card {
  display: grid;
  gap: 7px;
  padding: 7px !important;
  border-radius: 13px !important;
}

#providerPanel:has(#inquiryList) #inquiryList > .inquiry {
  margin: 0;
  padding: 0 !important;
  border-radius: 12px !important;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-layout {
  gap: 14px !important;
  padding: 13px 15px !important;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-head small {
  margin-top: 2px;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-tags {
  gap: 5px;
  margin-top: 7px;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-main > p {
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.45;
}

#providerPanel:has(#inquiryList) #inquiryList .provider-request-summary {
  gap: 5px 7px;
  margin: 8px 0 1px;
}

#providerPanel:has(#inquiryList) #inquiryList .provider-request-summary span {
  min-height: 23px;
  padding: 3px 7px;
  font-size: 10.5px;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-workflow {
  gap: 8px;
  min-width: 164px;
  padding-left: 13px;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-workflow-actions {
  gap: 5px;
  margin-top: 7px;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-workflow-actions .provider-action {
  min-height: 35px;
  padding: 7px 9px;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-secondary-actions {
  gap: 6px;
  margin-top: 0;
  padding: 8px 15px;
}

#providerPanel:has(#inquiryList) #inquiryList .inquiry-secondary-actions .provider-action {
  min-height: 32px;
  padding: 6px 9px;
}

@media (max-width: 820px) {
  #providerPanel:has(#inquiryList) { padding-top: 15px !important; }
  #providerPanel:has(#inquiryList) > .provider-toolbar {
    align-items: stretch;
    gap: 8px;
    padding: 9px 10px;
  }
  #providerPanel:has(#inquiryList) > .provider-toolbar > p {
    flex: 0 0 auto;
  }
  #providerPanel:has(#inquiryList) .provider-conversation-filters {
    flex: 1 1 auto;
    justify-content: flex-start;
    width: 100%;
  }
  #providerPanel:has(#inquiryList) #inquiryList .inquiry-layout {
    gap: 11px !important;
    padding: 12px 13px !important;
  }
  #providerPanel:has(#inquiryList) #inquiryList .inquiry-workflow {
    min-width: 0;
    padding: 10px 0 0;
  }
  #providerPanel:has(#inquiryList) #inquiryList .inquiry-secondary-actions {
    padding: 8px 13px;
  }
}

@media (max-width: 520px) {
  #providerPanel:has(#inquiryList) .provider-conversation-filters > .provider-action {
    flex: 1 1 calc(50% - 3px);
  }
  #providerPanel:has(#inquiryList) .provider-conversation-filters > .mc-custom-select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  #providerPanel:has(#inquiryList) > .provider-inquiry-card { padding: 5px !important; }
  #providerPanel:has(#inquiryList) #inquiryList .inquiry-layout { padding: 11px !important; }
  #providerPanel:has(#inquiryList) #inquiryList .inquiry-secondary-actions {
    padding: 8px 11px;
  }
}
