* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: "DM Sans", 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);
  --warm-mist: #f2f0eb;
  --slate-mist: #e8eef5;
  --copper: #c47a4a;
  --amber: #e8a317;
  --font-display: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

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.webp?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;
}

.role-page-provider[data-workori-page="provider-portal"] .provider-dashboard-nav-item {
  display: none;
}

.role-page-provider[data-workori-page="provider-portal"].provider-portal-authenticated .main-nav > a:not(.provider-dashboard-nav-item),
.role-page-provider[data-workori-page="provider-portal"].provider-portal-authenticated .main-nav > span:not(.provider-dashboard-nav-item) {
  display: none;
}

.role-page-provider[data-workori-page="provider-portal"].provider-portal-authenticated a.provider-dashboard-nav-item {
  display: inline-flex;
}

.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;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 45, 0.82);
}

.modal-overlay .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);
}

.modal-overlay .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.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);
}

/* Header contract: desktop and mobile navigation must never share a breakpoint. */
@media (min-width: 769px) {
  .main-nav {
    display: flex;
  }

  .nav-toggle {
    display: none !important;
  }

  #providerButton {
    display: inline-flex;
    align-items: center;
  }

  body:not(.master-authenticated) #bookService {
    display: inline-flex;
  }
}

.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: 0;
  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 {
  /* Zona segura arriba (~40%): la cara del profesional nunca queda tapada */
  top: clamp(168px, 40%, 260px);
  bottom: clamp(16px, 3vh, 28px);
  right: clamp(12px, 2.5vw, 32px);
  width: min(188px, 32%);
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
}

.hero-float-stack--tr .hero-job-card,
.hero-float-stack--tr .status-card,
.hero-float-stack--tr .hero-trust-card {
  padding: 11px 12px;
}

.hero-float-stack--tr .status-card hr {
  margin: 8px 0;
}

.hero-float-stack--tr .status-card b {
  margin-top: 4px;
}

.hero-float-stack .hero-job-card,
.hero-float-stack .status-card,
.hero-float-stack .hero-trust-card {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 6%;
  -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 {
  grid-template-columns: 38px 1fr;
  gap: 12px;
  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 - 32px));
  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-stats--operations {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats--operations article {
  min-height: 112px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-stats--operations article:nth-child(2) strong {
  color: #be123c;
}

.dashboard-stats--operations article:nth-child(3) strong {
  color: #b45309;
}

.admin-secondary-stats,
.admin-simulate-hint--secondary,
.dashboard-tab--secondary,
.dashboard-tab[data-dashboard-tab="incoming"],
.dashboard-tab[data-dashboard-tab="outgoing"] {
  display: none !important;
}

.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-tabs--operations {
  align-items: center;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

.dashboard-panel {
  min-width: 0;
}

.operations-panel.active {
  display: block;
}

.operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.operations-main,
.operations-quick-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 31, 64, 0.06);
}

.operations-main {
  padding: 18px;
}

.operations-quick-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.operations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.operations-toolbar h2,
.operations-quick-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.operations-kicker {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-filter-bar--operations {
  margin-bottom: 14px;
}

.operations-queue-table {
  border-radius: 10px;
}

.operations-queue-row {
  grid-template-columns:
    minmax(68px, 0.7fr)
    minmax(92px, 0.9fr)
    minmax(108px, 1.05fr)
    minmax(92px, 0.95fr)
    minmax(110px, 1fr)
    minmax(76px, 0.75fr)
    minmax(112px, 1fr);
  min-width: 0;
}

.operations-queue-row.table-head {
  min-width: 0;
}

.operations-queue-table .table-row:not(.table-head):nth-child(even),
.operations-queue-table .table-row:not(.table-head):nth-child(odd) {
  background: #ffffff;
}

.operations-queue-table .table-row:not(.table-head):hover {
  background: #f4f8ff;
}

.operations-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operations-step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #f8fbff;
}

.operations-step-list span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #075fe4;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.operations-step-list strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.operations-mini-summary {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.operations-mini-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.operations-mini-summary span,
.operations-mini-summary small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.operations-mini-summary strong {
  display: block;
  margin: 5px 0 2px;
  color: #06357e;
  font-size: 1.25rem;
}

.dashboard-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table-scroll-hint {
  display: none;
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.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(104px, 0.85fr)
    minmax(88px, 0.65fr)
    minmax(220px, 1.2fr);
  min-width: min(100%, 1140px);
}

.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(104px, 0.85fr)
    minmax(88px, 0.7fr)
    minmax(200px, 1.35fr);
  min-width: min(100%, 1140px);
}

.table-row-connections.table-head,
.table-row-incoming.table-head {
  min-width: min(100%, 1140px);
}

.operations-queue-row.table-head,
.operations-queue-row.table-row-actions {
  grid-template-columns:
    minmax(68px, 0.7fr)
    minmax(92px, 0.9fr)
    minmax(108px, 1.05fr)
    minmax(92px, 0.95fr)
    minmax(110px, 1fr)
    minmax(76px, 0.75fr)
    minmax(112px, 1fr);
  min-width: 0;
}

.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,
.role-form select.client-service-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.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;
}

.provider-portal-login {
  display: grid;
  gap: 18px;
}

.portal-login-experience {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid #ccece7;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 169, 157, 0.18), rgba(255, 255, 255, 0) 45%),
    linear-gradient(110deg, #ffffff 0%, #f2fffc 54%, #f7fbff 100%);
  box-shadow: 0 18px 46px rgba(0, 91, 84, 0.12);
}

.portal-login-experience::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: client-auth-sheen 6.2s ease-in-out infinite;
}

.portal-login-orbit {
  position: relative;
  min-height: 152px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.portal-login-logo {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding: 9px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 91, 84, 0.22);
  animation: client-auth-float 3.6s ease-in-out infinite;
}

.portal-login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-login-ring {
  position: absolute;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(0, 169, 157, 0.42);
  border-radius: 26px;
  transform: rotate(12deg);
  animation: client-auth-pulse 2.9s ease-out infinite;
}

.portal-login-ring--delay {
  width: 126px;
  height: 126px;
  border-color: rgba(7, 95, 228, 0.22);
  animation-delay: 0.75s;
}

.portal-login-copy {
  position: relative;
  z-index: 1;
}

.portal-login-kicker {
  margin: 0 0 5px;
  color: #04756f;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-login-copy h2 {
  margin: 0;
  max-width: 560px;
  color: var(--ink);
  font-size: clamp(1.28rem, 2.3vw, 1.9rem);
  line-height: 1.08;
}

.portal-login-copy p:not(.portal-login-kicker) {
  margin: 9px 0 14px;
  max-width: 600px;
  color: #3d4d6a;
  font-size: 0.95rem;
  line-height: 1.45;
}

.portal-login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-login-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0, 169, 157, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #07575a;
  font-size: 0.76rem;
  font-weight: 900;
}

.portal-login-trust span::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #00a99d;
}

.provider-portal-login > .role-form {
  margin-top: 0;
}

@media (max-width: 760px) {
  .provider-profile-grid {
    grid-template-columns: 1fr;
  }

  .portal-login-experience {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
  }

  .portal-login-orbit {
    min-height: 88px;
  }

  .portal-login-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .portal-login-ring {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .portal-login-ring--delay {
    width: 90px;
    height: 90px;
  }

  .portal-login-copy h2 {
    font-size: 1.18rem;
  }

  .portal-login-copy p:not(.portal-login-kicker) {
    font-size: 0.9rem;
  }
}

.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-button {
  width: 100%;
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid #d7e5f7;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: zoom-in;
}

.provider-media-preview-button:focus-visible {
  outline: 3px solid rgba(7, 95, 228, 0.25);
  outline-offset: 2px;
}

.provider-media-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  object-fit: contain;
}

.provider-media-preview-button img {
  width: 120px;
  height: 112px;
  border: 1px solid #e0e9f6;
  background: #f8fbff;
}

.provider-media-preview-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.provider-media-preview-meta strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.provider-media-preview-meta small {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9fbf8;
  color: #04756f;
  font-size: 0.76rem;
  font-weight: 900;
}

.provider-media-preview--error {
  color: #9b1c1c;
  font-size: 0.85rem;
  font-weight: 700;
}

.provider-media-lightbox[hidden] {
  display: none;
}

.provider-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 12, 28, 0.72);
}

.provider-media-lightbox-open {
  overflow: hidden;
}

.provider-media-lightbox__dialog {
  width: min(720px, 100%);
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.provider-media-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-media-lightbox__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.provider-media-lightbox__close {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c7daf8;
  border-radius: 8px;
  background: #ffffff;
  color: #06357e;
  font-weight: 900;
}

.provider-media-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.provider-media-lightbox__figure img {
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  border-radius: 10px;
  background: #f6f9fd;
}

.provider-media-lightbox__meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .provider-media-preview-button {
    grid-template-columns: 1fr;
  }

  .provider-media-preview-button img {
    width: 100%;
    height: 150px;
  }
}

.client-wizard-form {
  display: grid;
  gap: 20px;
}

.client-wizard-progress {
  display: grid;
  gap: 8px;
}

.client-wizard-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(7, 95, 228, 0.12);
  overflow: hidden;
}

.client-wizard-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, #075fe4, #3d8bfd);
  transition: width 0.35s ease;
}

.client-wizard-progress-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted, #5c6570);
}

.client-wizard-flow-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #f7fbff;
  color: #06357e;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.client-wizard-flow-note[hidden] {
  display: none !important;
}

/* Client: panel limpio; flujo de solicitud solo al crear una nueva */
[data-pwa-role="client"].client-session-active #clientViewRequest > .flow-steps--client-wizard,
[data-pwa-role="client"].client-session-active #clientViewRequest > .role-intro:not(.role-intro--compact) {
  display: none;
}

[data-pwa-role="client"]:not(.client-show-request-form):not(.client-show-confirmation) #clientRequestForm {
  display: none !important;
}

[data-pwa-role="client"].client-show-request-form .client-auth-panel,
[data-pwa-role="client"].client-show-request-form .client-active-work-panel {
  display: none;
}

[data-pwa-role="client"] .footer-flow-note {
  display: none;
}

.client-wizard-panel {
  animation: clientWizardIn 0.35s ease;
}

.client-wizard-panel-head {
  margin-bottom: 18px;
}

.client-wizard-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.client-wizard-lead {
  margin: 0;
  color: var(--muted, #5c6570);
  font-size: 0.95rem;
  line-height: 1.5;
}

.client-profile-confirm {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(7, 95, 228, 0.06);
  border: 1px solid rgba(7, 95, 228, 0.14);
}

.client-profile-confirm-lead {
  margin: 0;
  color: var(--muted, #5c6570);
  font-size: 0.95rem;
  line-height: 1.5;
}

.client-profile-summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

.client-profile-summary > div {
  display: grid;
  grid-template-columns: minmax(72px, 110px) 1fr;
  gap: 8px 12px;
  align-items: baseline;
}

.client-profile-summary dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #5c6570);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.client-profile-summary dd {
  margin: 0;
  font-weight: 600;
  color: var(--text, #1a1f26);
  word-break: break-word;
}

.client-profile-fields[hidden] {
  display: none !important;
}

body.client-view-messages .footer-flow-note {
  display: none;
}

.client-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.client-wizard-actions .btn-primary {
  margin-left: auto;
}

.client-photo-dropzone {
  border: 2px dashed rgba(7, 95, 228, 0.35);
  border-radius: 16px;
  padding: 22px 16px;
  background: rgba(7, 95, 228, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.client-photo-dropzone:hover,
.client-photo-dropzone:focus-visible {
  border-color: var(--brand, #075fe4);
  background: rgba(7, 95, 228, 0.08);
  outline: none;
}

.client-photo-dropzone.is-dragover {
  border-color: var(--brand, #075fe4);
  background: rgba(7, 95, 228, 0.12);
  transform: scale(1.01);
}

.client-photo-dropzone.is-pulse {
  animation: clientPhotoPulse 0.5s ease;
}

.client-photo-dropzone.has-photos {
  padding: 14px 16px;
}

.client-photo-dropzone.is-full {
  opacity: 0.72;
  cursor: default;
}

.client-photo-dropzone-inner {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.client-photo-dropzone-icon {
  color: var(--brand, #075fe4);
}

.client-photo-dropzone-title {
  margin: 0;
  font-weight: 700;
}

.client-photo-dropzone-hint,
.client-photo-tip {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #5c6570);
}

.client-photo-tip {
  font-style: italic;
}

.client-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.client-photo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(7, 95, 228, 0.25);
  border-radius: 12px;
  background: #fff;
  color: var(--brand, #075fe4);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.client-photo-action-btn:hover {
  background: rgba(7, 95, 228, 0.06);
  border-color: var(--brand, #075fe4);
}

.client-photo-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a6b2d;
}

.client-details-meter {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--muted, #5c6570);
}

.client-details-meter.is-valid {
  color: #0a6b2d;
  font-weight: 600;
}

.client-details-meter.is-invalid {
  color: #b45309;
}

.client-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.client-photo-preview-item {
  position: relative;
  width: 116px;
  min-height: 132px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(7, 95, 228, 0.15);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.client-photo-preview-item.is-uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  animation: clientPhotoPulse 1s ease infinite;
}

.client-photo-preview-item.is-error {
  border-color: #d93025;
}

.client-photo-preview-item.is-preview-broken .client-photo-preview-button::before,
.client-photo-preview-item.is-preview-pending .client-photo-preview-button::before {
  content: attr(data-preview-fallback);
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.client-photo-preview-button {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 92px auto;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.client-photo-preview-button:focus-visible {
  outline: 3px solid rgba(7, 95, 228, 0.35);
  outline-offset: -3px;
}

.client-photo-preview-item img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.client-photo-preview-item.is-preview-broken img,
.client-photo-preview-item.is-preview-pending img {
  display: none;
}

.client-photo-preview-label {
  display: block;
  min-width: 0;
  padding: 7px 8px 8px;
  color: #06357e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.client-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.client-photo-remove:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.client-photo-lightbox[hidden] {
  display: none;
}

.client-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 45, 0.72);
}

.client-photo-lightbox-open {
  overflow: hidden;
}

.client-photo-lightbox__dialog {
  width: min(760px, 100%);
  max-height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.client-photo-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.client-photo-lightbox__head h3 {
  margin: 0;
  font-size: 1rem;
}

.client-photo-lightbox__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.client-photo-lightbox__figure {
  min-height: 0;
  margin: 0;
  padding: 12px;
  background: #f6f9fd;
}

.client-photo-lightbox__figure img {
  width: 100%;
  max-height: min(62dvh, 620px);
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.client-photo-lightbox__meta {
  margin: 0;
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.client-photo-lightbox__actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.client-photo-lightbox__remove {
  min-height: 42px;
}

.client-estimate-card {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(7, 95, 228, 0.06);
  border: 1px solid rgba(7, 95, 228, 0.15);
}

.client-estimate-kicker {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--brand, #075fe4);
}

.client-estimate-status,
.client-estimate-diagnosis,
.client-estimate-range,
.client-estimate-summary {
  margin: 0 0 8px;
}

.client-estimate-diagnosis {
  white-space: pre-line;
  font-size: 0.95rem;
}

.client-photo-field.field-invalid .client-photo-dropzone {
  border-color: #d93025;
  background: rgba(217, 48, 37, 0.04);
}

@keyframes clientWizardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clientPhotoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

[data-pwa-role="client"] .flow-steps--client-wizard {
  display: none;
}

@media (max-width: 720px) {
  .client-photo-actions {
    grid-template-columns: 1fr;
  }

  .client-photo-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-photo-preview-item {
    width: 100%;
  }

  .client-photo-lightbox {
    padding: 10px;
  }

  .client-wizard-actions .btn-primary {
    margin-left: 0;
    width: 100%;
  }

  .client-wizard-actions .btn-secondary {
    flex: 1;
  }
}

.field-required {
  color: #d93025;
}

.client-estimate-disclaimer {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted, #5c6570);
}

.admin-request-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-request-photos img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-request-photos--full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-request-photo-card {
  margin: 0;
  display: grid;
  gap: 6px;
}

.admin-request-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #f4f7fb;
  cursor: zoom-in;
}

.admin-request-photo-button img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #eef2f7;
}

.admin-request-photo-card figcaption {
  font-size: 0.78rem;
  color: var(--muted, #5c6570);
  text-align: center;
}

.admin-estimate-client-description {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-estimate-client-description p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.admin-estimate-breakdown {
  margin: 0 0 14px;
  padding-top: 4px;
}

.admin-estimate-template-note,
.admin-estimate-breakdown-empty,
.admin-estimate-breakdown-subtotal,
.admin-estimate-breakdown-labor {
  margin: 0 0 10px;
  color: #44546f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-estimate-breakdown-labor,
.admin-estimate-breakdown-subtotal {
  font-weight: 700;
}

.admin-estimate-materials-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.admin-estimate-materials-table th,
.admin-estimate-materials-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-estimate-materials-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5c6570;
}

.admin-estimate-materials-table td:last-child,
.admin-estimate-materials-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

/* ── AI Reasoning block ─────────────────────────────────────────────── */
.admin-estimate-ai-reasoning {
  background: linear-gradient(135deg, #f0fdfb 0%, #e8f8ff 100%);
  border: 1.5px solid #2ec4b6;
  border-radius: 10px;
  padding: 14px 16px 12px;
  margin-bottom: 18px;
}

.admin-estimate-subtitle--reasoning {
  color: #0e7c72;
  font-size: 0.93rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-estimate-reasoning-meta {
  font-size: 0.79rem;
  color: #44687f;
  margin: 0 0 8px;
  font-style: italic;
}

.admin-estimate-reasoning-text {
  font-size: 0.88rem;
  color: #1e3a4a;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

/* ── Editable materials table ────────────────────────────────────────── */
.admin-estimate-materials-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.admin-estimate-materials-table--editable td,
.admin-estimate-materials-table--editable th {
  padding: 6px 8px;
}

.admin-est-input {
  width: 100%;
  border: 1px solid #cdd3dc;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.87rem;
  color: #1e2a3a;
  background: #fff;
  transition: border-color 0.18s;
  min-width: 0;
}

.admin-est-input:focus {
  outline: none;
  border-color: #2ec4b6;
  box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.18);
}

.admin-est-input--num {
  width: 70px;
  text-align: right;
}

.admin-est-unit {
  font-size: 0.75rem;
  color: #7a8699;
  margin-left: 4px;
}

.admin-est-reasoning-cell {
  max-width: 220px;
  font-size: 0.79rem;
  color: #5c7088;
  font-style: italic;
  line-height: 1.4;
}

.admin-est-reasoning {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: help;
}

.admin-est-remove-row {
  background: none;
  border: none;
  color: #d0021b;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.admin-est-remove-row:hover {
  background: rgba(208, 2, 27, 0.1);
}

.admin-est-add-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 12px;
  padding: 6px 14px;
  background: transparent;
  border: 1.5px dashed #2ec4b6;
  border-radius: 7px;
  color: #0e7c72;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-est-add-row:hover {
  background: rgba(46, 196, 182, 0.1);
}

/* ── Labor reasoning note ────────────────────────────────────────────── */
.admin-estimate-labor-block {
  margin-top: 8px;
}

.admin-est-labor-reasoning {
  font-size: 0.82rem;
  color: #5c7088;
  font-style: italic;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* ── Admin-edited badge ──────────────────────────────────────────────── */
.admin-estimate-edited-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}



.admin-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 15, 30, 0.88);
}

.admin-photo-lightbox[hidden] {
  display: none !important;
}

.admin-photo-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.admin-photo-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.admin-estimate-panel {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
}

.admin-estimate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.admin-estimate-head h3 {
  margin: 0;
}

.admin-estimate-beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(122, 77, 0, 0.22);
  background: #fff4df;
  color: #7a4d00;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-estimate-beta-note,
.admin-estimate-awaiting {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f4d28c;
  background: #fff8e8;
  color: #7a4d00;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-estimate-generate-bar {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 0 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.admin-estimate-generate-btn {
  width: fit-content;
  min-width: 240px;
}

.admin-estimate-internal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(7, 95, 228, 0.18);
  background: #eef6ff;
  color: #075fe4;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-estimate-internal-note,
.admin-estimate-source,
.admin-estimate-confidence {
  margin: 0 0 10px;
  color: #44546f;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-estimate-source {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7e5f7;
  background: #f7fbff;
  font-weight: 700;
}

.admin-estimate-source.is-pilot {
  border-color: #f4d28c;
  background: #fff8e8;
  color: #7a4d00;
}

.admin-estimate-source.is-pending {
  border-color: #c7daf8;
  background: #f4f8ff;
  color: #16437d;
}

.admin-estimate-subtitle {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-estimate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-estimate-grid label,
.admin-estimate-summary {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.admin-estimate-summary textarea,
.admin-estimate-grid input {
  width: 100%;
}

.admin-estimate-status {
  margin: 0 0 10px;
  font-weight: 600;
}

.admin-estimate-diagnosis {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(7, 95, 228, 0.05);
  border: 1px solid rgba(7, 95, 228, 0.12);
  font-size: 0.92rem;
}

.admin-estimate-diagnosis h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.admin-estimate-diagnosis p {
  margin: 0 0 8px;
}

.admin-estimate-diagnosis ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

@media (max-width: 720px) {
  .admin-estimate-grid {
    grid-template-columns: 1fr;
  }
}

.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;
  }
}

@media (max-width: 900px) {
  .provider-portal-stats,
  .provider-overview-grid,
  .provider-money-summary,
  .provider-payment-card dl,
  .provider-job-detail-grid {
    grid-template-columns: 1fr;
  }

  .provider-payment-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .provider-payment-card header,
  .provider-job-detail-card header {
    display: grid;
  }

  .provider-action-inbox-item {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-action-inbox-button {
    width: 100%;
  }

  .provider-payment-stages {
    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: wrap;
  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.webp?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-address {
  margin: 0 0 16px;
  font-style: normal;
  line-height: 1.6;
}

.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: 1120px;
}

.provider-portal-dashboard {
  display: grid;
  gap: 18px;
}

.provider-dashboard-section {
  display: none;
}

.provider-dashboard-section:not(.provider-dashboard-section--active) {
  display: none !important;
}

.provider-dashboard-section--active {
  display: grid !important;
  gap: 18px;
}

.provider-panel-heading {
  margin-bottom: 14px;
}

.provider-panel-heading p {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
}

.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(3, 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-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.provider-overview-card,
.provider-payments-panel {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.provider-overview-card h3 {
  margin: 0 0 12px;
  color: #06357e;
  font-size: 0.98rem;
}

.provider-overview-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.provider-overview-card p,
.provider-overview-card small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.provider-next-job-link,
.provider-job-reference-link {
  border: 0;
  background: transparent;
  color: #06357e;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.provider-next-job-link {
  display: block;
  width: 100%;
  padding: 0;
  text-decoration: none;
}

.provider-next-job-link:hover strong,
.provider-job-reference-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.provider-next-job-link:focus-visible,
.provider-job-reference-link:focus-visible {
  outline: 3px solid rgba(7, 95, 228, 0.22);
  outline-offset: 3px;
  border-radius: 6px;
}

.provider-jobs-panel {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.provider-jobs-panel h2 {
  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;
}

.provider-payment-list {
  display: grid;
  gap: 14px;
}

.provider-payment-card,
.provider-job-detail-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #fafcff;
}

.provider-job-detail-panel {
  margin-top: 18px;
}

.provider-payment-card header,
.provider-job-detail-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.provider-panel-heading-kicker {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-job-detail-card header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.provider-payment-card header strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.provider-payment-card header p,
.provider-job-detail-card header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.provider-payment-card header b,
.provider-job-detail-card header b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #06357e;
  font-size: 0.72rem;
  white-space: nowrap;
}

.provider-payment-card dl,
.provider-job-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.provider-payment-card dt,
.provider-job-detail-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.provider-payment-card dd,
.provider-job-detail-grid dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.provider-job-detail-grid dd small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.provider-job-detail-flow,
.provider-job-detail-actions,
.provider-job-detail-visit {
  display: grid;
  gap: 10px;
}

.provider-job-detail-flow h4,
.provider-job-detail-actions h4,
.provider-job-detail-visit h4 {
  margin: 0;
  color: #06357e;
  font-size: 0.94rem;
}

.provider-job-detail-visit {
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
}

.provider-job-detail-visit p {
  margin: 0;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.provider-job-detail-visit--ready {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.provider-job-detail-visit--ready p {
  color: #0f766e;
}

.provider-job-detail-actions-body .provider-job-actions {
  justify-content: flex-start;
}

.provider-payment-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-payment-stages li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e4ecf7;
  border-radius: 10px;
  background: #ffffff;
}

.provider-payment-stages li > span {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #cbd5e1;
}

.provider-payment-stages strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
}

.provider-payment-stages small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.provider-payment-stage--done {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.provider-payment-stage--done > span {
  background: #0f766e;
}

.provider-payment-stage--current {
  border-color: #b8d0f6;
  background: #edf5ff;
}

.provider-payment-stage--current > span {
  background: #06357e;
}

.provider-payment-stage--blocked > span {
  background: #b45309;
}

.provider-work-stage-list li.is-selected {
  outline: 2px solid rgba(7, 95, 228, 0.35);
  outline-offset: 2px;
}

.provider-work-stage-button {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.provider-work-stage-button:focus-visible {
  outline: 2px solid #075fe4;
  outline-offset: 2px;
  border-radius: 10px;
}

.provider-disbursement-panel h4,
.provider-disbursement-panel h5,
.provider-disbursement-desc,
.provider-disbursement-empty {
  margin: 0;
}

.provider-disbursement-panel h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.provider-disbursement-desc {
  margin-bottom: 14px;
  color: #5b6b86;
  font-size: 0.82rem;
  line-height: 1.45;
}

.provider-disbursement-section + .provider-disbursement-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(178, 203, 242, 0.72);
}

.provider-disbursement-section h5 {
  margin-bottom: 10px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-disbursement-table-wrap {
  overflow-x: auto;
}

.provider-disbursement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.provider-disbursement-table th,
.provider-disbursement-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(178, 203, 242, 0.72);
  text-align: left;
  vertical-align: top;
}

.provider-disbursement-table th {
  color: #5b6b86;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.provider-disbursement-amount {
  font-weight: 950;
  white-space: nowrap;
}

.provider-disbursement-amount--in {
  color: #04756f;
}

.provider-disbursement-amount--out {
  color: #b45309;
}

.provider-disbursement-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.provider-disbursement-status--completed {
  background: rgba(0, 169, 157, 0.12);
  color: #04756f;
}

.provider-disbursement-status--scheduled {
  background: rgba(7, 95, 228, 0.12);
  color: #075fe4;
}

.provider-disbursement-status--pending {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
}

.provider-disbursement-empty {
  color: #5b6b86;
  font-size: 0.82rem;
}

.provider-contract-backdrop .provider-contract-modal {
  width: min(640px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.provider-contract-modal h2 {
  margin: 0 36px 14px 0;
  font-size: 1.15rem;
}

.provider-contract-modal__body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  max-height: min(42vh, 320px);
  overflow: auto;
}

.provider-contract-modal__accept {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

.provider-contract-modal__accept input {
  margin-top: 3px;
}

.provider-contract-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

body.provider-contract-modal-open {
  overflow: hidden;
}

.provider-stage-panel {
  display: grid;
  gap: 12px;
}

.provider-stage-panel h4 {
  margin: 0;
  font-size: 0.95rem;
}

.provider-stage-panel__desc {
  margin: 0;
  color: #5b6b86;
  font-size: 0.82rem;
  line-height: 1.45;
}

.provider-contract-acceptance,
.provider-contract-amounts,
.provider-payout-summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

.provider-contract-acceptance div,
.provider-contract-amounts div,
.provider-payout-summary div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(178, 203, 242, 0.72);
}

.provider-contract-acceptance dt,
.provider-contract-amounts dt,
.provider-payout-summary dt {
  margin: 0;
  color: #5b6b86;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-contract-acceptance dd,
.provider-contract-amounts dd,
.provider-payout-summary dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.provider-payout-summary__net dd {
  color: #04756f;
  font-size: 1.05rem;
  font-weight: 950;
}

.provider-contract-view-btn {
  justify-self: start;
}

.provider-work-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-work-checklist__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(178, 203, 242, 0.72);
  background: #ffffff;
}

.provider-work-checklist__item--done {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.provider-work-checklist__item--pending {
  border-color: rgba(178, 203, 242, 0.72);
  background: #f8fafc;
}

.provider-work-checklist__mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.provider-work-checklist__item--done .provider-work-checklist__mark {
  background: #0f766e;
  color: #ffffff;
}

.provider-work-checklist__item--pending .provider-work-checklist__mark {
  background: #e2e8f0;
  color: #64748b;
}

.provider-work-checklist__item strong {
  display: block;
  font-size: 0.86rem;
}

.provider-work-checklist__item small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
}

.provider-work-current-status {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf5ff;
  border: 1px solid rgba(7, 95, 228, 0.18);
}

.provider-work-current-status strong {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #075fe4;
}

.provider-work-current-status span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.provider-money-panel {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.provider-money-summary {
  margin-bottom: 16px;
}

.provider-money-summary-card {
  padding: 14px 16px;
  border: 1px solid rgba(178, 203, 242, 0.78);
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
}

.provider-money-summary-card strong {
  display: block;
  color: #075fe4;
  font-size: 1.25rem;
  line-height: 1.1;
}

.provider-money-summary-card span {
  display: block;
  margin-top: 6px;
  color: #4b5b78;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
}

.provider-money-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.provider-money-filter {
  padding: 8px 14px;
  border: 1px solid rgba(178, 203, 242, 0.86);
  border-radius: 999px;
  background: #ffffff;
  color: #06357e;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.provider-money-filter:hover,
.provider-money-filter:focus-visible {
  border-color: rgba(7, 95, 228, 0.44);
  box-shadow: 0 8px 18px rgba(8, 20, 45, 0.08);
}

.provider-money-filter.is-active {
  border-color: #075fe4;
  background: rgba(7, 95, 228, 0.08);
  color: #075fe4;
}

.provider-action-inbox-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.provider-action-inbox-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-action-inbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(178, 203, 242, 0.86);
  border-radius: 12px;
  background: #f8fbff;
}

.provider-action-inbox-copy {
  min-width: 0;
}

.provider-action-inbox-copy strong {
  display: block;
  color: #06357e;
  font-size: 0.88rem;
  line-height: 1.25;
}

.provider-action-inbox-ref {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.provider-action-inbox-button {
  flex-shrink: 0;
}

.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;
}

.panel-back-link--btn {
  font-family: inherit;
}

[data-pwa-role="client"].client-auth-gate .main-nav--client-portal,
[data-pwa-role="client"].client-auth-gate .main-nav--client-portal > a:not(.nav-quick-path),
[data-pwa-role="client"].client-auth-gate .flow-breadcrumb,
[data-pwa-role="client"].client-auth-gate .client-portal-nav,
[data-pwa-role="client"].client-auth-gate #clientMobileTabbar,
[data-pwa-role="client"].client-auth-gate .header-nav-back,
[data-pwa-role="client"].client-auth-gate .client-context-back {
  display: none !important;
}

[data-pwa-role="client"] .flow-breadcrumb {
  display: none;
}

@media (min-width: 769px) {
  [data-pwa-role="client"][data-workori-page="client"]:not(.client-auth-gate) .header-nav-back {
    display: inline-flex !important;
    align-items: center;
  }

  [data-pwa-role="client"]:not(.client-auth-gate) .main-nav--client-portal {
    display: flex !important;
  }

  [data-pwa-role="client"]:not(.client-auth-gate) .main-nav--client-portal > a:not(.nav-quick-path) {
    display: inline-flex !important;
  }

  [data-pwa-role="client"]:not(.client-auth-gate) .flow-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.86rem;
    color: var(--muted);
  }

  [data-pwa-role="client"] .client-portal-nav {
    display: none !important;
  }

  [data-pwa-role="client"] .client-context-back {
    display: none !important;
  }
}

.client-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fafd;
}

.client-portal-nav a {
  flex: 1 1 110px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.client-portal-nav a:hover {
  color: var(--blue);
  background: rgba(7, 95, 228, 0.06);
}

.client-portal-nav a.is-active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 2px 10px rgba(14, 31, 64, 0.08);
}

.client-context-back {
  margin: 0 0 16px;
}

.client-context-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(14, 31, 64, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.client-context-back__btn:hover,
.client-context-back__btn:focus-visible {
  background: #f3f8ff;
  border-color: rgba(7, 95, 228, 0.25);
}

.login-modal-escape {
  margin: 16px 0 0;
  text-align: center;
}

body.admin-locked #adminBackHome {
  display: none !important;
}

.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 {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto 18px;
  padding: 20px 22px;
  border: 1px solid rgba(178, 203, 242, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 169, 157, 0.11), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(7, 95, 228, 0.08), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 58%, #fffdf9 100%);
  box-shadow: 0 16px 40px rgba(8, 20, 45, 0.08);
}

.client-auth-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 132px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(7, 95, 228, 0.1);
  border-radius: 16px;
  background:
    url('/assets/client/client-auth-brand-ambient.png') center / cover no-repeat,
    linear-gradient(135deg, rgba(238, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(232, 247, 245, 0.94) 100%);
  overflow: hidden;
}

.client-auth-brand__logo-wrap {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 4px 2px;
}

.client-auth-brand__logo-wrap::after {
  content: '';
  position: absolute;
  inset: -10px -14px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 58%, rgba(0, 169, 157, 0.14), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.client-auth-brand__logo {
  display: block;
  width: 168px;
  max-width: min(168px, 48vw);
  height: auto;
  aspect-ratio: 715 / 525;
  object-fit: contain;
  object-position: center;
}

.client-auth-brand__tag {
  display: none;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 169, 157, 0.24);
  background: rgba(0, 169, 157, 0.1);
  color: #04756f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-auth-panel.is-signed-in .client-auth-brand__tag {
  display: inline-flex;
}

.client-auth-content {
  min-width: 0;
}

.client-auth-panel-body {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.client-auth-hero,
.client-auth-mark,
.client-auth-signal {
  display: none;
}

.client-auth-signed-out,
.client-auth-signed-in {
  position: relative;
  z-index: 1;
  width: 100%;
}

.client-auth-signed-out {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 320px);
  gap: 20px;
  align-items: start;
}

.client-auth-copy {
  min-width: 0;
}

.client-auth-control {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(199, 218, 248, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.client-auth-note {
  margin: 0;
  color: #4b5b78;
  font-size: 0.78rem;
  line-height: 1.4;
}

.client-auth-kicker {
  margin: 0 0 5px;
  color: #04756f;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-auth-title {
  margin: 0;
  max-width: 300px;
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.client-auth-subtitle {
  margin: 6px 0 0;
  max-width: 300px;
  color: #3d4d6a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.client-auth-kicker,
.client-auth-title,
.client-auth-subtitle {
  grid-column: auto;
}

.client-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.client-auth-trust span {
  flex: 1 1 calc(50% - 3px);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(0, 169, 157, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #16437d;
  font-size: 0.7rem;
  font-weight: 900;
}

.client-auth-trust span::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #00a99d;
}

.client-auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
}

.client-auth-action {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
  text-align: left;
}

.client-auth-action > span:last-child {
  flex: 1;
  min-width: 0;
}

.client-auth-action--pin {
  border: 1px solid #075fe4;
  background: #075fe4;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 95, 228, 0.18);
}

.client-auth-action--pin:hover {
  border-color: #064fbd;
  background: #064fbd;
}

.client-auth-action--request {
  border: 1px solid #c7daf8;
  background: rgba(255, 255, 255, 0.82);
  color: #06357e;
}

.client-auth-action--request:hover {
  border-color: rgba(7, 95, 228, 0.32);
  background: #f4f8ff;
}

.client-auth-action-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 950;
}

.client-auth-action--request .client-auth-action-icon {
  background: #edf5ff;
  color: #075fe4;
}

.client-dashboard-entry {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.client-dashboard-entry__head {
  display: block;
}

.client-dashboard-entry__title {
  margin: 0;
  max-width: 28ch;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.18;
}

.client-auth-welcome {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(7, 95, 228, 0.14);
  border-radius: 12px;
  background: rgba(237, 245, 255, 0.9);
  color: #3d4d6a;
  font-size: 0.86rem;
  line-height: 1.35;
}

.client-auth-welcome strong {
  color: #06357e;
  overflow-wrap: anywhere;
}

.client-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-dashboard-summary button {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(178, 203, 242, 0.78);
  border-radius: 14px;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.client-dashboard-summary strong,
.client-dashboard-summary span {
  display: block;
}

.client-dashboard-summary strong {
  color: #075fe4;
  font-size: 1.35rem;
  line-height: 1;
}

.client-dashboard-summary span {
  margin-top: 5px;
  color: #4b5b78;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.client-dashboard-summary button:hover,
.client-dashboard-summary button:focus-visible {
  border-color: rgba(7, 95, 228, 0.48);
  box-shadow: 0 10px 22px rgba(8, 20, 45, 0.08);
}

.client-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-dashboard-action {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(178, 203, 242, 0.86);
  border-radius: 12px;
  background: #ffffff;
  color: #06357e;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.client-dashboard-action:hover,
.client-dashboard-action:focus-visible {
  border-color: rgba(7, 95, 228, 0.44);
  box-shadow: 0 14px 28px rgba(8, 20, 45, 0.1);
  transform: translateY(-1px);
}

.client-dashboard-action--primary {
  border-color: #075fe4;
  background: #075fe4;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(7, 95, 228, 0.2);
}

.client-dashboard-action__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: #075fe4;
  font-size: 0.86rem;
  font-weight: 950;
}

.client-dashboard-action--primary .client-dashboard-action__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.client-dashboard-action strong,
.client-dashboard-action small {
  display: block;
}

.client-dashboard-action strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.client-dashboard-action small {
  margin-top: 3px;
  color: #5b6b86;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.25;
}

.client-dashboard-action--primary small {
  color: rgba(255, 255, 255, 0.82);
}

.client-auth-panel.is-signed-in .client-auth-divider {
  display: none;
}

.client-active-work-panel {
  width: 100%;
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid rgba(178, 203, 242, 0.9);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(8, 20, 45, 0.08);
}

.client-active-work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.client-active-work-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.client-active-work-card {
  min-width: 0;
}

.client-active-job {
  display: grid;
  gap: 14px;
}

.client-active-job__main {
  display: grid;
  gap: 3px;
}

.client-active-job__eyebrow {
  margin: 0;
  color: #04756f;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-active-job__main h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.client-active-job__main p {
  margin: 0;
  color: #4b5b78;
  font-size: 0.92rem;
  font-weight: 750;
}

.client-active-job__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-active-job__facts span {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(178, 203, 242, 0.78);
  border-radius: 12px;
  background: #f8fbff;
  color: #183a67;
  font-size: 0.82rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.client-active-job__facts strong {
  display: block;
  margin-bottom: 4px;
  color: #5b6b86;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-work-stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-work-stage-list li {
  position: relative;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(178, 203, 242, 0.86);
  border-radius: 12px;
  background: #ffffff;
  color: #5b6b86;
}

.client-work-stage-list li.is-done {
  border-color: rgba(0, 169, 157, 0.42);
  background: rgba(0, 169, 157, 0.08);
  color: #04756f;
}

.client-work-stage-list li.is-current {
  border-color: #075fe4;
  background: #075fe4;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(7, 95, 228, 0.2);
}

.client-work-stage-list span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 999px;
  background: #edf5ff;
  color: #075fe4;
  font-size: 0.78rem;
  font-weight: 950;
}

.client-work-stage-list li.is-current span {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.client-work-stage-list strong {
  display: block;
  font-size: 0.74rem;
  line-height: 1.15;
}

.client-work-stage-detail {
  padding: 14px;
  border: 1px solid rgba(178, 203, 242, 0.78);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 169, 157, 0.08), transparent 42%),
    #f8fbff;
}

.client-work-stage-detail h4,
.client-work-stage-detail p {
  margin: 0;
}

.client-work-stage-detail h4 {
  color: var(--ink);
  font-size: 1rem;
}

.client-work-stage-detail p {
  margin-top: 6px;
  color: #3d4d6a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.client-work-next-step {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
  color: #16437d;
}

.client-work-next-step strong {
  color: #04756f;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-work-next-step span {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.client-active-job__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-active-work-lead {
  margin: 0 0 14px;
  color: #4b5b78;
  font-size: 0.92rem;
  line-height: 1.45;
}

.client-job-list {
  display: grid;
  gap: 16px;
}

.client-collapsible-card {
  border: 1px solid rgba(178, 203, 242, 0.9);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.client-collapsible-card__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.client-collapsible-card__summary::-webkit-details-marker {
  display: none;
}

.client-collapsible-card__summary::marker {
  content: '';
}

.client-collapsible-card__summary-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.client-collapsible-card__hint {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 95, 228, 0.08);
  color: #075fe4;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.client-collapsible-card__hint::after {
  content: '\25BE';
  font-size: 0.85rem;
  transition: transform 0.18s ease;
}

.client-collapsible-card[open] .client-collapsible-card__hint::after {
  transform: rotate(180deg);
}

.client-collapsible-card__body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(178, 203, 242, 0.45);
}

.client-job-card {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.client-job-card__identity {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.client-job-card__identity h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.client-job-card__progress {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid rgba(178, 203, 242, 0.65);
}

.client-job-card__progress-label {
  margin: 0;
  color: #5b6b86;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-job-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-job-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.client-job-badge--verification {
  background: rgba(7, 95, 228, 0.1);
  color: #075fe4;
}

.client-job-badge--assigned {
  background: rgba(0, 169, 157, 0.12);
  color: #04756f;
}

.client-job-badge--progress {
  background: rgba(255, 159, 28, 0.14);
  color: #9a6200;
}

.client-job-badge--completed {
  background: rgba(34, 139, 34, 0.12);
  color: #1f6b1f;
}

.client-job-card__meta {
  margin: 0;
  color: #4b5b78;
  font-size: 0.88rem;
  font-weight: 750;
}

.client-job-card__ref {
  margin: 0;
  color: #5b6b86;
  font-size: 0.78rem;
  font-weight: 850;
}

.client-job-card__status-line {
  margin: 0;
  color: #183a67;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.4;
}

.client-job-alert {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.1);
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-job-card__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.client-job-card__detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-work-stage-detail__summary {
  margin: 0;
  color: #4b5b78;
  font-size: 0.9rem;
  line-height: 1.45;
}

.client-active-jobs-stack {
  display: grid;
  gap: 16px;
}

.client-active-job__index {
  margin: 0;
  color: #5b6b86;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-active-job--compact {
  padding: 14px;
  border: 1px solid rgba(178, 203, 242, 0.85);
  border-radius: 14px;
  background: #f8fbff;
}

.client-active-job__stage-pill {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(178, 203, 242, 0.78);
  background: #ffffff;
}

.client-active-job__stage-pill strong {
  display: block;
  margin-bottom: 4px;
  color: #075fe4;
  font-size: 0.88rem;
}

.client-active-job__stage-pill p {
  margin: 0;
  color: #4b5b78;
  font-size: 0.84rem;
  line-height: 1.45;
}

.client-active-job__actions--footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(178, 203, 242, 0.65);
}

.client-active-jobs-more {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(178, 203, 242, 0.65);
}

.client-active-jobs-more h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #4b5b78;
}

.client-active-jobs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.client-active-jobs-list a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(178, 203, 242, 0.8);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-active-jobs-list a:hover,
.client-active-jobs-list a:focus-visible {
  border-color: rgba(7, 95, 228, 0.45);
  box-shadow: 0 8px 20px rgba(7, 95, 228, 0.08);
}

.client-active-jobs-list strong {
  font-size: 0.88rem;
  color: #075fe4;
}

.client-active-jobs-list span {
  font-weight: 600;
}

.client-active-jobs-list small {
  color: #5c6570;
}

body.client-view-jobs #clientViewMessages > .role-intro,
body.client-view-jobs #clientViewMessages > .client-policy-notice,
body.client-view-jobs #clientViewMessages .client-review-panel,
body.client-view-jobs #clientViewMessages .messages-layout {
  display: none !important;
}

body.client-view-jobs #clientViewMessages .client-requests-panel {
  display: grid !important;
  margin-top: 0;
}

body.client-view-jobs #clientViewMessages .client-requests-panel[hidden] {
  display: none !important;
}

body.client-view-jobs #clientViewMessages .messages-inbox-header .btn-primary#clientNewThreadBtn {
  display: none;
}

.client-active-work-empty {
  padding: 18px;
  border: 1px dashed rgba(178, 203, 242, 0.9);
  border-radius: 12px;
  background: #f8fbff;
}

.client-active-work-empty h3,
.client-active-work-empty p {
  margin: 0;
}

.client-active-work-empty p {
  margin: 6px 0 14px;
  color: #4b5b78;
}

@keyframes client-auth-sheen {
  0%,
  42% {
    transform: translateX(-120%);
  }

  62%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes client-auth-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes client-auth-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.82) rotate(12deg);
  }

  100% {
    opacity: 0;
    transform: scale(1.25) rotate(12deg);
  }
}

.client-pin-toggle {
  margin: 10px 0 5px;
  text-align: left;
}

.client-pin-login {
  margin-bottom: 18px;
  min-height: 242px;
  padding: 20px;
  border: 1px solid rgba(178, 203, 242, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(7, 95, 228, 0.08), transparent 38%),
    linear-gradient(110deg, #ffffff 0%, #f9fcff 62%, #f5fffd 100%);
  box-shadow: 0 18px 45px rgba(8, 20, 45, 0.1);
}

.client-pin-login-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.client-pin-login-badge {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #075fe4;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 14px 26px rgba(7, 95, 228, 0.24);
}

.client-pin-login-title {
  font-weight: 950;
  margin: 0;
  color: var(--ink);
}

.client-pin-login-subtitle {
  margin: 3px 0 0;
  color: #4b5b78;
  font-size: 0.9rem;
  line-height: 1.4;
}

.client-pin-login-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr) max-content;
  gap: 12px;
  align-items: start;
}

.client-pin-login-fields label {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #17345f;
  font-size: 0.82rem;
  font-weight: 900;
}

.client-pin-login-fields label::after {
  content: none;
}

.client-pin-login-fields input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(151, 179, 224, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.client-pin-login-fields input:focus {
  border-color: rgba(7, 95, 228, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(7, 95, 228, 0.11);
}

.client-pin-login-fields .btn {
  min-width: 150px;
  min-height: 52px;
  align-self: end;
  border-radius: 12px;
  box-shadow: 0 16px 28px rgba(7, 95, 228, 0.24);
}

.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 {
  grid-column: auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.client-auth-welcome {
  margin: 0;
  color: var(--ink);
}

.client-auth-divider {
  display: none;
  grid-column: 2;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.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: 10px;
  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;
}

@media (max-width: 960px) {
  .client-dashboard-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .client-auth-panel {
    width: 100%;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .client-auth-brand {
    min-height: 112px;
    padding: 12px 14px;
  }

  .client-auth-brand__logo {
    width: 148px;
    max-width: min(148px, 62vw);
  }

  .client-auth-brand__tag {
    width: 100%;
    justify-content: center;
  }

  .client-auth-panel-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .client-auth-title {
    font-size: 1.24rem;
    max-width: none;
  }

  .client-auth-subtitle {
    font-size: 0.9rem;
    max-width: none;
  }

  .client-auth-trust {
    gap: 6px;
  }

  .client-auth-trust span {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .client-auth-signed-out {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .client-dashboard-entry__title {
    max-width: none;
  }

  .client-dashboard-summary {
    grid-template-columns: 1fr;
  }

  .client-auth-kicker,
  .client-auth-title,
  .client-auth-subtitle,
  .client-auth-copy,
  .client-auth-control,
  .client-auth-trust,
  .client-auth-note,
  .client-auth-actions {
    grid-column: 1;
  }

  .client-auth-control {
    padding: 10px;
  }

  .client-auth-trust {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .client-auth-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
  }

  .client-auth-action {
    width: 100%;
  }

  .client-auth-divider {
    text-align: center;
  }

  .client-pin-login {
    min-height: 360px;
  }
}

.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: 769px) {
  .mobile-nav-link {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .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: 1120px) {
  .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%);
  }

  .hero-float-stack--tr {
    top: clamp(120px, 34%, 180px);
    bottom: clamp(12px, 3vh, 20px);
    width: min(176px, 36%);
    transform: scale(0.94);
    transform-origin: bottom right;
  }

  .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 (min-width: 901px) and (max-width: 1120px) {
  .hero {
    min-height: 0;
    padding: 24px 0 48px;
  }

  .hero::before {
    mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      #ffffff 0%,
      #ffffff 38%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0.42) 68%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
    gap: 24px;
  }

  .hero-copy {
    gap: 16px;
    max-width: none;
  }

  .hero-copy h1 {
    max-width: 32rem;
    font-size: clamp(2.25rem, 4.45vw, 3rem);
    line-height: 1.1;
  }

  .hero-text {
    max-width: 31rem;
    font-size: 1rem;
  }

  .hero-media {
    aspect-ratio: auto;
    min-height: clamp(520px, 66vh, 590px);
    max-width: none;
    margin-top: -4px;
    justify-self: stretch;
    border-radius: 0;
  }

  .hero-photo {
    object-position: 56% 8%;
    -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 {
    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%);
  }

  .hero-float-stack--tr {
    top: clamp(150px, 36%, 210px);
    bottom: 16px;
    right: 14px;
    width: min(160px, 36%);
    transform: scale(0.88);
  }

  .hero-float-stack--tr .hero-job-card,
  .hero-float-stack--tr .status-card,
  .hero-float-stack--tr .hero-trust-card {
    padding: 10px;
  }

  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .search-form-submit {
    grid-column: 1 / -1;
  }

  .field-group {
    min-height: 76px;
    padding: 10px 12px;
  }
}

@media (max-width: 1200px) {
  .operations-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .dashboard-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .request-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .request-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .dashboard-table-scroll-hint {
    display: block;
  }
}

@media (max-width: 1120px) {
  .operations-main,
  .operations-quick-panel {
    padding: 14px;
  }

  .operations-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .operations-toolbar .btn {
    width: 100%;
  }

  .dashboard-table {
    overflow: visible;
    border: 0;
    background: transparent;
    gap: 10px;
  }

  .dashboard-table-scroll-hint {
    display: none;
  }

  .dashboard-table .table-head {
    display: none;
  }

  .dashboard-table .table-row:not(.table-head) {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(14, 31, 64, 0.05);
  }

  .dashboard-table .table-row:not(.table-head):nth-child(even),
  .dashboard-table .table-row:not(.table-head):nth-child(odd) {
    background: #fff;
  }

  .table-row-connections,
  .table-row-incoming,
  .operations-queue-row,
  .table-row-actions {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .dashboard-table .table-row > [data-label] {
    display: grid;
    grid-template-columns: minmax(88px, 34%) 1fr;
    gap: 4px 12px;
    align-items: start;
    min-width: 0;
  }

  .dashboard-table .table-row > [data-label]::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
  }

  .dashboard-table .table-row > [data-label].table-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    grid-template-columns: none;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }

  .dashboard-table .table-row > [data-label].table-actions::before {
    margin-bottom: 2px;
  }

  .dashboard-table .table-row > [data-label].table-actions .table-action-button,
  .dashboard-table .table-row > [data-label].table-actions .table-status-select {
    width: 100%;
    max-width: none;
  }

  .dashboard-table .table-row > [data-label].table-actions .table-actions {
    width: 100%;
  }

  .table-actions--compact .table-action-button,
  .table-actions--compact .table-status-select {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .dashboard-shell {
    padding: 20px;
  }

  .dashboard-header h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
}

@media (max-width: 900px) {
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .logout-button {
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@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;
  }

  body.master-authenticated #logoutButton {
    display: inline-flex;
  }

  .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 {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto;
    max-width: none;
  }

  .hero-trust-card {
    padding: 12px;
  }

  .hero-job-card {
    padding: 12px;
    display: none;
  }

  .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;
    overflow: visible;
  }

  .dashboard-tab {
    white-space: normal;
  }

  .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-workstation .support-hub-banner,
.support-workstation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #d9e2ef;
  background: #ffffff;
}

.support-workstation-header > div {
  min-width: 0;
}

.support-workstation-header .support-hub-notify-status {
  flex-basis: 100%;
}

.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-status-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.support-hub-status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  min-width: 80px;
}

.support-hub-status-item--urgent {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fca5a5;
}

.support-hub-status-item--waiting {
  background: linear-gradient(135deg, #fef9c3, #fef08a);
  border-color: #fcd34d;
}

.support-hub-status-count {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.support-hub-status-item--urgent .support-hub-status-count {
  color: #dc2626;
}

.support-hub-status-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.support-hub-placeholder {
  text-align: center;
  padding: 80px 40px;
  background: #f8fafc;
  border-radius: 16px;
  margin: 20px;
}

.support-hub-placeholder-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.support-hub-quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.support-hub-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}

.support-hub-quick-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.support-hub-quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.support-hub-quick-btn:active {
  transform: translateY(0);
}

.support-hub-quick-btn--received {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.support-hub-quick-btn--assigned {
  background: linear-gradient(135deg, #10b981, #059669);
}

.support-hub-quick-btn--coordination {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.support-hub-quick-btn--followup {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.support-hub-quick-btn--closing {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.support-hub-send-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.support-hub-send-row .btn-primary {
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
}

.support-hub-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.support-hub-template-btn {
  padding: 8px 14px;
  border: 1px solid #93b4e8;
  border-radius: 8px;
  background: #f0f6ff;
  color: #06357e;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.support-hub-template-btn:hover {
  background: #e0ecff;
  border-color: #4a7fd4;
  transform: translateY(-1px);
}

.support-hub-template-btn:active {
  transform: translateY(0);
}

.support-hub-layout {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.support-hub-sidebar {
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.support-focus-card {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #bfd3ef;
  border-radius: 10px;
  background: #f4f8ff;
}

.support-focus-card span,
.support-case-eyebrow {
  color: #52647a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.support-focus-card strong {
  color: #123760;
  font-size: 1rem;
  line-height: 1.25;
}

.support-focus-card small {
  color: #64748b;
  line-height: 1.35;
}

.support-hub-sidebar .messages-inbox-header {
  margin: 12px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.support-hub-sidebar .messages-inbox-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.support-hub-status-bar {
  padding: 12px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.support-hub-status-item {
  padding: 12px 16px;
}

.support-hub-queue {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.support-hub-queue-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-hub-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-hub-queue-item {
  padding: 14px 16px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.support-hub-queue-item:hover {
  background: #fef9c3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.support-hub-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.support-hub-filter {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.support-hub-filter:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.support-hub-filter.active {
  border-color: var(--blue);
  background: #eff6ff;
  color: #0756c9;
}
  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 {
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: opacity 0.2s;
}

.support-hub-context:hover {
  opacity: 1;
}

.support-hub-context.collapsed {
  display: none;
}

.support-hub-context > h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.support-hub-context-toggle {
  display: none;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  background: #f0f9ff;
  border: 2px dashed #38bdf8;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0369a1;
}

.support-hub-context-toggle:hover {
  background: #e0f2fe;
}

.support-hub-context-toggle.visible {
  display: block;
}

.support-hub-context-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-hub-policy-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 500;
}

.support-hub-context-block {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafbfc;
}

.support-hub-context-block h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
}

.support-hub-context-block p {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #6b7280;
}

.support-hub-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 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 {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.86rem;
}

.client-policy-notice {
  position: relative;
  margin: 0 0 12px;
  padding: 10px 12px 10px 38px;
  border: 1px solid #cfe0fa;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  color: #16437d !important;
  font-size: 0.88rem;
  line-height: 1.45;
}

.client-policy-notice::before {
  content: '\2713';
  position: absolute;
  top: 10px;
  left: 12px;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e5f6f4;
  color: #008f86;
  font-size: 0.75rem;
  font-weight: 950;
}

.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;
}

.support-workstation .support-hub-layout {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(220px, 280px);
  min-height: 680px;
  padding: 14px;
  background: #f6f8fb;
}

.support-workstation .support-hub-status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  margin-bottom: 10px;
}

.support-workstation .support-hub-status-item {
  min-width: 0;
  padding: 8px 6px;
}

.support-workstation .support-hub-status-count {
  font-size: 1.35rem;
}

.support-workstation .support-hub-status-label {
  font-size: 0.64rem;
  letter-spacing: 0;
}

.support-workstation .support-hub-queue {
  margin-top: 12px;
  padding-top: 12px;
}

.support-workstation .support-hub-queue-list,
.support-workstation .messages-thread-list {
  max-height: 230px;
  overflow: auto;
}

.support-workstation .message-thread-row {
  padding: 12px;
  border-width: 1px;
  border-radius: 10px;
}

.support-workstation .message-thread-row strong {
  font-size: 0.9rem;
}

.support-workstation .message-thread-row p {
  display: none;
}

.support-workstation .support-hub-placeholder {
  min-height: 520px;
  margin: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
}

.support-workstation .messages-thread-panel {
  min-height: 680px;
}

.support-workstation .messages-thread-header {
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid #e8edf5;
}

.support-workstation .messages-thread-header h3 {
  margin-top: 3px;
}

.support-workstation .support-hub-conversation .messages-scroll {
  min-height: 390px;
}

.support-workstation .support-hub-context {
  max-height: 680px;
  overflow: auto;
}

.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;
}

.client-requests-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.client-portal-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(7, 95, 228, 0.06), rgba(0, 169, 157, 0.08)),
    #ffffff;
}

.client-portal-auth[hidden] {
  display: none;
}

.client-portal-auth h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.client-portal-auth p {
  margin: 0;
  color: var(--muted);
}

.client-portal-auth__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 220px;
}

.client-requests-panel[hidden] {
  display: none;
}

.client-requests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-requests-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.client-request-list {
  display: grid;
  gap: 10px;
}

.client-request-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-request-filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d7e5f7;
  border-radius: 999px;
  background: #ffffff;
  color: #16437d;
  font-size: 0.82rem;
  font-weight: 900;
}

.client-request-filter.active {
  border-color: #075fe4;
  background: #075fe4;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 95, 228, 0.18);
}

.client-request-card {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.client-request-card .client-collapsible-card {
  border: 1px solid #dbe7f7;
  border-radius: 12px;
  background: #fbfdff;
}

.client-request-card__progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid rgba(178, 203, 242, 0.65);
}

.client-request-card__progress-label {
  margin: 0;
  color: #5b6b86;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-request-card__next {
  margin: 0;
  color: #183a67;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

.client-work-stage-list--compact li {
  min-height: 58px;
  padding: 8px;
}

.client-work-stage-list--compact strong {
  font-size: 0.68rem;
}

.client-request-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.client-request-card__head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.client-request-status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 95, 228, 0.1);
  color: #075fe4;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-request-card__meta,
.client-request-card__summary {
  margin: 0;
  color: #4b5b78;
  font-size: 0.86rem;
  line-height: 1.4;
}

.client-request-card__ref {
  margin: 0;
  color: #5b6b86;
  font-size: 0.76rem;
  font-weight: 850;
}

.client-request-card.is-highlighted .client-collapsible-card {
  border-color: #075fe4;
  background: #f3f8ff;
  box-shadow: 0 10px 24px rgba(7, 95, 228, 0.12);
}

.client-request-card__main,
.client-request-card__meta {
  min-width: 0;
}

.client-request-card__main {
  display: grid;
  gap: 6px;
}

.client-request-card__eyebrow {
  margin: 0 0 4px;
  color: #075fe4;
  font-size: 0.75rem;
  font-weight: 900;
}

.client-request-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.client-request-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.client-request-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-request-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d7e5f7;
  border-radius: 999px;
  background: #ffffff;
  color: #16437d;
  font-size: 0.74rem;
  font-weight: 800;
}

.client-request-card__actions {
  display: flex;
  justify-content: flex-end;
}

.message-thread-row {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 10px;
}

.message-thread-row.active {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(9, 60, 150, 0.12);
}

.message-thread-row:hover:not(.active) {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.message-thread-row--urgent {
  border-left: 5px solid #dc2626;
  background: #fef2f2;
}

.message-thread-row--urgent:hover {
  background: #fee2e2;
}

.message-thread-row--urgent.active {
  border-left-color: #dc2626;
}

.message-thread-row strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.message-thread-row span,
.message-thread-row p,
.message-thread-row time {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
}

.message-thread-row p {
  margin: 8px 0;
  color: #475569;
  line-height: 1.5;
}

.message-thread-row.active p {
  color: #1e293b;
  font-weight: 500;
}

.message-thread-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.message-thread-time--urgent {
  color: #dc2626;
  font-weight: 700;
}

.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;
}

@media (max-width: 760px) {
  .client-requests-head {
    align-items: stretch;
    flex-direction: column;
  }

  .client-portal-auth {
    grid-template-columns: 1fr;
  }

  .client-portal-auth__actions {
    min-width: 0;
  }

  .client-portal-auth__actions .btn {
    width: 100%;
  }

  .client-requests-head .btn {
    width: 100%;
  }

  .client-request-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .client-request-filter {
    width: 100%;
  }

  .client-request-card {
    grid-template-columns: 1fr;
  }

  .client-request-card__actions,
  .client-request-card__actions .btn {
    width: 100%;
  }
}

.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 {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: 220px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}

.staff-attachment-preview-open {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.staff-attachment-preview-open:disabled {
  cursor: default;
}

.staff-attachment-preview-remove {
  width: 30px;
  min-height: 42px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f8fafc;
  color: #536176;
  font-size: 0.72rem;
  font-weight: 900;
}

.staff-attachment-preview-remove:hover {
  background: #fff1f2;
  color: #b42318;
}

.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-attachment-lightbox[hidden] {
  display: none;
}

.staff-attachment-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 12, 28, 0.72);
}

.staff-attachment-lightbox-open {
  overflow: hidden;
}

.staff-attachment-lightbox__dialog {
  width: min(720px, 100%);
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.staff-attachment-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-attachment-lightbox__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.staff-attachment-lightbox__close {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c7daf8;
  border-radius: 8px;
  background: #ffffff;
  color: #06357e;
  font-weight: 900;
}

.staff-attachment-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.staff-attachment-lightbox__figure img {
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  border-radius: 10px;
  background: #f6f9fd;
}

.staff-attachment-lightbox__figure figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.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(55vh, 480px);
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.support-hub-conversation {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.support-hub-conversation .messages-scroll {
  max-height: 45vh;
  min-height: 200px;
}

.message-bubble {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  margin-bottom: 8px;
}

.message-bubble--client {
  background: #eff6ff;
  border-color: #bfdbfe;
  margin-right: 40px;
}

.message-bubble--provider {
  background: #f0fdf4;
  border-color: #bbf7d0;
  margin-left: 40px;
}

.message-bubble--admin {
  background: #fefce8;
  border-color: #fef08a;
  margin-left: 60px;
  border-left: 4px solid #eab308;
}

.message-bubble header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.message-bubble header strong {
  color: #1e293b;
}

.message-bubble header time {
  color: #64748b;
  white-space: nowrap;
  font-size: 0.8rem;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  color: #334155;
}

.messages-compose {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  margin-top: 16px;
}

.messages-compose .role-form-wide {
  min-width: 0;
}

.messages-compose textarea {
  width: 100%;
  min-height: 120px;
  font-size: 0.95rem;
  resize: vertical;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.support-hub-conversation .messages-compose {
  background: transparent;
  padding: 16px 0 0;
  border-radius: 0;
  border: none;
}

.support-hub-conversation .messages-compose textarea {
  min-height: 100px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 14px;
  font-size: 1rem;
}

.support-hub-conversation .btn-primary[type="submit"] {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 10px;
  align-self: flex-end;
}

.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;
}

.provider-support-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px 16px 10px 11px;
  border: 0;
  border-radius: 999px;
  background: #075fe4;
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(7, 95, 228, 0.28);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.provider-support-fab[hidden] {
  display: none !important;
}

.provider-support-fab:hover,
.provider-support-fab:focus-visible {
  background: #064fc0;
  box-shadow: 0 18px 38px rgba(7, 95, 228, 0.34);
  transform: translateY(-1px);
}

.provider-support-fab:focus-visible {
  outline: 3px solid rgba(7, 95, 228, 0.24);
  outline-offset: 3px;
}

.provider-support-fab__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.provider-support-fab__icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.provider-support-fab.is-loading {
  cursor: progress;
  opacity: 0.86;
}

@media (max-width: 900px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .support-hub-layout {
    grid-template-columns: 1fr;
  }

  .support-workstation .support-hub-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .support-workstation-header {
    align-items: stretch;
    flex-direction: column;
  }

  .support-workstation-header .btn {
    width: 100%;
  }

  .support-workstation .messages-thread-panel {
    min-height: 0;
  }

  .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%;
  }
}

/* Provider mobile shell (tabbar + FAB) */
@media (max-width: 768px) {
  [data-pwa-role="provider"] {
    --provider-tabbar-h: 62px;
  }

  [data-pwa-role="provider"].provider-mobile-tabbar-active {
    padding-bottom: calc(var(--provider-tabbar-h) + env(safe-area-inset-bottom, 0px));
  }

  [data-pwa-role="provider"].provider-mobile-fab-active.provider-mobile-tabbar-active {
    padding-bottom: calc(var(--provider-tabbar-h) + 72px + env(safe-area-inset-bottom, 0px));
  }

  [data-pwa-role="provider"] .provider-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: var(--provider-tabbar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(14, 31, 64, 0.06);
  }

  [data-pwa-role="provider"] .provider-mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: var(--provider-tabbar-h);
    padding: 8px 4px 10px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
  }

  [data-pwa-role="provider"] .provider-mobile-tabbar a.is-active {
    color: var(--teal);
  }

  [data-pwa-role="provider"] .provider-mobile-tabbar svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  [data-pwa-role="provider"] .provider-mobile-fab {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--provider-tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
    z-index: 33;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: var(--teal);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 169, 157, 0.35);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  [data-pwa-role="provider"] .provider-mobile-fab:active {
    transform: scale(0.98);
  }

  [data-pwa-role="provider"] .provider-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
  }

  [data-pwa-role="provider"] .provider-field-action {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  [data-pwa-role="provider"] .toast {
    bottom: calc(var(--provider-tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
  }

  [data-pwa-role="provider"].provider-mobile-fab-active .toast {
    bottom: calc(var(--provider-tabbar-h) + 72px + env(safe-area-inset-bottom, 0px));
  }

  [data-pwa-role="provider"] .provider-support-fab {
    right: 14px;
    bottom: calc(var(--provider-tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    padding: 8px 12px 8px 9px;
    font-size: 0.82rem;
    box-shadow: 0 12px 28px rgba(7, 95, 228, 0.26);
  }

  [data-pwa-role="provider"].provider-mobile-fab-active .provider-support-fab {
    bottom: calc(var(--provider-tabbar-h) + 78px + env(safe-area-inset-bottom, 0px));
  }

  [data-pwa-role="provider"] .provider-support-fab__icon {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 769px) {
  [data-pwa-role="provider"] .provider-mobile-tabbar,
  [data-pwa-role="provider"] .provider-mobile-fab {
    display: none !important;
  }
}

.provider-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.provider-field-action {
  min-height: 40px;
}
