/* Batch 6: the Workplace English pages own this phone-only layer. */
.pf80-workplace .wl-phone-links {
  display: none;
}

@media screen and (max-width: 600px) {
  /* English Lab: keep activity selection and the prompt in normal page flow. */
  .pf80-workplace .wl-lab .wl-head {
    display: grid;
    gap: .15rem;
    padding: .5rem .75rem .65rem;
  }

  .pf80-workplace .wl-head .pelab-back {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 44px;
  }

  .pf80-workplace .wl-head .wl-kicker {
    display: block;
    margin: .2rem 0 0;
  }

  .pf80-workplace .wl-lab .wl-phone-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin-block-end: .55rem;
  }

  .wl-phone-links a {
    display: flex;
    min-height: 44px;
    padding: .4rem .5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border: 1px solid var(--lab-line);
    border-radius: .5rem;
    background: #fff;
    color: var(--wl-navy);
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .pf80-workplace .wl-lab .wl-choices > summary {
    min-height: 48px;
  }

  .pf80-workplace .wl-lab .pelab-menu summary {
    min-height: 44px;
  }

  .pf80-workplace .wl-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .pf80-workplace .wl-work {
    padding: .75rem;
  }

  .pf80-workplace .wl-work :is(textarea, input[type="text"]) {
    max-width: 100%;
    font-size: 16px;
  }

  .pf80-workplace .wl-panel [data-wl-next] {
    width: 100%;
  }

  .pf80-workplace .wl-panel .wl-controls > button {
    flex: 1 1 auto;
  }

  .pf80-workplace :is(#pf80-units, #wl-title) {
    scroll-margin-top: 1rem;
  }

  /* Spanish and Chinese guided routes share the earlier lesson component. */
  .pf80-shell[data-pf81-locale] .pf81-languages > a {
    min-height: 44px;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero {
    gap: 12px;
    padding: 20px 16px;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero h1 {
    font-size: clamp(28px, 7.4vw, 36px);
    margin-block-end: 12px;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero-text > p:not(.pf80-eyebrow) {
    font-size: 16px;
    line-height: 1.5;
  }

  .pf80-shell[data-pf81-locale] .pf80-tags {
    margin: 12px 0;
    gap: 6px;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero .pf80-button {
    width: 100%;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero-visual {
    min-height: 0;
    padding: 10px;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero-visual ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero-visual li {
    gap: 6px;
    padding: 6px 8px;
    font-size: .83rem;
  }

  .pf80-shell[data-pf81-locale] .pf80-hero-visual p {
    margin: 6px 0 0;
  }

  .pf80-shell[data-pf81-locale] #pf80-units {
    scroll-margin-top: 1rem;
  }

  .pf80-shell[data-pf81-locale] .pf80-unit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .pf80-shell[data-pf81-locale] .pf80-unit {
    min-height: 0;
    padding: 13px 14px;
  }

  .pf80-shell[data-pf81-locale] .pf80-unit h3 {
    margin: 5px 0 4px;
  }

  .pf80-shell[data-pf81-locale] .pf80-unit p {
    margin-block-end: 8px;
  }

  .pf80-shell[data-pf81-locale] .pf80-unit-bottom {
    flex-wrap: wrap;
  }

  .pf80-shell[data-pf81-locale] .pf80-workspace {
    padding: 16px 13px;
  }

  .pf80-shell[data-pf81-locale] .pf80-question {
    min-width: 0;
    padding: 10px 12px;
  }

  .pf80-shell[data-pf81-locale] .pf80-question label {
    min-height: 44px;
    padding-block: 8px;
  }

  .pf80-shell[data-pf81-locale] .pf80-question input {
    flex: 0 0 auto;
  }

  .pf80-shell[data-pf81-locale] :is(.pf80-close, .pf80-reset, .pf80-model-button) {
    min-height: 44px;
  }
}
