* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #08142d;
  background: #ffffff;
  --blue: #075fe4;
  --teal: #00a99d;
  --ink: #08142d;
  --muted: #5b6680;
  --line: #e6ebf3;
  --soft: #f6f9fd;
  --shadow: 0 18px 48px rgba(14, 31, 64, 0.11);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: #ffffff;
  overflow-x: clip;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1130px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

main,
section {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: min(168px, 44vw);
  min-height: 42px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

/* Cabecera: wordmark completo (W + Workori), mismo asset que el pie. */
.brand-logo {
  width: 168px;
  height: 42px;
  display: block;
  background-image: url("assets/workori-logo.png?v=20260604-logo-hq");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  padding: 4px;
  border: 1px solid #e9eef6;
  border-radius: 999px;
  background: rgba(247, 249, 252, 0.88);
  min-width: 0;
}

.main-nav a {
  color: #0f1a33;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a.nav-current {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(14, 31, 64, 0.08);
}

.mobile-nav-group-label {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .btn-primary {
  padding: 0 16px;
  white-space: nowrap;
}

.header-actions .login-button {
  padding: 10px 4px;
  font-size: 0.84rem;
}

.main-nav .nav-quick-path {
  display: none;
}

.mobile-nav-link {
  display: none;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.language-option {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.language-option.active {
  color: #ffffff;
  background: var(--blue);
}

.login-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 6px;
  white-space: nowrap;
}

.owner-access-button {
  color: #06357e;
}

.logout-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  padding: 0 12px;
}

/* Cerrar sesión — rojo para localización rápida */
.btn-logout,
.logout-button.btn-logout {
  color: #ffffff;
  background: #dc2626;
  border-color: #b91c1c;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.28);
}

.btn.btn-logout {
  color: #ffffff;
  background: #dc2626;
  border: 1px solid #b91c1c;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.28);
}

.btn-logout:hover,
.logout-button.btn-logout:hover,
.btn.btn-logout:hover {
  color: #ffffff;
  background: #b91c1c;
  border-color: #991b1b;
}

.btn-logout:focus-visible,
.logout-button.btn-logout:focus-visible,
.btn.btn-logout:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

.btn {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.service-card:hover,
.outline-button:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(7, 95, 228, 0.22);
}

.btn-secondary {
  color: var(--blue);
  background: #ffffff;
}

body.master-authenticated #bookService {
  display: none;
}

body.master-authenticated .main-nav {
  gap: 20px;
}

body.master-authenticated .header-inner {
  gap: 16px;
}

body.admin-locked main {
  display: none !important;
}

body.admin-locked #logoutButton {
  display: none !important;
}

body:not(.master-authenticated) #master-dashboard {
  display: none !important;
}

body.master-authenticated #loginModal {
  display: none !important;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: start;
  padding: clamp(22px, 2.6vw, 34px) 0 clamp(58px, 5.6vw, 82px);
  background: #f4f7fa;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 95, 228, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 95, 228, 0.06) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
  opacity: 0.16;
}

.hero::after {
  z-index: 1;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 36%,
    rgba(255, 255, 255, 0.9) 45%,
    rgba(255, 255, 255, 0.68) 55%,
    rgba(255, 255, 255, 0.34) 66%,
    rgba(255, 255, 255, 0.08) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  padding-top: 4px;
}

.pilot-banner {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(7, 95, 228, 0.1);
  color: var(--primary, #075fe4);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.role-intro .pilot-banner {
  margin-bottom: 0.25rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  max-width: 36rem;
  margin-bottom: 0;
  font-size: clamp(2.45rem, 4.9vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: normal;
}

h1 {
  max-width: 590px;
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 4.9vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-copy h1 span {
  color: var(--teal);
  white-space: nowrap;
}

h1 span {
  color: var(--teal);
  white-space: nowrap;
}

.hero-text {
  max-width: 34rem;
  margin-top: 4px;
  margin-bottom: 0;
  color: #111a2f;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.hero-search {
  width: 100%;
  max-width: none;
  container-type: inline-size;
  container-name: hero-search;
}

@container hero-search (max-width: 520px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  .field-group {
    min-height: auto;
  }
}

.hero-search-foot {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
}

.search-form {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #dce6f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 48px rgba(14, 31, 64, 0.1);
}

.field-group-autocomplete {
  position: relative;
  overflow: visible;
}

.field-label-stack {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
}

.field-label-title {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

.search-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Miniatura de icono PNG (el asset ya trae fondo mint; no añadir caja blanca). */
.service-thumb {
  --thumb-size: 40px;
  width: var(--thumb-size);
  height: var(--thumb-size);
  flex-shrink: 0;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(14, 31, 64, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.service-thumb--card {
  --thumb-size: 52px;
}

.service-thumb--pick {
  --thumb-size: 48px;
}

.service-thumb--suggestion {
  --thumb-size: 36px;
}

.service-thumb--inline {
  --thumb-size: 40px;
}

.service-thumb--tile {
  --thumb-size: 52px;
}

.service-thumb--row {
  --thumb-size: 32px;
  border-radius: 10px;
}

.service-thumb--tag {
  --thumb-size: 24px;
  border-radius: 8px;
  box-shadow: none;
}

.service-thumb__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.service-quick-picks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-quick-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-quick-strip,
.service-quick-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c5d8f2 transparent;
}

.service-quick-thumb,
.service-quick-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  padding: 0;
  border: none;
  background: transparent;
  color: #06357e;
  cursor: pointer;
  text-align: center;
}

.service-quick-thumb__label,
.service-quick-chip > span:last-child {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 72px;
}

.service-quick-thumb:hover .service-thumb,
.service-quick-thumb:focus-visible .service-thumb,
.service-quick-chip:hover .service-thumb {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 169, 157, 0.22);
}

.service-quick-thumb:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 10px;
}

.search-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #c7daf8;
  border-radius: 10px;
  background: #f5f9ff;
}

.search-preview-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 220px;
  min-width: 0;
}

.search-preview-icon {
  flex-shrink: 0;
}

.search-preview p {
  margin: 0;
  color: #06357e;
  font-weight: 800;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion:focus {
  background: #edf5ff;
  color: var(--blue);
  outline: 0;
}

.search-suggestion .service-thumb {
  flex-shrink: 0;
}

.search-suggestion-label {
  min-width: 0;
  text-align: left;
}

.field-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 86px;
  padding: 12px 12px 13px;
  border: 1px solid #e4ecf6;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.field-group-location {
  overflow: hidden;
}

.field-group label {
  margin: 0;
}

.field-group input {
  width: 100%;
  min-height: 28px;
  padding: 2px 0 6px;
  border: 0;
  border-bottom: 1px solid #e2eaf5;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.96rem;
  font-weight: 600;
  transition: border-color 0.16s ease;
}

.field-group:focus-within input {
  border-bottom-color: #b8cff5;
}

.field-group input::placeholder {
  color: #7b8598;
  font-weight: 500;
}

.field-group:focus-within {
  border-color: #b8d0f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(7, 95, 228, 0.08);
}

.location-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.location-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
}

.location-button {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cae8e6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.location-button:hover,
.location-button:focus {
  border-color: var(--teal);
  background: #f4fffd;
  outline: 0;
}

.location-button.is-loading {
  border-color: var(--blue);
  background: #edf5ff;
}

.location-button.is-loading .location-button-icon {
  animation: location-pulse 0.85s ease-in-out infinite;
}

.location-button-icon {
  display: block;
  flex-shrink: 0;
  color: var(--blue);
}

.location-button:hover .location-button-icon,
.location-button:focus .location-button-icon {
  color: var(--teal);
}

@keyframes location-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

.search-form .btn,
.search-form-submit {
  grid-column: 1 / -1;
  min-height: 52px;
  margin-top: 2px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 24px rgba(7, 95, 228, 0.22);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  width: 100%;
  margin-top: 4px;
  padding-top: 4px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  color: #1e2a43;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-badges span::before,
.provider-cta li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border: 1px solid #cae8e6;
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.75rem;
}

.hero-media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-top: clamp(-10px, -1.2vw, -4px);
  margin-left: clamp(-140px, -7vw, -72px);
  margin-right: 0;
  justify-self: end;
  align-self: stretch;
  min-height: clamp(480px, 54vh, 630px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.hero-float-stack {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.hero-float-stack--tr {
  top: 40%;
  right: clamp(20px, 4.5vw, 48px);
  width: min(205px, calc(100% - 32px));
  align-items: stretch;
}

.hero-float-stack .hero-job-card,
.hero-float-stack .status-card {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% top;
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 8%,
      rgba(0, 0, 0, 0.72) 18%,
      #000 30%,
      #000 100%
    );
  mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 8%,
      rgba(0, 0, 0, 0.72) 18%,
      #000 30%,
      #000 100%
    );
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.82) 12%,
      rgba(255, 255, 255, 0.38) 26%,
      rgba(255, 255, 255, 0.08) 40%,
      rgba(255, 255, 255, 0) 52%
    ),
    linear-gradient(180deg, rgba(8, 20, 45, 0) 62%, rgba(8, 20, 45, 0.1) 100%);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 20%;
  right: 0;
  bottom: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 45, 0.1));
  filter: none;
  pointer-events: none;
}

.hero-trust-card,
.hero-job-card,
.status-card {
  z-index: 2;
  pointer-events: auto;
}

.hero-trust-card,
.hero-job-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(230, 235, 243, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(14, 31, 64, 0.13);
  backdrop-filter: blur(14px);
}

.hero-trust-card {
  position: absolute;
  left: clamp(28px, 9vw, 132px);
  bottom: clamp(82px, 11vh, 130px);
  grid-template-columns: 38px 1fr;
  gap: 12px;
  width: min(300px, calc(100% - 32px));
  padding: 14px 16px;
}

.hero-trust-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.hero-trust-card strong,
.hero-job-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.hero-trust-card small,
.hero-job-card small,
.hero-job-card span {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.hero-job-card {
  padding: 12px 14px;
}

.hero-job-card__copy {
  display: grid;
  gap: 4px;
}

.hero-job-card .service-thumb {
  align-self: center;
}

.hero-job-card small {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-job-card strong {
  font-size: 1.02rem;
}

.hero-job-card span {
  font-size: 0.82rem;
  font-weight: 700;
}

.status-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(14, 31, 64, 0.14);
  backdrop-filter: blur(14px);
}

.avatar-stack {
  display: flex;
  margin-bottom: 8px;
}

.avatar-stack span {
  width: 24px;
  height: 24px;
  margin-right: -7px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a62df, #28b4a9);
}

.status-card strong {
  display: inline-block;
  margin-left: 8px;
}

.status-card small {
  display: block;
  color: var(--muted);
}

.status-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

.status-card p {
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-card b {
  display: block;
  margin-top: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.section {
  padding: 54px 0;
}

.section-white {
  background: #ffffff;
}

.compact-section {
  padding-top: 24px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  overflow-wrap: break-word;
}

.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.row-heading a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

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

.service-card {
  position: relative;
  min-height: 184px;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  place-items: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(14, 31, 64, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover,
.service-card.selected {
  border-color: rgba(7, 95, 228, 0.35);
  box-shadow: 0 16px 36px rgba(14, 31, 64, 0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #cde3ff;
  border-radius: 12px;
  color: var(--blue);
  background: linear-gradient(180deg, #f3f8ff 0%, #e8f2ff 100%);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.service-icon--photo,
.service-card .service-thumb--card {
  border: none;
  background: transparent;
  padding: 0;
}

.service-card:hover .service-thumb,
.service-card.selected .service-thumb {
  box-shadow: 0 8px 22px rgba(0, 169, 157, 0.24);
  transform: translateY(-1px);
}

.service-card:hover .service-icon:not(.service-icon--photo),
.service-card.selected .service-icon:not(.service-icon--photo) {
  border-color: rgba(0, 169, 157, 0.35);
  color: var(--teal);
  background: linear-gradient(180deg, #effefb 0%, #e0f7f4 100%);
}

.service-card strong {
  font-size: 1rem;
  line-height: 1.25;
}

.service-card small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.service-card b {
  align-self: end;
  margin-top: 8px;
  color: var(--blue);
  font-size: 0.83rem;
}

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

.step-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
}

.step-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
}

.step-card:nth-child(2) > span {
  background: var(--teal);
}

.step-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-band {
  padding: 34px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 24px;
  border-radius: 8px;
  background: #f5f8fc;
}

.feature-grid article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 8px 16px;
}

.feature-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  grid-row: 1 / 3;
}

.feature-grid h3 {
  grid-column: 2;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.feature-grid p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.provider-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(14, 31, 64, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.provider-card:hover {
  border-color: rgba(7, 95, 228, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(14, 31, 64, 0.11);
}

.provider-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center center;
  background: #f3f7fb;
}

.photo-1,
.photo-2,
.photo-3,
.photo-4 {
  object-position: center center;
}

.provider-card h3,
.provider-card p,
.provider-card small {
  margin-left: 16px;
  margin-right: 16px;
}

.provider-card h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.provider-card h3 span {
  color: var(--blue);
  font-size: 0.75rem;
}

.provider-card p {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

.provider-card small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
}

.outline-button {
  width: calc(100% - 32px);
  min-height: 40px;
  margin: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.provider-cta {
  padding: 34px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px) clamp(18px, 4vw, 56px);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(120deg, #0646b8 0%, #075fe4 38%, #00a99d 100%);
}

.cta-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  overflow-wrap: break-word;
}

.cta-grid p {
  max-width: 100%;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  overflow-wrap: break-word;
}

.provider-cta ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.provider-cta li::before {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.stats-section {
  padding-top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 28px;
  border-radius: 8px;
  background: #f7f9fc;
}

.stats-grid article {
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: #06357e;
  font-size: 1.55rem;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-section {
  background: #f7f9fc;
  padding: 24px 0 40px;
}

.dashboard-section > .container {
  width: min(1720px, calc(100vw - 40px));
  max-width: none;
}

.dashboard-shell {
  display: grid;
  gap: 22px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(14, 31, 64, 0.08);
  min-width: 0;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.dashboard-header > div {
  min-width: 0;
}

.dashboard-session {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-header h2,
.login-modal h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.dashboard-header p:not(.dashboard-kicker),
.login-modal p:not(.dashboard-kicker):not(.login-error) {
  max-width: min(620px, 100%);
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

.session-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #cae8e6;
  border-radius: 999px;
  color: #067a72;
  background: #eefbf9;
  font-size: 0.86rem;
  font-weight: 900;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.dashboard-stats span,
.dashboard-stats small,
.provider-admin-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-stats strong {
  display: block;
  margin: 8px 0 4px;
  color: #06357e;
  font-size: 1.8rem;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
}

.dashboard-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font-weight: 900;
}

.dashboard-tab.active {
  color: #ffffff;
  background: var(--blue);
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

.dashboard-panel {
  min-width: 0;
}

.dashboard-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(120px, 1.3fr) minmax(96px, 1fr) minmax(88px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.dashboard-table .table-row:not(.table-head):nth-child(even) {
  background: #f0f6ff;
}

.dashboard-table .table-row:not(.table-head):nth-child(odd) {
  background: #fff;
}

.dashboard-table .table-row:not(.table-head):hover {
  background: #e4efff;
}

.table-row-actions {
  grid-template-columns:
    minmax(88px, 0.75fr)
    minmax(120px, 1.15fr)
    minmax(96px, 1fr)
    minmax(88px, 0.7fr)
    minmax(150px, 1fr);
  min-width: min(100%, 760px);
}

.table-row-incoming {
  grid-template-columns:
    minmax(88px, 0.7fr)
    minmax(120px, 1fr)
    minmax(100px, 0.9fr)
    minmax(100px, 0.9fr)
    minmax(96px, 0.85fr)
    minmax(88px, 0.65fr)
    minmax(220px, 1.2fr);
  min-width: 100%;
}

.table-row-connections {
  grid-template-columns:
    minmax(92px, 0.75fr)
    minmax(120px, 1.1fr)
    minmax(110px, 1fr)
    minmax(120px, 1.05fr)
    minmax(120px, 1fr)
    minmax(88px, 0.7fr)
    minmax(200px, 1.35fr);
  min-width: 100%;
}

.table-cell-stack {
  display: grid;
  gap: 3px;
}

.table-cell-stack strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.table-cell-stack small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.table-cell-stack--service {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.table-cell-stack--service .table-cell-stack-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-service-field {
  display: grid;
  gap: 10px;
}

.client-service-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.client-service-tile.is-selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f5f9ff 0%, #edf5ff 100%);
  box-shadow: 0 0 0 1px rgba(7, 95, 228, 0.15);
}

.client-service-tile.is-selected .service-thumb--tile {
  box-shadow: 0 6px 16px rgba(0, 169, 157, 0.2);
}

.provider-service-tile.is-selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f5f9ff 0%, #edf5ff 100%);
  box-shadow: 0 0 0 1px rgba(7, 95, 228, 0.15);
}

.admin-simulate-hint {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-simulate-hint a {
  color: #0b57d0;
  font-weight: 800;
}

.provider-fieldset {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d8e3f2;
  border-radius: 12px;
}

.provider-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.provider-profile-card {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #d8e3f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.provider-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.provider-profile-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.provider-profile-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.provider-profile-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.provider-profile-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid #ffe0a3;
  color: #7a4d00;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.provider-profile-grid section h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3d4d6a;
}

.provider-profile-dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.provider-profile-dl div {
  display: grid;
  gap: 2px;
}

.provider-profile-dl dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.provider-profile-dl dd {
  margin: 0;
  color: var(--ink);
}

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

.provider-license-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.45;
}

.provider-profile-muted {
  color: var(--muted);
}

.provider-profile-detail {
  display: grid;
  gap: 12px;
}

@media (max-width: 760px) {
  .provider-profile-grid {
    grid-template-columns: 1fr;
  }
}

.admin-workflow-hint {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #edf5ff;
  color: #06357e;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-panel-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.table-action-muted {
  background: #f4f7fb;
}

.admin-request-modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.provider-profile-backdrop {
  padding: 12px 16px;
  place-items: center;
}

.provider-profile-modal {
  position: relative;
  width: min(1600px, calc(100vw - 40px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 32px 44px 44px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(8, 20, 45, 0.26);
}

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

.provider-profile-modal-header {
  margin: 0 48px 12px 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-provider-hero {
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid #dce6f4;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef4fc 55%, #ffffff 100%);
}

.admin-provider-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.admin-provider-hero-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.admin-provider-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #d4e2f4;
  background: #fff;
  flex-shrink: 0;
}

.admin-provider-hero-logo--fallback {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #06357e;
  background: #e8f1ff;
}

.admin-provider-hero-brand-text {
  min-width: 0;
}

.admin-provider-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.admin-provider-hero-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
}

.admin-provider-hero-ref {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-provider-hero-owner {
  display: flex;
  gap: 14px;
  align-items: center;
}

.admin-provider-hero-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(8, 20, 45, 0.12);
  flex-shrink: 0;
}

.admin-provider-hero-photo--fallback {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #06357e;
  background: #dbeafe;
}

.admin-provider-hero-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-provider-hero-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-provider-hero-rating {
  text-align: left;
}

.admin-rating-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
}

.admin-rating-star {
  color: #c5d3e8;
  font-size: 1.15rem;
  line-height: 1;
}

.admin-rating-star.is-filled {
  color: #f5a623;
}

.admin-rating-value {
  margin-left: 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

.admin-provider-hero-reviews {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-provider-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-provider-stat {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dce6f4;
  text-align: center;
}

.admin-provider-stat-value {
  color: #06357e;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.admin-provider-stat-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
}

.admin-work-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.admin-work-history-item {
  padding: 14px 16px;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #fff;
}

.admin-work-history-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: baseline;
}

.admin-work-history-head strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.admin-work-history-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-work-history-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0 0;
  color: #3d4d6a;
  font-size: 0.88rem;
}

.admin-work-history-source {
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef4fc;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-work-history-rating {
  color: #f5a623;
  letter-spacing: 1px;
}

.admin-work-history-summary {
  margin: 10px 0 0;
  color: #2f3f5c;
  font-size: 0.9rem;
  line-height: 1.55;
}

.provider-portal-hero {
  margin-bottom: 18px;
}

.provider-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.provider-media-upload label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.provider-media-upload input[type='file'] {
  font-size: 0.88rem;
}

.provider-media-preview {
  min-height: 88px;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #c5d3e8;
  border-radius: 12px;
  background: #f7fbff;
  display: grid;
  place-items: center;
}

.provider-media-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  object-fit: contain;
}

.provider-media-preview--error {
  color: #9b1c1c;
  font-size: 0.85rem;
  font-weight: 700;
}

.client-review-panel {
  margin-bottom: 20px;
}

.client-review-list {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.client-review-card {
  padding: 16px;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #fafcff;
}

.client-review-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.client-review-stars {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
}

.client-review-star {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 1.4rem;
}

.client-review-star input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.client-review-star:has(input:checked),
.client-review-star:hover {
  color: #f59e0b;
}

.admin-verification-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-verification-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
}

.admin-assign-quote {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.admin-assign-quote input {
  max-width: 160px;
}

.client-payments-list {
  display: grid;
  gap: 20px;
}

.client-payment-card__head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.client-payment-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 16px 0;
}

.client-payment-summary div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8ff;
}

.client-payment-summary dt {
  font-size: 0.78rem;
  color: #64748b;
}

.client-payment-summary dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.client-payment-contract__body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  max-height: 220px;
  overflow: auto;
}

.client-payment-contract__accept {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-weight: 600;
}

.client-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.client-payment-status--ok {
  color: #0f766e;
  font-weight: 700;
}

.client-payments-notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  margin-bottom: 16px;
}

.provider-job-payment-hint {
  margin: 0 0 8px;
}

.provider-repeatable-list {
  display: grid;
  gap: 14px;
  margin: 12px 0;
}

.provider-license-row,
.provider-work-row {
  padding: 14px;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #fafcff;
}

.provider-row-remove,
.provider-add-row {
  margin-top: 8px;
}

.provider-profile-edit-panel {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #dce6f4;
  border-radius: 14px;
  background: #fff;
}

.provider-profile-edit-panel summary {
  cursor: pointer;
  font-weight: 800;
  color: #06357e;
}

.provider-profile-edit-form {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .provider-media-grid {
    grid-template-columns: 1fr;
  }
}

.provider-profile-modal-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.provider-profile-modal-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.provider-profile-modal-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.provider-profile-modal .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.provider-profile-modal .status-aprobado {
  background: #e8f1ff;
  color: #06357e;
}

.provider-profile-modal .status-pendiente {
  background: #fff4e5;
  color: #9a5b00;
}

.provider-profile-modal .status-rechazado,
.provider-profile-modal .status-suspendido {
  background: #fdecec;
  color: #9b1c1c;
}

.admin-provider-profile-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.admin-provider-profile-card {
  padding: 18px 20px;
  border: 1px solid #dce6f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 24px rgba(8, 20, 45, 0.04);
}

.admin-provider-profile-card--wide {
  grid-column: 1 / -1;
}

.admin-provider-profile-card h3 {
  margin: 0 0 12px;
  color: #06357e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-provider-subheading {
  margin: 14px 0 8px;
  color: #3d4d6a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-provider-dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.admin-provider-dl div {
  display: grid;
  gap: 4px;
}

.admin-provider-dl--rows div {
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px 20px;
  align-items: baseline;
}

.admin-provider-dl dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-provider-dl dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.admin-provider-dl a {
  color: #0b57d0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-provider-text {
  margin: 0;
  color: #2f3f5c;
  font-size: 0.96rem;
  line-height: 1.6;
}

.admin-provider-text-lead {
  font-size: 1rem;
  line-height: 1.65;
}

.admin-provider-text-spaced {
  margin-top: 12px;
}

.admin-provider-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-provider-muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-provider-profile-alert {
  background: #fff8e8;
  border-color: #ffe0a3;
  color: #7a4d00;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-license-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-license-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d4e2f4;
  border-radius: 10px;
  background: #fff;
}

.admin-license-card strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.admin-license-card span {
  color: #3d4d6a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-license-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-detail-service {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-detail-service p {
  margin: 0;
}

.admin-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #06357e;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
}

.admin-provider-profile-card--experience {
  grid-column: span 2;
}

@media (max-width: 1180px) {
  .provider-profile-modal {
    width: calc(100vw - 24px);
    max-width: none;
    padding: 24px 28px 28px;
  }

  .admin-provider-hero-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-provider-hero-stats {
    grid-column: 1 / -1;
  }

  .admin-provider-profile-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-provider-profile-card--experience {
    grid-column: 1 / -1;
  }

  .admin-license-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-provider-hero-inner {
    grid-template-columns: 1fr;
  }

  .admin-provider-hero-stats {
    grid-template-columns: 1fr;
  }

  .admin-provider-profile-body {
    grid-template-columns: 1fr;
  }

  .admin-provider-profile-card--experience {
    grid-column: auto;
  }

  .admin-license-cards {
    grid-template-columns: 1fr;
  }

  .admin-provider-dl--rows div {
    grid-template-columns: 1fr;
  }
}

.admin-request-detail {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.admin-detail-block h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-detail-block p {
  margin: 0;
  color: #3d4d6a;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-line;
}

.admin-match-list {
  margin: 0;
  padding-left: 18px;
  color: #3d4d6a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-detail-actions {
  margin-top: 8px;
}

.admin-ops-issues {
  display: grid;
  gap: 12px;
}

.admin-ops-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #c8d5ea;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-ops-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d8e3f2;
  background: #fff;
}

.admin-ops-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.admin-ops-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-ops-high {
  border-color: #f5c2c7;
  background: #fff5f5;
}

.admin-ops-medium {
  border-color: #ffe0a3;
  background: #fffaf0;
}

.admin-ops-low {
  border-color: #cfe0f5;
  background: #f7fbff;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  color: var(--muted);
  background: #f7f9fc;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.table-row b {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #075fe4;
  background: #edf5ff;
  font-size: 0.82rem;
}

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

.table-actions--compact {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
}

.table-actions--compact .table-action-button {
  padding: 0 10px;
  white-space: nowrap;
}

.table-actions--compact .table-status-select {
  min-width: 118px;
  max-width: 150px;
}

.dashboard-table .table-cell-stack,
.dashboard-table .table-cell-stack--service,
.dashboard-table .table-actions {
  min-width: 0;
}

.table-status-select,
.table-action-button {
  min-height: 36px;
  border: 1px solid #c7daf8;
  border-radius: 8px;
  background: #ffffff;
  color: #06357e;
  font-size: 0.82rem;
  font-weight: 900;
}

.table-status-select {
  min-width: 138px;
  padding: 0 8px;
}

.table-action-button {
  padding: 0 12px;
}

.table-action-button:hover,
.table-status-select:focus {
  border-color: var(--blue);
  outline: 0;
}

.table-action-danger {
  border-color: #fecaca;
  color: #b42318;
}

.table-action-button.is-loading,
.table-status-select.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.provider-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.provider-admin-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.provider-admin-grid strong {
  display: block;
}

.provider-admin-grid span {
  display: block;
  margin: 12px 0 4px;
  color: #06357e;
  font-size: 1.8rem;
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 45, 0.82);
}

.login-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(8, 20, 45, 0.26);
}

/* Perfil prestador: no usar .login-modal (460px); ancho casi pantalla completa */
.modal-backdrop.provider-profile-backdrop .provider-profile-modal,
.login-modal.provider-profile-modal {
  width: min(1600px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 32px 44px 44px;
  border-radius: 16px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.login-route-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.login-route-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-route-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #06357e;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.route-link:hover,
.modal-close:hover {
  border-color: rgba(7, 95, 228, 0.28);
  background: #f4f8ff;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.profile-modal {
  width: min(720px, 100%);
}

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

.profile-form .btn {
  grid-column: 1 / -1;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.login-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  outline: 0;
}

.login-form input:focus {
  border-color: rgba(7, 95, 228, 0.45);
  box-shadow: 0 0 0 4px rgba(7, 95, 228, 0.1);
}

.login-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer {
  margin-top: 12px;
  padding: 44px 0 28px;
  border-top: 1px solid #dce6f2;
  background: linear-gradient(180deg, #f9fbfe 0%, #f2f6fc 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  padding-bottom: 28px;
}

.footer-grid--compact {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
}

.footer-brand {
  width: 132px;
  min-height: 34px;
}

.footer-brand .brand-logo {
  width: 132px;
  height: 34px;
  background-image: url("assets/workori-logo.png?v=20260604-logo-hq");
  background-position: left center;
}

.footer-tagline {
  margin: 14px 0 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-col-title {
  margin: 4px 0 14px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #3d4d6a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--blue);
  outline: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid #dce6f2;
}

.footer-copy {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-meta {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: right;
}

.footer-flow-note {
  margin: 0 0 22px;
  padding: 11px 14px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #ffffff;
  color: #06357e;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.footer-legal a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus {
  color: var(--blue);
  text-decoration: underline;
}

.footer-bottom--solo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 18px;
  border-top: 1px solid #dce6f2;
}

.legal-main {
  padding: 48px 0 64px;
  background: var(--soft);
}

.legal-content {
  max-width: 720px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
}

.legal-updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-content h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: #1a2744;
}

.seo-hub {
  max-width: 760px;
}

.seo-hub h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}

.seo-hub h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.seo-hub-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1a2744;
}

.seo-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-service-links,
.seo-benefits {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.seo-service-links a {
  color: var(--primary, #075fe4);
  font-weight: 600;
}

.seo-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.seo-city-grid li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
}

.seo-faq {
  margin: 0;
}

.seo-faq dt {
  margin-top: 20px;
  font-weight: 700;
  color: #0f1a33;
}

.seo-faq dt:first-child {
  margin-top: 0;
}

.seo-faq dd {
  margin: 8px 0 0;
  color: #1a2744;
  line-height: 1.6;
}

.provider-public-profile {
  max-width: 720px;
}

.provider-public-meta {
  color: var(--muted);
  margin: 0 0 16px;
}

.provider-public-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.provider-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.provider-public-reviews {
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-public-review {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.provider-public-review p {
  margin: 6px 0 0;
  color: #1a2744;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.legal-content code {
  font-size: 0.88em;
  background: var(--soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-links {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.legal-links a {
  color: var(--blue);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: min(460px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: #08142d;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.role-page {
  background: #fbfdff;
}

.role-page-provider .owner-access-button {
  display: none;
}

.provider-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.provider-benefits,
.provider-process {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  list-style: none;
}

.provider-benefits {
  display: grid;
  gap: 10px;
  font-weight: 700;
  color: #1e2a43;
}

.provider-benefits li::before,
.provider-process li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border: 1px solid #cae8e6;
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.75rem;
}

.provider-process {
  counter-reset: provider-step;
  display: grid;
  gap: 10px;
}

.provider-process li {
  counter-increment: provider-step;
  color: #3d4d6a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.provider-process li::before {
  content: counter(provider-step);
  border-color: #cfe0f5;
  color: var(--blue);
  font-weight: 900;
}

.role-form-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.provider-services-hint {
  margin: 0 0 10px;
}

.provider-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 12px;
}

.provider-services-grid.field-invalid,
.client-service-grid.field-invalid {
  padding: 12px;
  border: 1px solid #f4b4b4;
  border-radius: 12px;
  background: #fff7f7;
}

/* Tarjeta de selección de servicio (proveedor checkbox / cliente botón radio). */
.provider-service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 118px;
  padding: 12px 10px 10px;
  border: 2px solid #e3ecf8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #06357e;
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.provider-service-tile:hover {
  border-color: #b8d4f8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 31, 64, 0.08);
}

.provider-service-tile:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.provider-service-tile:has(input:checked) {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f5f9ff 0%, #edf5ff 100%);
  box-shadow: 0 0 0 1px rgba(7, 95, 228, 0.15);
}

.provider-service-tile__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.provider-service-tile__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  color: #06357e;
}

.provider-service-tile__mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: 2px solid #cfe0f5;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.provider-service-tile__mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.provider-service-tile:has(input:checked) .provider-service-tile__mark {
  border-color: var(--blue);
  background: var(--blue);
}

.provider-service-tile:has(input:checked) .provider-service-tile__mark::after {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

.provider-service-tile .service-thumb--tile {
  --thumb-size: 52px;
  box-shadow: 0 4px 12px rgba(14, 31, 64, 0.08);
}

.provider-service-tile:has(input:checked) .service-thumb--tile {
  box-shadow: 0 6px 16px rgba(0, 169, 157, 0.2);
}

.role-location-row {
  margin-top: 4px;
}

.role-location-row input {
  min-width: 0;
}

.provider-terms span {
  line-height: 1.45;
}

.provider-confirm-eta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.provider-status-portal-link {
  display: inline-flex;
  margin: 12px 0 4px;
}

.provider-status-panel {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: #f5f9ff;
}

.provider-status-panel h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.provider-status-panel > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.provider-status-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.provider-status-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.provider-status-result {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #06357e;
  font-weight: 700;
}

.provider-status-result--success {
  border: 1px solid #b8d0f6;
  background: #edf5ff;
}

.provider-portal-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: linear-gradient(90deg, #edf5ff 0%, #f4fffd 100%);
}

.provider-portal-banner p {
  margin: 0;
  color: #06357e;
  font-size: 0.9rem;
  font-weight: 700;
}

.provider-portal-shell {
  max-width: 920px;
}

.provider-portal-profile {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.provider-portal-profile strong {
  display: block;
  font-size: 1.1rem;
}

.provider-portal-profile p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.provider-portal-profile dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.provider-portal-profile dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.provider-portal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.provider-portal-stats article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  text-align: center;
}

.provider-portal-stats strong {
  display: block;
  color: #06357e;
  font-size: 1.5rem;
}

.provider-portal-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.provider-jobs-panel {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.provider-jobs-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.provider-jobs-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-row-provider-jobs {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 0.7fr 0.7fr auto;
}

.table-row-provider-jobs small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.role-main {
  min-height: calc(100vh - 74px);
}

.role-section {
  padding: 42px 0 64px;
}

.role-shell {
  max-width: 820px;
  width: 100%;
}

.flow-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

.flow-breadcrumb a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.flow-breadcrumb a:hover {
  text-decoration: underline;
}

.flow-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.flow-steps li.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #edf5ff;
}

.flow-steps li.complete {
  border-color: #c5e0ff;
  color: #06357e;
  background: #f5faff;
}

.role-intro {
  margin-bottom: 28px;
}

.role-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.role-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.role-form,
.role-confirmation {
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.role-form-wide {
  grid-column: 1 / -1;
}

.role-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.role-form-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.role-location-row input {
  min-width: 0;
}

.role-form input,
.role-form select,
.role-form textarea {
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  outline: 0;
  resize: vertical;
}

.role-form textarea {
  min-height: 120px;
}

.role-form input:focus,
.role-form select:focus,
.role-form textarea:focus {
  border-color: rgba(7, 95, 228, 0.45);
  box-shadow: 0 0 0 4px rgba(7, 95, 228, 0.1);
}

.role-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.client-auth-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.client-pin-toggle {
  margin: 10px 0 5px;
  text-align: center;
}

.client-pin-login {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.client-pin-login-title {
  font-weight: 700;
  margin: 0 0 12px;
}

.client-pin-login-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.client-pin-login-fields label {
  flex: 1;
  min-width: 130px;
}

.client-pin-login-fields .btn {
  min-width: 100px;
  height: 44px;
}

.client-pin-login-error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin: 8px 0;
}

.client-pin-setup {
  margin: 16px 0;
  padding: 18px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: #f0f7ff;
}

.client-pin-setup-title {
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--primary);
}

.client-pin-setup-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 12px;
}

.client-pin-setup-fields label {
  flex: 1;
  min-width: 130px;
}

.client-pin-setup-fields input {
  max-width: 180px;
}

.client-pin-setup-error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin: 8px 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  padding: 4px 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--primary-hover);
}

.client-auth-note,
.client-auth-welcome {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.client-auth-welcome {
  margin: 0;
  color: var(--ink);
}

.client-auth-divider {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.btn-google:hover {
  border-color: #c7daf8;
  background: #f8fbff;
}

.google-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #4285f4;
  font-weight: 900;
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.role-form label.role-form-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.role-form-remember input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}

.form-error {
  margin: 16px 0 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-error.form-success {
  color: #027a48;
}

.role-form input.field-invalid,
.role-form select.field-invalid,
.role-form textarea.field-invalid {
  border-color: #f04438;
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12);
}

.btn.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.role-status-note {
  margin: 0 0 12px;
  color: #06357e;
  font-weight: 800;
}

.table-row-pending {
  background: #fff8eb;
}

.table-row-pending b {
  color: #b54708;
}

.role-confirmation h2 {
  margin: 0 0 10px;
}

.role-confirmation p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.role-reference {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 8px;
  background: #edf5ff;
  color: #06357e;
  font-weight: 800;
}

.role-reference strong {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .flow-steps {
    flex-direction: column;
  }
}

@media (min-width: 1281px) {
  .mobile-nav-link {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .main-nav:not(.active) {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav.active {
    position: fixed;
    inset: 74px 16px auto;
    z-index: 40;
    display: grid;
    gap: 4px;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.active a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 12px;
    white-space: normal;
  }

  .main-nav.active .mobile-nav-group-label {
    display: block;
    margin: 8px 10px 4px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    pointer-events: none;
  }

  .mobile-nav-link {
    display: block;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 800;
    color: var(--blue);
  }

  #providerButton,
  #bookService,
  .owner-access-button {
    display: none;
  }
}

@media (max-width: 1200px) {
  .main-nav {
    gap: 4px;
  }
}

@media (max-width: 1040px) {
  .hero {
    background: #ffffff;
  }

  .hero::before {
    opacity: 0.2;
    mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.92) 18%,
      rgba(255, 255, 255, 0.4) 42%,
      rgba(255, 255, 255, 0) 62%
    );
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    aspect-ratio: 16 / 11;
    min-height: 320px;
    max-width: 680px;
    width: 100%;
    margin-right: 0;
    justify-self: center;
    border-radius: 12px;
  }

  .hero-photo {
    object-position: center 18%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, #000 100%);
    mask-image: linear-gradient(180deg, #000 70%, #000 100%);
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 22%, transparent 48%),
      linear-gradient(180deg, rgba(8, 20, 45, 0) 50%, rgba(8, 20, 45, 0.22) 100%);
  }

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

  .feature-grid,
  .stats-grid,
  .dashboard-stats,
  .provider-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid .btn {
    width: 100%;
    justify-self: start;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .field-group {
    min-height: 80px;
    padding: 12px 14px;
  }

  .search-form .btn,
  .search-form-submit {
    min-height: 52px;
    width: 100%;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-shell {
    padding: 20px;
  }

  .dashboard-header h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 68px;
    gap: 8px;
  }

  .brand {
    max-width: min(140px, 40vw);
    min-height: 36px;
  }

  .brand-logo {
    width: 140px;
    height: 36px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-option {
    min-width: 32px;
  }

  .login-button {
    padding: 8px 4px;
    font-size: 0.82rem;
  }

  .logout-button {
    display: none;
  }

  .hero {
    padding: 22px 0 44px;
  }

  h1 {
    font-size: clamp(2.05rem, 8.2vw, 2.72rem);
    line-height: 1.1;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .search-helper {
    font-size: 0.84rem;
  }

  .service-quick-picks {
    gap: 8px;
  }

  .service-quick-thumb,
  .service-quick-chip {
    width: 64px;
  }

  .service-thumb--pick {
    --thumb-size: 44px;
  }

  .hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .hero-media {
    aspect-ratio: 4 / 5;
    min-height: 360px;
  }

  .hero-photo {
    object-position: center top;
  }

  .hero-float-stack--tr {
    display: none;
  }

  .hero-trust-card {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 12px;
  }

  .hero-job-card {
    padding: 12px;
  }

  .status-card {
    display: none;
  }

  .service-grid,
  .steps-grid,
  .provider-grid,
  .feature-grid,
  .stats-grid,
  .dashboard-stats,
  .provider-admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    padding: 18px;
  }

  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-session {
    width: 100%;
    justify-content: flex-start;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }

  .table-head {
    display: none;
  }

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

  .role-form-grid {
    grid-template-columns: 1fr;
  }

  .provider-highlight-grid {
    grid-template-columns: 1fr;
  }

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

  .provider-status-form .btn {
    width: 100%;
  }

  .role-form-actions .btn {
    width: 100%;
  }

  .step-card {
    align-items: start;
  }

  .feature-grid article {
    padding: 10px 0;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-grid {
    padding: 24px 18px;
  }

  .cta-grid .btn {
    width: 100%;
  }

  .role-section {
    padding: 28px 0 48px;
  }

  .role-intro h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .login-modal,
  .profile-modal {
    padding: 22px 18px;
  }

  .footer-grid,
  .footer-grid--compact {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

.role-intro-actions {
  margin-top: 14px;
}

.card-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

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

.messages-layout--provider,
.messages-layout--admin {
  margin-top: 12px;
}

.dashboard-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  background: #dc2626;
  color: #fff;
  vertical-align: middle;
}

.support-hub-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #c7d7f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
}

.support-hub-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #06357e;
}

.support-hub-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.support-hub-notify-status {
  margin-top: 8px !important;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.support-hub-notify-status--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.support-hub-notify-status--warn {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.support-hub-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.support-hub-template-btn {
  padding: 5px 10px;
  border: 1px solid #c7d7f5;
  border-radius: 999px;
  background: #f8fbff;
  color: #06357e;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.support-hub-template-btn:hover {
  background: #e8f1ff;
  border-color: #93b4e8;
}

.support-hub-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}

.support-hub-sidebar .messages-inbox-header {
  margin-top: 8px;
}

.support-hub-sidebar .messages-inbox-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.support-hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.support-hub-filter {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.support-hub-filter:hover,
.support-hub-filter.active {
  border-color: var(--blue);
  background: #f0f6ff;
  color: #06357e;
}

.request-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.request-filter {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.request-filter:hover,
.request-filter.active {
  border-color: var(--blue);
  background: #f0f6ff;
  color: #06357e;
}

.request-filter-meta {
  margin: 0 0 10px;
}

.dashboard-stat--clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-stat--clickable:hover {
  box-shadow: 0 8px 24px rgba(7, 95, 228, 0.12);
  transform: translateY(-1px);
}

.table-action-button.table-action-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.table-action-button.table-action-primary:hover {
  background: #0652c7;
  border-color: #0652c7;
  color: #fff;
}

.admin-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.support-hub-queue {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.support-hub-queue-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.support-hub-queue-list {
  display: grid;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.support-hub-queue-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  cursor: pointer;
}

.support-hub-queue-item:hover {
  border-color: #f59e0b;
  background: #fef3c7;
}

.support-hub-queue-item strong {
  display: block;
  font-size: 0.88rem;
}

.support-hub-queue-item span,
.support-hub-queue-item small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.support-hub-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 320px;
  padding: 24px;
  text-align: center;
}

.support-hub-placeholder h3 {
  margin: 0;
}

.support-hub-placeholder p {
  margin: 0;
  color: var(--muted);
}

.support-hub-context h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.support-hub-context-body {
  display: grid;
  gap: 12px;
}

.support-hub-policy-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.82rem;
}

.support-hub-context-block {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.support-hub-context-block h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.support-hub-context-block p {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: var(--muted);
}

.support-hub-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-hub-related-list {
  display: grid;
  gap: 6px;
}

.support-hub-related-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.support-hub-related-item:hover {
  border-color: var(--blue);
  background: #f0f6ff;
}

.support-hub-related-item strong {
  display: block;
  font-size: 0.86rem;
}

.support-hub-related-item span,
.support-hub-related-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.message-thread-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #dc2626;
  color: #fff;
}

.provider-policy-notice,
.client-policy-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.86rem;
}

.client-demo-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.88rem;
}

.client-demo-banner a {
  color: #1d4ed8;
  font-weight: 600;
}

.client-demo-shell {
  max-width: 640px;
}

.client-demo-card {
  padding: 24px;
}

.client-demo-lead {
  color: var(--muted);
  line-height: 1.55;
}

.client-demo-profile ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
}

.client-demo-profile li {
  margin-bottom: 6px;
}

.client-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.client-demo-note {
  margin-top: 16px;
}

.role-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.support-hub-needs-service {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 700;
}

.support-hub-needs-location {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.86rem;
}

.support-hub-outzone-title {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #9a3412;
}

.support-hub-link-panel {
  display: grid;
  gap: 12px;
}

.support-hub-provider-cards {
  display: grid;
  gap: 8px;
}

.support-hub-provider-card {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.support-hub-provider-card strong {
  display: block;
  font-size: 0.9rem;
}

.support-hub-provider-card span,
.support-hub-provider-card small,
.support-hub-provider-card em {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
}

.support-hub-provider-card em {
  margin-top: 4px;
  color: #065f46;
  font-weight: 600;
}

.support-hub-provider-card:hover,
.support-hub-provider-card--selected {
  border-color: var(--blue);
  background: #f0f6ff;
}

.support-hub-provider-card--preferred {
  border-color: #10b981;
  background: #ecfdf5;
}

.support-hub-provider-card--top {
  border-color: #93c5fd;
}

.support-hub-provider-card--outzone {
  border-color: #fed7aa;
  background: #fff7ed;
}

.support-hub-provider-card--outzone em {
  color: #9a3412;
}

.support-hub-assign-row {
  display: grid;
  gap: 8px;
}

.support-hub-provider-select {
  width: 100%;
}

.support-hub-no-match {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.84rem;
}

.support-hub-request-view {
  display: grid;
  gap: 14px;
  min-height: 320px;
  padding: 4px 0;
}

.support-hub-request-header h3 {
  margin: 0 0 4px;
}

.support-hub-request-service {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-hub-request-details {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.support-hub-related-item--actionable {
  border-color: #fde68a;
  background: #fffbeb;
}

.support-hub-related-item.active {
  border-color: var(--blue);
  background: #f0f6ff;
}

.support-hub-queue-item--smart small:last-child {
  color: #065f46;
  font-weight: 600;
}

.messages-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.messages-inbox-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.provider-search-block {
  display: grid;
  gap: 10px;
}

.provider-search-results {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 4px;
}

.provider-search-card {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  cursor: pointer;
}

.provider-search-card:hover,
.provider-search-card.active {
  border-color: var(--blue);
  background: #f0f6ff;
}

.provider-search-card strong {
  display: block;
  margin-bottom: 4px;
}

.provider-search-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.provider-search-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  margin-top: 4px;
}

.provider-search-selected-label {
  margin: 0;
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}

.messages-company-chat {
  margin: 12px 0 4px;
  display: grid;
  gap: 8px;
}

.message-thread-row--support {
  border-color: #c7d7f5;
  background: #f5f9ff;
}

.message-thread-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e8f0ff;
  color: #06357e;
}

.message-thread-badge--support {
  background: #fee2e2;
  color: #991b1b;
}

.staff-chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.staff-chat-sidebar {
  display: grid;
  gap: 16px;
  max-height: min(72vh, 720px);
  overflow-y: auto;
}

.staff-chat-sidebar-section h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.staff-collaborator-list,
.staff-group-picks {
  display: grid;
  gap: 8px;
}

.staff-collaborator-row,
.staff-group-pick {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  cursor: pointer;
  font: inherit;
}

.staff-collaborator-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.staff-collaborator-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e7f0ff;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}

.staff-collaborator-copy {
  min-width: 0;
}

.staff-collaborator-row strong {
  display: block;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-collaborator-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-presence {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
}

.staff-presence--online {
  color: #15803d;
}

.staff-collaborator-row.active {
  border-color: var(--blue);
  background: #eef4ff;
}

.staff-collaborator-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  text-align: right;
}

.staff-chat-sidebar-section--individual {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.staff-supervision-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(180, 120, 0, 0.12);
  border: 1px solid rgba(180, 120, 0, 0.35);
  font-size: 0.875rem;
  line-height: 1.4;
}

.staff-supervision-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  justify-content: center;
}

.staff-chat-layout--supervision .staff-chat-sidebar-section:not(.staff-chat-sidebar-section--supervision) {
  display: none;
}

.staff-chat-sidebar-section--supervision-entry {
  margin-bottom: 0.5rem;
}

.staff-chat-sidebar-section--group {
  padding-top: 4px;
}

.staff-subheading {
  margin: 14px 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.staff-search-label {
  display: block;
  margin-bottom: 8px;
}

.staff-search-label input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.staff-chat-placeholder {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-height: 420px;
  padding: 28px 32px;
  color: var(--muted);
}

.staff-chat-placeholder-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eef4ff;
  color: var(--blue);
}

.staff-chat-placeholder-icon svg {
  width: 34px;
  height: 34px;
}

.staff-chat-placeholder h3 {
  margin: 0;
  color: var(--text);
}

.staff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.staff-icon svg {
  display: block;
}

.staff-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.staff-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.staff-icon-btn__label {
  line-height: 1.2;
}

.staff-icon-btn--primary .staff-icon {
  color: #fff;
}

.staff-input-with-icon {
  position: relative;
  display: block;
}

.staff-input-with-icon .staff-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.staff-input-with-icon input {
  padding-left: 38px;
}

.staff-empty-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fbfdff;
}

.staff-thread-row-top,
.staff-float-row-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.staff-thread-kind-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--blue);
}

.staff-thread-kind-icon .staff-icon svg {
  width: 18px;
  height: 18px;
}

.message-thread-row strong {
  flex: 1;
  min-width: 0;
}

.staff-pinned-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #06357e;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.staff-collaborator-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.staff-msg-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.staff-msg-action:hover {
  border-color: #9bb8e8;
  color: var(--blue);
  background: #fff;
}

.staff-msg-action--danger:hover {
  border-color: #f5c2c2;
  color: #b42318;
  background: #fff1f1;
}

.staff-msg-action--success:hover {
  border-color: #86efac;
  color: #15803d;
  background: #f0fdf4;
}

.staff-task-linked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #06357e;
  font-size: 0.72rem;
  font-weight: 800;
}

.staff-thread-pin.staff-msg-action {
  margin-top: 4px;
}

.staff-compose-context-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.staff-icon--context {
  color: var(--blue);
}

.staff-compose-clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.staff-compose-clear:hover {
  color: var(--blue);
  border-color: #9bb8e8;
}

.staff-attachment-file-chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  background: #eef4ff;
  color: #06357e;
}

.staff-attachment-audio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.staff-attachment--file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-task-row-actions .staff-msg-action {
  flex: 1;
  justify-content: center;
}

.staff-group-pick.active {
  border-color: var(--blue);
  background: #eef4ff;
  font-weight: 800;
}

.staff-new-group-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.staff-chat-main,
.staff-chat-placeholder {
  grid-column: 2;
  grid-row: 1;
}

.staff-chat-main {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
}

.staff-chat-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.staff-chat-back {
  flex: 0 0 auto;
  margin-top: 2px;
}

.staff-chat-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.staff-chat-header-copy h3 {
  margin: 0;
}

.message-bubble--mine {
  margin-left: auto;
  max-width: 88%;
  background: #e8f0ff;
  border-color: #c7d7f5;
}

.message-bubble--staff {
  max-width: 88%;
  background: #f8fafc;
}

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

  .staff-chat-layout--conversation .staff-chat-sidebar {
    display: none;
  }

  .staff-chat-layout--conversation .staff-chat-main,
  .staff-chat-layout--conversation .staff-chat-placeholder {
    grid-column: 1;
  }
}

.messages-thread-list {
  display: grid;
  gap: 8px;
}

.message-thread-row {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  cursor: pointer;
}

.message-thread-row.active,
.message-thread-row:hover {
  border-color: #9bb8e8;
  background: #f0f6ff;
}

.message-thread-row strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.message-thread-row span,
.message-thread-row p,
.message-thread-row time {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.message-thread-row p {
  margin: 6px 0;
  color: var(--ink);
}

.message-unread-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #06357e;
  font-size: 0.75rem;
  font-weight: 700;
}

.message-thread-row strong .message-unread-badge,
.staff-float-row strong .message-unread-badge {
  flex: 0 0 auto;
  margin-top: 0;
}

.staff-thread-typing {
  color: var(--blue) !important;
  font-weight: 800;
}

.staff-chat-tools {
  display: grid;
  gap: 8px;
}

.staff-message-search-label {
  margin-bottom: 0;
}

.staff-search-results {
  display: grid;
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.staff-search-result {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.staff-search-result:hover {
  border-color: #9bb8e8;
  background: #f0f6ff;
}

.staff-search-result strong,
.staff-search-result span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-search-result strong {
  color: var(--text);
  font-size: 0.82rem;
}

.staff-search-result span {
  color: var(--muted);
  font-size: 0.78rem;
}

.staff-typing-indicator {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.staff-typing-indicator--float {
  margin: -4px 0 8px;
}

.staff-message-status {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.staff-message-quote {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.staff-message-quote strong,
.staff-message-quote span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-message-quote strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.staff-message-quote span {
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-message-attachments {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.staff-attachment {
  display: inline-grid;
  gap: 6px;
  max-width: 260px;
  color: var(--ink);
  text-decoration: none;
}

.staff-attachment--image img {
  width: min(240px, 100%);
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.staff-attachment--image span,
.staff-attachment--file span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-attachment--file {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.staff-attachment--audio {
  display: grid;
  gap: 6px;
  max-width: min(320px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.staff-attachment-audio-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.staff-attachment--audio audio {
  width: 100%;
  min-height: 36px;
}

.staff-chat-sidebar-section--tasks {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.staff-task-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.staff-task-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.staff-task-row strong {
  font-size: 0.86rem;
}

.staff-task-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-task-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.staff-task-row-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

#staffVoiceBtn.is-recording,
#staffFloatVoiceBtn.is-recording {
  border-color: #d64545;
  background: #fff1f1;
  color: #b42318;
}

.staff-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  opacity: 0.72;
}

.message-bubble:hover .staff-message-actions {
  opacity: 1;
}

.staff-mention {
  padding: 0 3px;
  border-radius: 4px;
  background: #e8f1ff;
  color: #06357e;
  font-weight: 800;
}

.staff-compose-context {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #c7d7f5;
  border-radius: 8px;
  background: #f0f6ff;
}

.staff-compose-context div {
  min-width: 0;
}

.staff-compose-context strong,
.staff-compose-context span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-compose-context strong {
  font-size: 0.78rem;
}

.staff-compose-context span {
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-compose-context button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
}

.staff-attachment-preview {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-attachment-preview-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.staff-attachment-preview-item img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
}

.staff-attachment-preview-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-attachment-preview-item small,
.staff-attachment-file-chip {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
}

.staff-attachment-file-chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  background: #eef4ff;
  color: #06357e;
}

.staff-mention-suggestions {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  max-height: 170px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(14, 31, 64, 0.12);
}

.staff-mention-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.staff-mention-suggestions button:hover {
  border-color: #9bb8e8;
  background: #f0f6ff;
}

.staff-mention-suggestions span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-compose-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.staff-compose-actions .staff-icon-btn--icon-only {
  justify-content: center;
  gap: 0;
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
}

.staff-compose-actions .staff-icon-btn--icon-only .staff-icon svg {
  width: 20px;
  height: 20px;
}

.message-thread-row--pinned {
  border-color: #b6c9ec;
  background: #f6f9ff;
}

.staff-pinned-label {
  display: inline-flex !important;
  flex: 0 0 auto;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef4ff;
  color: #06357e !important;
  font-size: 0.68rem !important;
  font-weight: 900;
}

.staff-thread-actions {
  margin-top: 8px;
}

.staff-thread-pin {
  display: inline-flex !important;
  width: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue) !important;
  font-size: 0.72rem !important;
  font-weight: 800;
}

.message-bubble--highlight {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.messages-thread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.messages-thread-header h2,
.messages-thread-header h3 {
  margin: 0 0 4px;
}

.messages-thread-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.messages-scroll {
  display: grid;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.message-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7f9fc;
}

.message-bubble--client {
  background: #eef4ff;
  border-color: #c5d8f5;
}

.message-bubble--provider {
  background: #f2fbf4;
  border-color: #c6e8cc;
}

.message-bubble--admin {
  background: #fff8ec;
  border-color: #edd9a8;
}

.message-bubble header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.message-bubble header time {
  color: var(--muted);
  white-space: nowrap;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.messages-compose {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.messages-compose .role-form-wide {
  min-width: 0;
}

.messages-compose textarea {
  width: 100%;
  min-height: 88px;
}

.messages-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.staff-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
}

.staff-float-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 36px rgba(9, 60, 150, 0.24);
  cursor: pointer;
}

.staff-float-toggle:hover,
.staff-float-toggle[aria-expanded="true"] {
  background: #0756c9;
}

.staff-float-icon {
  position: relative;
  width: 27px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 10px;
}

.staff-float-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -6px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(35deg);
  background: var(--blue);
}

.staff-float-toggle:hover .staff-float-icon::after,
.staff-float-toggle[aria-expanded="true"] .staff-float-icon::after {
  background: #0756c9;
}

.staff-float-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 17px;
}

.staff-float-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(400px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.staff-float-body {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.staff-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.staff-float-nav-back {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.staff-float-nav-back:hover {
  border-color: #9bb8e8;
  background: #f0f6ff;
}

.staff-float-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.staff-float-header h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.staff-float-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.staff-float-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.staff-float-home,
.staff-float-conversation {
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.staff-float-conversation {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.staff-float-toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.staff-float-search-label input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.staff-float-open-full {
  width: 100%;
  justify-content: center;
}

.staff-float-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.staff-float-tab {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.staff-float-tab.staff-icon-btn {
  width: 100%;
}

.staff-float-tab.active {
  border-color: var(--blue);
  background: #eef4ff;
  color: var(--blue);
}

.staff-float-row-top .staff-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--blue);
}

.staff-float-row-top strong {
  flex: 1;
  min-width: 0;
}

.staff-float-close {
  display: grid;
  place-items: center;
  padding: 0;
}

.staff-float-nav-back .staff-icon svg {
  width: 20px;
  height: 20px;
}

#staffVoiceBtn.is-recording .staff-icon,
#staffFloatVoiceBtn.is-recording .staff-icon {
  color: #b42318;
}

.staff-float-tab-panel {
  min-height: 120px;
}

.staff-float-empty {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.staff-float-panel--conversation .staff-float-header {
  background: #f8fbff;
}

.staff-float-section + .staff-float-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.staff-float-section h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staff-float-list {
  display: grid;
  gap: 8px;
}

.staff-float-row {
  width: 100%;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
}

.staff-float-row:hover,
.staff-float-row.active {
  border-color: #9bb8e8;
  background: #f0f6ff;
}

.staff-float-row strong,
.staff-float-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-float-row strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-float-row strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 0.9rem;
}

.staff-float-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.staff-float-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-float-messages {
  max-height: min(390px, calc(100vh - 300px));
  margin-bottom: 10px;
}

.staff-float-compose {
  display: grid;
  gap: 8px;
}

.staff-float-compose .role-form-wide {
  grid-column: 1 / -1;
}

.staff-float-compose .staff-compose-actions {
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.staff-float-compose textarea {
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
}

@media (max-width: 560px) {
  .staff-float {
    right: 12px;
    bottom: 12px;
  }

  .staff-float-toggle {
    width: 54px;
    height: 54px;
  }

  .staff-float-panel {
    right: -4px;
    bottom: 66px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }
}

.provider-messages-panel {
  margin: 24px 0;
}

.provider-messages-panel h2 {
  margin: 0 0 8px;
}

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

  .support-hub-layout {
    grid-template-columns: 1fr;
  }

  .support-hub-context {
    order: 3;
  }
}

.dashboard-tab[hidden],
.main-nav a[hidden] {
  display: none !important;
}

.admin-main-view[hidden] {
  display: none !important;
}

.team-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 1100px) {
  .team-layout {
    grid-template-columns: minmax(320px, 420px) 1fr;
    align-items: start;
  }
}

.team-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.team-card--wide {
  min-width: 0;
}

.team-card h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.team-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.team-permissions-fieldset {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.team-permissions-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.team-perm-group h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.team-perm-list {
  display: grid;
  gap: 8px;
}

.team-perm-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.team-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-users-table .table-row {
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
}

.team-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.modal-card-wide {
  max-width: 720px;
}

.team-template-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.team-templates-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.team-filter-search {
  flex: 1 1 200px;
}

.team-filter-search input {
  width: 100%;
}

.team-card--audit {
  grid-column: 1 / -1;
}

.team-audit-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.team-audit-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-audit-item p {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.team-audit-item small {
  color: var(--muted);
}

.workbench-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.workbench-stat {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
}

.workbench-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

.workbench-stat strong {
  font-size: 1.35rem;
}

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

.workbench-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workbench-item p {
  margin: 0;
}

.workbench-item small {
  color: var(--muted);
}

.internal-assign-control {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.internal-assign-label {
  display: grid;
  gap: 6px;
}

.internal-assign-label span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* PWA — role identity and install prompts */
.pwa-standalone-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.pwa-standalone-bar--client {
  background: var(--blue);
}

.pwa-standalone-bar--provider {
  background: var(--teal);
}

body.has-pwa-standalone-bar .site-header {
  position: sticky;
  top: 0;
}

.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  max-width: 420px;
  margin: 0 auto;
}

.pwa-install-banner__inner {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.pwa-install-banner--client .pwa-install-banner__inner {
  border-color: rgba(7, 95, 228, 0.35);
}

.pwa-install-banner--provider .pwa-install-banner__inner {
  border-color: rgba(0, 169, 157, 0.35);
}

.pwa-install-banner__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.pwa-install-banner__body,
.pwa-install-banner__ios {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pwa-install-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pwa-apps-section {
  background:
    linear-gradient(180deg, #f6f9fd 0%, #ffffff 100%);
}

.pwa-apps-lead {
  max-width: 52ch;
  color: var(--muted);
  margin: 0 0 24px;
}

.pwa-apps-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .pwa-apps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tarjetas «Instala la app» en index.html; iconos con ?v= al regenerar PWA. */
.pwa-app-card {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(14, 31, 64, 0.06);
  overflow: hidden;
}

.pwa-app-card--client {
  border-color: rgba(7, 95, 228, 0.25);
}

.pwa-app-card--provider {
  border-color: rgba(0, 169, 157, 0.25);
}

.pwa-app-card__icon {
  width: 54px;
  height: 54px;
  display: block;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 38px 38px;
  box-shadow: 0 8px 22px rgba(14, 31, 64, 0.08);
}

.pwa-app-card--client .pwa-app-card__icon {
  background-image: url("assets/pwa/client-icon-192.png?v=20260604-pwa-contrast");
  background-size: cover;
}

.pwa-app-card--provider .pwa-app-card__icon {
  background-image: url("assets/pwa/provider-icon-192.png?v=20260604-pwa-contrast");
  background-size: cover;
}

.pwa-app-card__badge {
  margin: 0;
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pwa-app-card--client .pwa-app-card__badge {
  background: rgba(7, 95, 228, 0.12);
  color: var(--blue);
}

.pwa-app-card--provider .pwa-app-card__badge {
  background: rgba(0, 169, 157, 0.12);
  color: var(--teal);
}

.pwa-app-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.pwa-app-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pwa-app-card .btn {
  width: fit-content;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .pwa-app-card .btn {
    width: 100%;
  }
}
