:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --border: #e2e8f0;
  --soft: #f1f5f9;
  --soft-2: #eef2f7;
  --primary: #0a66c2;
  --primary-dark: #004182;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-shell {
  padding: 16px 0 32px;
}

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

.developer-toolbar {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(241, 245, 249, 0.92);
  backdrop-filter: blur(8px);
}

.developer-toolbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.developer-toolbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.developer-toolbar__label {
  margin-right: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav {
  position: sticky;
  top: 38px;
  z-index: 190;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup__mark {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-lockup__wordmark {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.panel,
.subpanel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__header {
  padding: 18px 20px 8px;
}

.panel__body {
  padding: 16px 20px 20px;
}

.panel__body--invited {
  padding: 20px;
}

.panel__body--relative {
  position: relative;
}

.panel__title,
.subpanel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.panel__description,
.subpanel__description,
.invited-by__about,
.explanation-box__text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #64748b;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.section-number--dark {
  background: #0f172a;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  display: none;
}

.invited-by {
  display: grid;
  gap: 20px;
  align-items: center;
}

.invited-by__left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.invited-by__content {
  min-width: 0;
}

.invited-by__name {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.invited-by__title {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.professional-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.explanation-box {
  border-radius: var(--radius-md);
  background: var(--soft);
  padding: 16px;
}

.job-intake-panel {
  position: relative;
}

.job-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: rgba(226, 232, 240, 0.72);
  backdrop-filter: blur(8px);
}

.overlay-card {
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
  padding: 24px;
}

.overlay-card--login {
  max-width: 560px;
  text-align: center;
}

.overlay-card__mark {
  width: auto;
  height: 112px;
  object-fit: contain;
}

.overlay-card__wordmark {
  width: auto;
  height: 48px;
  object-fit: contain;
  margin-top: 14px;
}

.overlay-card__description {
  max-width: 460px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.overlay-card__linkedin {
  min-height: 46px;
  margin-top: 22px;
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.subsection-title--compact {
  font-size: 14px;
}

.profile-setup {
  display: grid;
  gap: 16px;
}

.profile-setup__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-setup__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-setup__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.profile-setup__name {
  font-weight: 600;
}

.profile-setup__hint {
  color: var(--muted);
  font-size: 12px;
}

.profile-setup__actions {
  display: flex;
  justify-content: flex-end;
}

.role-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.job-intake-grid {
  display: grid;
  gap: 16px;
}

.subpanel__header {
  padding: 16px 16px 8px;
}

.subpanel__body {
  padding: 12px 16px 16px;
}

.subpanel__body--stack {
  display: grid;
  gap: 12px;
}

.two-button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field,
.field-inline {
  display: grid;
  gap: 8px;
}

.field-inline {
  position: relative;
}

.field__label {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
}

textarea {
  min-height: 180px;
  line-height: 1.55;
  resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.job-fields-grid {
  display: grid;
  gap: 12px;
}

.location-module,
.save-options {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  padding: 16px;
}

.location-grid {
  display: grid;
  gap: 8px;
}

.zip-code-row {
  display: flex;
  justify-content: flex-end;
}

.zip-code-row input {
  max-width: 220px;
}

.field-inline--help input,
.field-inline--help textarea {
  padding-right: 40px;
}

.field-help-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  color: #94a3b8;
  cursor: pointer;
}

.field-help-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.field-help-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  width: 290px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-help-popup--wide {
  width: 320px;
}

.field-help-popup.is-open {
  display: block;
}

.city-lov {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow);
}

.city-lov.is-open {
  display: block;
}

.city-lov__option,
.city-lov__empty {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
}

.city-lov__option {
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

.city-lov__option:hover {
  background: #f8fafc;
}

.city-lov__empty {
  color: var(--muted);
}

.rich-editor {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.rich-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.rich-editor__tool {
  min-height: 32px;
}

.rich-editor__divider {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: #cbd5e1;
}

.rich-editor__content {
  min-height: 220px;
  padding: 14px;
  outline: none;
  line-height: 1.6;
}

.rich-editor__content[contenteditable="false"] {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.segmented-control__item {
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.segmented-control__item.is-active {
  background: #0f172a;
  color: white;
}

.segmented-control__item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.save-mode-region {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
}

.save-mode-panel {
  width: 100%;
}

.save-mode-note {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.submit-row__context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.submit-row__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.submit-row__name {
  color: #1e293b;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #0f172a;
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(0.96);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

.btn--outline {
  border-color: var(--border);
  background: white;
  color: var(--text);
}

.btn--linkedin {
  background: var(--primary);
}

.btn--linkedin:hover {
  background: var(--primary-dark);
}

.btn--sm {
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.btn--grow {
  flex: 1;
}

.icon {
  flex-shrink: 0;
}

.icon--linkedin {
  width: 18px;
  height: 18px;
}

.avatar-menu {
  position: relative;
}

.avatar-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.avatar-menu__image {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  background: #cbd5e1;
}

.avatar-menu__name {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.avatar-menu__chevron {
  color: #64748b;
  font-size: 12px;
}

.avatar-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 180px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.avatar-menu__dropdown.is-open {
  display: block;
}

.avatar-menu__logout {
  width: 100%;
  justify-content: flex-start;
}

.site-footer {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.98) 100%);
  backdrop-filter: blur(10px);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 16px;
}

.site-footer__column {
  min-width: 0;
}

.site-footer__column--center {
  text-align: center;
}

.site-footer__column--right {
  display: flex;
  justify-content: flex-end;
}

.site-footer__branding {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}

.site-footer__brand-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.site-footer__label {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.site-footer__separator {
  color: #94a3b8;
  font-weight: 700;
}

.site-footer__logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__logo--sotful {
  height: 46px;
  margin-top: -10px;
  margin-bottom: -10px;
}

.site-footer__logo--abfs {
  height: 68px;
  margin-top: -14px;
  margin-bottom: -14px;
  margin-left: -6px;
  clip-path: inset(10% 10% 8% 10%);
}

.site-footer__copyright {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer__links a {
  color: inherit;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 900px) {
  .invited-by {
    grid-template-columns: 1.2fr 1fr;
  }

  .job-intake-grid {
    grid-template-columns: 300px 1fr;
  }

  .job-fields-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .title-id-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8px;
  }

  .location-type-arrangement-grid {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 8px;
  }

  .country-city-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8px;
  }

  .profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 899px) {
  .title-id-grid,
  .location-type-arrangement-grid,
  .country-city-grid,
  .profile-grid {
    display: grid;
    gap: 8px;
  }

  .submit-row {
    align-items: stretch;
  }

  .submit-row__context {
    width: 100%;
    justify-content: flex-start;
  }

  .two-button-row {
    flex-direction: column;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__column--right {
    justify-content: center;
  }

  .site-footer__branding {
    justify-content: center;
  }

  .site-footer__logo--sotful {
    height: 40px;
    margin-top: -8px;
    margin-bottom: -8px;
  }

  .site-footer__logo--abfs {
    height: 58px;
    margin-top: -10px;
    margin-bottom: -10px;
  }
}
