/* The 721 × 834 product frame has a 670 × 768 glass opening and a ~72 px
   radius. The original photo sits above this layer and preserves both lenses. */
#device-shell[data-mix-round] #screen-face {
  border-radius: 10.75% / 9.375%;
  box-shadow: none;
  background: var(--mix-paper, Canvas);
}

#device-shell[data-mix-round] #screen-face::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--mix-header-edge, 0px);
  background: var(--mix-header, #101010);
  pointer-events: none;
}

/* The camera strip defines where the controls fit. Use the reader's own
   theme for the controls, including when the system appearance changes. */
#device-shell[data-mix-round] #mix-cover-nav {
  background-color: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

#device-shell[data-mix-round] #mix-cover-nav button + button,
#device-shell[data-mix-round] #mix-cover-chapters li + li {
  border-color: var(--line);
}

#device-shell[data-mix-round] #mix-cover-nav.with-chapters #mix-cover-contents {
  background-color: var(--well);
  border-color: var(--line);
}

#device-shell[data-mix-round] #mix-cover-nav button[aria-disabled="true"] {
  color: var(--muted);
}

#device-shell[data-mix-round] #mix-cover-nav button:not([aria-disabled="true"]):is(:hover, :active) {
  background-color: var(--well);
}

#device-shell[data-mix-round] #mix-cover-nav #mix-cover-chapters button[aria-current="location"] {
  color: var(--paper);
  background-color: var(--ink);
  box-shadow: inset 3px 0 currentColor;
  font-weight: 700;
}

#device-shell[data-mix-round] #mix-cover-nav button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

@media (forced-colors: active) {
  #device-shell[data-mix-round] #mix-cover-nav,
  #device-shell[data-mix-round] #mix-cover-nav.with-chapters #mix-cover-contents {
    color: ButtonText;
    background-color: Canvas;
    border-color: ButtonText;
  }

  #device-shell[data-mix-round] #mix-cover-nav #mix-cover-chapters button[aria-current="location"] {
    border-inline-start: 3px solid Highlight;
    text-decoration: underline;
  }

  #device-shell[data-mix-round] #mix-cover-nav button[aria-disabled="true"] {
    color: GrayText;
  }
}

/* The product photograph now owns the lower glass contour. Paint underneath
   its transparent opening so the CSS corner cannot trim the shorter arc. */
#device-shell[data-mix-round] #screen-face {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
