:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --surface-soft: #f1f4f0;
  --surface-tint: #eef6f2;
  --ink: #121614;
  --muted: #68736f;
  --line: #dfe6e1;
  --green: #08745c;
  --blue: #285dd8;
  --amber: #b87918;
  --coral: #d95f49;
  --shadow: 0 18px 45px rgba(18, 22, 20, 0.06);
  --shadow-soft: 0 8px 24px rgba(18, 22, 20, 0.04);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

:focus-visible {
  outline: 3px solid rgba(40, 93, 216, 0.24);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 560px) auto;
  align-items: center;
  gap: 18px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(223, 230, 225, 0.48);
  background: rgba(251, 251, 248, 0.82);
  backdrop-filter: blur(18px);
}

body.is-focused-flow .topbar {
  display: none;
}

.brand,
.my-profile-button,
.topbar__actions,
.global-search,
.browse-controls,
.audience-switch,
.auth-switch,
.list-intro,
.chip-group,
.toggle,
.list-heading,
.profile-row__button,
.profile-row__signals,
.profile-meta-grid,
.detail-stat,
.asset-line,
.side-list__header,
.compact-row,
.back-button,
.profile-actions,
.form-actions,
.swatches,
.checkbox-field {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 820;
}

.my-profile-button {
  min-width: 0;
  max-width: 230px;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 820;
}

.my-profile-button:hover {
  box-shadow: 0 10px 22px rgba(18, 22, 20, 0.08);
}

.my-profile-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-profile-button__avatar {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  font-size: 0.72rem;
}

.brand__mark,
.avatar,
.upload-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 10px 20px rgba(8, 116, 92, 0.18);
}

.brand__mark--image {
  display: block;
  object-fit: cover;
  background: transparent;
}

.global-search {
  gap: 10px;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(247, 248, 246, 0.82);
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.button,
.back-button {
  border: 0;
  font-weight: 850;
}

.button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--dark {
  color: #fff;
  background: #151917;
  box-shadow: 0 12px 24px rgba(18, 22, 20, 0.16);
}

.button--light {
  color: var(--ink);
  background: var(--surface-soft);
}

.button--engineer {
  color: #173f8f;
  background: #eaf1ff;
}

.button--danger {
  border: 1px solid rgba(190, 24, 93, 0.22);
  color: #be185d;
  background: #fff1f5;
}

.button--danger:hover {
  background: #ffe4ec;
}

.topbar__actions {
  justify-content: flex-end;
  gap: 10px;
}

.engineer-dialog {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(18, 22, 20, 0.22);
}

.engineer-dialog::backdrop {
  background: rgba(18, 22, 20, 0.28);
  backdrop-filter: blur(4px);
}

.system-dialog {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(18, 22, 20, 0.18);
}

.system-dialog::backdrop {
  background: rgba(18, 22, 20, 0.16);
  backdrop-filter: blur(3px);
}

.system-dialog__body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.system-dialog__body::before {
  content: "";
  width: 46px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.system-dialog[data-tone="success"] .system-dialog__body::before {
  background: var(--green);
}

.system-dialog[data-tone="error"] .system-dialog__body::before,
.system-dialog[data-tone="danger"] .system-dialog__body::before {
  background: #be185d;
}

.system-dialog h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1;
}

.system-dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.system-dialog .form-actions {
  margin-top: 8px;
}

.engineer-form {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.engineer-form__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.engineer-form__header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.98;
}

.engineer-form__header p:not(.eyebrow) {
  max-width: 500px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.engineer-form__close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-soft);
}

.engineer-form label {
  display: grid;
  gap: 8px;
}

.engineer-form label > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.engineer-form input,
.engineer-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.engineer-form textarea {
  resize: vertical;
}

.engineer-form input:focus,
.engineer-form textarea:focus {
  border-color: rgba(40, 93, 216, 0.42);
  box-shadow: 0 0 0 4px rgba(40, 93, 216, 0.1);
}

.page {
  width: min(1120px, calc(100% - 36px));
  margin: 28px auto 64px;
}

.browse-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 34px;
  min-height: 246px;
  padding: 16px 0 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.browse-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 780;
}

.browse-hero p:not(.eyebrow) {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.browse-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(8, 116, 92, 0.1);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browse-controls {
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.list-intro {
  align-items: flex-start;
  flex-direction: column;
  max-width: 760px;
  gap: 4px;
  margin: 4px 0 16px;
}

.list-intro h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.list-intro p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.list-intro--formation {
  max-width: 820px;
  padding: 16px 18px;
  border: 1px solid rgba(68, 151, 218, 0.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(237, 247, 255, 0.95), rgba(255, 255, 255, 0.7));
}

.list-intro--formation .eyebrow {
  color: #1d5f9f;
}

.audience-switch {
  gap: 4px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.audience-switch button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.audience-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

.audience-switch button[data-audience="formation"] {
  color: #1d5f9f;
  background: #edf7ff;
  box-shadow: inset 0 0 0 1px rgba(68, 151, 218, 0.28);
}

.audience-switch button[data-audience="formation"][aria-pressed="true"] {
  color: #fff;
  background: #2f80c9;
  box-shadow: 0 10px 22px rgba(47, 128, 201, 0.2);
}

.auth-switch {
  width: fit-content;
  gap: 4px;
  min-height: 40px;
  margin: 0 0 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.auth-switch button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.auth-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

.chip-group {
  flex-wrap: wrap;
  gap: 8px;
}

.chip-group button,
select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}

.chip-group button {
  padding: 0 12px;
  font-weight: 800;
}

.chip-group button:hover,
.chip-group button[aria-pressed="true"] {
  border-color: rgba(8, 116, 92, 0.28);
  color: var(--green);
  background: var(--surface-tint);
}

select {
  padding: 0 12px;
}

.toggle {
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.list-heading {
  justify-content: space-between;
  margin: 18px 0 10px;
}

.list-heading h2,
.side-list h2 {
  margin: 0;
  font-size: 1.05rem;
}

.list-heading span,
.side-list__header span,
.profile-row__meta,
.profile-row__intro,
.profile-page__location,
.profile-page__intro,
.detail-stat span,
.asset-line span,
.compact-row span,
.detail-section p {
  color: var(--muted);
}

.profile-list {
  display: grid;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 10px;
}

.country-group {
  display: grid;
  gap: 10px;
}

.country-group + .country-group {
  margin-top: 18px;
}

.country-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.country-group__header h3 {
  margin: 0;
  font-size: 1rem;
}

.country-group__header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-row {
  border: 1px solid rgba(223, 230, 225, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.profile-row:last-child {
  border-bottom: 1px solid rgba(223, 230, 225, 0.78);
}

.profile-row__button {
  width: 100%;
  min-height: 108px;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border-radius: 18px;
  transition:
    background 140ms ease,
    transform 140ms ease;
}

.profile-row__button:hover,
.profile-row__button.is-active {
  background: #ffffff;
}

.profile-row__button:hover {
  transform: translateX(2px);
}

.avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
}

.avatar img,
.upload-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-row__main {
  display: grid;
  min-width: 0;
  gap: 5px;
  flex: 1;
}

.profile-row__name {
  font-size: 1.08rem;
  font-weight: 780;
}

.profile-row__meta,
.profile-row__intro {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row__signals {
  display: none;
}

.signal {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  color: #404944;
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.signal--green {
  color: var(--green);
  background: #e6f5ee;
}

.signal--blue {
  color: var(--blue);
  background: #e9efff;
}

.profile-row__arrow {
  color: #a7afaa;
}

.browse-view.is-hidden,
.detail-view.is-hidden,
.auth-view.is-hidden,
.create-view.is-hidden {
  display: none;
}

.back-button {
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.back-button:hover {
  color: var(--ink);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}

.profile-page,
.side-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.profile-page {
  overflow: hidden;
}

.profile-cover {
  min-height: 178px;
  background:
    linear-gradient(135deg, rgba(8, 116, 92, 0.88), rgba(40, 93, 216, 0.62)),
    url("assets/network-illustration.png") center/cover;
}

.profile-page__body {
  padding: 0 28px 30px;
}

.profile-page__header {
  display: grid;
  gap: 10px;
  margin-top: -42px;
}

.profile-page .avatar {
  width: 84px;
  height: 84px;
  border: 5px solid #fff;
  border-radius: 22px;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(18, 22, 20, 0.1);
}

.profile-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 780;
}

.profile-page__intro {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.profile-actions {
  gap: 10px;
  margin: 22px 0;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

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

.detail-stat {
  align-items: flex-start;
  flex-direction: column;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8faf7;
}

.detail-stat strong {
  margin-top: auto;
  font-size: 1.06rem;
}

.detail-section {
  margin-top: 30px;
}

.detail-section p {
  margin: 12px 0 0;
  line-height: 1.6;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.asset-line {
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.asset-line strong {
  text-align: right;
}

.side-list {
  position: sticky;
  top: 86px;
  overflow: hidden;
}

.side-list__header {
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.compact-row {
  width: 100%;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-align: left;
  background: transparent;
}

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

.compact-row:hover,
.compact-row.is-active {
  background: #f9fbf8;
}

.compact-row .avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  font-size: 0.82rem;
}

.compact-row__text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.compact-row strong,
.compact-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-row strong {
  font-size: 0.92rem;
}

.compact-row span {
  font-size: 0.82rem;
}

.create-layout,
.auth-layout {
  display: block;
  width: min(780px, 100%);
  margin: 0 auto;
}

.auth-layout {
  width: min(760px, 100%);
}

.profile-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.form-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.form-heading .back-button {
  margin-bottom: 24px;
}

.form-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 780;
}

.form-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.form-section h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

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

.profile-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wide-field {
  margin-top: 14px;
}

.profile-form label > span,
.checkbox-field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form input[type="url"],
.profile-form input[type="number"],
.profile-form input[type="file"],
.profile-form textarea,
.profile-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form input[type="url"],
.profile-form input[type="number"],
.profile-form input[type="file"],
.profile-form textarea {
  padding: 11px 12px;
}

.profile-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
  border-color: rgba(8, 116, 92, 0.42);
  box-shadow: 0 0 0 4px rgba(8, 116, 92, 0.1);
}

.checkbox-field {
  justify-content: flex-start;
  align-self: end;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.checkbox-field--formation {
  border-color: rgba(68, 151, 218, 0.28);
  background: #edf7ff;
}

.checkbox-field--formation span {
  color: #1d5f9f;
}

.checkbox-field--formation input {
  accent-color: #2f80c9;
}

.checkbox-field--formation:has(input:checked) {
  border-color: rgba(47, 128, 201, 0.52);
  box-shadow: 0 10px 22px rgba(47, 128, 201, 0.14);
}

.upload-field {
  margin-bottom: 16px;
}

.upload-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-control {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed #c8d4cb;
  border-radius: 18px;
  background: #f8faf7;
}

.upload-control strong,
.upload-control small {
  display: block;
}

.upload-control small {
  margin-top: 3px;
  color: var(--muted);
}

.upload-avatar {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--green);
}

.upload-remove {
  margin-top: 10px;
}

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

.profile-color-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.swatches {
  flex-wrap: wrap;
  gap: 10px;
  max-width: 430px;
}

.swatches label {
  display: block;
}

.swatches input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatches span {
  display: block;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  transition:
    box-shadow 140ms ease,
    transform 140ms ease;
}

.swatches input:checked + span {
  box-shadow: 0 0 0 3px rgba(8, 116, 92, 0.24);
}

.swatches label:hover span {
  transform: translateY(-1px);
}

.custom-color-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.custom-color-picker input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-color-picker input[type="color"] {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.custom-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.custom-color-picker input[type="color"]::-webkit-color-swatch {
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.custom-color-picker input[type="color"]::-moz-color-swatch {
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.custom-color-picker:has(input[type="radio"]:checked) {
  border-color: rgba(47, 128, 201, 0.52);
  box-shadow: 0 0 0 3px rgba(47, 128, 201, 0.16);
}

.form-actions {
  justify-content: flex-end;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-inline-action {
  margin-top: 14px;
}

.verification-confirm {
  margin-top: 16px;
}

.submission-confirmation {
  padding: 34px;
}

.submission-confirmation h1 {
  max-width: 640px;
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 780;
}

.submission-confirmation p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.verification-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.verification-steps div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8faf7;
}

.verification-steps strong,
.verification-steps span {
  display: block;
}

.verification-steps strong {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  text-align: center;
  line-height: 28px;
}

.verification-steps span {
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state--rich {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 116, 92, 0.06), rgba(47, 128, 201, 0.08)),
    #fff;
}

.empty-state--rich h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.empty-state--rich p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.empty-state--formation {
  border-color: rgba(68, 151, 218, 0.26);
  background:
    linear-gradient(135deg, rgba(237, 247, 255, 0.95), rgba(239, 248, 244, 0.78)),
    #fff;
}

.empty-state--formation .eyebrow {
  color: #1d5f9f;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.empty-state--compact {
  display: grid;
  gap: 6px;
  padding: 18px;
  text-align: left;
}

.empty-state--compact strong {
  color: var(--ink);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 24px;
  margin-top: 42px;
  padding: 28px 0 10px;
  border-top: 1px solid var(--line);
}

.trust-section h2 {
  max-width: 520px;
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1;
}

.trust-section p {
  color: var(--muted);
  line-height: 1.65;
}

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

.trust-grid article {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.trust-grid h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a,
.site-footer button,
.legal-nav a {
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 820;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer button:hover,
.legal-nav a:hover {
  color: var(--green);
}

.topbar--simple {
  grid-template-columns: auto auto;
  justify-content: space-between;
}

.legal-nav {
  display: flex;
  gap: 14px;
}

.legal-nav a[aria-current="page"] {
  color: var(--green);
}

.legal-page {
  width: min(920px, calc(100% - 36px));
}

.legal-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(18, 22, 20, 0.06);
}

.legal-card h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
}

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

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.72;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-updated {
  margin: 0 0 18px;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid rgba(47, 128, 201, 0.2);
  border-radius: 14px;
  background: #eef5ff;
}

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

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .browse-hero,
  .detail-layout,
  .create-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .browse-hero img {
    max-height: 260px;
  }

  .profile-row__signals {
    width: auto;
  }

  .side-list {
    position: static;
  }

  .trust-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto 1fr;
    padding-inline: 12px;
  }

  .topbar__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 8px;
  }

  .topbar__actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
  }

  .my-profile-button {
    justify-self: start;
    max-width: none;
    padding: 5px;
  }

  .my-profile-button span:last-child {
    display: none;
  }

  .button--engineer {
    max-width: none;
    white-space: normal;
  }

  .page {
    width: min(100% - 24px, 1180px);
    margin-top: 14px;
  }

  .browse-hero {
    padding: 20px;
  }

  .browse-hero h1 {
    font-size: 2.4rem;
  }

  .profile-row__button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-row__signals {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

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

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

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

  .profile-form {
    padding: 18px;
  }
}
