.figma-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body:has(.figma-page) > .page > .navbar,
body:has(.figma-page) .ribele-app-footer {
  display: none !important;
}

body:has(.figma-page) .page-body {
  padding: 0;
}

body:has(.figma-page) .page-body > .container-xl {
  max-width: none;
  padding: 0;
}

.figma-nav {
  width: calc(100vw - 48px);
  max-width: 1450px;
  box-sizing: border-box;
  height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.figma-logo img {
  width: 136px;
  height: auto;
  display: block;
}

.figma-search {
  position: absolute;
  left: 50%;
  top: 33px;
  transform: translateX(-50%);
  width: 588px;
  max-width: calc(100vw - 560px);
  height: 50px;
  border: 1px solid #dedde6;
  border-radius: 999px;
  display: none !important;
  align-items: center;
  padding: 0 20px 0 46px;
  color: #7f7b8b;
  font-size: 14px;
  line-height: 18px;
  background: #fff;
}

.figma-search::before {
  content: "";
  position: absolute;
  left: 22px;
  width: 14px;
  height: 14px;
  border: 2px solid #111;
  border-radius: 50%;
  opacity: .72;
}

.figma-search::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 29px;
  width: 6px;
  height: 2px;
  background: #111;
  transform: rotate(45deg);
  transform-origin: left center;
  opacity: .72;
}

.figma-header-tools {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  flex: 0 0 auto;
  position: absolute;
  right: 0;
  top: 30px;
  transform: none;
  z-index: 20;
}

.figma-creator-link {
  width: 210px;
  height: 50px;
  border: 1.5px solid #111;
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.figma-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #efecff;
  color: #513bfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  box-shadow: 0 0 0 1px #dedde6;
}

.figma-nav:not(.figma-nav-home) .figma-creator-link {
  display: none !important;
}

.figma-avatar-button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  cursor: pointer;
}

.figma-account-button {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Geologica", system-ui, sans-serif;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}

.figma-account-button:hover,
.figma-account-button:focus {
  background: #fff;
  color: #111;
}

.figma-account-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: #efecff;
  box-shadow: inset 0 0 0 1px #dedde6;
}

.figma-account-avatar {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
}

.figma-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  z-index: 1;
}

.figma-avatar-fallback {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.figma-main {
  width: min(1246px, calc(100vw - 48px));
  margin: 0 auto;
  flex: 1 0 auto;
}

.figma-narrow {
  width: min(820px, calc(100vw - 48px));
}

.figma-title {
  font-size: 26px;
  line-height: 32px;
  font-weight: 500;
  margin: 0;
}

.figma-kicker {
  font-size: 9px;
  line-height: 12px;
  text-transform: uppercase;
  color: #211f2b;
  font-weight: 600;
  margin-bottom: 5px;
}

.figma-subtitle {
  font-size: 13px;
  line-height: 18px;
  color: #211f2b;
  margin: 7px 0 0;
}

.figma-alert {
  min-height: 30px;
  padding: 8px 36px 8px 14px;
  background: #efecff;
  color: #211f2b;
  font-size: 10px;
  line-height: 14px;
  position: relative;
}

.figma-alert::after {
  content: "x";
  position: absolute;
  right: 14px;
  top: 7px;
  color: #211f2b;
  font-size: 13px;
}

.figma-form label,
.figma-label {
  display: block;
  color: #111;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.figma-form .form-control,
.figma-form .form-select,
.figma-input {
  border: 1px solid #d8d6df;
  border-radius: 0;
  min-height: 38px;
  padding: 8px 12px;
  box-shadow: none;
  font-size: 11px;
  line-height: 16px;
  color: #211f2b;
}

.figma-form textarea.form-control {
  min-height: 150px;
}

.figma-hint {
  color: #8b8795;
  font-size: 9px;
  line-height: 13px;
  margin-top: 7px;
}

.figma-btn {
  min-width: 150px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: #513bfe;
  color: #fff;
  font-size: 11px;
  line-height: 14px;
  text-decoration: none;
  font-weight: 600;
}

.figma-btn:hover,
.figma-btn:focus {
  background: #513bfe;
  color: #fff;
}

.figma-btn-light {
  background: #f5f4f8;
  color: #111;
}

.figma-btn-light:hover,
.figma-btn-light:focus {
  background: #eceaf2;
  color: #111;
}

.figma-footer {
  background: #101010;
  color: #fff;
  flex: 0 0 auto;
  margin-top: 0;
}

.figma-footer-inner {
  width: min(1090px, calc(100vw - 48px));
  min-height: 152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px 130px 145px 145px 1fr;
  gap: 34px;
  align-items: start;
  padding: 42px 0 34px;
}

.figma-footer-mark img {
  width: 111px;
  height: auto;
}

.figma-footer-title {
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  margin-bottom: 11px;
}

.figma-footer a,
.figma-footer span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  line-height: 15px;
  text-decoration: none;
}

.figma-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.figma-footer-social a {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: .88;
}

.figma-footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.figma-footer-social svg[stroke] {
  fill: none;
  stroke: currentColor;
}

.figma-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.figma-footer-bottom-inner {
  width: min(1090px, calc(100vw - 48px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

@media (max-width: 900px) {
  .figma-search,
  .figma-creator-link {
    display: none;
  }

  .figma-nav {
    height: 82px;
  }

  .figma-footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 36px 0 28px;
  }

  .figma-footer-social {
    justify-content: flex-start;
  }

  .figma-footer-bottom-inner {
    flex-wrap: wrap;
    padding: 18px 0;
  }
}
