/* Capabilities open as proper in-app screens, not short bottom sheets. */
.sheet.function-screen {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 18px max(24px, env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: var(--mint);
  color: var(--ink);
  box-shadow: none;
  scrollbar-width: thin;
}
.sheet.function-screen[open] {
  animation: qaqa-function-enter .31s cubic-bezier(.2,.82,.25,1) both;
}
.sheet.function-screen::backdrop { background: transparent; backdrop-filter: none; }
.function-screen > .sheet-head {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: 75px;
  margin: 0 -18px 23px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 18px 10px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--mint) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-sizing: border-box;
}
.function-screen .sheet-head h2 {
  margin: 0;
  font-size: clamp(17px, 4.4vw, 24px);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.function-screen .sheet-head .eyebrow { margin: 0 0 3px; }
.function-screen .sheet-head > span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  color: var(--muted);
}
.function-screen .sheet-head > button {
  flex: none;
  width: auto;
  min-width: 67px;
  height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 4px 12px #163a2410;
}
.function-screen > :not(.sheet-head) {
  box-sizing: border-box;
  width: min(100%, 680px);
  margin-left: auto;
  margin-right: auto;
}
.function-screen .sheet-form { margin-top: 20px; }
.function-screen .sheet-form .primary-button { min-height: 53px; }
.function-screen .section-caption { line-height: 1.55; }
.function-screen .template-actions { padding-bottom: 12px; }
.function-screen.tool-screen[open] { display: flex; flex-direction: column; }
.tool-screen-hero {
  padding: 8px 0 12px;
}
.tool-screen-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  color: var(--accent);
  box-shadow: 0 14px 27px #153b271b;
}
.tool-screen-icon .semantic-icon { width: 37px; height: 37px; }
.tool-screen-icon .service-logo { width: 46px; height: 46px; object-fit: contain; }
.tool-screen-hero p {
  margin: 23px 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.tool-screen-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 8vw, 45px);
  line-height: 1.09;
  letter-spacing: -.055em;
}
.tool-screen #toolDetails { flex: 1; padding-bottom: 26px; }
.tool-screen .detail-description { color: var(--muted); font-size: 16px; line-height: 1.58; }
.tool-screen .request-example,
.tool-screen .availability-note { border: 1px solid var(--line); background: var(--card); }
.tool-screen .request-example small { color: var(--accent); font-weight: 850; }
.tool-screen-footer {
  position: sticky;
  z-index: 4;
  bottom: 0;
  padding: 14px 0 max(8px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, transparent, var(--mint) 18%, var(--mint));
}
.tool-screen-footer:empty { display: none; }
.tool-screen-footer .primary-button { width: 100%; min-height: 55px; font-size: 15px; }
@keyframes qaqa-function-enter {
  from { transform: translate3d(24px,0,0); }
  to { transform: none; }
}
@media (min-width: 760px) {
  .function-screen > .sheet-head { padding-left: max(18px, calc((100vw - 680px)/2)); }
  .function-screen.tool-screen .tool-screen-hero { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet.function-screen[open] { animation: none; }
}
