:root {
  --mm-bg: #f4f9f6;
  --mm-surface: rgba(255,255,255,.88);
  --mm-surface-strong: #ffffff;
  --mm-text: #12251d;
  --mm-muted: #5d7067;
  --mm-line: rgba(21,73,51,.12);
  --mm-green: #157347;
  --mm-green-deep: #0f5a38;
  --mm-blue: #176b87;
  --mm-gold: #b88728;
  --mm-radius: 18px;
  --mm-radius-sm: 12px;
  --mm-shadow: 0 18px 55px rgba(15,52,37,.10);
  --mm-shadow-soft: 0 8px 28px rgba(15,52,37,.07);
  --mm-focus: 0 0 0 4px rgba(23,107,135,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--mm-text); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: none !important;
  box-shadow: var(--mm-focus) !important;
}
button, .btn, .cta, .icon-btn, .top-tab, .side-link, .filter-pill {
  min-height: 44px;
}
input, select, textarea {
  border-radius: var(--mm-radius-sm) !important;
  border: 1px solid var(--mm-line) !important;
  background: rgba(255,255,255,.94) !important;
  color: var(--mm-text) !important;
}
input::placeholder, textarea::placeholder { color: #788981; opacity: 1; }
.btn, .cta, button { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease; }
.btn:hover, .cta:hover, button:not(:disabled):hover { transform: translateY(-1px); }
.btn-primary, .cta-green {
  background: linear-gradient(135deg, var(--mm-green), var(--mm-green-deep)) !important;
  box-shadow: 0 9px 24px rgba(21,115,71,.22) !important;
}
.btn-ghost { border-color: var(--mm-line) !important; background: rgba(255,255,255,.68) !important; }
.glass, .panel, .dashboard-card, .registration-card, .search-panel, .legal-wrap, .contact-card, .control-box, .metric-grid article, .ai-status-card {
  border: 1px solid var(--mm-line) !important;
  box-shadow: var(--mm-shadow-soft) !important;
}
.glass, .panel, .dashboard-card, .registration-card, .search-panel, .legal-wrap {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.panel, .dashboard-card, .registration-card, .search-panel, .legal-wrap, .contact-card {
  border-radius: var(--mm-radius) !important;
}
.eyebrow, .section-kicker {
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--mm-green-deep);
}
h1, h2, h3 { letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
small, .subtitle, .field-hint { color: var(--mm-muted); }
.viewport-shell { background: radial-gradient(circle at 76% 8%, rgba(42,150,105,.10), transparent 34%), linear-gradient(180deg,#f7fbf8 0%,#eef7f2 100%); }
.stage { isolation: isolate; }
.stage-wash { background: linear-gradient(115deg, rgba(247,251,248,.93) 18%, rgba(247,251,248,.72) 54%, rgba(247,251,248,.55) 100%) !important; }
.topbar { gap: 14px; padding: 14px 18px !important; }
.top-tabs, .top-actions { border-radius: 16px !important; }
.top-tab { border-radius: 11px; font-weight: 700; }
.top-tab.active { background: rgba(255,255,255,.90); box-shadow: inset 0 0 0 1px var(--mm-line); }
.top-tab, .side-link, .r4-side-link, .mm-profile-nav a, .mm-profile-nav button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #12251d;
}
.top-tab::before, .side-link::before, .r4-side-link::before,
.mm-profile-nav a::before, .mm-profile-nav button::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 30%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  border-radius: 40% 45% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.7) 0 28%, transparent 32%),
    linear-gradient(180deg, rgba(120,214,178,.7), rgba(56,176,138,.5));
  transform: translateY(110%);
  transition: transform .32s ease, opacity .32s ease;
}
.top-tab:hover::before, .side-link:hover::before, .r4-side-link:hover::before,
.top-tab:focus-visible::before, .side-link:focus-visible::before, .r4-side-link:focus-visible::before,
.top-tab:active::before, .side-link:active::before, .r4-side-link:active::before,
.mm-profile-nav a:hover::before, .mm-profile-nav button:hover::before,
.mm-profile-nav a:active::before, .mm-profile-nav button:active::before {
  opacity: 1;
  transform: translateY(0);
  animation: mm-tab-water 1.7s ease-in-out infinite;
}
@keyframes mm-tab-water {
  0% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-12%) scaleX(1.04); }
  100% { transform: translateY(0) scaleX(1); }
}
.brand-original-logo { filter: drop-shadow(0 10px 18px rgba(8,44,29,.13)); mix-blend-mode: normal !important; background: transparent !important; }
.left-rail { border-radius: 18px !important; overflow: hidden; }
.side-link { border-radius: 11px; }
.side-link.active { background: rgba(255,255,255,.90) !important; }
.main-content { position: relative; }
.hero-copy { max-width: 790px; }
.hero-copy h1 { font-size: clamp(2.35rem,5vw,5.5rem); line-height: .99; max-width: 13ch; }
.hero-copy > p { max-width: 660px; font-size: clamp(1.05rem,1.6vw,1.28rem); color: #425c50; }
.hero-search { border-radius: 18px !important; padding: 7px !important; box-shadow: var(--mm-shadow) !important; }
.hero-search input { min-height: 48px; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.hero-search button { border-radius: 13px !important; min-width: 112px; }
.filter-row { gap: 10px !important; flex-wrap: wrap; }
.filter-pill { border-radius: 999px !important; padding-inline: 15px !important; }
.public-flow-section, .public-categories-section { margin-top: clamp(36px,6vw,84px) !important; }
.flow-steps { gap: 16px !important; }
.flow-steps article { border: 1px solid var(--mm-line); background: rgba(255,255,255,.75); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow-soft); }
.category-row { gap: 9px !important; flex-wrap: wrap; }
.category-row a { border: 1px solid var(--mm-line); background: rgba(255,255,255,.77); border-radius: 999px !important; padding: 10px 15px !important; }
.category-row a:hover, .category-row a.is-active { background: #fff; box-shadow: 0 7px 20px rgba(15,52,37,.09); }
.ai-panel { border: 1px solid rgba(255,255,255,.55) !important; border-radius: 22px !important; box-shadow: 0 24px 70px rgba(8,42,29,.17) !important; overflow: hidden; }
.ai-actions button { min-height: 46px; border-radius: 12px !important; }
.ai-input { border-radius: 15px !important; }
.trust-bar { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--mm-line); }
.registration-page, body:has(.search-panel), body:has(.legal-wrap) {
  background: radial-gradient(circle at 18% 8%, rgba(23,107,135,.09), transparent 30%), linear-gradient(180deg,#f8fbf9,#eef6f2) !important;
}
.registration-container, body:has(.search-panel) .container, body:has(.legal-wrap) .container { max-width: 1180px !important; }
.registration-card, .search-panel { background: rgba(255,255,255,.92) !important; box-shadow: var(--mm-shadow) !important; }
.registration-header { margin-bottom: 24px; }
.registration-form { gap: 18px !important; }
.form-field input, .form-field select, .search-panel input { min-height: 48px; padding-inline: 14px !important; }
.account-option { border: 1px solid var(--mm-line) !important; border-radius: 14px !important; background: rgba(255,255,255,.72); }
.account-option:has(input:checked) { border-color: rgba(21,115,71,.42) !important; background: rgba(21,115,71,.06); box-shadow: 0 0 0 3px rgba(21,115,71,.08); }
.terms-row { border-radius: 14px; background: rgba(21,115,71,.045); padding: 13px 14px; }
.registration-actions { gap: 12px !important; }
.login-note { color: var(--mm-muted); }
.app-shell, .micromind-premium-internal { background: linear-gradient(180deg,#f7fbf8,#eef6f2) !important; }
.app-header { background: rgba(255,255,255,.82) !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--mm-line) !important; }
.app-layout, .company-wrap { gap: 18px !important; }
.app-sidebar { border: 1px solid var(--mm-line) !important; border-radius: 18px !important; background: rgba(255,255,255,.78) !important; box-shadow: var(--mm-shadow-soft); }
.app-sidebar a { border-radius: 11px !important; }
.app-welcome, .company-hero { border: 1px solid var(--mm-line) !important; border-radius: 22px !important; background: linear-gradient(135deg,rgba(255,255,255,.94),rgba(242,250,246,.88)) !important; box-shadow: var(--mm-shadow) !important; }
.smart-request, .panel { background: rgba(255,255,255,.84) !important; }
.dashboard-grid, .ops-grid, .metric-grid { gap: 16px !important; }
.metric-grid article { border-radius: 16px !important; background: rgba(255,255,255,.88) !important; }
.timeline article, .action-list article { border-color: var(--mm-line) !important; border-radius: 13px !important; }
.job-photo-picker, .job-contact-create { border-radius: 15px !important; }
.mm-profile-nav { border: 1px solid var(--mm-line); background: rgba(255,255,255,.80); box-shadow: var(--mm-shadow-soft); border-radius: 15px; backdrop-filter: blur(14px); }
.mm-profile-nav a, .mm-profile-nav button { border-radius: 10px !important; }
.legal-wrap { background: rgba(255,255,255,.93) !important; max-width: 980px; margin-inline: auto; padding: clamp(24px,4vw,54px) !important; }
.legal-wrap h1 { font-size: clamp(2rem,4vw,3.35rem); margin-bottom: 16px; }
.legal-wrap h2 { margin-top: 34px; padding-top: 8px; font-size: clamp(1.2rem,2vw,1.55rem); }
.legal-wrap h3 { margin-top: 24px; }
.legal-wrap p, .legal-wrap li { line-height: 1.72; }
.legal-meta, .legal-note { border-radius: 13px !important; border: 1px solid var(--mm-line) !important; background: rgba(21,115,71,.045) !important; }
.contact-card { background: rgba(255,255,255,.76) !important; padding: 18px !important; }
.legal-nav { gap: 10px !important; flex-wrap: wrap; }
.legal-nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; }
.r7-shell { background: linear-gradient(180deg,#f7fbf8,#edf5f1) !important; }
.r7-control { gap: 16px !important; }
.r7-nav, .r7-topbar, .r7-main > .message, #viewContent > * { border-color: var(--mm-line) !important; }
.r7-nav { border-radius: 18px !important; box-shadow: var(--mm-shadow-soft); }
.r7-topbar { border-radius: 16px !important; background: rgba(255,255,255,.88) !important; backdrop-filter: blur(14px); }
.r7-search input { min-height: 44px; }
@media (max-width: 900px) {
  .topbar { padding: 10px 12px !important; }
  .hero-copy h1 { font-size: clamp(2.2rem,10vw,4rem); max-width: 15ch; }
  .hero-search { display: flex !important; align-items: center; gap: 8px; width: 100% !important; }
  .hero-search .search-symbol,
  .hero-search .search-symbol svg { width: 20px !important; height: 20px !important; max-width: 20px !important; flex: 0 0 20px !important; }
  .hero-search input { flex: 1 1 auto; min-width: 0 !important; width: auto !important; }
  .hero-search button { grid-column: auto !important; width: auto !important; flex: 0 0 auto; }
  .filter-row { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-pill { width: 100%; justify-content: center; }
  .flow-steps { grid-template-columns: 1fr !important; }
  .app-layout, .company-wrap { padding-inline: 12px !important; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .registration-card, .search-panel, .legal-wrap { padding: 22px !important; }
}
@media (max-width: 560px) {
  .filter-row, .metric-grid { grid-template-columns: 1fr !important; }
  .hero-search { border-radius: 15px !important; }
  .category-row { overflow: visible !important; }
  .registration-actions { display: grid !important; grid-template-columns: 1fr; }
  .registration-actions > * { width: 100%; }
  .app-header-actions .system-pill { display: none; }
  .legal-wrap { border-radius: 14px !important; padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .top-tab::before, .side-link::before, .r4-side-link::before {
    animation: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (prefers-contrast: more) {
  :root { --mm-line: rgba(10,45,31,.34); }
  .glass, .panel, .dashboard-card, .registration-card, .search-panel, .legal-wrap { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
