:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --ink: #171b25;
  --muted: #667080;
  --line: #e2e5eb;
  --line-strong: #c8ced8;
  --night: #171b25;
  --night-2: #252b39;
  --teal: #12a594;
  --teal-dark: #087b70;
  --blue: #4c6fff;
  --coral: #ff6b5f;
  --amber: #e7a514;
  --green: #22a96e;
  --red: #d94b63;
  --violet: #8b5cf6;
  --aqua: #31c6d4;
  --mint: #dcfce7;
  --sun: #ffca4f;
  --rose: #ff8cab;
  --sky: #e7efff;
  --warm: #fff3cf;
  --glass: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-dark: rgba(23, 27, 37, 0.68);
  --glass-line: rgba(255, 255, 255, 0.62);
  --blur: 18px;
  --shadow: 0 20px 54px rgba(23, 27, 37, 0.14);
  --shadow-soft: 0 10px 26px rgba(23, 27, 37, 0.09);
  --shadow-color: 0 18px 44px rgba(76, 111, 255, 0.13);
  --radius: 8px;
  --sidebar: 270px;
  font-family: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.72);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

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

p {
  color: var(--muted);
  line-height: 1.58;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pan {
  from {
    transform: scale(1.02) translateX(-8px);
  }
  to {
    transform: scale(1.06) translateX(8px);
  }
}

@keyframes progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes glow-sweep {
  from {
    transform: translateX(-130%) rotate(8deg);
  }
  to {
    transform: translateX(130%) rotate(8deg);
  }
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes logo-glow {
  0%,
  100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.78) inset,
      0 12px 28px rgba(15, 118, 110, 0.18);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.86) inset,
      0 18px 42px rgba(37, 107, 146, 0.26);
  }
}

@keyframes focus-ring {
  0% {
    transform: scale(0.84);
    opacity: 0.28;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes gradient-drift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes soft-pop {
  0% {
    transform: scale(0.98);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer-line {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.auth-body {
  background: #fff8ed;
}

.session-restore-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
  background:
    radial-gradient(ellipse at top left, rgba(10, 169, 154, 0.13), transparent 48%),
    linear-gradient(145deg, #f3fbf8, #fff8ed 62%, #eff7ff);
}

.session-restore-card {
  width: min(100%, 440px);
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(35, 72, 74, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 68px rgba(15, 31, 36, 0.12);
}

.session-restore-card h1 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.2;
}

.session-restore-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.session-restore-progress {
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 169, 154, 0.13);
}

.session-restore-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal, #0aa99a);
  animation: session-restore-progress 1.3s ease-in-out infinite alternate;
}

@keyframes session-restore-progress {
  from { transform: translateX(0); }
  to { transform: translateX(160%); }
}

@media (prefers-reduced-motion: reduce) {
  .session-restore-progress span { animation: none; }
}

.public-site {
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(145deg, rgba(224, 251, 245, 0.9), rgba(255, 248, 237, 0.98) 38%, rgba(223, 242, 255, 0.86) 72%, rgba(255, 209, 102, 0.16)),
    var(--bg);
}

.public-site section {
  scroll-margin-top: 92px;
}

.public-header {
  position: fixed;
  top: 14px;
  left: max(14px, calc((100vw - 1180px) / 2));
  right: max(14px, calc((100vw - 1180px) / 2));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  backdrop-filter: blur(22px) saturate(1.24);
  box-shadow: 0 18px 48px rgba(15, 31, 36, 0.11), 0 10px 28px rgba(10, 169, 154, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.public-header:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 58px rgba(15, 31, 36, 0.16);
}

.public-header.is-condensed {
  min-height: 56px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(15, 31, 36, 0.12);
}

.public-header.is-hidden {
  transform: translateY(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

.public-site.menu-open .public-header,
.public-header:focus-within {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand small {
  color: var(--muted);
  font-size: 12px;
}

.public-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn.compact {
  min-height: 38px;
  padding: 8px 12px;
}

.menu-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

.menu-button {
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-button {
  font-size: 24px;
  line-height: 1;
}

.public-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.public-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 18, 20, 0.38);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.public-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(390px, 100vw);
  min-height: 100%;
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(249, 252, 251, 0.9);
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
  backdrop-filter: blur(26px) saturate(1.28);
  box-shadow: -28px 0 80px rgba(15, 31, 36, 0.22);
  transform: translateX(105%);
  transition: transform 0.24s ease;
}

.public-site.menu-open .public-menu-layer {
  pointer-events: auto;
}

.public-site.menu-open .public-menu-backdrop {
  opacity: 1;
}

.public-site.menu-open .public-drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-nav button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
}

.drawer-nav button:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.08);
}

.drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.public-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  align-items: end;
  gap: 24px;
  min-height: 94vh;
  padding: 130px max(24px, calc((100vw - 1180px) / 2)) 58px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 29, 34, 0.88), rgba(9, 62, 67, 0.58), rgba(12, 111, 102, 0.18)),
    linear-gradient(160deg, rgba(10, 169, 154, 0.2), rgba(255, 209, 102, 0.14), rgba(242, 109, 91, 0.12)),
    linear-gradient(180deg, rgba(8, 26, 29, 0.06), rgba(8, 26, 29, 0.42)),
    var(--public-hero) center / cover no-repeat;
  transform: scale(1.02);
  animation: soft-pan 18s ease-in-out infinite alternate;
}

.public-hero-copy,
.public-hero-proof,
.scroll-cue {
  position: relative;
  z-index: 1;
}

.public-hero-copy {
  max-width: 760px;
  animation: fade-up 0.45s ease both;
}

.public-hero-copy .eyebrow,
.public-section-copy .eyebrow {
  color: var(--teal);
}

.public-hero-copy .eyebrow {
  color: #b9fff2;
}

.public-hero h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: 68px;
  line-height: 1.01;
  letter-spacing: 0;
}

.public-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.public-hero-proof {
  display: grid;
  gap: 10px;
}

.public-hero-proof div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 209, 102, 0.12));
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  animation: float-soft 6.5s ease-in-out infinite;
}

.public-hero-proof div:nth-child(2) {
  animation-delay: 0.8s;
}

.public-hero-proof div:nth-child(3) {
  animation-delay: 1.6s;
}

.public-hero-proof strong {
  display: block;
  font-size: 30px;
}

.public-hero-proof span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 18px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  font-weight: 800;
  animation: cue-bounce 2.2s ease-in-out infinite;
}

.public-section,
.public-split,
.public-auth-section {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.public-section {
  padding: 82px 0;
}

.public-section.tinted {
  width: 100%;
  padding: 82px max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(223, 248, 232, 0.72), rgba(223, 242, 255, 0.64)),
    rgba(255, 255, 255, 0.55);
}

.public-trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 38px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.public-section-copy {
  max-width: 760px;
}

.public-section-copy h2 {
  margin-bottom: 14px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
}

.public-section-copy p {
  font-size: 17px;
}

.public-step-grid,
.public-card-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.public-step,
.public-card-grid article,
.faq-grid article {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 248, 237, 0.52)),
    var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.24);
  backdrop-filter: blur(var(--blur)) saturate(1.24);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  animation: fade-up 0.45s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-step:nth-child(2),
.public-card-grid article:nth-child(2),
.faq-grid article:nth-child(2) {
  animation-delay: 0.06s;
}

.public-step:nth-child(3),
.public-card-grid article:nth-child(3),
.faq-grid article:nth-child(3) {
  animation-delay: 0.12s;
}

.public-step:hover,
.public-card-grid article:hover,
.faq-grid article:hover,
.flow-stack article:hover,
.public-image-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 169, 154, 0.34);
  box-shadow: 0 24px 58px rgba(15, 31, 36, 0.13), var(--shadow-color);
}

.public-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: #fff;
  font-weight: 900;
}

.public-step h3,
.public-card-grid h3,
.faq-grid h3 {
  margin-bottom: 8px;
}

.profession-section {
  padding-top: 54px;
}

.profession-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.profession-category,
.segment-card {
  --segment-accent: var(--teal);
  --segment-tint: rgba(10, 169, 154, 0.1);
}

[data-segment="nursing"] { --segment-accent: var(--blue); --segment-tint: rgba(47, 128, 237, 0.1); }
[data-segment="dental"] { --segment-accent: var(--aqua); --segment-tint: rgba(37, 208, 214, 0.12); }
[data-segment="mental"] { --segment-accent: var(--violet); --segment-tint: rgba(139, 110, 232, 0.1); }
[data-segment="rehab"] { --segment-accent: var(--green); --segment-tint: rgba(47, 185, 109, 0.1); }
[data-segment="diagnostics"] { --segment-accent: var(--coral); --segment-tint: rgba(242, 109, 91, 0.1); }
[data-segment="pharmacy"] { --segment-accent: var(--amber); --segment-tint: rgba(245, 165, 36, 0.12); }
[data-segment="vision"] { --segment-accent: #1d4ed8; --segment-tint: rgba(29, 78, 216, 0.1); }
[data-segment="care"] { --segment-accent: var(--rose); --segment-tint: rgba(255, 143, 179, 0.12); }

.profession-category {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--segment-accent) 26%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), var(--segment-tint));
  box-shadow: var(--shadow-soft);
  animation: fade-up 0.42s ease both;
}

.profession-category::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--segment-accent);
}

.profession-category > span,
.profession-category em {
  color: var(--segment-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.profession-category h3 {
  margin: 10px 0 8px;
}

.profession-category p {
  min-height: 64px;
  margin-bottom: 16px;
}

.profession-category div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profession-category small {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 750;
}

.profession-category em {
  display: block;
  margin-top: 12px;
}

.profession-category > span,
.profession-category em {
  color: #334155;
}

.profession-category p {
  color: #465568;
}

.public-process-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 26px;
}

.public-illustration-card,
.flow-stack article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(223, 242, 255, 0.42)),
    var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.24);
  backdrop-filter: blur(var(--blur)) saturate(1.24);
  box-shadow: var(--shadow-soft);
}

.public-illustration-card {
  min-height: 430px;
}

.public-illustration-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.public-illustration-card:hover img,
.public-image-card:hover img {
  transform: scale(1.025);
}

.public-illustration-card::after,
.public-image-card::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 36%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  opacity: 0;
}

.public-illustration-card:hover::after,
.public-image-card:hover::after {
  opacity: 1;
  animation: glow-sweep 0.9s ease;
}

.floating-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 430px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  backdrop-filter: blur(22px) saturate(1.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  padding: 15px 16px;
}

.flow-stack {
  display: grid;
  gap: 14px;
}

.flow-stack article {
  padding: 18px;
  animation: fade-up 0.45s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.flow-stack article:nth-child(2) {
  animation-delay: 0.08s;
}

.flow-stack article:nth-child(3) {
  animation-delay: 0.16s;
}

.flow-stack article::before {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), rgba(37, 107, 146, 0.75), rgba(196, 91, 75, 0.55));
  transform: scaleX(0.48);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.flow-stack article:hover::before {
  transform: scaleX(1);
}

.flow-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.flow-stack strong,
.floating-badge strong,
.image-overlay-panel strong {
  display: block;
  font-size: 16px;
}

.flow-stack p,
.floating-badge span,
.image-overlay-panel span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.flow-stack p {
  margin-bottom: 0;
}

.public-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 36px;
  padding: 82px 0;
}

.public-split.reversed .public-image-card {
  order: 2;
}

.public-image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.public-image-card.has-overlay img {
  min-height: 360px;
}

.public-image-card.illustration-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(231, 242, 239, 0.72)),
    var(--glass);
}

.public-image-card.illustration-card img {
  object-position: center;
}

.image-overlay-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(1.26);
  backdrop-filter: blur(20px) saturate(1.26);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  padding: 15px 16px;
}

.payment-flow-panel {
  background: rgba(12, 30, 34, 0.66);
  color: #fff;
}

.payment-flow-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.public-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.public-feature-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--teal-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 850;
}

.public-feature-list + .btn {
  margin-top: 22px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-chip.green {
  background: rgba(16, 185, 129, 0.13);
  color: #067647;
}

.status-chip.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.status-chip.amber {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.public-auth-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.58fr);
  align-items: start;
  gap: 32px;
  padding: 86px 0 96px;
}

.public-auth-panel {
  min-height: auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.public-footer {
  width: 100%;
  padding: 34px max(18px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(115deg, rgba(37, 208, 214, 0.16), transparent 38%),
    linear-gradient(250deg, rgba(255, 209, 102, 0.13), transparent 42%),
    var(--night);
  color: #fff;
}

.public-footer-inner {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
}

.public-footer .brand-row {
  margin: 0;
}

.public-footer .brand-row span,
.public-footer p,
.public-footer small {
  color: rgba(255, 255, 255, 0.7);
}

.public-footer p {
  margin: 0;
  font-size: 13px;
}

.public-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.public-footer nav button,
.public-footer nav a {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  padding: 4px 0;
  font-weight: 750;
  text-decoration: none;
}

.public-footer nav button:hover,
.public-footer nav a:hover {
  color: var(--sun);
}

.public-footer small {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--night);
}

.auth-visual img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  opacity: 0.74;
  animation: soft-pan 18s ease-in-out infinite alternate;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 29, 0.88), rgba(10, 26, 29, 0.48), rgba(10, 26, 29, 0.16));
}

.auth-copy {
  position: absolute;
  z-index: 1;
  left: 7vw;
  bottom: 8vh;
  max-width: 720px;
  color: #fff;
  animation: fade-up 0.6s ease both;
}

.auth-copy h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 620px;
}

.proof-grid div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.proof-grid strong {
  display: block;
  font-size: 28px;
}

.proof-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 44px;
  background: var(--surface);
  border-left: 1px solid var(--line);
}

.brand-row,
.brand,
.avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-row {
  margin-bottom: 30px;
}

.brand-row span:last-child,
.brand small {
  display: block;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 44%),
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(37, 107, 146, 0.16));
  color: #fff;
  font-weight: 800;
  isolation: isolate;
  animation: logo-glow 5.5s ease-in-out infinite;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.16);
  animation: focus-ring 2.8s ease-out infinite;
}

.brand-mark svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 14px rgba(15, 31, 36, 0.18));
}

.brand-mark > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.brand-row strong,
.brand strong {
  display: block;
  font-size: 17px;
}

.brand-row span,
.brand small {
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
}

.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(15, 31, 36, 0.08);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-context {
  margin: -4px 0 2px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(10, 169, 154, 0.1), rgba(223, 242, 255, 0.32));
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.register-profession small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(10, 169, 154, 0.72);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(10, 169, 154, 0.13), 0 8px 18px rgba(255, 209, 102, 0.12);
}

input:disabled {
  background: #edf2ef;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

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

.form-actions,
.card-actions,
.hero-actions,
.toolbar-actions,
.row-actions,
.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-select {
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
}

.inline-select select {
  min-width: 220px;
}

.card-actions.vertical {
  align-items: stretch;
}

.file-action {
  cursor: pointer;
}

.file-action input {
  display: none;
}

.btn {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 42px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 237, 0.72)),
    #fff;
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% 0;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0;
  transform: translateX(-160%) rotate(9deg);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 169, 154, 0.56);
  box-shadow: var(--shadow-soft), 0 10px 24px rgba(255, 209, 102, 0.14);
}

.btn:hover::after {
  opacity: 1;
  animation: glow-sweep 0.75s ease;
}

.btn.primary {
  border-color: rgba(10, 169, 154, 0.82);
  background: linear-gradient(135deg, var(--teal), var(--aqua) 48%, var(--blue));
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 12px 26px rgba(10, 169, 154, 0.2);
}

.btn.primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 34px rgba(47, 128, 237, 0.22);
}

.btn.ghost {
  border-color: rgba(10, 169, 154, 0.24);
  background: linear-gradient(135deg, rgba(10, 169, 154, 0.1), rgba(255, 209, 102, 0.11));
  color: var(--teal-dark);
}

.btn.light {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn.danger {
  border-color: rgba(177, 61, 66, 0.32);
  background: linear-gradient(135deg, rgba(220, 76, 100, 0.1), rgba(255, 143, 179, 0.12));
  color: var(--red);
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn.wide {
  width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(37, 208, 214, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(255, 209, 102, 0.14), transparent 58%),
    var(--night);
  color: #fff;
}

.nav-logo {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 6px;
  text-align: left;
}

.nav-logo .brand-mark {
  background: #fff;
  color: var(--teal-dark);
}

.nav-logo small {
  color: rgba(255, 255, 255, 0.68);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.sidebar-tools {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 9px;
}

.sidebar-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.sidebar-tools summary::-webkit-details-marker { display: none; }
.sidebar-tools[open] summary span { transform: rotate(180deg); }
.sidebar-tools-list { display: grid; gap: 5px; padding-top: 4px; }
.sidebar-tools-list .nav-item { min-height: 38px; padding-block: 8px; font-size: 13px; }

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  font-weight: 730;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(37, 208, 214, 0.13));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-item em {
  min-width: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 12px;
  text-align: center;
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 209, 102, 0.1));
}

.sidebar-card p {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.workspace {
  min-width: 0;
  padding: 18px 20px 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 248, 232, 0.62), rgba(223, 242, 255, 0.46));
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 31, 36, 0.06), 0 8px 22px rgba(10, 169, 154, 0.08);
}

.topbar h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

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

.profile-shortcut-initials {
  display: none;
}

.mobile-tabbar {
  display: none;
}

.content-view {
  animation: fade-up 0.28s ease both;
}

.module-intro {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(223, 248, 232, 0.62) 45%, rgba(255, 241, 216, 0.68)),
    var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.28);
  backdrop-filter: blur(var(--blur)) saturate(1.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 16px 42px rgba(15, 31, 36, 0.1);
  padding: 12px;
  animation: soft-pop 0.28s ease both;
}

.module-intro::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--coral), var(--sun), var(--teal), var(--blue));
}

.module-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateX(-100%);
  animation: shimmer-line 3.6s ease-in-out infinite;
}

.module-intro img {
  width: 96px;
  height: 72px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(15, 31, 36, 0.1);
}

.module-intro h3 {
  margin: 0 0 4px;
}

.module-intro p {
  margin: 0;
  max-width: 820px;
  font-size: 14px;
}

.module-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.module-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(10, 169, 154, 0.1);
  color: var(--teal-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 820;
}

.nav-item.active {
  position: relative;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  transform: translateY(-50%);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.12);
}

.nav-item.active {
  padding-left: 20px;
}

.topbar {
  animation: fade-up 0.32s ease both;
}

.panel,
.toolbar-panel,
.job-card,
.pro-card,
.booking-card,
.application-card,
.table-row {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.panel:hover,
.toolbar-panel:hover,
.job-card:hover,
.pro-card:hover,
.booking-card:hover,
.application-card:hover,
.table-row:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 20px 46px rgba(15, 31, 36, 0.13);
}

.missing-data {
  border-color: rgba(177, 61, 66, 0.24);
  background:
    linear-gradient(135deg, rgba(177, 61, 66, 0.08), rgba(255, 255, 255, 0.72)),
    var(--glass);
}

.missing-data strong {
  color: var(--red);
}

.content-view {
  display: grid;
  gap: 16px;
}

.content-view > * {
  animation: fade-up 0.35s ease both;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.54;
  animation: soft-pan 20s ease-in-out infinite alternate;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 29, 31, 0.91), rgba(10, 29, 31, 0.62), rgba(10, 29, 31, 0.24));
}

.hero-text,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 760px;
  padding: 46px;
  color: #fff;
}

.hero-text .eyebrow {
  color: #9fe1d5;
}

.hero-text h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-text p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.hero-metrics {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 30px;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #fff;
}

.hero-metrics strong {
  display: block;
  font-size: 26px;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.two.uneven {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.toolbar-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 31, 36, 0.06);
}

.panel {
  padding: 18px;
}

.credential-summary,
.schedule-guide,
.quality-guide {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(10, 169, 154, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(223, 248, 232, 0.72), rgba(223, 242, 255, 0.62) 58%, rgba(255, 241, 216, 0.64)),
    rgba(255, 255, 255, 0.76);
  padding: 16px;
}

.credential-summary::before,
.schedule-guide::before,
.quality-guide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--sun));
}

.credential-summary strong {
  display: block;
}

.credential-summary p,
.schedule-guide p,
.quality-guide p {
  margin: 7px 0 14px;
  font-size: 13px;
}

.schedule-guide,
.quality-guide {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  padding: 24px;
}

.schedule-guide .btn {
  align-self: flex-start;
}

.timesheet-editor {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(240px, 1fr);
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(47, 128, 237, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(223, 242, 255, 0.62), rgba(255, 255, 255, 0.74));
}

.timesheet-editor textarea {
  min-height: 88px;
}

.toolbar-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.toolbar-panel h3,
.section-head h3 {
  margin: 0;
}

.toolbar-actions {
  justify-content: flex-end;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.filter-form input {
  width: 230px;
}

.filter-form select {
  width: 150px;
}

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

.section-head.compact {
  margin-bottom: 10px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 237, 0.55)),
    var(--surface);
  padding: 18px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 30px rgba(15, 31, 36, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--teal);
  transform-origin: left;
  animation: progress-fill 0.7s ease both;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 169, 154, 0.24);
  box-shadow: var(--shadow-soft), var(--shadow-color);
}

.metric-card span,
.metric-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin: 14px 0 12px;
  font-size: 34px;
  letter-spacing: 0;
}

.metric-card.blue::before,
.status-badge.blue {
  background: var(--blue);
}

.metric-card.blue {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(223, 242, 255, 0.78));
}

.metric-card.coral::before {
  background: var(--coral);
}

.metric-card.coral {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 224, 216, 0.82));
}

.metric-card.green::before,
.status-badge.green {
  background: var(--green);
}

.metric-card.green {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(223, 248, 232, 0.82));
}

.metric-card.amber::before,
.status-badge.amber {
  background: var(--amber);
}

.metric-card.amber {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 216, 0.9));
}

.metric-card.red::before,
.status-badge.red {
  background: var(--red);
}

.metric-card.red {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 226, 234, 0.84));
}

.metric-card.violet::before,
.status-badge.violet {
  background: var(--violet);
}

.metric-card.violet {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 232, 255, 0.86));
}

.metric-card.teal::before,
.status-badge.teal {
  background: var(--teal);
}

.metric-card.teal {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(214, 250, 245, 0.86));
}

.segment-card,
.job-card,
.compact-card,
.pro-card,
.application-card,
.booking-card,
.table-row,
.mini-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 237, 0.5)),
    var(--surface);
  box-shadow: 0 8px 22px rgba(15, 31, 36, 0.06);
}

.segment-card {
  position: relative;
  overflow: hidden;
}

.job-card,
.pro-card,
.booking-card {
  position: relative;
}

.segment-card::before,
.job-card::before,
.pro-card::before,
.booking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--aqua), var(--sun), var(--coral));
}

.segment-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.segment-card:hover img {
  transform: scale(1.035);
}

.segment-card div {
  padding: 14px;
}

.segment-card span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.segment-card h3 {
  margin: 6px 0 8px;
  font-size: 17px;
}

.segment-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.stack-list,
.activity-list,
.table-list,
.booking-list {
  display: grid;
  gap: 10px;
}

.compact-card,
.mini-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.compact-card img {
  width: 76px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
}

.compact-card strong,
.mini-row strong {
  display: block;
}

.compact-card p,
.mini-row p {
  margin: 4px 0 0;
  font-size: 13px;
}

.activity-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(223, 242, 255, 0.32));
}

.activity-item > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.activity-item.green > span {
  background: var(--green);
}

.activity-item.red > span {
  background: var(--red);
}

.activity-item.amber > span {
  background: var(--amber);
}

.activity-item p {
  margin: 4px 0 0;
  font-size: 13px;
}

.activity-item time {
  color: var(--muted);
  font-size: 12px;
}

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

.job-card,
.pro-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.job-card:hover,
.pro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft), var(--shadow-color);
}

.job-image,
.pro-visual {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: var(--surface-2);
}

.job-image img,
.pro-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.job-card:hover img,
.pro-card:hover img {
  transform: scale(1.04);
}

.status-badge,
.pro-visual span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
}

.job-image .status-badge,
.pro-visual span {
  position: absolute;
  top: 12px;
  right: 12px;
}

.job-body,
.pro-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.job-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-heading span {
  color: var(--muted);
  font-size: 13px;
}

.job-heading h3 {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 1.18;
}

.job-heading strong {
  white-space: nowrap;
  color: var(--teal-dark);
}

.job-body p,
.pro-body p,
.application-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-row span,
.tag-row span,
.check-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 169, 154, 0.1), rgba(255, 209, 102, 0.12));
  color: var(--teal-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 730;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(223, 242, 255, 0.5)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.detail-hero > img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.detail-hero > div {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
}

.detail-hero h1 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-facts,
.fact-grid,
.payment-summary {
  display: grid;
  gap: 10px;
}

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

.hero-facts span,
.fact-grid div,
.payment-summary div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(223, 248, 232, 0.5));
  padding: 11px 12px;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fact-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list div:last-child {
  border-bottom: 0;
}

dt,
.fact-grid span,
.payment-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--blue), var(--coral));
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(10, 169, 154, 0.18);
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  overflow: visible;
  padding-bottom: 4px;
}

.pipeline-column {
  min-width: 0;
  min-height: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(223, 242, 255, 0.44));
}

.pipeline-column h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.application-card {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
}

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

.booking-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}

.booking-card > img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.booking-card > div {
  padding: 18px;
}

.fact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.fact-grid strong,
.payment-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.timesheet-card {
  display: grid;
  gap: 12px;
}

.payment-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.table-row p {
  margin: 3px 0 0;
  font-size: 13px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 16px;
  align-items: start;
}

.guide-panel,
.profile-side {
  display: grid;
  gap: 14px;
}

.guide-panel img,
.profile-side img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
}

.guide-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.progress-wrap {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.progress-wrap div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 31, 36, 0.1);
}

.progress-wrap i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform-origin: left;
  animation: progress-fill 0.7s ease both;
}

.api-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 208, 214, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(224, 251, 245, 0.72)),
    rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  backdrop-filter: blur(16px) saturate(1.18);
  box-shadow: 0 16px 34px rgba(10, 169, 154, 0.12);
}

.api-panel strong {
  display: block;
  margin-top: 2px;
}

.api-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.api-meta {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-panel {
  max-width: 620px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 170px;
  width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  text-align: center;
}

.admin-actions {
  align-items: stretch;
  flex-direction: column;
}

.operational-grid {
  align-items: stretch;
}

.operational-panel {
  overflow: hidden;
}

.operations-health-panel {
  margin-bottom: 16px;
  border-color: rgba(37, 208, 214, 0.28);
  background:
    linear-gradient(120deg, rgba(224, 251, 245, 0.76), rgba(255, 255, 255, 0.88) 48%, rgba(255, 239, 209, 0.56)),
    var(--glass-strong);
}

.operations-health-actions,
.operations-health-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.operations-health-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
  border-block: 1px solid var(--line);
}

.operations-health-summary div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.operations-health-summary div:last-child {
  border-right: 0;
}

.operations-health-summary dt {
  margin-bottom: 6px;
}

.operations-health-summary dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 20px;
  text-align: left;
}

.operations-health-list {
  display: grid;
  gap: 0;
}

.operations-health-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  animation: operational-rise 0.34s ease both;
}

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

.operations-health-row p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.operations-health-row small,
.operations-health-foot small {
  color: var(--muted);
}

.operations-health-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(179, 107, 25, 0.1);
}

.operations-health-row.critical .operations-health-indicator {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(220, 69, 82, 0.1);
}

.operations-health-count {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 31, 36, 0.08);
  font-weight: 900;
}

.operations-health-foot {
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .operations-health-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-health-summary div:nth-child(2) {
    border-right: 0;
  }

  .operations-health-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .operations-health-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }

  .operations-health-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .operations-health-actions,
  .operations-health-foot {
    justify-content: flex-start;
  }

  .operations-health-actions .btn {
    width: 100%;
  }

  .operations-health-summary {
    grid-template-columns: 1fr;
  }

  .operations-health-summary div,
  .operations-health-summary div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .operations-health-summary div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .operations-health-row {
    animation: none;
  }
}

@media (max-width: 820px) {
  body.mode-mobile .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
  }

  body.mode-mobile .workspace-date,
  body.mode-mobile .environment-badge {
    display: none;
  }

  body.mode-mobile .topbar h2 {
    font-size: 22px;
  }

  body.mode-mobile .top-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }

  body.mode-mobile .top-actions .notification-shortcut,
  body.mode-mobile .top-actions .profile-shortcut {
    width: 38px !important;
    min-width: 38px;
    min-height: 38px;
  }

  body.mode-mobile .top-actions .btn.danger {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 11px;
  }
}

/* Private pilot access and administration */
.pilot-access-state {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 10px;
  overflow: hidden;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(76, 111, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(238, 243, 255, 0.86);
  box-shadow: 0 16px 42px rgba(40, 55, 105, 0.1);
  backdrop-filter: blur(18px) saturate(135%);
  animation: pilot-enter 420ms cubic-bezier(.2, .72, .2, 1) both;
}

.pilot-access-state::after {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border: 30px solid rgba(49, 198, 212, 0.16);
  border-radius: 50%;
  content: "";
}

.pilot-access-state.invalid {
  border-color: rgba(217, 75, 99, 0.26);
  background: rgba(255, 240, 244, 0.9);
}

.pilot-access-state strong {
  max-width: 26ch;
  font-size: 22px;
  line-height: 1.18;
}

.pilot-access-state p {
  max-width: 48ch;
  margin: 0 0 8px;
}

.pilot-access-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(76, 111, 255, 0.12);
}

.pilot-access-state.loading .pilot-access-symbol {
  border: 3px solid rgba(255, 255, 255, 0.64);
  border-top-color: #fff;
  animation: bankid-spin 900ms linear infinite;
}

.pilot-access-state.invalid .pilot-access-symbol {
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(217, 75, 99, 0.11);
}

.pilot-invite-confirmed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 169, 110, 0.22);
  border-radius: var(--radius);
  background: rgba(225, 249, 237, 0.84);
  animation: pilot-enter 360ms ease both;
}

.pilot-invite-confirmed p,
.pilot-invite-confirmed strong {
  margin: 0;
}

.pilot-invite-confirmed p {
  margin-top: 2px;
  font-size: 12px;
}

.pilot-invite-check {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.pilot-locked-value {
  display: flex;
  min-height: 46px;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1f4f8;
  color: var(--ink);
  font-weight: 700;
}

.pilot-locked-value small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.pilot-control-panel {
  overflow: hidden;
  margin-bottom: 18px;
  padding: 0;
  border-color: rgba(76, 111, 255, 0.16);
  background: #fff;
  box-shadow: 0 18px 46px rgba(38, 49, 84, 0.08);
}

.pilot-control-head,
.pilot-invite-composer,
.pilot-outcome-panel,
.pilot-invitation-ledger {
  padding: 24px;
}

.pilot-control-head {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 255, 0.82);
}

.pilot-control-head h3,
.pilot-subhead h4 {
  margin: 3px 0 0;
  letter-spacing: 0;
}

.pilot-control-head p {
  margin: 7px 0 0;
}

.pilot-head-actions,
.pilot-form-actions,
.pilot-subhead,
.pilot-link-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pilot-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pilot-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pilot-kpi-strip > div {
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.pilot-kpi-strip > div:last-child {
  border-right: 0;
}

.pilot-kpi-strip span,
.pilot-kpi-strip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.pilot-kpi-strip strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.pilot-kpi-strip > div:nth-child(1) strong { color: var(--blue); }
.pilot-kpi-strip > div:nth-child(2) strong { color: var(--violet); }
.pilot-kpi-strip > div:nth-child(3) strong { color: var(--coral); }
.pilot-kpi-strip > div:nth-child(4) strong { color: var(--teal-dark); }
.pilot-kpi-strip > div:nth-child(5) strong { color: var(--green); }

.pilot-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  border-bottom: 1px solid var(--line);
}

.pilot-invite-composer {
  border-right: 1px solid var(--line);
}

.pilot-subhead {
  justify-content: space-between;
  margin-bottom: 18px;
}

.pilot-subhead > span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.pilot-link-once {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid rgba(49, 198, 212, 0.3);
  border-left: 4px solid var(--aqua);
  border-radius: var(--radius);
  background: rgba(232, 250, 252, 0.84);
  animation: pilot-enter 360ms ease both;
}

.pilot-link-once p,
.pilot-link-once strong {
  margin: 0;
}

.pilot-link-once p {
  margin-top: 3px;
  font-size: 12px;
}

.pilot-link-copy input {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 12px;
}

.pilot-link-copy .icon-button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  font-size: 19px;
}

.pilot-invite-form {
  gap: 14px;
}

.pilot-invite-form label {
  min-width: 0;
}

.pilot-invite-details {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .7fr);
}

.pilot-form-actions {
  justify-content: space-between;
  padding-top: 3px;
}

.pilot-form-actions small {
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.45;
}

.pilot-form-actions .btn {
  min-width: 150px;
}

.pilot-outcome-panel {
  background: #fbfcff;
}

.pilot-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pilot-outcome-grid > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pilot-outcome-grid > div:nth-child(2n) { border-right: 0; }
.pilot-outcome-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }

.pilot-outcome-grid dt {
  color: var(--muted);
  font-size: 10px;
}

.pilot-outcome-grid dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.pilot-balance-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.pilot-balance-list > strong {
  font-size: 12px;
}

.pilot-balance-list > div {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(90px, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.pilot-balance-list i {
  position: relative;
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 4px;
  background: #e9edf3;
}

.pilot-balance-list i::before,
.pilot-balance-list i::after {
  position: absolute;
  left: 0;
  height: 4px;
  content: "";
}

.pilot-balance-list i::before {
  top: 0;
  width: var(--demand);
  background: var(--coral);
}

.pilot-balance-list i::after {
  bottom: 0;
  width: var(--supply);
  background: var(--aqua);
}

.pilot-balance-list small {
  color: var(--muted);
  text-align: right;
}

.pilot-metric-definitions {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
}

.pilot-metric-definitions summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.pilot-metric-definitions p {
  margin: 8px 0 0;
  font-size: 11px;
}

.pilot-invitation-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pilot-invitation-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(125px, .65fr) minmax(145px, .7fr) minmax(110px, auto);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

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

.pilot-invitation-row:hover {
  background: #fafbfe;
}

.pilot-invitation-row > div {
  min-width: 0;
}

.pilot-invitation-person strong,
.pilot-invitation-person p {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot-invitation-person p,
.pilot-invitation-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.pilot-invitation-row > div:nth-child(2),
.pilot-invitation-row > div:nth-child(3) {
  display: grid;
  justify-items: start;
}

.pilot-invitation-actions {
  justify-self: end;
}

.pilot-invitation-actions > span {
  color: var(--muted);
  font-size: 10px;
}

@keyframes pilot-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .pilot-workspace {
    grid-template-columns: 1fr;
  }

  .pilot-invite-composer {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pilot-invitation-row {
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(120px, .7fr));
  }

  .pilot-invitation-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .pilot-control-head,
  .pilot-subhead,
  .pilot-form-actions,
  .pilot-link-copy {
    align-items: stretch;
    flex-direction: column;
  }

  .pilot-control-head,
  .pilot-invite-composer,
  .pilot-outcome-panel,
  .pilot-invitation-ledger {
    padding: 18px;
  }

  .pilot-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pilot-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-kpi-strip > div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
  }

  .pilot-kpi-strip > div:nth-child(2n) { border-right: 0; }
  .pilot-kpi-strip > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .pilot-invite-details,
  .pilot-outcome-grid {
    grid-template-columns: 1fr;
  }

  .pilot-outcome-grid > div,
  .pilot-outcome-grid > div:nth-child(2n),
  .pilot-outcome-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pilot-outcome-grid > div:last-child { border-bottom: 0; }

  .pilot-balance-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pilot-balance-list small {
    text-align: left;
  }

  .pilot-invitation-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pilot-invitation-person,
  .pilot-invitation-actions {
    grid-column: 1 / -1;
  }

  .pilot-link-copy .btn,
  .pilot-form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .pilot-invitation-row {
    grid-template-columns: 1fr;
  }

  .pilot-invitation-person,
  .pilot-invitation-actions {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pilot-access-state,
  .pilot-invite-confirmed,
  .pilot-link-once,
  .pilot-access-state.loading .pilot-access-symbol {
    animation: none;
  }
}

.pilot-readiness-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(211, 139, 31, 0.34);
  border-left: 4px solid var(--sun);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.94), rgba(255, 255, 255, 0.88));
}

.pilot-readiness-card.is-ready {
  border-color: rgba(10, 169, 154, 0.32);
  border-left-color: var(--teal);
  background: linear-gradient(135deg, rgba(224, 251, 245, 0.9), rgba(255, 255, 255, 0.9));
}

.pilot-readiness-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.pilot-readiness-head h4,
.pilot-readiness-card p {
  margin: 0;
}

.pilot-readiness-group {
  display: grid;
  gap: 6px;
}

.pilot-readiness-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-readiness-group li {
  padding: 6px 9px;
  border: 1px solid rgba(15, 31, 36, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 520px) {
  .pilot-readiness-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pilot-readiness-head .status-chip {
    align-self: flex-start;
  }
}

.readiness-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 31, 36, 0.09);
  box-shadow: inset 0 1px 2px rgba(15, 31, 36, 0.08);
}

.readiness-refresh {
  flex: 0 0 auto;
  line-height: 1.2;
  white-space: nowrap;
}

.readiness-refresh::after {
  display: none;
}

.readiness-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--sun));
  animation: progress-fill 0.8s ease both, shimmer-line 3s ease-in-out infinite;
}

.readiness-list,
.audit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.readiness-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 237, 0.64));
  color: var(--text);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.readiness-item:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 169, 154, 0.34);
  box-shadow: 0 16px 34px rgba(10, 169, 154, 0.13);
}

.readiness-item-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.readiness-item-head > div:first-child {
  display: grid;
  gap: 4px;
}

.readiness-item-head > div:first-child > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.readiness-item.done .readiness-item-head > div:first-child > span {
  color: var(--green);
}

.readiness-item.needs-work .readiness-item-head > div:first-child > span {
  color: var(--amber);
}

.readiness-item p,
.audit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.readiness-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.readiness-attestation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 12px;
}

.readiness-review {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.readiness-review summary {
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.readiness-review[open] summary {
  margin-bottom: 12px;
}

.readiness-attestation-form {
  padding-top: 4px;
}

.readiness-review-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.readiness-review-actions small {
  max-width: 38ch;
  color: var(--muted);
}

.readiness-next-action {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.audit-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(10, 169, 154, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
}

.audit-item time,
.audit-item > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

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

.verification-case-card,
.verification-history,
.privacy-request-history {
  animation: operational-rise 420ms ease both;
}

.verification-case-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.verification-case-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
  content: "";
}

.verification-case-card.needs-review::before {
  background: var(--sun);
}

.verification-case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.verification-case-facts div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.verification-case-facts dt,
.verification-history-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.verification-case-facts dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-weight: 750;
}

.verification-decision-form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.verification-history-list,
.operational-list {
  display: grid;
  gap: 10px;
}

.verification-history-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) auto minmax(120px, 0.55fr) minmax(120px, 0.55fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.verification-history-row p,
.operational-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.verification-history-row > div:not(:first-child) {
  display: grid;
  gap: 4px;
}

.verification-decision-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--blue);
  background: #f4f6ff;
  color: var(--text);
}

.provider-boundary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid #f1d887;
  border-radius: 8px;
  background: #fff9e8;
  box-shadow: 0 18px 42px rgba(140, 102, 18, 0.09);
}

.provider-boundary-band.document-boundary-band {
  border-color: #a9dcd7;
  background: #eefaf8;
}

.provider-boundary-band.document-boundary-band.ready {
  border-color: rgba(40, 122, 78, 0.34);
  background: #f0fbf4;
  box-shadow: 0 18px 42px rgba(31, 113, 82, 0.09);
}

.production-document-grid {
  align-items: stretch;
}

.production-document-grid .doc-card {
  position: relative;
  overflow: hidden;
}

.production-document-grid .doc-card.is-processing::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--teal), transparent);
  background-size: 220% 100%;
  content: "";
  animation: document-progress 1.6s linear infinite;
}

@keyframes document-progress {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

.document-file-summary {
  display: grid;
  gap: 4px;
  min-height: 50px;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(246, 249, 252, 0.78);
}

.document-file-summary span,
.document-review-meta small {
  color: var(--muted);
  font-size: 12px;
}

.document-actions {
  align-items: stretch;
  margin-top: 12px;
}

.document-actions .upload-control {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 9px 13px;
  border-style: solid;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.upload-control.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.document-actions .upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.verification-document-grid {
  display: grid;
  gap: 0;
}

.document-review-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) minmax(280px, auto);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.document-review-meta {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.document-review-row .card-actions {
  justify-content: flex-end;
}

.document-review-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  background: #fff9e8;
  color: var(--text);
  font-size: 13px;
}

.document-review-row > .document-review-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
}

.provider-boundary-band h3 {
  margin: 5px 0 8px;
}

.provider-boundary-band p {
  max-width: 820px;
  margin: 0 0 14px;
}

.operational-list {
  max-height: 760px;
  margin-top: 16px;
  overflow: auto;
  padding-right: 3px;
}

.operational-row {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.operational-row.overdue {
  border-color: rgba(220, 69, 82, 0.46);
  background: #fff3f4;
}

.operational-row-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.deadline {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.deadline.overdue {
  color: var(--red);
}

.compact-operational-form,
.incident-create-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.compact-operational-form textarea,
.incident-create-form textarea {
  min-height: 76px;
}

.consent-control.compact {
  align-self: end;
  min-height: 46px;
}

.operational-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.notification-preferences {
  margin-top: 16px;
}

.notification-preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toggle-control {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.toggle-control input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.toggle-control span {
  display: grid;
  gap: 4px;
}

.toggle-control small {
  color: var(--muted);
  font-weight: 500;
}

@keyframes operational-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .grid.two.operational-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .verification-case-grid {
    grid-template-columns: 1fr;
  }

  .verification-history-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .verification-history-row > div:not(:first-child) {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .verification-case-facts,
  .provider-boundary-band {
    grid-template-columns: 1fr;
  }

  .verification-history-row,
  .operational-row-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .verification-history-row .status-badge,
  .operational-row-head .status-badge {
    justify-self: start;
  }

  .notification-preference-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verification-case-card,
  .verification-history,
  .privacy-request-history {
    animation: none;
  }
}

.compact-hero {
  min-height: 300px;
}

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

.thread-list,
.thread-panel {
  min-height: 520px;
}

.thread-button {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.thread-button.active {
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(15, 118, 110, 0.1);
}

.thread-button span {
  color: var(--muted);
  font-size: 12px;
}

.quick-thread {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.message-list article {
  width: min(620px, 92%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.message-list article.mine {
  justify-self: end;
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.1);
}

.message-list p {
  margin: 5px 0;
}

.message-list time {
  color: var(--muted);
  font-size: 11px;
}

.message-compose {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.notification-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.notification-row.read {
  opacity: 0.68;
}

.notification-row > span:first-child {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--blue);
}

.notification-row > span:first-child.red {
  background: var(--red);
}

.notification-row > span:first-child.amber {
  background: var(--amber);
}

.notification-row > span:first-child.green {
  background: var(--green);
}

.notification-row p {
  margin: 4px 0 0;
}

.template-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.template-card img {
  width: 150px;
  height: 132px;
  border-radius: 6px;
  object-fit: cover;
}

.template-card p {
  margin-bottom: 10px;
}

.review-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.review-card strong {
  color: var(--amber);
}

.review-card span {
  color: var(--muted);
  font-size: 12px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.checklist article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.checklist article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(179, 107, 25, 0.13);
  color: var(--amber);
  font-weight: 900;
}

.checklist article.done > span {
  background: rgba(40, 122, 78, 0.13);
  color: var(--green);
}

.checklist p {
  margin: 4px 0 0;
  font-size: 13px;
}

.onboarding-progress {
  margin-bottom: 12px;
}

.upload-control {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.upload-control input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 250px;
  max-width: 360px;
  transform: translateY(10px);
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--night);
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.auth-panel,
.topbar,
.panel,
.toolbar-panel,
.metric-card,
.segment-card,
.job-card,
.compact-card,
.pro-card,
.application-card,
.booking-card,
.table-row,
.mini-row,
.pipeline-column,
.empty-state {
  border-color: rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 237, 0.42)),
    var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.28);
  backdrop-filter: blur(var(--blur)) saturate(1.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 52px rgba(15, 31, 36, 0.12);
}

.auth-panel,
.panel,
.toolbar-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(223, 248, 232, 0.36)),
    var(--glass-strong);
}

.topbar {
  position: static;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(223, 248, 232, 0.5), rgba(223, 242, 255, 0.42));
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(37, 208, 214, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(255, 209, 102, 0.16), rgba(242, 109, 91, 0.08), transparent 62%),
    rgba(8, 48, 56, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.24);
  backdrop-filter: blur(20px) saturate(1.24);
}

.sidebar-card,
.hero-metrics div,
.proof-grid div {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 209, 102, 0.1));
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.9);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-panel::after {
  background:
    linear-gradient(90deg, rgba(10, 29, 31, 0.88), rgba(10, 29, 31, 0.54), rgba(10, 29, 31, 0.18)),
    linear-gradient(180deg, transparent, rgba(10, 29, 31, 0.28));
}

.btn,
.nav-item,
.mobile-tabbar {
  -webkit-tap-highlight-color: transparent;
}

body.mode-mobile {
  background:
    linear-gradient(145deg, rgba(228, 239, 237, 0.95), rgba(247, 249, 252, 0.96) 45%, rgba(238, 241, 248, 0.95)),
    var(--bg);
}

body.mode-mobile .app-shell {
  grid-template-columns: 1fr;
}

body.mode-mobile .sidebar {
  display: none;
}

body.mode-mobile .workspace {
  padding: 10px 10px calc(96px + env(safe-area-inset-bottom));
}

body.mode-mobile .topbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: auto;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

body.mode-mobile .topbar h2 {
  font-size: 27px;
  line-height: 1.08;
}

body.mode-mobile .top-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.mode-mobile .hero-panel,
body.mode-mobile .auth-shell,
body.mode-mobile .grid.two,
body.mode-mobile .grid.two.uneven,
body.mode-mobile .grid.three,
body.mode-mobile .grid.four,
body.mode-mobile .detail-hero,
body.mode-mobile .editor-layout,
body.mode-mobile .booking-card {
  grid-template-columns: 1fr;
}

body.mode-mobile .module-intro {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
}

body.mode-mobile .module-intro img {
  width: 72px;
  height: 64px;
}

body.mode-mobile .module-tags {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

body.mode-mobile .module-intro p {
  font-size: 13px;
}

body.mode-mobile .audit-item {
  grid-template-columns: 1fr;
  align-items: start;
}

body.mode-mobile .audit-item time,
body.mode-mobile .audit-item > span {
  white-space: normal;
}

body.mode-mobile .auth-shell {
  min-height: 100%;
}

body.mode-mobile .auth-visual,
body.mode-mobile .auth-visual img {
  min-height: 420px;
  height: 420px;
}

body.mode-mobile .auth-copy {
  left: 22px;
  right: 22px;
  bottom: 22px;
}

body.mode-mobile .auth-copy h1 {
  font-size: 30px;
}

body.mode-mobile .auth-copy p {
  font-size: 15px;
}

body.mode-mobile .auth-panel {
  min-height: auto;
  padding: 24px;
  border-left: 0;
}

body.mode-mobile .proof-grid {
  grid-template-columns: 1fr;
}

body.mode-mobile .hero-panel {
  min-height: auto;
}

body.mode-mobile .hero-panel::before {
  background-position: center top;
}

body.mode-mobile .hero-text {
  padding: 28px 22px 18px;
}

body.mode-mobile .hero-text h1,
body.mode-mobile .detail-hero h1 {
  font-size: 30px;
}

body.mode-mobile .hero-metrics {
  grid-template-columns: 1fr;
  padding: 0 22px 22px;
}

body.mode-mobile .job-grid,
body.mode-mobile .pro-grid {
  grid-template-columns: 1fr;
}

body.mode-mobile .toolbar-panel,
body.mode-mobile .section-head {
  align-items: stretch;
  flex-direction: column;
}

body.mode-mobile .toolbar-actions,
body.mode-mobile .filter-form,
body.mode-mobile .card-actions,
body.mode-mobile .hero-actions,
body.mode-mobile .row-actions,
body.mode-mobile .form-actions {
  align-items: stretch;
  flex-direction: column;
  width: 100%;
}

body.mode-mobile .filter-form input,
body.mode-mobile .filter-form select,
body.mode-mobile .filter-form .btn,
body.mode-mobile .btn,
body.mode-mobile .card-actions .btn,
body.mode-mobile .hero-actions .btn {
  width: 100%;
}

body.mode-mobile .form-grid.two,
body.mode-mobile .form-grid.three,
body.mode-mobile .fact-grid,
body.mode-mobile .payment-summary,
body.mode-mobile .hero-facts {
  grid-template-columns: 1fr;
}

body.mode-mobile .compact-card,
body.mode-mobile .mini-row,
body.mode-mobile .table-row,
body.mode-mobile .messages-layout,
body.mode-mobile .template-card,
body.mode-mobile .checklist article,
body.mode-mobile .notification-row {
  grid-template-columns: 1fr;
}

body.mode-mobile .thread-list,
body.mode-mobile .thread-panel {
  min-height: auto;
}

body.mode-mobile .template-card img {
  width: 100%;
  height: 190px;
}

body.mode-mobile .compact-card img {
  width: 100%;
  height: 150px;
}

body.mode-mobile .detail-hero > img,
body.mode-mobile .booking-card > img {
  min-height: 280px;
}

body.mode-mobile .mobile-tabbar {
  position: fixed;
  z-index: 18;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  gap: 5px;
  min-height: 64px;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 20px 60px rgba(15, 31, 36, 0.18);
}

body.mode-mobile .mobile-tabbar button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
}

body.mode-mobile .mobile-tabbar button.active {
  background: rgba(15, 118, 110, 0.13);
  color: var(--teal-dark);
}

body.mode-mobile .mobile-tabbar em {
  position: absolute;
  top: 4px;
  right: 7px;
  min-width: 19px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  padding: 2px 5px;
  font-size: 10px;
  font-style: normal;
}

@media (max-width: 1180px) {
  .job-grid,
  .pro-grid,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .auth-shell,
  .app-shell,
  .hero-panel,
  .grid.two,
  .grid.two.uneven,
  .grid.three,
  .detail-hero,
  .editor-layout,
  .booking-card {
    grid-template-columns: 1fr;
  }

  .auth-visual,
  .auth-visual img {
    min-height: 440px;
  }

  .auth-copy {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .auth-copy h1,
  .hero-text h1 {
    font-size: 34px;
  }

  .auth-panel {
    min-height: auto;
    padding: 26px;
    border-left: 0;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .nav-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(145px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar-card {
    display: none;
  }

  .topbar,
  .toolbar-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .toolbar-actions,
  .filter-form {
    width: 100%;
    justify-content: stretch;
  }

  .filter-form input,
  .filter-form select,
  .filter-form .btn,
  .top-actions .btn {
    width: 100%;
  }

  .hero-text {
    padding: 30px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 30px 30px;
  }

  .job-grid,
  .pro-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero > img {
    min-height: 260px;
  }

  .detail-hero > div {
    padding: 24px;
  }

  .fact-grid,
  .payment-summary,
  .hero-facts,
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pipeline-board {
    grid-template-columns: 1fr;
  }

  .booking-card > img {
    min-height: 210px;
  }

  .public-footer-inner {
    grid-template-columns: 1fr;
  }

  .public-footer nav {
    justify-content: flex-start;
  }

  .timesheet-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 12px;
  }

  .auth-visual,
  .auth-visual img {
    min-height: 500px;
  }

  .auth-copy h1,
  .hero-text h1,
  .detail-hero h1 {
    font-size: 28px;
  }

  .auth-copy p,
  .hero-text p {
    font-size: 15px;
  }

  .proof-grid,
  .hero-metrics,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .compact-card,
  .mini-row {
    grid-template-columns: 1fr;
  }

  .compact-card img {
    width: 100%;
    height: 140px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions,
  .hero-actions,
  .row-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .card-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .inline-select {
    grid-template-columns: 1fr;
  }

  .inline-select select {
    min-width: 0;
  }
}

/* Marketplace-led public experience */
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  min-height: min(850px, 91vh);
  padding: 112px max(24px, calc((100vw - 1180px) / 2)) 46px;
  background: #f5f9f8;
  color: var(--ink);
}

.public-hero::before {
  background:
    linear-gradient(90deg, rgba(250, 252, 252, 0.99) 0%, rgba(250, 252, 252, 0.96) 38%, rgba(250, 252, 252, 0.74) 54%, rgba(250, 252, 252, 0.08) 82%),
    linear-gradient(180deg, rgba(49, 198, 212, 0.03), rgba(255, 202, 79, 0.08)),
    var(--public-hero) 68% center / cover no-repeat;
  filter: saturate(1.08) contrast(1.01);
  transform: scale(1.015);
  animation: soft-pan 22s ease-in-out infinite alternate;
}

.public-hero-copy {
  grid-column: 1;
  grid-row: 1;
  width: min(780px, 68vw);
  max-width: 780px;
  align-self: center;
}

.public-hero-copy .eyebrow {
  color: #087b70;
}

.public-hero h1 {
  max-width: none;
  margin: 5px 0 0;
  font-size: 72px;
  line-height: 0.98;
}

.public-hero .public-hero-offer {
  margin: 7px 0 15px;
  color: #171b25;
  font-size: 29px;
  line-height: 1.16;
  font-weight: 830;
}

.public-hero p:not(.public-hero-offer) {
  max-width: 650px;
  color: #4f5c6d;
  font-size: 17px;
  line-height: 1.55;
}

.public-hero-actions {
  margin-top: 20px;
}

.public-hero .btn.light {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(24, 32, 51, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.public-market-search {
  width: min(780px, 100%);
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px;
  box-shadow: 0 18px 48px rgba(24, 32, 51, 0.13);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}

.public-market-tabs,
.public-market-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid #e2e7ea;
  border-radius: 7px;
  background: rgba(241, 245, 246, 0.88);
  padding: 3px;
}

.public-market-tabs {
  margin-bottom: 7px;
}

.public-market-tabs button,
.public-market-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #647081;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.public-market-tabs button:hover,
.public-market-switch button:hover {
  color: var(--ink);
}

.public-market-tabs button.active,
.public-market-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(24, 32, 51, 0.09);
}

.public-market-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(160px, 0.8fr) minmax(140px, 0.72fr) auto;
  gap: 7px;
  align-items: end;
}

.public-market-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #596578;
  font-size: 11px;
  font-weight: 800;
}

.public-market-fields input,
.public-market-fields select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #dce2e7;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0 12px;
  box-shadow: none;
}

.public-market-fields input::placeholder {
  color: #8a93a1;
}

.public-market-submit {
  min-width: 144px;
  height: 46px;
  white-space: nowrap;
}

.public-proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 23px 0;
}

.public-proof-band div {
  min-width: 0;
  padding: 3px 28px;
  border-left: 1px solid var(--line);
}

.public-proof-band div:first-child {
  border-left: 0;
  padding-left: 0;
}

.public-proof-band strong,
.public-proof-band span {
  display: block;
}

.public-proof-band strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}

.public-proof-band span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.public-marketplace-section {
  width: min(1180px, calc(100vw - 40px));
  padding-top: 74px;
  padding-bottom: 76px;
  background: #f4faf9;
  box-shadow: 0 0 0 100vmax #f4faf9;
  clip-path: inset(0 -100vmax);
}

.public-marketplace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.public-marketplace-head .public-section-copy {
  max-width: 760px;
}

.public-market-switch {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.public-market-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
  padding: 12px 0;
  border-top: 1px solid #dfe9e7;
  border-bottom: 1px solid #dfe9e7;
  color: #596578;
  font-size: 13px;
}

.public-market-summary strong {
  color: var(--ink);
  font-size: 19px;
}

.public-market-summary button,
.public-market-disclosure button {
  border: 0;
  background: transparent;
  color: #087b70;
  padding: 4px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.public-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.public-listing-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe6e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 51, 0.07);
  animation: market-card-in 0.42s ease both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.public-listing-card:nth-child(2) { animation-delay: 0.04s; }
.public-listing-card:nth-child(3) { animation-delay: 0.08s; }
.public-listing-card:nth-child(4) { animation-delay: 0.12s; }
.public-listing-card:nth-child(5) { animation-delay: 0.16s; }
.public-listing-card:nth-child(6) { animation-delay: 0.2s; }

.public-listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 165, 148, 0.35);
  box-shadow: 0 18px 40px rgba(24, 32, 51, 0.12);
}

.public-listing-media {
  position: relative;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: #e8efef;
}

.public-listing-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(23, 27, 37, 0.44));
  pointer-events: none;
}

.public-listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.public-listing-card:hover .public-listing-media img {
  transform: scale(1.035);
}

.public-listing-label {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.84);
  color: #334154;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 850;
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.public-listing-label.verified {
  color: #087b70;
}

.public-profile-avatar {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 11px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #171b25;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(23, 27, 37, 0.24);
}

.public-listing-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.public-listing-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #087b70;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.public-listing-kicker span:last-child {
  color: #6a7483;
  text-align: right;
}

.public-listing-card h3 {
  margin: 9px 0 5px;
  font-size: 19px;
  line-height: 1.22;
}

.public-listing-owner {
  min-height: 39px;
  margin: 0;
  color: #687384;
  font-size: 12px;
  line-height: 1.45;
}

.public-listing-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 15px 0 13px;
}

.public-listing-meta span {
  min-width: 0;
  border-left: 2px solid #dce8e6;
  padding-left: 7px;
}

.public-listing-meta small,
.public-listing-meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.public-listing-meta small {
  color: #7a8492;
  font-size: 9px;
  font-weight: 750;
}

.public-listing-meta strong {
  margin-top: 2px;
  color: #273246;
  font-size: 11px;
  line-height: 1.3;
}

.public-listing-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.public-listing-skills span {
  border: 1px solid #e0e6ea;
  border-radius: 5px;
  background: #f7f9fa;
  color: #5e6979;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 740;
}

.public-listing-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
}

.public-listing-footer p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 34px;
  margin: 0;
  color: #677283;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.5;
}

.public-listing-footer .btn {
  width: 100%;
  min-height: 39px;
}

.public-market-empty {
  margin-top: 20px;
  border: 1px dashed #cbd9d6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 42px 24px;
  text-align: center;
}

.public-market-empty p {
  margin: 7px 0 18px;
}

.public-market-disclosure {
  margin: 18px 0 0;
  color: #7a8492;
  font-size: 11px;
  text-align: center;
}

#clinics .public-section-copy > .btn,
#professionals .public-section-copy > .btn {
  margin-top: 22px;
}

#professionals .public-image-card img {
  object-position: center 53%;
}

@keyframes market-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .public-hero-copy {
    width: min(760px, 78vw);
  }

  .public-market-fields {
    grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.75fr) minmax(140px, 0.7fr);
  }

  .public-market-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

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

@media (max-width: 820px) {
  .public-hero {
    align-items: start;
    min-height: auto;
    padding: 100px 18px 42px;
  }

  .public-hero::before {
    background:
      linear-gradient(180deg, rgba(250, 252, 252, 0.99) 0%, rgba(250, 252, 252, 0.96) 56%, rgba(250, 252, 252, 0.76) 77%, rgba(250, 252, 252, 0.34) 100%),
      linear-gradient(90deg, rgba(49, 198, 212, 0.05), rgba(255, 202, 79, 0.08)),
      var(--public-hero) 58% center / cover no-repeat;
  }

  .public-hero-copy {
    width: 100%;
    max-width: 680px;
  }

  .public-hero h1 {
    font-size: 58px;
  }

  .public-hero .public-hero-offer {
    font-size: 25px;
  }

  .public-proof-band {
    width: calc(100vw - 32px);
  }

  .public-proof-band div {
    padding-inline: 18px;
  }

  .public-marketplace-section {
    width: calc(100vw - 32px);
    padding-top: 58px;
    padding-bottom: 60px;
  }

  .public-marketplace-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-market-switch {
    width: min(320px, 100%);
  }
}

@media (max-width: 600px) {
  .public-hero {
    padding: 92px 16px 34px;
  }

  .public-hero h1 {
    font-size: 49px;
  }

  .public-hero .public-hero-offer {
    margin-top: 5px;
    font-size: 22px;
  }

  .public-hero p:not(.public-hero-offer) {
    font-size: 14px;
    line-height: 1.5;
  }

  .public-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
  }

  .public-hero-actions .btn {
    min-width: 0;
    min-height: 45px;
    padding-inline: 10px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.25;
  }

  .public-market-search {
    margin-top: 17px;
    padding: 7px;
  }

  .public-market-tabs {
    display: grid;
    width: 100%;
  }

  .public-market-tabs button {
    padding-inline: 6px;
  }

  .public-market-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-market-query,
  .public-market-submit {
    grid-column: 1 / -1;
  }

  .public-market-fields input,
  .public-market-fields select,
  .public-market-submit {
    height: 43px;
    font-size: 12px;
  }

  .public-proof-band {
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
    padding: 11px 0;
  }

  .public-proof-band div,
  .public-proof-band div:first-child {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 12px 2px;
  }

  .public-proof-band div:first-child {
    border-top: 0;
  }

  .public-proof-band strong {
    font-size: 14px;
  }

  .public-proof-band span {
    font-size: 11px;
  }

  .public-marketplace-section {
    width: calc(100vw - 32px);
    padding: 50px 0 52px;
  }

  .public-marketplace-head {
    gap: 18px;
  }

  .public-marketplace-head .public-section-copy h2 {
    font-size: 31px;
  }

  .public-market-summary {
    align-items: flex-start;
  }

  .public-listing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .public-listing-card h3 {
    font-size: 18px;
  }

  .public-listing-owner {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-listing-card,
  .public-listing-media img {
    animation: none;
    transition: none;
  }
}

.segment-browser {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.segment-browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.segment-browser-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 11px;
}

.segment-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.segment-card::before {
  background: var(--segment-accent);
}

.segment-card:hover,
.segment-card:focus-visible {
  border-color: color-mix(in srgb, var(--segment-accent) 52%, var(--line));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--segment-accent) 15%, transparent);
  transform: translateY(-2px);
}

.segment-card.active {
  border-color: var(--segment-accent);
  background: color-mix(in srgb, var(--segment-tint) 76%, white);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--segment-accent) 30%, transparent), var(--shadow-soft);
}

.segment-card img {
  height: 108px;
}

.segment-card div {
  padding: 12px;
}

.segment-card h3 {
  margin: 4px 0 5px;
  font-size: 16px;
}

.segment-card p {
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .segment-browser-head {
    align-items: start;
    flex-direction: column;
  }

  .segment-grid {
    grid-auto-columns: minmax(208px, 76vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-inline: -16px;
    padding: 2px 16px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .segment-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 900px) {
  .public-header {
    top: 10px;
    left: 10px;
    right: 10px;
    min-height: 58px;
  }

  .public-header .btn.compact {
    display: none;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: 92vh;
    padding: 106px 18px 54px;
  }

  .public-hero h1 {
    font-size: 40px;
  }

  .public-hero p {
    font-size: 16px;
  }

  .public-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-hero-proof div {
    padding: 13px;
  }

  .public-hero-proof strong {
    font-size: 24px;
  }

  .scroll-cue {
    left: 18px;
  }

  .public-section,
  .public-split,
  .public-auth-section {
    width: min(100% - 32px, 1180px);
  }

  .public-section,
  .public-section.tinted,
  .public-split,
  .public-auth-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .public-split,
  .public-trust-layout,
  .public-auth-section,
  .public-step-grid,
  .public-process-visual,
  .public-card-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .public-split.reversed .public-image-card {
    order: 0;
  }

  .public-auth-panel {
    min-height: auto;
    padding: 24px;
  }

  .public-illustration-card,
  .public-illustration-card img {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .public-brand small {
    display: none;
  }

  .public-hero {
    min-height: 88vh;
    padding-inline: 16px;
  }

  .public-hero h1,
  .public-section-copy h2 {
    font-size: 32px;
  }

  .public-hero-actions,
  .drawer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-hero-proof {
    grid-template-columns: 1fr;
  }

  .public-drawer {
    width: min(360px, 94vw);
    padding: 18px;
  }

  .public-step,
  .flow-stack article,
  .floating-badge,
  .public-card-grid article,
  .faq-grid article,
  .public-auth-panel {
    padding: 18px;
  }

  .public-illustration-card,
  .public-illustration-card img {
    min-height: 285px;
  }

  .public-image-card.has-overlay img {
    min-height: 300px;
  }

  .image-overlay-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 16px;
    padding: 13px;
  }

  .public-feature-list {
    display: grid;
  }

  .profession-category-grid {
    grid-template-columns: 1fr;
  }

  .profession-category {
    min-height: auto;
  }

  .public-footer {
    padding: 28px 18px;
  }

  .public-footer nav {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.auth-panel.public-auth-panel {
  min-height: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .auth-panel.public-auth-panel {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .auth-panel.public-auth-panel {
    padding: 18px;
  }
}

/* Product-service visual refresh: marketplace first, healthcare context second. */
@keyframes service-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-body,
.public-site {
  background: #f7f8fb;
}

.public-header {
  min-height: 60px;
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background: rgba(248, 249, 252, 0.82);
  box-shadow: 0 16px 44px rgba(23, 27, 37, 0.13);
}

.public-header:hover,
.public-header.is-condensed {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(23, 27, 37, 0.14);
}

.menu-button,
.icon-button {
  border-color: rgba(76, 111, 255, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
}

.public-drawer {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(248, 249, 252, 0.94);
  box-shadow: -24px 0 64px rgba(23, 27, 37, 0.2);
}

.drawer-nav button {
  background: #fff;
}

.drawer-nav button:hover {
  border-color: rgba(76, 111, 255, 0.42);
  background: #eef1ff;
}

.public-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(265px, 0.42fr);
  min-height: 92vh;
  background: var(--night);
}

.public-hero::before {
  background:
    linear-gradient(90deg, rgba(18, 20, 29, 0.95) 0%, rgba(25, 30, 43, 0.84) 43%, rgba(31, 38, 55, 0.25) 100%),
    linear-gradient(180deg, rgba(23, 27, 37, 0.08), rgba(23, 27, 37, 0.7)),
    var(--public-hero) 58% center / cover no-repeat;
  filter: saturate(0.92) contrast(1.04);
  animation: soft-pan 22s ease-in-out infinite alternate;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 6px;
  background: linear-gradient(90deg, var(--aqua), var(--blue) 34%, var(--sun) 68%, var(--coral));
}

.public-hero-copy {
  animation: service-enter 0.55s ease both;
}

.public-hero-copy .eyebrow {
  color: #9feaf2;
}

.public-hero h1 {
  max-width: 720px;
  font-size: 68px;
  line-height: 1.02;
}

.public-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.public-hero-proof {
  gap: 9px;
}

.public-hero-proof div {
  border-color: rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--aqua);
  background: rgba(23, 27, 37, 0.68);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  animation: service-enter 0.48s ease both;
}

.public-hero-proof div:nth-child(2) {
  border-top-color: var(--sun);
  animation-delay: 0.08s;
}

.public-hero-proof div:nth-child(3) {
  border-top-color: var(--coral);
  animation-delay: 0.16s;
}

.public-hero-proof strong {
  font-size: 28px;
}

.public-section,
.public-split,
.public-auth-section {
  color: var(--ink);
}

.public-section.tinted {
  background: #eef1ff;
}

.public-section-copy .eyebrow {
  color: var(--blue);
}

.public-step,
.public-card-grid article,
.faq-grid article,
.flow-stack article,
.public-illustration-card,
.public-image-card,
.profession-category {
  border-color: var(--line);
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(23, 27, 37, 0.08);
}

.public-step {
  border-top: 4px solid var(--aqua);
}

.public-step:nth-child(2) {
  border-top-color: var(--sun);
}

.public-step:nth-child(3) {
  border-top-color: var(--coral);
}

.public-step span {
  border-radius: 7px;
  background: var(--night);
}

.public-step:nth-child(2) span {
  background: var(--blue);
}

.public-step:nth-child(3) span {
  background: var(--coral);
}

.public-image-card,
.public-illustration-card {
  box-shadow: 0 18px 44px rgba(23, 27, 37, 0.13);
}

.floating-badge,
.image-overlay-panel {
  border-color: rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(23, 27, 37, 0.17);
}

.payment-flow-panel {
  background: rgba(23, 27, 37, 0.84);
}

.public-feature-list span {
  border-color: #dce1eb;
  background: #fff;
  color: #39445c;
}

.public-feature-list span:nth-child(2n) {
  border-color: rgba(76, 111, 255, 0.24);
  background: #f0f3ff;
  color: #3f57bd;
}

.profession-category {
  background: #fff;
}

.profession-category small {
  background: #f5f6f9;
}

.public-auth-section {
  align-items: center;
}

.auth-panel.public-auth-panel {
  border-color: var(--line);
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 48px rgba(23, 27, 37, 0.12);
}

.public-footer {
  background:
    linear-gradient(110deg, rgba(49, 198, 212, 0.12), transparent 36%),
    linear-gradient(250deg, rgba(255, 202, 79, 0.12), transparent 38%),
    var(--night);
}

.btn {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: none;
}

.btn:hover {
  border-color: rgba(76, 111, 255, 0.48);
  box-shadow: 0 10px 22px rgba(76, 111, 255, 0.12);
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  background-size: auto;
  box-shadow: 0 10px 22px rgba(76, 111, 255, 0.24);
}

.btn.primary:hover {
  background: #3e5ee0;
  box-shadow: 0 13px 28px rgba(76, 111, 255, 0.3);
}

.btn.ghost {
  border-color: rgba(76, 111, 255, 0.24);
  background: #eef1ff;
  color: #3f57bd;
}

input,
select,
textarea {
  border-color: #dfe3ea;
  background: #fbfcfe;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(76, 111, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(76, 111, 255, 0.12);
}

.app-shell {
  background: #f4f5f8;
}

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--night);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-item {
  color: rgba(255, 255, 255, 0.68);
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.08);
  background: #272d3b;
}

.nav-item.active::before {
  background: linear-gradient(180deg, var(--aqua), var(--blue), var(--sun));
  box-shadow: 0 0 0 4px rgba(76, 111, 255, 0.12);
}

.nav-item em {
  background: rgba(255, 255, 255, 0.09);
}

.sidebar-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #222836;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.workspace {
  background: #f4f5f8;
}

.topbar {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: 0 8px 24px rgba(23, 27, 37, 0.07);
}

.module-intro {
  border-color: var(--line);
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(23, 27, 37, 0.07);
}

.module-intro::before {
  background: linear-gradient(180deg, var(--aqua), var(--blue), var(--sun), var(--coral));
}

.module-intro img {
  filter: saturate(0.88) contrast(1.03);
}

.module-tags span {
  background: #eaf8f7;
  color: #087b70;
}

.module-tags span:nth-child(2) {
  background: #eef1ff;
  color: #3f57bd;
}

.module-tags span:nth-child(3) {
  background: #fff4d5;
  color: #8b6410;
}

.panel,
.toolbar-panel,
.metric-card,
.segment-card,
.job-card,
.compact-card,
.pro-card,
.application-card,
.booking-card,
.table-row,
.mini-row,
.pipeline-column,
.empty-state {
  border-color: var(--line);
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 8px 22px rgba(23, 27, 37, 0.065);
}

.panel:hover,
.toolbar-panel:hover,
.table-row:hover {
  transform: none;
  border-color: #d7dce5;
  box-shadow: 0 10px 26px rgba(23, 27, 37, 0.08);
}

.job-card:hover,
.pro-card:hover,
.booking-card:hover,
.application-card:hover {
  border-color: rgba(76, 111, 255, 0.28);
  box-shadow: 0 16px 34px rgba(23, 27, 37, 0.12);
}

.metric-card {
  min-height: 126px;
}

.metric-card.blue {
  background: #edf2ff;
}

.metric-card.coral {
  background: #fff0ed;
}

.metric-card.green {
  background: #eaf9f1;
}

.metric-card.amber {
  background: #fff6dc;
}

.metric-card.red {
  background: #fff0f3;
}

.metric-card.violet {
  background: #f3efff;
}

.metric-card.teal {
  background: #eaf9f7;
}

.hero-panel {
  background: var(--night);
  box-shadow: 0 18px 46px rgba(23, 27, 37, 0.16);
}

.hero-panel::before {
  background-position: 58% center;
  opacity: 0.76;
  filter: saturate(0.86) contrast(1.04);
}

.hero-panel::after {
  background:
    linear-gradient(90deg, rgba(19, 22, 31, 0.96), rgba(27, 33, 48, 0.76), rgba(27, 33, 48, 0.2)),
    linear-gradient(180deg, transparent, rgba(19, 22, 31, 0.5));
}

.hero-text .eyebrow {
  color: #9feaf2;
}

.hero-metrics div,
.proof-grid div {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(23, 27, 37, 0.68);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
}

.status-badge,
.pro-visual span {
  box-shadow: 0 8px 18px rgba(23, 27, 37, 0.16);
}

.credential-summary,
.schedule-guide,
.quality-guide,
.form-context,
.api-panel {
  background: #f4f6ff;
}

.message-list article,
.notification-row,
.template-card,
.review-card,
.checklist article,
.thread-button {
  background: #fff;
}

.message-list article.mine,
.thread-button.active {
  border-color: rgba(76, 111, 255, 0.28);
  background: #eef1ff;
}

body.mode-mobile {
  background: #f4f5f8;
}

body.mode-mobile .topbar {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

body.mode-mobile .mobile-tabbar {
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
  box-shadow: 0 16px 44px rgba(23, 27, 37, 0.17);
}

body.mode-mobile .mobile-tabbar button {
  border-radius: 12px;
}

body.mode-mobile .mobile-tabbar button.active {
  background: #e9edff;
  color: #3f57bd;
}

body.mode-mobile .mobile-tabbar em {
  background: var(--blue);
}

@media (max-width: 900px) {
  .public-hero {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 24px;
    padding: 106px 18px 54px;
  }

  .public-hero-copy {
    max-width: 680px;
  }

  .public-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-hero::before {
    background:
      linear-gradient(90deg, rgba(18, 20, 29, 0.94), rgba(25, 30, 43, 0.72)),
      linear-gradient(180deg, rgba(23, 27, 37, 0.12), rgba(23, 27, 37, 0.76)),
      var(--public-hero) center / cover no-repeat;
  }
}

@media (max-width: 560px) {
  .public-header {
    border-radius: 12px;
  }

  .public-hero {
    min-height: 90vh;
    padding: 102px 16px 48px;
  }

  .public-hero h1 {
    font-size: 34px;
  }

  .public-hero-proof div {
    padding: 16px;
  }

  .public-hero-proof {
    grid-template-columns: 1fr;
  }

  .public-hero-proof strong {
    font-size: 25px;
  }
}

.sidebar {
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.nav-list {
  gap: 4px;
}

.nav-group-label {
  display: block;
  margin: 12px 10px 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.nav-item {
  min-height: 39px;
  padding-block: 8px;
}

.consent-control {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #dfe3ea;
  border-radius: var(--radius);
  background: #f7f8fb;
  padding: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.consent-control > div {
  display: grid;
  gap: 7px;
}

.consent-control label {
  display: block;
  cursor: pointer;
}

.consent-control small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.consent-links button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-links button:hover {
  color: var(--teal-strong);
}

.legal-section {
  border-top: 1px solid var(--line);
}

.legal-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.42fr);
  gap: 28px;
  align-items: end;
}

.legal-status-panel {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: rgba(255, 249, 231, 0.88);
  padding: 18px;
}

.legal-status-panel.effective {
  border-left-color: var(--green);
  background: rgba(235, 250, 244, 0.9);
}

.legal-status-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-status-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.legal-status-panel small {
  color: var(--muted);
}

.legal-document-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.legal-document-list details {
  scroll-margin-top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(24, 32, 51, 0.06);
  overflow: hidden;
}

.legal-document-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.legal-document-list summary::-webkit-details-marker {
  display: none;
}

.legal-document-list summary > span {
  display: grid;
  gap: 3px;
}

.legal-document-list summary small {
  color: var(--muted);
  font-weight: 650;
}

.legal-document-list summary i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--teal-strong);
  font-style: normal;
  font-size: 22px;
  transition: transform 0.2s ease;
}

.legal-document-list details[open] summary i {
  transform: rotate(45deg);
}

.legal-document-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px;
}

.legal-document-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-document-body strong {
  color: var(--ink);
}

.legal-draft-warning {
  margin: 16px 0 0;
  border-left: 4px solid var(--amber);
  background: #fff7df;
  padding: 14px 16px;
  color: #765710;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .legal-heading-row {
    grid-template-columns: 1fr;
  }

  .legal-document-list summary {
    min-height: 64px;
    padding: 14px;
  }

  .legal-document-body {
    padding: 14px;
  }
}

.consent-control input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.responsibility-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.responsibility-grid article,
.information-card {
  position: relative;
  overflow: hidden;
}

.responsibility-grid article::before,
.information-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--blue);
}

.responsibility-grid article:nth-child(2)::before,
.information-card:nth-child(2)::before {
  background: var(--sun);
}

.responsibility-grid article:nth-child(3)::before,
.information-card:nth-child(3)::before {
  background: var(--green);
}

.information-card {
  min-height: 220px;
}

.privacy-warning {
  border-left-color: var(--amber);
  background: #fff7df;
  color: #765710;
}

.privacy-inline {
  display: block;
  color: #77631f;
  font-size: 12px;
  line-height: 1.45;
}

.more-groups,
.more-group {
  display: grid;
  gap: 14px;
}

.more-groups {
  gap: 24px;
}

.more-group > h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid #f0c652;
  border-radius: 7px;
  background: #fff5ce;
  color: #72520b;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.account-readiness-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #f0c652;
  border-left: 5px solid var(--sun);
  border-radius: var(--radius);
  background: #fff9e7;
  padding: 16px 18px;
}

.account-readiness-banner strong,
.account-readiness-banner p {
  display: block;
  margin: 3px 0 0;
}

.account-readiness-banner p {
  color: var(--muted);
  font-size: 13px;
}

.onboarding-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.verification-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--sun);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.verification-step.done {
  border-top-color: var(--green);
  background: #f6fcf8;
}

.verification-step.locked {
  border-top-color: #c8ced8;
  background: #f5f6f8;
}

.verification-step.wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.verification-step > .btn {
  grid-column: 2;
  align-self: end;
  justify-self: start;
}

.verification-step > form {
  min-width: 0;
}

.step-index {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--night);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.verification-step.done .step-index {
  background: var(--green);
}

.verification-step h3,
.payment-onboarding-form h3,
.payment-provider-connect h3,
.payment-provider-note h3 {
  margin: 9px 0 7px;
  font-size: 20px;
}

.verification-step p,
.payment-provider-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.payment-onboarding-form {
  border-top: 4px solid var(--blue);
}

.payment-provider-connect {
  border-top: 4px solid var(--blue);
}

.payment-provider-connect p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-provider-note {
  border-top: 4px solid var(--coral);
}

.verification-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.verification-facts span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.verification-facts span.done {
  border-color: rgba(28, 145, 109, 0.28);
  background: rgba(220, 250, 239, 0.72);
  color: var(--green);
}

.payment-amount {
  display: grid;
  gap: 2px;
  min-width: 112px;
  text-align: right;
}

.payment-amount small,
.payment-error {
  color: var(--muted);
  font-size: 11px;
}

.payment-error {
  display: block;
  margin-top: 7px;
  color: var(--red);
}

.refund-disclosure {
  width: min(320px, 100%);
}

.refund-disclosure > summary {
  list-style: none;
  cursor: pointer;
}

.refund-disclosure > summary::-webkit-details-marker {
  display: none;
}

.refund-form {
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 72px));
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.refund-form label {
  min-width: 0;
}

.credential-review-grid:empty {
  display: none;
}

.auth-link {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 4px 0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.password-reset-code {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  border-left: 4px solid var(--sun);
  border-radius: 6px;
  background: #fff8df;
  padding: 12px 14px;
}

.password-reset-code span,
.password-reset-code small {
  color: var(--muted);
}

.password-reset-code strong {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.password-reset-code small {
  grid-column: 1 / -1;
}

.booking-cancellation-summary {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-left: 4px solid var(--sun);
  border-radius: 6px;
  background: #fff8df;
  padding: 14px 16px;
}

.booking-cancellation-summary strong,
.booking-cancellation-summary p {
  display: block;
  margin: 4px 0 0;
}

.booking-cancellation-summary > small {
  color: var(--muted);
}

.booking-cancellation-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.booking-cancellation-form > .btn {
  justify-self: start;
}

.booking-agreement-band {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: rgba(255, 248, 223, 0.66);
  padding: 16px;
  animation: fade-up 0.28s ease both;
}

.booking-agreement-band.accepted {
  border-left-color: var(--green);
  background: rgba(220, 252, 231, 0.58);
}

.booking-agreement-band.cancelled,
.booking-agreement-band.missing {
  border-left-color: var(--red);
  background: rgba(255, 236, 240, 0.64);
}

.booking-agreement-head,
.agreement-progress,
.agreement-acceptance-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-agreement-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.booking-agreement-head strong,
.booking-agreement-head small {
  overflow-wrap: anywhere;
}

.booking-agreement-head small,
.agreement-waiting {
  color: var(--muted);
}

.agreement-progress {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.agreement-progress span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.agreement-progress i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(231, 165, 20, 0.14);
}

.agreement-progress span.done {
  border-color: rgba(34, 169, 110, 0.34);
  color: var(--ink);
}

.agreement-progress span.done i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 169, 110, 0.14);
}

.agreement-terms {
  border-top: 1px solid rgba(102, 112, 128, 0.22);
  padding-top: 12px;
}

.agreement-terms summary {
  width: fit-content;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.agreement-terms[open] summary {
  margin-bottom: 14px;
}

.agreement-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.agreement-facts div {
  min-width: 0;
  border-left: 2px solid rgba(76, 111, 255, 0.32);
  padding-left: 10px;
}

.agreement-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.agreement-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 750;
}

.agreement-acceptance-form {
  align-items: flex-end;
  border-top: 1px solid rgba(102, 112, 128, 0.22);
  padding-top: 14px;
}

.agreement-acceptance-form .consent-control {
  margin: 0;
}

.agreement-acceptance-form .btn {
  flex: 0 0 auto;
}

.agreement-waiting {
  margin: 0;
  border-top: 1px solid rgba(102, 112, 128, 0.22);
  padding-top: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sidebar {
    max-height: none;
    overflow: visible;
  }

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

  .onboarding-stage-grid,
  .payment-onboarding-layout {
    grid-template-columns: 1fr;
  }

  .payment-amount {
    text-align: left;
  }

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

  .agreement-acceptance-form {
    display: grid;
    justify-items: stretch;
  }

  .refund-disclosure,
  .refund-disclosure > summary {
    width: 100%;
  }

  .verification-step.wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .booking-agreement-band {
    margin-inline: -4px;
    padding: 14px 12px;
  }

  .booking-agreement-head {
    align-items: flex-start;
  }

  .agreement-facts {
    grid-template-columns: 1fr;
  }

  .agreement-acceptance-form .btn {
    width: 100%;
  }

  .environment-badge {
    width: 100%;
    justify-content: center;
  }

  .account-readiness-banner {
    grid-template-columns: 1fr;
  }

  .account-readiness-banner .btn {
    width: 100%;
  }

  .verification-step {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
  }

  .step-index {
    width: 38px;
  }

  .verification-step > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.mode-mobile .top-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 12px;
  }

  body.mode-mobile .topbar {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.mode-mobile .top-actions .environment-badge,
  body.mode-mobile .top-actions .btn {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
  }

  body.mode-mobile .top-actions .btn.ghost {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mode-mobile .profile-shortcut {
    display: grid;
    place-items: center;
    width: 42px !important;
    max-width: 42px;
    padding: 0 !important;
    justify-self: center;
  }

  body.mode-mobile .profile-shortcut-name {
    display: none;
  }

  body.mode-mobile .profile-shortcut-initials {
    display: inline;
    font-size: 12px;
    font-weight: 900;
  }

  body.mode-mobile .mobile-tabbar {
    overflow-x: hidden;
  }

  body.mode-mobile .mobile-tabbar button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 3px;
  }

  body.mode-mobile .mobile-tabbar button > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mode-mobile #toast {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(94px + env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
  }

  body.mode-mobile #toast .toast {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 10px 11px;
    line-height: 1.4;
  }

  body.mode-mobile #toast .toast > div > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Marketplace workspace refinement: compact operations, vivid brand accents. */
:root {
  --bg: #f5f7fb;
  --surface-2: #f1f4f9;
  --ink: #182033;
  --muted: #697386;
  --line: #e0e5ee;
  --line-strong: #cbd3df;
  --night: #151b2b;
  --night-2: #222a3d;
  --sidebar: 248px;
  --shadow-soft: 0 8px 24px rgba(24, 32, 51, 0.075);
}

.app-shell,
.workspace {
  background: var(--bg);
}

.sidebar {
  gap: 12px;
  padding: 15px 13px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 12px 0 34px rgba(24, 32, 51, 0.045);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  backdrop-filter: blur(20px) saturate(1.08);
  scrollbar-color: #c7cfdb transparent;
}

.nav-logo {
  min-height: 58px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 4px 5px 12px;
  color: var(--ink);
}

.nav-logo small {
  color: var(--muted);
}

.nav-logo .brand-mark,
.public-brand .brand-mark {
  filter: saturate(1.08);
}

.nav-list {
  gap: 2px;
}

.nav-group-label {
  margin: 11px 9px 3px;
  color: #8a94a5;
  font-size: 9px;
}

.nav-item {
  min-height: 36px;
  border-radius: 7px;
  padding: 7px 10px;
  color: #596579;
  font-size: 14px;
  font-weight: 690;
}

.nav-item:hover {
  border-color: #e1e5ed;
  background: #f4f6fa;
  color: var(--ink);
}

.nav-item.active {
  border-color: #dce2ff;
  background: #eef1ff;
  color: #344db4;
}

.nav-item.active::before {
  left: 3px;
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, var(--aqua), var(--blue), var(--sun));
  box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.08);
}

.nav-item.active {
  padding-left: 16px;
}

.sidebar-card {
  border-color: #dce2ff;
  background: #f3f5ff;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(76, 111, 255, 0.075);
}

.sidebar-card p {
  color: var(--muted);
}

.sidebar-card .eyebrow {
  color: #4760c7;
}

.nav-item em {
  background: #e8ecf3;
  color: #58657a;
}

.nav-item.active em {
  background: #dce3ff;
  color: #344db4;
}

.workspace {
  padding: 16px 20px 34px;
}

.topbar {
  min-height: 70px;
  margin-bottom: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 2px 14px;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.topbar h2 {
  font-size: 24px;
  line-height: 1.15;
}

.topbar .eyebrow {
  margin-bottom: 4px;
  color: #0c8578;
}

.environment-badge {
  min-height: 32px;
  border-color: #efc349;
  background: #fff8dc;
  padding: 6px 9px;
}

.content-view {
  gap: 14px;
}

.content-view > *:nth-child(2) {
  animation-delay: 0.035s;
}

.content-view > *:nth-child(3) {
  animation-delay: 0.07s;
}

.content-view > *:nth-child(4) {
  animation-delay: 0.105s;
}

.module-intro {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  box-shadow: 0 5px 18px rgba(24, 32, 51, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

.module-intro::before {
  width: 4px;
}

.module-intro::after {
  opacity: 0.55;
}

.module-intro img {
  width: 72px;
  height: 58px;
  box-shadow: none;
}

.module-intro h3 {
  font-size: 18px;
}

.module-intro p {
  font-size: 13px;
  line-height: 1.45;
}

.module-tags span {
  min-height: 26px;
  border: 1px solid rgba(76, 111, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
}

.overview-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  min-height: 306px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 32, 51, 0.095);
}

.overview-command::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 5px;
  background: linear-gradient(180deg, var(--aqua), var(--blue) 38%, var(--sun) 72%, var(--coral));
}

.overview-command-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px 34px 26px;
}

.overview-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.live-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 169, 110, 0.12);
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 169, 110, 0.11); }
  50% { box-shadow: 0 0 0 8px rgba(34, 169, 110, 0.02); }
}

.overview-command h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.overview-command-copy > p {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.overview-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.overview-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.overview-proof div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 0 15px;
}

.overview-proof div:first-child {
  padding-left: 0;
}

.overview-proof div:last-child {
  border-right: 0;
}

.overview-proof strong,
.overview-proof span {
  display: block;
}

.overview-proof strong {
  color: var(--ink);
  font-size: 22px;
}

.overview-proof span {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-command-visual {
  position: relative;
  min-width: 0;
  min-height: 306px;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.overview-command-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 27, 43, 0.04), rgba(21, 27, 43, 0.58));
  pointer-events: none;
}

.overview-command-visual img {
  width: 100%;
  height: 100%;
  min-height: 306px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.overview-command:hover .overview-command-visual img {
  transform: scale(1.035);
}

.overview-command-visual figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.84);
  padding: 12px 13px;
  box-shadow: 0 12px 28px rgba(21, 27, 43, 0.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.overview-command-visual figcaption span,
.overview-command-visual figcaption strong {
  display: block;
}

.overview-command-visual figcaption span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.overview-command-visual figcaption strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

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

.overview-metrics .metric-card {
  min-height: 112px;
  border-color: var(--line);
  background: #fff;
  padding: 16px 17px 14px;
  box-shadow: var(--shadow-soft);
}

.overview-metrics .metric-card::before {
  inset: 0 auto 0 0;
  width: 4px;
  height: auto;
  transform: scaleY(1);
  animation: none;
}

.overview-metrics .metric-card:hover {
  transform: translateY(-2px);
  border-color: #d3dae6;
  box-shadow: 0 13px 30px rgba(24, 32, 51, 0.11);
}

.metric-card-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #4f5b70 !important;
  font-weight: 760;
}

.metric-card-label i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.metric-card.coral .metric-card-label i { background: var(--coral); }
.metric-card.green .metric-card-label i { background: var(--green); }
.metric-card.amber .metric-card-label i { background: var(--amber); }
.metric-card.red .metric-card-label i { background: var(--red); }
.metric-card.violet .metric-card-label i { background: var(--violet); }
.metric-card.teal .metric-card-label i { background: var(--teal); }

.overview-metrics .metric-card strong {
  margin: 10px 0 5px;
  font-size: 30px;
  line-height: 1;
}

.overview-metrics .metric-card em {
  color: var(--muted);
  font-size: 12px;
}

.panel,
.toolbar-panel,
.job-card,
.pro-card,
.application-card,
.booking-card,
.table-row,
.mini-row,
.pipeline-column,
.empty-state {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 6px 20px rgba(24, 32, 51, 0.06);
}

.public-header {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}

.public-hero {
  grid-template-columns: minmax(400px, 0.82fr) minmax(460px, 1.18fr);
  grid-template-rows: minmax(360px, 1fr) auto;
  align-items: center;
  min-height: 92vh;
  background: #eaf3f2;
  color: var(--ink);
}

.public-hero::before {
  background:
    linear-gradient(90deg, rgba(250, 252, 252, 0.98) 0%, rgba(247, 251, 250, 0.91) 34%, rgba(242, 249, 248, 0.42) 56%, rgba(234, 243, 242, 0.02) 78%),
    linear-gradient(180deg, rgba(49, 198, 212, 0.04), rgba(76, 111, 255, 0.08)),
    var(--public-hero) 62% center / cover no-repeat;
  filter: saturate(1.02) contrast(1.01);
}

.public-hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 610px;
  align-self: center;
}

.public-hero-copy .eyebrow {
  color: #087b70;
}

.public-hero h1 {
  max-width: 620px;
  font-size: 60px;
  line-height: 1.02;
}

.public-hero p {
  max-width: 570px;
  color: #536175;
}

.public-hero .btn.light {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(24, 32, 51, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

.public-hero-proof {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(820px, 100%);
  align-self: end;
}

.public-hero-proof div {
  display: grid;
  align-content: center;
  min-height: 108px;
  max-height: 108px;
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.79);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(24, 32, 51, 0.11);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.public-hero-proof span {
  color: var(--muted);
}

.scroll-cue {
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 14px;
  left: auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: #465368;
  padding: 7px 10px;
  box-shadow: 0 9px 24px rgba(24, 32, 51, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}

.public-step,
.public-card-grid article,
.faq-grid article,
.flow-stack article,
.profession-category {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.public-step:hover,
.public-card-grid article:hover,
.faq-grid article:hover,
.flow-stack article:hover,
.profession-category:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 111, 255, 0.22);
  box-shadow: 0 16px 34px rgba(24, 32, 51, 0.11);
}

.public-section {
  padding: 64px 0;
}

.public-section.tinted {
  padding-top: 64px;
  padding-bottom: 64px;
}

.public-auth-section {
  padding-top: 72px;
  padding-bottom: 76px;
}

#clinics,
#professionals,
#payments {
  width: 100%;
  padding: 64px max(20px, calc((100vw - 1180px) / 2));
}

.automation-panel {
  margin-bottom: 22px;
  border: 1px solid rgba(30, 96, 88, .24);
  background: linear-gradient(135deg, rgba(232, 247, 243, .96), rgba(255, 255, 255, .98) 58%, rgba(231, 239, 255, .9));
  box-shadow: 0 18px 55px rgba(30, 72, 67, .1);
}

.automation-panel > p {
  max-width: 78ch;
  color: var(--muted);
}

.automation-safety {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(30, 96, 88, .14);
}

.automation-safety span { color: var(--muted); }

@media (max-width: 720px) {
  .automation-panel .form-actions { align-items: stretch; }
  .automation-panel .form-actions .btn { width: 100%; }
}

#clinics {
  background: #ffffff;
}

#professionals {
  background: #fff6f1;
}

#payments {
  background: #eefaf8;
}

#clinics .eyebrow {
  color: var(--blue);
}

#professionals .eyebrow {
  color: #d95258;
}

#payments .eyebrow {
  color: #087b70;
}

@media (max-width: 1180px) {
  .overview-command {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  }

  .overview-command-copy {
    padding-inline: 28px;
  }

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

@media (max-width: 900px) {
  #clinics,
  #professionals,
  #payments {
    grid-template-columns: 1fr;
    padding: 54px 16px;
  }

  .public-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: end;
    min-height: 92vh;
    padding: 108px 18px 48px;
    color: var(--ink);
  }

  .public-hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 650px;
  }

  .public-hero-proof {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .public-hero-proof div {
    min-height: 0;
    max-height: none;
  }

  .public-hero::before {
    background:
      linear-gradient(180deg, rgba(250, 252, 252, 0.97) 0%, rgba(247, 251, 250, 0.91) 50%, rgba(238, 247, 246, 0.48) 76%, rgba(234, 243, 242, 0.12) 100%),
      var(--public-hero) 64% center / cover no-repeat;
  }

  .scroll-cue {
    display: none;
  }

  body.mode-mobile .workspace {
    padding: 10px 10px calc(94px + env(safe-area-inset-bottom));
  }

  body.mode-mobile .topbar {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    padding: 14px;
    box-shadow: 0 8px 24px rgba(24, 32, 51, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
  }

  body.mode-mobile .topbar h2 {
    font-size: 25px;
  }

  .overview-command {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .overview-command-copy {
    padding: 24px;
  }

  .overview-command h1 {
    max-width: 680px;
    font-size: 30px;
  }

  .overview-command-visual,
  .overview-command-visual img {
    min-height: 190px;
    max-height: 190px;
  }

  .module-intro {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .module-intro img {
    width: 62px;
    height: 54px;
  }

  .module-tags {
    display: none;
  }
}

@media (max-width: 560px) {
  .public-section {
    padding: 50px 0;
  }

  .public-section.tinted,
  #clinics,
  #professionals,
  #payments {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .public-hero {
    min-height: 94vh;
    padding: 96px 16px 38px;
  }

  .public-hero h1 {
    font-size: 38px;
    line-height: 1.03;
  }

  .public-hero p {
    color: #4f5d70;
    font-size: 15px;
  }

  .public-hero-proof {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .public-hero-proof div {
    padding: 13px 15px;
  }

  .public-hero-proof strong {
    font-size: 23px;
  }

  .content-view {
    gap: 11px;
  }

  .overview-command-copy {
    padding: 21px 20px 19px;
  }

  .overview-kicker-row {
    align-items: flex-start;
  }

  .live-status {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .overview-command h1 {
    margin-top: 7px;
    font-size: 28px;
    line-height: 1.08;
  }

  .overview-command-copy > p {
    margin-bottom: 15px;
    font-size: 14px;
  }

  .overview-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .overview-proof {
    margin-top: 19px;
    padding-top: 15px;
  }

  .overview-proof div {
    padding-inline: 8px;
  }

  .overview-proof strong {
    font-size: 19px;
  }

  .overview-proof span {
    overflow: visible;
    white-space: normal;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: clip;
  }

  .overview-command-visual,
  .overview-command-visual img {
    min-height: 158px;
    max-height: 158px;
  }

  .overview-command-visual figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 10px 11px;
  }

  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .overview-metrics .metric-card {
    min-height: 108px;
    padding: 14px 13px 12px;
  }

  .metric-card-label {
    align-items: flex-start;
    font-size: 12px !important;
    line-height: 1.25;
  }

  .overview-metrics .metric-card strong {
    margin-top: 9px;
    font-size: 27px;
  }

  .module-intro {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  .module-intro img {
    width: 54px;
    height: 50px;
  }

  .module-intro h3 {
    font-size: 16px;
  }

  .module-intro p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  body.mode-mobile .mobile-tabbar {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    border-radius: 14px;
  }
}

/* Keep the marketplace hero after the legacy public-page cascade. */
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  min-height: min(850px, 91vh);
  padding: 112px max(24px, calc((100vw - 1180px) / 2)) 46px;
  background: #f5f9f8;
  color: var(--ink);
}

.public-hero::before {
  background:
    linear-gradient(90deg, rgba(250, 252, 252, 0.99) 0%, rgba(250, 252, 252, 0.96) 38%, rgba(250, 252, 252, 0.74) 54%, rgba(250, 252, 252, 0.08) 82%),
    linear-gradient(180deg, rgba(49, 198, 212, 0.03), rgba(255, 202, 79, 0.08)),
    var(--public-hero) 68% center / cover no-repeat;
  filter: saturate(1.08) contrast(1.01);
  transform: scale(1.015);
  animation: soft-pan 22s ease-in-out infinite alternate;
}

.public-hero-copy {
  grid-column: 1;
  grid-row: 1;
  width: min(780px, 68vw);
  max-width: 780px;
  align-self: center;
}

.public-hero-copy .eyebrow {
  color: #087b70;
}

.public-hero h1 {
  max-width: none;
  margin: 5px 0 0;
  font-size: 72px;
  line-height: 0.98;
}

.public-hero .public-hero-offer {
  max-width: 650px;
  margin: 7px 0 15px;
  color: #171b25;
  font-size: 29px;
  line-height: 1.16;
  font-weight: 830;
}

.public-hero p:not(.public-hero-offer) {
  max-width: 650px;
  color: #4f5c6d;
  font-size: 17px;
  line-height: 1.55;
}

.public-hero-actions {
  margin-top: 20px;
}

.public-marketplace-section {
  width: min(1180px, calc(100vw - 40px));
  padding-top: 74px;
  padding-bottom: 76px;
}

@media (max-width: 1040px) {
  .public-hero-copy {
    width: min(760px, 78vw);
  }
}

@media (max-width: 820px) {
  .public-hero {
    align-items: start;
    min-height: auto;
    padding: 100px 18px 42px;
  }

  .public-hero::before {
    background:
      linear-gradient(180deg, rgba(250, 252, 252, 0.99) 0%, rgba(250, 252, 252, 0.96) 56%, rgba(250, 252, 252, 0.76) 77%, rgba(250, 252, 252, 0.34) 100%),
      linear-gradient(90deg, rgba(49, 198, 212, 0.05), rgba(255, 202, 79, 0.08)),
      var(--public-hero) 58% center / cover no-repeat;
  }

  .public-hero-copy {
    width: 100%;
    max-width: 680px;
  }

  .public-hero h1 {
    font-size: 58px;
  }

  .public-hero .public-hero-offer {
    font-size: 25px;
  }

  .public-marketplace-section {
    width: calc(100vw - 32px);
    padding-top: 58px;
    padding-bottom: 60px;
  }
}

@media (max-width: 600px) {
  .public-hero {
    min-height: auto;
    padding: 92px 16px 34px;
  }

  .public-hero h1 {
    font-size: 49px;
    line-height: 0.98;
  }

  .public-hero .public-hero-offer {
    margin-top: 5px;
    font-size: 22px;
  }

  .public-hero p:not(.public-hero-offer) {
    color: #4f5c6d;
    font-size: 14px;
    line-height: 1.5;
  }

  .public-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
  }

  .public-hero-actions .btn {
    min-width: 0;
    min-height: 45px;
    padding-inline: 10px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.25;
  }

  .public-marketplace-section {
    width: calc(100vw - 32px);
    padding: 50px 0 52px;
  }

  .public-marketplace-head .public-section-copy h2 {
    font-size: 31px;
  }
}

/* Public navigation: structured, accessible and stable on touch screens. */
body.public-menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.menu-button {
  position: relative;
  gap: 5px;
  width: 44px;
  height: 44px;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-button.active {
  border-color: rgba(76, 111, 255, 0.55);
  background: #eef1ff;
  color: #304fd1;
}

.menu-button:active {
  transform: scale(0.96);
}

.menu-button span {
  transform-origin: center;
  transition: transform 180ms ease, opacity 140ms ease, width 180ms ease;
}

.menu-button.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  width: 0;
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.public-menu-layer {
  visibility: hidden;
  transition: visibility 0s linear 260ms;
}

.public-site.menu-open .public-menu-layer {
  visibility: visible;
  transition-delay: 0s;
}

.public-menu-backdrop {
  background: rgba(18, 22, 31, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.public-drawer {
  width: min(438px, 100vw);
  height: 100dvh;
  min-height: 0;
  gap: 16px;
  padding: 22px 24px 18px;
  overflow: hidden;
  border-left-color: rgba(76, 111, 255, 0.18);
  background: rgba(250, 251, 253, 0.97);
  box-shadow: -22px 0 70px rgba(23, 27, 37, 0.25);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.public-drawer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--blue), var(--sun), var(--coral));
  content: "";
}

.drawer-head {
  flex: 0 0 auto;
  min-height: 48px;
}

.drawer-head .brand-row {
  margin: 0;
}

.drawer-close {
  position: relative;
  flex: 0 0 44px;
}

.drawer-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.drawer-close span:first-child {
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.drawer-intro {
  flex: 0 0 auto;
  padding: 13px 14px;
  border-left: 3px solid var(--blue);
  background: #eef1ff;
}

.drawer-intro span,
.drawer-actions-label,
.drawer-group-label {
  display: block;
  color: #304fd1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-intro p {
  margin: 5px 0 0;
  color: #3d4453;
  font-size: 14px;
  line-height: 1.45;
}

.drawer-nav {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(76, 111, 255, 0.35) transparent;
  scrollbar-width: thin;
}

.drawer-nav-group + .drawer-nav-group {
  margin-top: 18px;
}

.drawer-group-label {
  margin: 0 10px 5px;
  color: #747b8b;
}

.drawer-nav button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #e5e8ef;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, padding 160ms ease;
}

.drawer-nav button:hover,
.drawer-nav button:focus-visible {
  border-color: #dce1f5;
  background: #f2f4ff;
  color: #263fba;
}

.drawer-nav button.active {
  padding-left: 15px;
  border-color: #d9dff7;
  background: #eef1ff;
  box-shadow: inset 3px 0 0 var(--blue);
  color: #263fba;
}

.drawer-nav button > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.drawer-nav button strong {
  font-size: 15px;
  line-height: 1.25;
}

.drawer-nav button small {
  color: #697080;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.drawer-nav button i {
  color: #6279e6;
  font-size: 18px;
  font-style: normal;
  text-align: center;
  transition: transform 160ms ease;
}

.drawer-nav button:hover i,
.drawer-nav button:focus-visible i {
  transform: translateX(3px);
}

.drawer-actions {
  flex: 0 0 auto;
  gap: 9px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #dfe3ec;
}

.drawer-actions-label {
  color: #747b8b;
}

.drawer-role-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-actions > small {
  color: #7d8492;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 560px) {
  .public-drawer {
    width: 100vw;
    gap: 10px;
    padding: 18px 17px 14px;
  }

  .drawer-intro {
    padding: 8px 11px;
  }

  .drawer-intro p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
  }

  .drawer-nav-group + .drawer-nav-group {
    margin-top: 9px;
  }

  .drawer-group-label {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .drawer-nav button {
    min-height: 51px;
    padding: 5px 9px;
  }

  .drawer-nav button.active {
    padding-left: 13px;
  }

  .drawer-nav button strong {
    font-size: 14px;
  }

  .drawer-nav button small {
    font-size: 11px;
    line-height: 1.2;
  }

  .drawer-actions {
    gap: 6px;
    padding-top: 9px;
  }

  .drawer-actions-label {
    font-size: 10px;
  }

  .drawer-actions .btn {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-drawer,
  .menu-button,
  .menu-button span,
  .drawer-nav button,
  .drawer-nav button i {
    transition: none;
  }
}

/* Secure account flows and the private production account surface. */
.form-stack[aria-busy="true"] {
  cursor: wait;
}

.auth-service-state,
.auth-flow-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #dce2ef;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: #f6f8ff;
}

.auth-service-state > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 169, 110, 0.16);
}

.auth-service-state strong,
.auth-flow-status strong {
  color: var(--ink);
  font-size: 14px;
}

.auth-service-state small,
.auth-flow-status small {
  grid-column: 2;
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.auth-inline-error {
  margin: -2px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  background: #fff1f4;
  color: #9f2943;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-flow-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dfe5ff;
  color: #304fd1;
  font-size: 13px;
  font-weight: 900;
}

.auth-result {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-top: 8px;
  animation: soft-pop 240ms ease both;
}

.auth-result-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mint);
  color: #087b51;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 0 7px rgba(34, 169, 110, 0.1);
}

.auth-result > strong {
  font-size: 21px;
}

.auth-result p {
  margin: -5px 0 2px;
}

.mfa-setup-layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mfa-qr,
.mfa-qr-loading {
  width: 148px;
  aspect-ratio: 1;
  border: 1px solid #d9deea;
  border-radius: var(--radius);
  background: #fff;
}

.mfa-qr {
  padding: 7px;
}

.mfa-qr-loading {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mfa-setup-copy p {
  margin: 5px 0 12px;
  font-size: 13px;
}

.mfa-secret {
  display: grid;
  gap: 4px;
}

.mfa-secret span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mfa-secret code {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #304fd1;
  font-size: 12px;
  font-weight: 800;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 24px;
  margin: 0;
  padding: 8px 0 8px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recovery-code-grid li {
  padding: 7px 4px;
  color: var(--muted);
}

.recovery-code-grid code {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.recovery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.production-account-shell {
  min-height: 100vh;
  background: #f6f7fa;
}

.production-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.production-account-brand,
.production-account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.production-account-brand > span:last-child {
  display: grid;
}

.production-account-brand small {
  color: var(--muted);
}

.environment-badge.production {
  border-color: #b9e3d4;
  background: #edfbf5;
  color: #087b51;
}

.environment-badge.production i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 169, 110, 0.14);
}

.production-account-shell main {
  display: grid;
}

.production-account-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(360px, 48vw, 520px);
  overflow: hidden;
  background-image: var(--account-hero);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.production-account-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 22, 31, 0.45);
  box-shadow: inset 0 -210px 150px rgba(18, 22, 31, 0.48);
  content: "";
}

.production-account-hero-copy {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 44px;
  color: #fff;
  animation: fade-up 440ms ease both;
}

.production-account-hero-copy .eyebrow {
  color: #a7f3e8;
}

.production-account-hero-copy h1 {
  max-width: 760px;
  margin: 7px 0 10px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.production-account-hero-copy > p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.production-account-progress {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  margin-top: 25px;
}

.production-account-progress span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.production-account-progress span strong {
  color: #fff;
}

.production-account-progress > div {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
}

.production-account-progress i {
  display: block;
  width: var(--account-progress);
  height: 100%;
  transform-origin: left;
  background: var(--sun);
  animation: progress-fill 640ms 120ms ease both;
}

.production-account-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 66px 0;
}

.production-account-band + .production-account-band {
  border-top: 1px solid var(--line);
}

.production-section-heading {
  max-width: 650px;
  margin-bottom: 28px;
}

.production-section-heading h2,
.production-account-boundary h2 {
  margin: 7px 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.production-section-heading p {
  margin: 0;
}

.production-account-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.production-account-facts div {
  min-width: 0;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
}

.production-account-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.production-account-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.production-account-steps {
  background: #fff;
  box-shadow: 50vw 0 0 #fff, -50vw 0 0 #fff;
}

.production-step-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.production-step-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 94px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.production-step-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8deea;
  border-radius: 50%;
  background: #f3f5f9;
  color: #6c7484;
  font-weight: 900;
}

.production-step-list li.done .production-step-index {
  border-color: #abe1cc;
  background: var(--mint);
  color: #087b51;
}

.production-step-list li.pending .production-step-index {
  border-color: #f2d071;
  background: var(--warm);
  color: #8a5a00;
}

.production-step-list p {
  margin: 4px 0 0;
  font-size: 14px;
}

.production-step-list em {
  color: #8a5a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.production-step-list li.done em {
  color: #087b51;
}

.production-account-commands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.production-command-note,
.production-api-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #745100;
  font-size: 13px;
  font-weight: 800;
}

.production-command-note i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--warm);
  font-style: normal;
}

.production-command-note.success {
  color: #087b51;
}

.production-command-note.success i {
  background: var(--mint);
}

.production-account-boundary {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 52px;
}

.production-boundary-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #e9edf5;
}

.production-boundary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.production-account-boundary:hover .production-boundary-image img {
  transform: scale(1.025);
}

.production-api-status {
  margin-top: 12px;
  color: #34405a;
}

.production-api-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(76, 111, 255, 0.12);
}

.production-account-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  .mfa-setup-layout {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .mfa-qr,
  .mfa-qr-loading {
    width: 116px;
  }

  .production-account-header,
  .production-account-hero-copy,
  .production-account-band,
  .production-account-footer {
    width: min(calc(100% - 32px), 1180px);
  }

  .production-account-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-account-boundary {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .production-boundary-image {
    max-height: 360px;
  }
}

@media (max-width: 520px) {
  .mfa-setup-layout,
  .recovery-code-grid,
  .recovery-actions {
    grid-template-columns: 1fr;
  }

  .mfa-qr,
  .mfa-qr-loading {
    width: min(180px, 100%);
  }

  .production-account-header {
    min-height: 68px;
  }

  .production-account-actions .environment-badge {
    display: none;
  }

  .production-account-hero {
    min-height: 410px;
    background-position: 58% center;
  }

  .production-account-hero-copy {
    padding-bottom: 30px;
  }

  .production-account-hero-copy h1 {
    font-size: 38px;
  }

  .production-account-band {
    padding: 48px 0;
  }

  .production-account-facts {
    grid-template-columns: 1fr;
  }

  .production-account-facts div {
    padding: 16px 0;
  }

  .production-step-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .production-step-list em {
    grid-column: 2;
    margin-top: -8px;
  }

  .production-account-commands,
  .production-account-commands .btn {
    width: 100%;
  }

  .production-account-footer {
    display: grid;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

body.identity-dialog-open {
  overflow: hidden;
}

.bankid-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(15, 31, 36, 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  padding: 24px;
  animation: bankid-backdrop-in 180ms ease-out both;
}

.bankid-dialog {
  width: min(920px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(252, 253, 255, 0.96);
  box-shadow: 0 28px 90px rgba(9, 24, 29, 0.32);
  animation: bankid-dialog-in 260ms cubic-bezier(.2, .8, .2, 1) both;
}

.bankid-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 253, 255, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 14px 18px 14px 22px;
}

.bankid-dialog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bankid-dialog-brand div {
  display: grid;
  gap: 2px;
}

.bankid-dialog-brand strong {
  font-size: 15px;
}

.bankid-dialog-brand small {
  color: var(--muted);
  font-size: 12px;
}

.bankid-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0b70e0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(11, 112, 224, 0.22);
}

.bankid-dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #edf0f5;
  color: var(--night);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.bankid-dialog-close:hover {
  background: #e0e5ed;
  transform: rotate(4deg);
}

.bankid-dialog-main {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(320px, 1.15fr);
  min-height: 520px;
}

.bankid-qr-stage {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #eef7f4;
  padding: 38px 24px;
}

.bankid-qr-stage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: #d6e1df;
  content: "";
}

.bankid-qr-stage::before {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: var(--bankid-progress);
  height: 5px;
  background: #0b70e0;
  content: "";
  transition: width 300ms linear;
}

.bankid-qr-button {
  display: grid;
  place-items: center;
  width: min(300px, 100%);
  aspect-ratio: 1;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 18px 48px rgba(25, 51, 58, 0.13);
  cursor: zoom-in;
}

.bankid-qr-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.bankid-qr-placeholder {
  display: grid;
  place-items: center;
  width: min(300px, 100%);
  aspect-ratio: 1;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: #fff;
}

.bankid-qr-placeholder span {
  width: 46px;
  height: 46px;
  border: 4px solid #dce5ed;
  border-top-color: #0b70e0;
  border-radius: 50%;
  animation: bankid-spin 900ms linear infinite;
}

.bankid-countdown {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #30444a;
  font-size: 13px;
}

.bankid-countdown span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffb22e;
  box-shadow: 0 0 0 5px rgba(255, 178, 46, 0.17);
  animation: bankid-pulse 1.4s ease-in-out infinite;
}

.bankid-result-symbol {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff0d3;
  color: #8b5b00;
  font-size: 54px;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(83, 63, 17, 0.12);
}

.bankid-result-symbol.success {
  background: #dff7e9;
  color: #087b51;
}

.bankid-dialog-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

.bankid-dialog-copy h2 {
  margin: 10px 0 12px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.bankid-dialog-copy > p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.bankid-instructions {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.bankid-instructions li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.bankid-instructions span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6eefc;
  color: #245ba4;
  font-size: 12px;
  font-weight: 900;
}

.bankid-instructions p {
  margin: 3px 0 0;
  color: #344b52;
  font-size: 14px;
  line-height: 1.5;
}

.bankid-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.bankid-dialog-actions [hidden] {
  display: none;
}

.bankid-privacy-note {
  display: block;
  max-width: 58ch;
  margin-top: 22px;
  color: #68757a;
  font-size: 11px;
  line-height: 1.5;
}

.bankid-dialog.qr-expanded {
  width: min(1040px, 100%);
  max-height: calc(100dvh - 24px);
}

.bankid-dialog.qr-expanded .bankid-dialog-main {
  display: block;
}

.bankid-dialog.qr-expanded .bankid-qr-stage {
  min-height: calc(100dvh - 100px);
  border-right: 0;
}

.bankid-dialog.qr-expanded .bankid-qr-button {
  width: min(68vh, 90vw);
  cursor: zoom-out;
}

.bankid-dialog.qr-expanded .bankid-dialog-copy {
  display: none;
}

#toast {
  z-index: 120;
}

/* 2026 UX pass: concise public story, calm navigation and fast mobile tasks. */
.faq-accordion {
  display: grid;
  max-width: 860px;
  gap: 10px;
  margin-top: 26px;
}

.faq-accordion details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.faq-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary span { color: var(--teal-dark); font-size: 20px; transition: transform .2s ease; }
.faq-accordion details[open] summary span { transform: rotate(45deg); }
.faq-accordion p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 14px; }

.public-section + .public-section,
.public-section + .public-split,
.public-split + .public-section,
.public-split + .public-split {
  border-top: 1px solid rgba(203, 211, 223, 0.48);
}

.public-step p,
.public-feature-list span,
.responsibility-grid p {
  line-height: 1.5;
}

.public-flow-photo {
  position: relative;
  max-width: 760px;
  height: 210px;
  overflow: hidden;
  margin: 18px 0 0;
  border-radius: 12px;
}

.public-flow-photo img { width: 100%; height: 100%; object-fit: cover; }
.public-flow-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 27, 37, .72), transparent 75%); }
.public-flow-photo figcaption { position: absolute; z-index: 1; left: 18px; bottom: 16px; color: #fff; }
.public-flow-photo figcaption strong,
.public-flow-photo figcaption span { display: block; }
.public-flow-photo figcaption span { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 12px; }

body.mode-mobile .overview-command-visual {
  display: none;
}

body.mode-mobile .overview-command-copy {
  padding: 20px 18px 17px;
}

body.mode-mobile .overview-proof {
  margin-top: 15px;
  padding-top: 13px;
}

body.mode-mobile .overview-metrics .metric-card:nth-child(n + 3) {
  display: none;
}

body.mode-mobile .account-readiness-banner p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

@media (max-width: 720px) {
  .public-hero {
    min-height: auto;
    padding-bottom: 30px;
  }

  .public-hero-copy > p:not(.public-hero-offer) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .public-proof-band {
    display: none;
  }

  .public-marketplace-section {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .public-section,
  .public-section.tinted,
  .public-split,
  .public-auth-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .public-step-grid,
  .public-card-grid {
    gap: 10px;
    margin-top: 20px;
  }

  .public-step,
  .public-card-grid article {
    padding: 16px;
  }

  .faq-accordion { margin-top: 20px; }
  .faq-accordion summary { padding: 15px 16px; }
  .faq-accordion p { padding: 0 16px 16px; }
  .public-flow-photo { height: 150px; }
}

@keyframes bankid-dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bankid-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bankid-spin {
  to { transform: rotate(360deg); }
}

@keyframes bankid-pulse {
  50% { transform: scale(.72); opacity: .65; }
}

@media (max-width: 720px) {
  .readiness-item-head,
  .readiness-review-actions,
  .readiness-next-action {
    align-items: stretch;
    flex-direction: column;
  }

  .readiness-statuses {
    justify-content: flex-start;
  }

  .readiness-review-actions .btn,
  .readiness-next-action .btn {
    width: 100%;
  }

  .document-review-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .document-review-row .card-actions {
    justify-content: stretch;
  }

  .document-review-row .card-actions .btn {
    flex: 1 1 130px;
  }

  .document-actions,
  .document-actions .upload-control,
  .document-actions .btn {
    width: 100%;
  }

  .bankid-dialog-backdrop {
    align-items: end;
    padding: 0;
  }

  .bankid-dialog {
    width: 100%;
    max-height: 100dvh;
    border-width: 1px 0 0;
    border-radius: 8px 8px 0 0;
  }

  .bankid-dialog-main {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bankid-qr-stage {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }

  .bankid-qr-button,
  .bankid-qr-placeholder {
    width: min(240px, 72vw);
  }

  .bankid-dialog-copy {
    padding: 28px 22px max(30px, env(safe-area-inset-bottom));
  }

  .bankid-dialog-copy h2 {
    font-size: 30px;
  }

  .bankid-dialog-actions,
  .bankid-dialog-actions .btn {
    width: 100%;
  }

  .bankid-dialog.qr-expanded {
    max-height: 100dvh;
    border-radius: 0;
  }

  .bankid-dialog.qr-expanded .bankid-qr-stage {
    min-height: calc(100dvh - 76px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bankid-dialog-backdrop,
  .bankid-dialog,
  .bankid-qr-placeholder span,
  .bankid-countdown span {
    animation: none;
  }
}

/* SKIFTA visual system: broad marketplace, colorful detail and restrained glass. */
:root {
  --bg: #f5f7f6;
  --surface-2: #f8faf9;
  --ink: #172536;
  --muted: #617080;
  --line: #dfe6e5;
  --line-strong: #c8d3d2;
  --night: #172536;
  --night-2: #24364a;
  --teal: #12aa98;
  --teal-dark: #087f73;
  --blue: #3478f6;
  --coral: #ff745f;
  --amber: #d99a0b;
  --green: #1e9c67;
  --aqua: #20bfd0;
  --sun: #ffd45f;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --shadow: 0 22px 58px rgba(23, 37, 54, 0.14);
  --shadow-soft: 0 10px 28px rgba(23, 37, 54, 0.08);
  --shadow-color: 0 18px 42px rgba(52, 120, 246, 0.12);
}

@keyframes uppdrio-hero-pan {
  from { transform: scale(1.01) translateX(-5px); }
  to { transform: scale(1.035) translateX(7px); }
}

@keyframes uppdrio-mark-arrive {
  0% { opacity: 0; transform: rotate(-9deg) scale(0.82); }
  70% { opacity: 1; transform: rotate(3deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(0) scale(1); }
}

.auth-body,
.public-site {
  background: #f7faf9;
}

.public-header {
  top: 12px;
  min-height: 60px;
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(23, 37, 54, 0.12);
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.public-header:hover,
.public-header.is-condensed {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(23, 37, 54, 0.14);
}

.public-brand {
  min-height: 44px;
}

.public-brand > span {
  line-height: 1.2;
}

.public-brand .brand-mark svg,
.drawer-head .brand-mark svg,
.public-auth-panel .brand-mark svg {
  animation: uppdrio-mark-arrive 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center;
  transition: transform 220ms ease, filter 220ms ease;
}

.public-brand:hover .brand-mark svg,
.public-brand:focus-visible .brand-mark svg {
  filter: saturate(1.14);
  transform: rotate(7deg) scale(1.05);
}

.menu-button,
.icon-button,
.drawer-close,
.btn {
  border-radius: 7px;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-button.active {
  border-color: rgba(52, 120, 246, 0.46);
  background: rgba(235, 241, 255, 0.94);
  color: #245dc8;
}

.public-hero {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  min-height: min(800px, 88svh);
  padding: 108px max(24px, calc((100vw - 1180px) / 2)) 40px;
  background: #eef4f2;
  color: var(--ink);
}

.public-hero::before {
  background:
    linear-gradient(90deg, rgba(251, 253, 252, 0.995) 0%, rgba(251, 253, 252, 0.97) 38%, rgba(251, 253, 252, 0.82) 51%, rgba(251, 253, 252, 0.08) 77%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(225, 245, 241, 0.18)),
    var(--public-hero) 72% center / cover no-repeat;
  filter: saturate(1.04) contrast(1.01);
  animation: uppdrio-hero-pan 20s ease-in-out infinite alternate;
}

.public-hero::after {
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--blue) 35%, var(--sun) 68%, var(--coral));
}

.public-hero-copy {
  grid-column: 1;
  grid-row: 1;
  width: min(690px, 58vw);
  max-width: 690px;
  align-self: center;
}

.public-hero-copy .eyebrow {
  color: var(--teal-dark);
}

.public-hero h1 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 72px;
  line-height: 0.98;
}

.public-hero .public-hero-offer {
  max-width: 630px;
  margin: 8px 0 13px;
  color: #17374a;
  font-size: 28px;
  line-height: 1.15;
}

.public-hero p:not(.public-hero-offer) {
  max-width: 620px;
  color: #4f6170;
  font-size: 16px;
  line-height: 1.55;
}

.public-hero .btn.light {
  border-color: rgba(202, 214, 214, 0.94);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: 0 9px 22px rgba(23, 37, 54, 0.09);
}

.public-market-search {
  max-width: 690px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.77);
  box-shadow: 0 18px 44px rgba(23, 37, 54, 0.13);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
  backdrop-filter: blur(22px) saturate(1.14);
}

.public-market-tabs,
.public-market-switch {
  border-radius: 7px;
}

.public-market-tabs button,
.public-market-switch button {
  border-radius: 6px;
}

.public-proof-band {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: #fff;
}

.public-proof-band div {
  border-top: 3px solid var(--teal);
}

.public-proof-band div:nth-child(2) {
  border-top-color: var(--blue);
}

.public-proof-band div:nth-child(3) {
  border-top-color: var(--coral);
}

.public-marketplace-section {
  background: #eef8f6;
  box-shadow: 0 0 0 100vmax #eef8f6;
}

.public-listing-card {
  border-radius: 8px;
  box-shadow: 0 9px 25px rgba(23, 37, 54, 0.08);
}

.public-listing-card:nth-child(3n + 1) {
  border-top: 3px solid var(--teal);
}

.public-listing-card:nth-child(3n + 2) {
  border-top: 3px solid var(--blue);
}

.public-listing-card:nth-child(3n) {
  border-top: 3px solid var(--coral);
}

.public-listing-card:hover {
  border-color: rgba(52, 120, 246, 0.3);
  box-shadow: 0 18px 42px rgba(23, 37, 54, 0.13);
}

.public-listing-media img,
.public-image-card img,
.public-illustration-card img {
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.public-listing-card:hover .public-listing-media img,
.public-image-card:hover img,
.public-illustration-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.public-step,
.public-card-grid article,
.faq-grid article,
.flow-stack article,
.public-image-card,
.public-illustration-card,
.profession-category,
.auth-panel.public-auth-panel,
.legal-status-panel {
  border-radius: 8px;
}

.public-step {
  border-top-width: 4px;
}

.public-step > span {
  border-radius: 7px;
}

.floating-badge,
.image-overlay-panel {
  border-radius: 8px;
}

.profession-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.profession-category {
  min-height: 226px;
  padding: 20px;
  border-color: color-mix(in srgb, var(--segment-accent) 25%, var(--line));
  background: color-mix(in srgb, var(--segment-accent) 7%, #fff);
}

[data-segment="technology"] { --segment-accent: #3478f6; --segment-tint: rgba(52, 120, 246, 0.09); }
[data-segment="business"] { --segment-accent: #7457d9; --segment-tint: rgba(116, 87, 217, 0.09); }
[data-segment="trades"] { --segment-accent: #d18c00; --segment-tint: rgba(255, 205, 92, 0.15); }
[data-segment="education"] { --segment-accent: #148b68; --segment-tint: rgba(20, 139, 104, 0.1); }
[data-segment="hospitality"] { --segment-accent: #ec5f4b; --segment-tint: rgba(236, 95, 75, 0.1); }
[data-segment="creative"] { --segment-accent: #c74481; --segment-tint: rgba(199, 68, 129, 0.09); }
[data-segment="logistics"] { --segment-accent: #008ca8; --segment-tint: rgba(0, 140, 168, 0.1); }
[data-segment="clinic"] { --segment-accent: #0c9b8c; --segment-tint: rgba(12, 155, 140, 0.09); }
[data-segment="nursing"] { --segment-accent: #3c6fdb; --segment-tint: rgba(60, 111, 219, 0.09); }
[data-segment="dental"] { --segment-accent: #14aeb9; --segment-tint: rgba(20, 174, 185, 0.1); }
[data-segment="mental"] { --segment-accent: #815bc4; --segment-tint: rgba(129, 91, 196, 0.09); }
[data-segment="rehab"] { --segment-accent: #3a9b59; --segment-tint: rgba(58, 155, 89, 0.09); }
[data-segment="diagnostics"] { --segment-accent: #e76550; --segment-tint: rgba(231, 101, 80, 0.09); }
[data-segment="pharmacy"] { --segment-accent: #bd8300; --segment-tint: rgba(255, 202, 79, 0.14); }
[data-segment="vision"] { --segment-accent: #265ec6; --segment-tint: rgba(38, 94, 198, 0.09); }
[data-segment="care"] { --segment-accent: #d54d7d; --segment-tint: rgba(213, 77, 125, 0.09); }

.public-drawer {
  border-left-color: rgba(255, 255, 255, 0.86);
  border-radius: 8px 0 0 8px;
  background: rgba(250, 252, 252, 0.88);
  box-shadow: -24px 0 68px rgba(23, 37, 54, 0.22);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  backdrop-filter: blur(30px) saturate(1.2);
}

.drawer-intro {
  border-left-color: var(--coral);
  border-radius: 8px;
  background: #fff3ef;
}

.drawer-intro span {
  color: #b84231;
}

.drawer-nav button {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
}

.drawer-nav button:hover,
.drawer-nav button:focus-visible,
.drawer-nav button.active {
  border-color: rgba(52, 120, 246, 0.24);
  background: #edf3ff;
  color: #245dc8;
}

.btn.primary {
  border-color: #3478f6;
  background: #3478f6;
  box-shadow: 0 9px 21px rgba(52, 120, 246, 0.24);
}

.btn.primary:hover {
  border-color: #2767d8;
  background: #2767d8;
  box-shadow: 0 12px 26px rgba(52, 120, 246, 0.29);
}

.sidebar {
  background: #172536;
}

.sidebar .nav-group-label {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-item {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar .nav-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.sidebar .nav-item.active {
  border-color: rgba(255, 255, 255, 0.82);
  background: #edf1ff;
  color: #3453be;
}

.sidebar .nav-logo small,
.sidebar .nav-logo span {
  color: rgba(255, 255, 255, 0.62);
}

.topbar,
body.mode-mobile .topbar,
body.mode-mobile .mobile-tabbar {
  border-radius: 8px;
}

body.mode-mobile .mobile-tabbar button {
  border-radius: 6px;
}

.module-intro,
.panel,
.toolbar-panel,
.metric-card,
.segment-card,
.job-card,
.compact-card,
.pro-card,
.application-card,
.booking-card,
.table-row,
.mini-row,
.pipeline-column,
.empty-state {
  border-radius: 8px;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none !important;
  transition:
    opacity 520ms ease var(--reveal-delay, 0ms),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-reveal.is-visible.public-step:hover,
.motion-reveal.is-visible.profession-category:hover {
  transform: translateY(-4px);
}

@media (max-width: 1100px) {
  .profession-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-hero-copy {
    width: min(680px, 67vw);
  }
}

@media (max-width: 820px) {
  .public-hero {
    align-items: start;
    min-height: auto;
    padding: 96px 18px 34px;
  }

  .public-hero::before {
    background:
      linear-gradient(180deg, rgba(251, 253, 252, 0.99) 0%, rgba(251, 253, 252, 0.97) 52%, rgba(251, 253, 252, 0.79) 72%, rgba(251, 253, 252, 0.28) 100%),
      var(--public-hero) 68% center / cover no-repeat;
  }

  .public-hero-copy {
    width: 100%;
    max-width: 680px;
  }

  .public-hero h1 {
    font-size: 56px;
  }

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

@media (max-width: 560px) {
  .public-header {
    top: 8px;
    right: 8px;
    left: 8px;
    min-height: 56px;
    border-radius: 8px;
  }

  .public-brand small {
    display: none;
  }

  .public-hero {
    min-height: auto;
    padding: 80px 16px 24px;
  }

  .public-hero h1 {
    font-size: 40px;
    line-height: 1;
  }

  .public-hero .public-hero-offer {
    font-size: 20px;
  }

  .public-hero p:not(.public-hero-offer) {
    font-size: 14px;
    line-height: 1.5;
  }

  .public-hero-actions {
    margin-top: 12px;
  }

  .public-hero-actions .btn,
  .public-market-submit {
    min-height: 46px;
  }

  .public-market-search {
    margin-top: 12px;
    padding: 7px;
  }

  .public-proof-band span {
    color: #536175;
    font-size: 14px;
    line-height: 1.45;
  }

  .public-market-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-market-query,
  .public-market-submit {
    grid-column: 1 / -1;
  }

  .public-proof-band div,
  .public-proof-band div:first-child {
    border-top-width: 1px;
    padding: 11px 2px;
  }

  .public-proof-band div:first-child {
    border-top: 3px solid var(--teal);
  }

  .public-proof-band div:nth-child(2) {
    border-top-color: var(--blue);
  }

  .public-proof-band div:nth-child(3) {
    border-top-color: var(--coral);
  }

  .profession-category-grid {
    grid-template-columns: 1fr;
  }

  .profession-category {
    min-height: 0;
  }

  .public-drawer {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-hero::before,
  .public-brand .brand-mark svg,
  .drawer-head .brand-mark svg,
  .public-auth-panel .brand-mark svg,
  .public-listing-card,
  .public-listing-media img,
  .public-image-card img,
  .public-illustration-card img {
    animation: none !important;
    transition: none !important;
  }

  .motion-reveal,
  .motion-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Final mobile chrome wins over the legacy responsive layers above. */
@media (max-width: 820px) {
  body.mode-mobile .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 62px;
    padding: 9px 11px;
  }

  body.mode-mobile .workspace-date,
  body.mode-mobile .environment-badge {
    display: none;
  }

  body.mode-mobile .topbar h2 { font-size: 22px; }

  body.mode-mobile .top-actions {
    display: flex;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }

  body.mode-mobile .top-actions .notification-shortcut,
  body.mode-mobile .top-actions .profile-shortcut {
    display: grid;
    width: 38px !important;
    min-width: 38px;
    min-height: 38px;
    padding: 0 !important;
  }

  body.mode-mobile .top-actions .btn.danger {
    width: auto;
    min-height: 38px;
    padding: 7px 9px;
    font-size: 11px;
  }
}


/* Reviewed staffing proposals reuse existing responsive form layouts. */
.agent-result { padding: 1rem; border: 1px solid var(--line, #d5e1df); border-radius: 12px; background: var(--surface, #fff); overflow-wrap: anywhere; }
.agent-result p:last-child { margin-bottom: 0; }
