#root .gr-demand-publish-reference {
  --publish-width: min(100%, var(--gr-pro-shell-width, 430px));
  --publish-red: var(--mine-service-red, #d6000f);
  --publish-ink: #222;
  --publish-muted: #666;
  --publish-placeholder: #737373;
  --publish-divider: #f0f0f0;
  --publish-input-bg: #f7f8fa;
  --publish-option-bg: #f5f5f5;
  --publish-field-padding: 16px;
  background: #fff;
  color: var(--publish-ink);
}

#root .gr-demand-publish-reference > .gr-mine-service-header h1 {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@media (max-width: 360px) {
  #root .gr-demand-publish-reference > .gr-mine-service-header {
    padding-inline: 4px;
  }
}

.gr-demand-publish-reference .gr-demand-publish-form {
  margin: 0;
}

.gr-demand-publish-reference .gr-demand-publish-field {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: var(--publish-field-padding);
  border: 0;
  border-bottom: 1px solid var(--publish-divider);
}

.gr-demand-publish-reference .gr-demand-publish-field:last-of-type {
  border-bottom-color: transparent;
}

.gr-demand-publish-reference .gr-demand-publish-label {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--publish-ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5rem;
  overflow-wrap: anywhere;
}

.gr-demand-publish-reference legend.gr-demand-publish-label {
  float: left;
}

.gr-demand-publish-reference .gr-demand-publish-required {
  margin-inline-end: 4px;
  color: var(--publish-red);
}

.gr-demand-publish-reference .gr-demand-publish-hint {
  margin-inline-start: 4px;
  color: var(--publish-muted);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.125rem;
}

.gr-demand-publish-reference .gr-demand-publish-options {
  display: flex;
  clear: both;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 10px;
}

.gr-demand-publish-reference .gr-demand-publish-options[data-layout="pair"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gr-demand-publish-reference .gr-demand-publish-option {
  position: relative;
  display: inline-flex;
  min-width: min(76px, 100%);
  min-height: 44px;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: var(--publish-option-bg);
  color: var(--publish-ink);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-option > input,
.gr-demand-publish-reference .gr-demand-publish-file > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gr-demand-publish-reference .gr-demand-publish-option:has(input:checked),
.gr-demand-publish-reference .gr-demand-publish-option[aria-pressed="true"] {
  background: var(--publish-red);
  color: #fff;
}

.gr-demand-publish-reference .gr-demand-publish-option[data-locked] {
  color: var(--publish-placeholder);
}

.gr-demand-publish-reference .gr-demand-publish-lock-badge {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f8ecd6;
  color: #816032;
  font-size: 0.625rem;
  line-height: 1.5;
}

.gr-demand-publish-reference :is(.gr-demand-publish-option, .gr-demand-publish-file):has(input:focus-visible) {
  outline: 2px solid var(--publish-red);
  outline-offset: 2px;
}

.gr-demand-publish-reference .gr-demand-publish-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: max(160px, 7.5em);
  margin: 10px 0 0;
  padding: 14px 12px;
  resize: none;
  border: 0;
  border-radius: 0;
  background: var(--publish-input-bg);
  color: var(--publish-ink);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.3125rem;
}

.gr-demand-publish-reference .gr-demand-publish-input[data-field="title"] {
  height: max(79px, 4.5em);
}

.gr-demand-publish-reference .gr-demand-publish-input::placeholder {
  color: var(--publish-placeholder);
}

.gr-demand-publish-reference .gr-demand-publish-field:has(.gr-demand-publish-count) .gr-demand-publish-input {
  padding-bottom: calc(7px + 1.125rem);
}

.gr-demand-publish-reference .gr-demand-publish-count {
  position: absolute;
  right: calc(var(--publish-field-padding) + 12px);
  bottom: calc(var(--publish-field-padding) + 7px);
  color: var(--publish-muted);
  font-size: 0.8125rem;
  line-height: 1.125rem;
  pointer-events: none;
}

.gr-demand-publish-reference .gr-demand-publish-select {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1px;
  padding: 8px 2px 0 0;
  border: 0;
  background: transparent;
  color: var(--publish-ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5rem;
  text-align: start;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-select[data-placeholder]:not([data-placeholder="false"]) {
  color: var(--publish-placeholder);
}

.gr-demand-publish-reference .gr-demand-publish-select > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gr-demand-publish-reference .gr-demand-publish-select::after {
  flex: 0 0 8px;
  height: 8px;
  margin-inline-end: 4px;
  border-top: 1.5px solid #929292;
  border-right: 1.5px solid #929292;
  content: "";
  transform: rotate(45deg);
}

.gr-demand-publish-reference .gr-demand-publish-uploads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.gr-demand-publish-reference :is(.gr-demand-publish-file, .gr-demand-publish-file-preview) {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--publish-input-bg);
}

.gr-demand-publish-reference .gr-demand-publish-file {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-file[aria-busy="true"] {
  opacity: .65;
  cursor: progress;
}

.gr-demand-publish-reference .gr-demand-publish-file-icon {
  position: relative;
  width: 32px;
  height: 32px;
}

.gr-demand-publish-reference .gr-demand-publish-file-icon::before,
.gr-demand-publish-reference .gr-demand-publish-file-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 31px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.gr-demand-publish-reference .gr-demand-publish-file-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.gr-demand-publish-reference .gr-demand-publish-file-preview > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gr-demand-publish-reference .gr-demand-publish-file-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 64%);
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-message {
  margin: 4px var(--publish-field-padding) 12px;
  color: var(--publish-red);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gr-demand-publish-reference .gr-demand-publish-footer {
  position: sticky;
  z-index: 6;
  inset-block-end: 0;
  display: grid;
  width: var(--publish-width);
  margin-inline: auto;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--publish-divider);
  background: #fff;
}

.gr-demand-publish-reference .gr-demand-publish-submit {
  min-width: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--publish-red);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.375rem;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-submit:disabled {
  opacity: .65;
  cursor: default;
}

#root .gr-demand-publish-reference .gr-demand-publish-submit:focus-visible {
  outline-color: #fff;
  outline-offset: -4px;
}

.gr-demand-publish-reference .gr-demand-publish-dialog {
  position: fixed;
  inset: auto 0 0;
  width: var(--publish-width);
  max-width: 100%;
  max-height: min(72dvh, 550px);
  margin: 0 auto;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  color: var(--publish-ink);
}

.gr-demand-publish-reference .gr-demand-publish-dialog::backdrop {
  background: rgb(0 0 0 / 48%);
}

.gr-demand-publish-reference .gr-demand-publish-dialog h2 {
  margin: 0;
  padding: 16px 0 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-align: center;
}

.gr-demand-publish-reference .gr-demand-publish-dialog-options {
  display: grid;
  max-height: min(43dvh, 320px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.gr-demand-publish-reference .gr-demand-publish-dialog-options button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--publish-divider);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-dialog-options :is([aria-pressed="true"], [aria-selected="true"]) {
  color: var(--publish-red);
  font-weight: 500;
}

.gr-demand-publish-reference .gr-demand-publish-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 0;
}

.gr-demand-publish-reference .gr-demand-publish-dialog-actions :is(button, a) {
  display: flex;
  min-width: 80px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--publish-ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-dialog-actions :is(button, a):last-child {
  background: var(--publish-red);
  color: #fff;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="message"] {
  inset: 0;
  width: min(calc(100% - 48px), 300px);
  max-height: min(72dvh, 420px);
  margin: auto;
  padding: 0 18px 18px;
  border-radius: 12px;
  text-align: center;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="message"] p {
  margin: 6px 0 10px;
  color: var(--publish-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="city"] {
  inset: 0;
  width: var(--publish-width);
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  overflow: hidden;
  border-radius: 0;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="city"][open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="city"]::backdrop {
  background: #fff;
}

.gr-demand-publish-reference .gr-demand-publish-city-header {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  background: #fff;
}

.gr-demand-publish-reference .gr-demand-publish-city-header h2 {
  margin: 0;
  padding: 10px 44px;
  color: #111;
  font-weight: 600;
}

.gr-demand-publish-reference .gr-demand-publish-city-header button {
  position: absolute;
  inset: 0 auto 0 4px;
  display: grid;
  width: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-city-header button::before {
  width: 8px;
  height: 8px;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
  content: "";
  transform: rotate(45deg);
}

.gr-demand-publish-reference .gr-demand-publish-city-section {
  padding: 16px 29px 0 var(--publish-field-padding);
}

.gr-demand-publish-reference .gr-demand-publish-city-section h3 {
  margin: 0 0 14px;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375rem;
}

.gr-demand-publish-reference .gr-demand-publish-city-section > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.gr-demand-publish-reference .gr-demand-publish-city-section button {
  min-height: 44px;
  padding: 3px 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--publish-input-bg);
  color: #222;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-city-section button[aria-pressed="true"] {
  border-color: var(--publish-red);
  background: #fff;
  color: var(--publish-red);
}

.gr-demand-publish-reference .gr-demand-publish-city-section[data-section="location"] button {
  font-size: clamp(13px, 4.2vw, 15px);
}

.gr-demand-publish-reference .gr-demand-publish-city-location-status {
  margin: 8px 0 0;
  color: var(--publish-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.gr-demand-publish-reference .gr-demand-publish-city-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.gr-demand-publish-reference .gr-demand-publish-city-groups {
  margin-top: 9px;
}

.gr-demand-publish-reference .gr-demand-publish-city-group h3 {
  min-height: 38px;
  margin: 0;
  padding: 7px 34px 7px 20px;
  background: var(--publish-input-bg);
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
}

.gr-demand-publish-reference .gr-demand-publish-city-group button {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 9px 36px 9px 20px;
  border: 0;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-city-group button[aria-pressed="true"] {
  color: var(--publish-red);
}

.gr-demand-publish-reference .gr-demand-publish-city-index {
  position: absolute;
  z-index: 1;
  inset-block-start: 38%;
  inset-inline-end: 2px;
  display: flex;
  width: 28px;
  max-height: calc(76% - 96px);
  flex-direction: column;
  align-items: stretch;
  overflow: auto;
  scrollbar-width: none;
  transform: translateY(-50%);
}

.gr-demand-publish-reference .gr-demand-publish-city-index button {
  display: block;
  min-height: max(24px, 1.375em);
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #757575;
  font: inherit;
  font-size: 0.625rem;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-city-index button[aria-current="true"] {
  color: #222;
  font-weight: 500;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"] {
  height: min(64dvh, 580px);
  max-height: 100%;
  padding: 0;
  overflow: hidden;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"][open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"]::backdrop {
  background: rgb(0 0 0 / 72%);
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"] h2 {
  padding: 13px 16px 15px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.gr-demand-publish-reference .gr-demand-publish-industry-levels {
  display: flex;
  gap: 12px;
  padding: 0 24px;
  overflow-x: auto;
  border-bottom: 1px solid #e9e9e9;

}

.gr-demand-publish-reference .gr-demand-publish-industry-levels button {
  position: relative;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 4px 0 7px;
  border: 0;
  background: transparent;
  color: var(--publish-ink);
  font: inherit;
  font-size: 1.0625rem;
  white-space: nowrap;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-industry-levels button[aria-current="true"] {
  color: #b20820;
  font-weight: 500;
}

.gr-demand-publish-reference .gr-demand-publish-industry-levels button[aria-current="true"]::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.gr-demand-publish-reference .gr-demand-publish-industry-options {
  min-height: 0;
  margin: 0 0 10px;
  padding: 8px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: none;
}

.gr-demand-publish-reference .gr-demand-publish-industry-options button {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  border: 0;
  background: #fff;
  color: var(--publish-ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4375rem;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-demand-publish-reference .gr-demand-publish-industry-options :is([aria-pressed="true"], [aria-selected="true"]) {
  color: var(--publish-red);
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"] .gr-demand-publish-dialog-actions {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(14px, 6.7vw, 26px);
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"] .gr-demand-publish-dialog-actions button {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b20820;
  background: #fff;
  color: #b20820;
  font-size: 1rem;
}

.gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"] .gr-demand-publish-dialog-actions button:last-child {
  border-color: var(--publish-red);
  background: var(--publish-red);
  color: #fff;
}

.gr-demand-publish-reference .gr-demand-publish-reminder-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gr-demand-publish-reference .gr-demand-publish-reminder-option input {
  accent-color: var(--publish-red);
}

@media (max-height: 480px) {
  .gr-demand-publish-reference .gr-demand-publish-footer {
    position: static;
  }

  .gr-demand-publish-reference .gr-demand-publish-dialog[data-layout="industry"] {
    height: 94dvh;
  }
}
