#root .gr-entrepreneur-page {
  --entrepreneur-navy: #152755;
  --entrepreneur-paper: #fff;
  --entrepreneur-ink: #20252c;
  --entrepreneur-muted: #626a77;
  --entrepreneur-divider: #e9ebef;
  --entrepreneur-gutter: clamp(11px, 2.8vw, 14px);
  --entrepreneur-card-inset: clamp(15px, 4vw, 18px);
  --entrepreneur-action-height: calc(76px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
  background: #f4f5fa;
  color: var(--entrepreneur-ink);
}

.gr-entrepreneur-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  min-height: calc(48px + env(safe-area-inset-top, 0px));
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) 0 0;
  background: var(--entrepreneur-navy);
  color: #fff;
}

.gr-entrepreneur-header h1 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.0625rem, 4.55vw, 1.25rem);
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.gr-entrepreneur-back {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: 1;
  grid-column: 1;
  place-items: center;
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.gr-entrepreneur-back svg {
  width: 20px;
  height: 20px;
}

.gr-entrepreneur-back:not(:has(svg))::before,
.gr-entrepreneur-back:not(:has(svg))::after {
  position: absolute;
  top: 50%;
  left: 14px;
  content: "";
}

.gr-entrepreneur-back:not(:has(svg))::before {
  width: 10px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.gr-entrepreneur-back:not(:has(svg))::after {
  left: 15px;
  width: 15px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.gr-entrepreneur-card {
  min-width: 0;
  margin: 11px var(--entrepreneur-gutter) 12px;
  padding: var(--entrepreneur-card-inset);
  border-radius: 12px;
  background: var(--entrepreneur-paper);
}

.gr-entrepreneur-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 0 14px;
  text-align: center;
}

.gr-entrepreneur-avatar {
  display: grid;
  width: clamp(68px, 18.6vw, 80px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #dce8f9;
  color: var(--entrepreneur-navy);
  font-size: 1.625rem;
  font-weight: 600;
}

.gr-entrepreneur-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gr-entrepreneur-avatar[data-editorial-portrait] img {
  transform: scale(1.45);
  transform-origin: 53% 24%;
}

.gr-entrepreneur-name {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 8px;
  margin-top: 1px;
}

.gr-entrepreneur-name h2,
h2.gr-entrepreneur-name {
  margin: 0;
  color: #1c2028;
  font-size: clamp(1.1875rem, 5vw, 1.4375rem);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gr-entrepreneur-role {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f6eddb;
  color: #74541c;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.gr-entrepreneur-role svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.gr-entrepreneur-role:not(:has(svg))::before {
  display: grid;
  width: 10px;
  height: 10px;
  flex: none;
  place-items: center;
  background: #a67b2b;
  color: #fff;
  font-size: 8px;
  line-height: 1;
  content: "✓";
  clip-path: polygon(50% 0%, 64% 13%, 84% 13%, 88% 34%, 100% 50%, 88% 66%, 84% 87%, 64% 87%, 50% 100%, 35% 87%, 16% 87%, 12% 66%, 0% 50%, 12% 34%, 16% 13%, 35% 13%);
}

.gr-entrepreneur-title,
.gr-entrepreneur-company {
  max-width: 100%;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gr-entrepreneur-title { color: var(--entrepreneur-muted); }
.gr-entrepreneur-company { color: #2862b3; }

a.gr-entrepreneur-company {
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

a.gr-entrepreneur-company:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
}

.gr-entrepreneur-info {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--entrepreneur-divider);
}

.gr-entrepreneur-info h3 {
  margin: 0 0 5px;
  color: #20252c;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.4;
}

.gr-entrepreneur-info p {
  margin: 0;
  color: #373e49;
  font-size: 0.875rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.gr-entrepreneur-note {
  margin: 14px 0 0;
  color: var(--entrepreneur-muted);
  font-size: 0.75rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.gr-entrepreneur-actions {
  position: sticky;
  z-index: 6;
  bottom: 0;
  display: grid;
  width: 100%;
  min-height: var(--entrepreneur-action-height);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(5rem, calc((100% - 11px) / 2))), 1fr));
  align-content: end;
  gap: 8px 11px;
  margin-top: auto;
  padding: 14px clamp(14px, 4vw, 18px) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--entrepreneur-divider);
  background: var(--entrepreneur-paper);
}

.gr-entrepreneur-actions > :is(button, a) {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid var(--entrepreneur-divider);
  border-radius: 999px;
  background: var(--entrepreneur-paper);
  color: var(--entrepreneur-navy);
  font: inherit;
  font-size: clamp(0.875rem, 4vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-entrepreneur-actions > :is(button, a) + :is(button, a),
.gr-entrepreneur-actions > :is(button, a)[data-variant="primary"] {
  border-color: var(--entrepreneur-navy);
  background: var(--entrepreneur-navy);
  color: #fff;
}

.gr-entrepreneur-actions > :is(button, a) svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.gr-entrepreneur-actions > button[aria-pressed] svg { color: #626a77; }
.gr-entrepreneur-actions > button[aria-pressed="true"] svg { color: #966a21; }

.gr-entrepreneur-actions > button:disabled {
  opacity: .55;
  cursor: default;
}

#root .gr-entrepreneur-back:focus-visible,
#root .gr-entrepreneur-actions > :is(button, a) + :is(button, a):focus-visible,
#root .gr-entrepreneur-actions > [data-variant="primary"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.gr-entrepreneur-feedback,
.gr-entrepreneur-empty {
  margin: 0;
  color: var(--entrepreneur-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.gr-entrepreneur-feedback { grid-column: 1 / -1; }
.gr-entrepreneur-empty { padding: 30px var(--entrepreneur-card-inset); }

@media (max-height: 400px) {
  .gr-entrepreneur-header,
  .gr-entrepreneur-actions { position: static; }
}
