/* Illustrated product screens: their typography scales with their own screen,
   never with a fixed pixel unit or with the surrounding page viewport. */
#ujt-pro-pages .device-group .sf-ui,
#ujt-pro-pages .mobile-row .phone .sf-ui,
#ujt-pro-pages .hero-phone-screen .sf-ui {
  --sf-u: 1cqw;
  font-family: var(--font-body-family);
  font-size: calc(1.6 * var(--sf-u));
  line-height: 1.4;
}

/* Keep the device silhouettes recognisable at every marketing-image size. */
#ujt-pro-pages .device-group .laptop .sf-screen,
#ujt-pro-pages .device-group .directory-desktop .sf-screen { aspect-ratio: 1.6; }
#ujt-pro-pages :is(.hero,.service-section,.premium-carousel) .device-group > .phone {
  width: 23%;
  height: auto;
  max-height: none;
  aspect-ratio: .49;
  box-sizing: border-box;
  padding: clamp(10px,1.4vw,20px) clamp(3px,.4vw,6px) clamp(10px,1.3vw,19px);
}
#ujt-pro-pages .mobile-row .phone:has(.sf-screen) {
  width: min(230px,76%);
  height: auto;
  aspect-ratio: .49;
  padding: 25px 7px 23px;
  box-sizing: border-box;
}
#ujt-pro-pages .device-group .phone .sf-screen,
#ujt-pro-pages .mobile-row .phone .sf-screen {
  position: absolute;
  inset: 8% 4% 7%;
  width: 92%;
  height: 85%;
  max-width: none;
  aspect-ratio: auto;
}

/* Desktop dashboard. The chart occupies the useful height instead of sitting
   above a large empty panel. Header and metric labels remain close together. */
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-browser { height: 2.2cqw; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-header { height: 6cqw; padding-inline: 2.3cqw; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-header-links { font-size: 1.25cqw; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-logo > b { font-size: 2.8cqw; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-nav { height: 7.8cqw; padding: .8cqw 2cqw; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-nav > span { font-size: 1.5cqw; gap: .4cqw; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-metrics {
  height: 9cqw;
  padding: 1.5cqw 0;
  margin-inline: 2.3cqw;
}
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-metrics > div { align-content: center; row-gap: .5cqw; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-metrics b { font-size: 3cqw; line-height: 1.15; }
#ujt-pro-pages .device-group :is(.laptop,.directory-desktop) .sf-metrics small { font-size: 1.4cqw; }
#ujt-pro-pages .device-group .laptop .sf-dashboard {
  grid-template-columns: minmax(0,1fr) 23%;
  gap: 2cqw;
  height: calc(100% - 25cqw);
  padding: 2cqw 2.3cqw 2.3cqw;
}
#ujt-pro-pages .device-group .laptop .sf-stat-panel { display: flex; flex-direction: column; min-height: 0; }
#ujt-pro-pages .device-group .laptop .sf-stat-panel .sf-panel-title { flex: none; font-size: 2.4cqw; padding-bottom: 1.2cqw; margin-bottom: 1.4cqw; }
#ujt-pro-pages .device-group .laptop .sf-panel-title > span { font-size: 1.2cqw; }
#ujt-pro-pages .device-group .laptop .sf-stat-body { flex: 1; min-height: 0; height: auto; grid-template-columns: 23% minmax(0,1fr); }
#ujt-pro-pages .device-group .laptop .sf-stat-body > aside {
  align-content: stretch;
  grid-template-rows: auto 1fr auto 1fr auto 1fr;
  align-items: start;
  padding: 2cqw 1cqw 0;
}
#ujt-pro-pages .device-group .laptop .sf-stat-body > aside > b { font-size: 2.8cqw; line-height: 1.2; }
#ujt-pro-pages .device-group .laptop .sf-stat-body > aside > small { font-size: 1.3cqw; margin-top: .8cqw; }
#ujt-pro-pages .device-group .laptop .sf-stat-body > div { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 1.5cqw; }
#ujt-pro-pages .device-group .laptop .sf-stat-body > div > strong { font-size: 1.4cqw; }
#ujt-pro-pages .device-group .laptop .sf-stat-body > div > p { font-size: 1.2cqw; margin: .7cqw 0 1.4cqw; }
#ujt-pro-pages .device-group .laptop .sf-stat-body .sf-graph { flex: 1; min-height: 0; height: auto; }
#ujt-pro-pages .device-group .laptop .sf-axis { font-size: 1.15cqw; width: 2.4cqw; }
#ujt-pro-pages .device-group .laptop .sf-columns small { font-size: 1cqw; }
#ujt-pro-pages .device-group .laptop .sf-stat-body footer { font-size: 1.05cqw; margin-top: .8cqw; }
#ujt-pro-pages .device-group .laptop .sf-dashboard > aside { padding: 0; font-size: 1.4cqw; }
#ujt-pro-pages .device-group .laptop .sf-dashboard > aside > div { min-height: 0; padding: 1.5cqw; margin-bottom: 1.5cqw; }
#ujt-pro-pages .device-group .laptop .sf-dashboard > aside p { margin: .8cqw 0; }
#ujt-pro-pages .device-group .laptop .sf-completion { margin-top: 1.3cqw; }

/* Editor previews: compact tools and five visible inbox rows. */
#ujt-pro-pages .device-group .laptop .sf-work { height: calc(100% - 16cqw); grid-template-columns: 22% minmax(0,1fr); }
#ujt-pro-pages .device-group .laptop .sf-work > main { padding: 1.7cqw 2cqw; }
#ujt-pro-pages .device-group .laptop .sf-work .sf-panel-title { font-size: 2.3cqw; padding-bottom: 1cqw; margin-bottom: 1cqw; }
#ujt-pro-pages .device-group .laptop .sf-sidebar { padding: 1.5cqw; font-size: 1.3cqw; }
#ujt-pro-pages .device-group .laptop .sf-sidebar > span { padding: .8cqw 0; line-height: 1.3; }
#ujt-pro-pages .device-group .laptop .sf-sidebar > b { font-size: 1.4cqw; padding-block: 1cqw; }
#ujt-pro-pages .device-group .laptop .sf-sidebar > small { font-size: 1.1cqw; }
#ujt-pro-pages .device-group .laptop .sf-request-metrics { padding: .3cqw 2cqw 1cqw; }
#ujt-pro-pages .device-group .laptop .sf-request-metrics > span { font-size: 1.25cqw; }
#ujt-pro-pages .device-group .laptop .sf-request-metrics b { font-size: 2.5cqw; }
#ujt-pro-pages .device-group .laptop .sf-filter { font-size: 1.2cqw; padding: 1cqw 0; }
#ujt-pro-pages .device-group .laptop .sf-filter > span { padding: .65cqw .9cqw; }
#ujt-pro-pages .device-group .laptop .sf-request-list > div { gap: 1cqw; padding: .9cqw .3cqw; }
#ujt-pro-pages .device-group .laptop .sf-request-list section { min-width: 0; }
#ujt-pro-pages .device-group .laptop .sf-request-list section b { font-size: 1.65cqw; }
#ujt-pro-pages .device-group .laptop .sf-request-list section p { font-size: 1.3cqw; margin: .2cqw 0; }
#ujt-pro-pages .device-group .laptop .sf-request-list section small { font-size: 1.1cqw; text-overflow: ellipsis; }
#ujt-pro-pages .device-group .laptop .sf-request-list aside { font-size: 1.2cqw; gap: .5cqw; }
#ujt-pro-pages .device-group .laptop .sf-work > main > p { font-size: 1.4cqw; margin: 1cqw 0 1.6cqw; }
#ujt-pro-pages .device-group .laptop .sf-review-columns { font-size: 1.3cqw; }
#ujt-pro-pages .device-group .laptop .sf-field { font-size: 1.3cqw; }
#ujt-pro-pages .device-group .laptop .sf-mini-button { font-size: 1.3cqw; }

/* Phones use a real narrow-screen layout, not a reduced desktop layout. */
#ujt-pro-pages .device-group .phone .sf-ui,
#ujt-pro-pages .mobile-row .phone .sf-ui,
#ujt-pro-pages .hero-phone-screen .sf-ui { font-size: 3.7cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-header { height: 16cqw; padding: 3cqw 4cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-logo > b { font-size: 6.2cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-nav { height: 19cqw; padding: 2cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-nav > span { font-size: 3.2cqw; gap: 1.3cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-metrics { height: 45cqw; margin: 0 4cqw; padding: 3cqw 0; gap: 3cqw 0; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-metrics > div { align-content: center; row-gap: 1.3cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-metrics b { font-size: 7.2cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-metrics small { font-size: 3.2cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-dashboard { height: calc(100% - 80cqw); padding: 4cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-panel { height: 100%; display: flex; flex-direction: column; min-height: 0; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-panel .sf-panel-title { font-size: 5.4cqw; margin-bottom: 3cqw; padding-bottom: 3cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-panel-title > span { font-size: 2.5cqw; padding: 1.3cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-body { height: auto; flex: 1; min-height: 0; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-body > div { height: 100%; display: flex; flex-direction: column; min-height: 0; padding: 1cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-body > div > strong { font-size: 3.4cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-body > div > p { font-size: 2.8cqw; margin: 2cqw 0 4cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-body .sf-graph { flex: 1; height: auto; min-height: 26cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-stat-body footer { font-size: 2.4cqw; margin-top: 2cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-work { height: calc(100% - 35cqw); }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-work > main { height: 100%; padding: 4cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-panel-title { font-size: 4.8cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-metrics { padding: 1cqw 0 3cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-metrics > span { font-size: 2.8cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-filter { font-size: 2.8cqw; padding: 3cqw 0; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-list > div { padding: 3.3cqw 0; gap: 2cqw; align-items: flex-start; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-list section { min-width: 0; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-list section b { font-size: 4cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-list section p { font-size: 3.2cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-list section small { font-size: 2.8cqw; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-list aside { font-size: 2.6cqw; gap: 2cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-request-list em { font-size: 2.6cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-review-columns { font-size: 3.5cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-review-columns > section > strong { font-size: 3.4cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-review-columns label { font-size: 3.3cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-field { font-size: 3.5cqw; }
#ujt-pro-pages :is(.phone,.hero-phone-screen) .sf-ui .sf-mini-button { font-size: 3.3cqw; }

/* Illustrated controls retain the same rounded visual language as UJT. */
#ujt-pro-pages .device-group .sf-ui .sf-mini-button,
#ujt-pro-pages .mobile-row .phone .sf-ui .sf-mini-button,
#ujt-pro-pages .device-group .sf-ui .sf-directory-cards em {
  border-radius: var(--ui-radius-button);
  display: inline-block;
  line-height: 1.4;
}
#ujt-pro-pages .device-group .sf-ui .sf-field,
#ujt-pro-pages .mobile-row .phone .sf-ui .sf-field { border-radius: calc(1.2 * var(--sf-u)); }

@media(max-width:560px) {
  #ujt-pro-pages .mobile-row .phone:has(.sf-screen) { width: min(230px,78%); }
  #ujt-pro-pages :is(.hero,.service-section,.premium-carousel) .device-group > .phone { border-radius: 12px; }
}
