.function-hero {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(8px, 2.5vw, 16px);
  max-width: none;
  margin: 0;
  padding: 10px 0 24px;
}
.function-hero-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-border-strong);
  border-radius: 18px;
  background: var(--color-primary-soft);
  color: var(--accent2);
}
.function-hero-icon .ic {
  width: 30px;
  height: 30px;
}
.function-back {
  margin-top: 6px;
}
.function-hero-copy h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.function-hero-copy > p {
  max-width: 60ch;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.function-hero-action {
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 12px;
  white-space: normal;
  line-height: 1.3;
}
.function-hero-action .ic {
  flex-shrink: 0;
}

.function-panel {
  min-width: 0;
  padding: clamp(12px, 2.5vw, 20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--color-surface-elevated);
}
.function-panel .chips {
  margin-inline: 0;
  padding-inline: 2px;
}
.function-panel > .segmented,
.curr-selector-wrap.function-panel > .section-head {
  margin-top: 0;
}
#gpa-calc-view {
  margin-top: 14px;
}
.tools--tests .function-hero {
  max-width: 900px;
  margin-inline: auto;
}
.tools--tests .wp-card {
  border-radius: var(--r-lg);
  background: var(--color-surface-elevated);
}
.tools--tests .wp-tabs button {
  background: var(--color-surface-elevated);
}
.tools--tests .wp-tabs [aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--color-primary-soft);
  box-shadow: none;
}
.pomodoro-card.function-panel {
  box-shadow: none;
}

@media (max-width: 639px) {
  .function-hero {
    padding-bottom: 20px;
  }
  .function-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .function-hero-icon .ic {
    width: 25px;
    height: 25px;
  }
  .function-back {
    margin-top: 0;
  }
}
